1 Revision history for Perl extension Moose
4 * Moose::Util::TypeConstraints
5 - Calling subtype with a name as the only argument is now an
6 exception. If you want an anonymous subtype do:
8 my $subtype = subtype as 'Foo';
10 * Moose::Cookbook::Meta::Recipe7
11 - A new recipe, creating a custom meta-instance class.
13 * Moose::Cookbook::Basics::Recipe5
14 - Fix POD formatting typo
16 * Moose::Cookbook::Basics::Recipe9
17 - Link to this recipe from Moose.pm's builder blurb
19 0.72 Mon, February 23, 2009
21 * Moose::Meta::Method::Constructor
22 - A mutable class accepted Foo->new(undef) without complaint,
23 while an immutable class would blow up with an unhelpful
24 error. Now, in both cases we throw a helpful error
25 instead. Reported by doy.
27 0.71_01 Sun, February 22, 2009
29 - Hopefully fixed some POD errors in a few recipes that caused
30 them to display weird on search.cpan.org.
32 * Moose::Util::TypeConstraints
33 - Calling type or subtype without the sugar helpers (as, where,
34 message) is now deprecated.
35 - The subtype function tried hard to guess what you meant, but
36 often got it wrong. For example:
38 my $subtype = subtype as 'ArrayRef[Object]';
40 This caused an error in the past, but now works as you'd
44 - Make sure Moose.pm is loaded before calling
45 Moose->throw_error. This wasn't normally an issue, but could
46 bite you in weird cases.
48 0.71 Thu, February 19, 2009
49 * Moose::Cookbook::Basics::Recipe11
50 - A new recipe which demonstrates the use of BUILDARGS and
53 * Moose::Cookbook::Roles::Recipe3
54 - A new recipe, applying a role to an object instance. (Dave
58 - Allow overriding specific keywords from "also" packages. (doy)
61 - Replace hardcoded cookbook tests with Test::Inline to ensure
62 the tests match the actual code in the recipes. (Dave Rolsky)
65 - Working on the above turned up a number of little bugs in the
66 recipe code. (Dave Rolsky)
68 * Moose::Util::TypeConstraints::Optimized
69 - Just use Class::MOP for the optimized ClassName check. (Dave
72 0.70 Sat, February 14, 2009
73 * Moose::Util::TypeConstraints
74 - Added the RoleName type (stevan)
75 - added tests for this (stevan)
77 * Moose::Cookbook::Basics::Recipe3
78 - Updated the before qw[left right] sub to be a little more
79 defensive about what it accepts (stevan)
80 - added more tests to t/000_recipies/basics/003_binary_tree.t
84 - We now always call DEMOLISHALL, even if a class does not
85 define DEMOLISH. This makes sure that method modifiers on
86 DEMOLISHALL work as expected. (doy)
87 - added tests for this (EvanCarroll)
89 * Moose::Util::MetaRole
90 - Accept roles for the wrapped_method_metaclass (rafl)
91 - added tests for this (rafl)
93 * Moose::Meta::Attribute
94 - We no longer pass the meta-attribute object as a final
95 argument to triggers. This actually changed for inlined code a
96 while back, but the non-inlined version and the docs were
100 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
101 they require 0.11. (Dave Rolsky)
104 - Lots of small changes to the manual, cookbook, and
105 elsewhere. These were based on feedback from various
106 users, too many to list here. (Dave Rolsky)
108 0.69 Thu, February 12, 2009
110 - Make some keyword errors use throw_error instead of croak
111 since Moose::Exporter wraps keywords now (Sartak)
114 - Revised every recipe for style and clarity. Also moved some
115 documentation out of cookbook recipes and into Moose::Manual
116 pages. This work was funded as part of the Moose docs grant
117 from TPF. (Dave Rolsky)
119 * Moose::Meta::Method::Delegation
120 - If the attribute doing the delegation was not populated, the
121 error message did not specify the attribute name
124 0.68 Wed, February 4, 2009
126 - Many spelling, typo, and formatting fixes by daxim.
128 * Moose::Manual::Attributes
129 - The NAME section in the POD used "Attribute" so search.cpan
130 didn't resolve links from other documents properly.
132 * Moose::Meta::Method::Overriden
133 - Now properly spelled as Overridden. Thanks to daxim for
136 0.67 Tue, February 3, 2009
138 - Lots of little typo fixes and a few clarifications. Several
139 pages didn't have proper titles, and so weren't actually
140 visible on search.cpan.org. Thanks to hanekomu for a variety
141 of fixes and formatting improvements.
143 0.66 Tue, February 3, 2009
145 - This is a brand new, extensive manual for Moose. This aims to
146 provide a complete introduction to all of Moose's
147 features. This work was funded as part of the Moose docs grant
148 from TPF. (Dave Rolsky)
150 * Moose::Meta::Attribute
151 - Added a delegation_metaclass method to replace a hard-coded
152 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
154 * Moose::Util::TypeConstraints
155 - If you created a subtype and passed a parent that Moose didn't
156 know about, it simply ignored the parent. Now it automatically
157 creates the parent as a class type. This may not be what you
158 want, but is less broken than before. (Dave Rolsky)
160 * Moose::Util::TypeConstraints
161 - This module tried throw errors by calling Moose->throw_error,
162 but it did not ensure that Moose was loaded first. This could
163 cause very unhelpful errors when it tried to throw an error
164 before Moose was loaded. (Dave Rolsky)
166 * Moose::Util::TypeConstraints
167 - You could declare a name with subtype such as "Foo!Bar" that
168 would be allowed, but if you used it in a parameterized type
169 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
170 vetting on names created via the sugar functions, so that they
171 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
173 0.65 Thu, January 22, 2008
174 * Moose and Moose::Meta::Method::Overridden
175 - If an overridden method called super(), and then the
176 superclass's method (not overridden) _also_ called super(),
177 Moose went into an endless recursion loop. Test provided by
178 Chris Prather. (Dave Rolsky)
180 * Moose::Meta::TypeConstraint
181 - All methods are now documented. (gphat)
183 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
184 - Fixed some bogus failures that occurred because we tried to
185 validate filesystem paths in a very ad-hoc and
186 not-quite-correct way. (Dave Rolsky)
188 * Moose::Util::TypeConstraints
189 - Added maybe_type to exports. See docs for details. (rjbs)
192 - Added Moose::Util::TypeConstraints to the SEE ALSO
196 - Methods created via an attribute can now fulfill a "requires"
197 declaration for a role. (nothingmuch)
199 * Moose::Meta::Method::*
200 - Stack traces from inlined code will now report its line and
201 file as being in your class, as opposed to in Moose
204 0.64 Wed, December 31, 2008
205 * Moose::Meta::Method::Accessor
206 - Always inline predicate and clearer methods (Sartak)
208 * Moose::Meta::Attribute
209 - Support for parameterized traits (Sartak)
210 - verify_against_type_constraint method to avoid duplication
211 and enhance extensibility (Sartak)
214 - Tests (but no support yet) for parameterized traits (Sartak)
217 - Require Class::MOP 0.75+, which has the side effect of making
218 sure we work on Win32. (Dave Rolsky)
220 0.63 Mon, December 8, 2008
222 - Some small grammar tweaks and bug fixes in non-Moose example
225 0.62_02 Fri, December 5, 2008
226 * Moose::Meta::Role::Application::ToClass
227 - When a class does not provide all of a role's required
228 methods, the error thrown now mentions all of the missing
229 methods, as opposed to just the first one found. Requested by
230 Curtis Poe (RT #41119). (Dave Rolsky)
232 * Moose::Meta::Method::Constructor
233 - Moose will no longer inline a constructor for your class
234 unless it inherits its constructor from Moose::Object, and
235 will warn when it doesn't inline. If you want to force
236 inlining anyway, pass "replace_constructor => 1" to
237 make_immutable. Addresses RT #40968, reported by Jon
238 Swartz. (Dave Rolsky)
239 - The quoting of default values could be broken if the default
240 contained a single quote ('). Now we use quotemeta to escape
241 anything potentially dangerous in the defaults. (Dave Rolsky)
243 0.62_01 Wed, December 3, 2008
245 - use the method->execute API for BUILDALL
246 and DEMOLISHALL (Sartak)
248 * Moose::Util::TypeConstraints
249 - We now make all the type constraint meta classes immutable
250 before creating the default types provided by Moose. This
251 should make loading Moose a little faster. (Dave Rolsky)
253 0.62 Wed November 26, 2008
254 * Moose::Meta::Role::Application::ToClass
255 Moose::Meta::Role::Application::ToRole
256 - fixed issues where excluding and aliasing the
257 same methods for a single role did not work
258 right (worked just fine with multiple
260 - added test for this (stevan)
262 * Moose::Meta::Role::Application::RoleSummation
263 - fixed the error message when trying to compose
264 a role with a role it excludes (Sartak)
267 - Catch another case where recursion caused the value
268 of $CALLER to be stamped on (t0m)
269 - added test for this (t0m)
272 - Remove the make_immutable keyword, which has been
273 deprecated since April. It breaks metaclasses that
274 use Moose without no Moose (Sartak)
276 * Moose::Meta::Attribute
277 - Removing an attribute from a class now also removes delegation
278 (handles) methods installed for that attribute (t0m)
279 - added test for this (t0m)
281 * Moose::Meta::Method::Constructor
282 - An attribute with a default that looked like a number (but was
283 really a string) would accidentally be treated as a number
284 when the constructor was made immutable (perigrin)
285 - added test for this (perigrin)
288 - create method for constructing a role
290 - added test for this (Sartak)
291 - anonymous roles! (Sartak)
292 - added test for this (Sartak)
295 - more consistent error messages (Sartak)
297 * Moose::Cookbook::Roles::Recipe1
298 - attempt to explain why a role that just requires
299 methods is useful (Sartak)
301 0.61 Fri November 7, 2008
302 * Moose::Meta::Attribute
303 - When passing a role to handles, it will be loaded if necessary
307 - Method objects returned by get_method (and other methods)
308 Could end up being returned without an associated_metaclass
309 attribute. Removing get_method_map, which is provided by
310 Class::MOP::Class, fixed this. The Moose version did nothing
311 different from its parent except introduce a bug. (Dave Rolsky)
312 - added tests for this (jdv79)
315 - Added a $VERSION to all .pm files which didn't have one. Fixes
316 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
318 * Moose::Cookbook::Basics::Recipe4
319 * Moose::Cookbook::Basics::Recipe6
320 - These files had spaces on the first line of the SYNOPSIS, as
321 opposed to a totally empty line. According to RT #40432, this
322 confuses POD parsers. (Dave Rolsky)
324 0.60 Fri October 24, 2008
326 - Passing "-traits" when loading Moose caused the Moose.pm
327 exports to be broken. Reported by t0m. (Dave Rolsky)
328 - Tests for this bug. (t0m)
331 - Change resolve_metaclass alias to use the new
332 load_first_existing_class function. This makes it a lot
333 simpler, and also around 5 times faster. (t0m)
334 - Add caching to resolve_metaclass_alias, which gives an order
335 of magnitude speedup to things which repeatedly call the
336 Moose::Meta::Attribute->does method, notably MooseX::Storage
339 * Moose::Util::TypeConstraint
340 - Put back the changes for parameterized constraints that
341 shouldn't have been removed in 0.59. We still cannot parse
342 them, but MooseX modules can create them in some other
343 way. See the 0.58 changes for more details. (jnapiorkowski)
344 - Changed the way subtypes are created so that the job is
345 delegated to a type constraint parent. This clears up some
346 hardcoded checking and should allow correct subtypes of
347 Moose::Meta::Type::Constraint. Don't rely on this new API too
348 much (create_child_type) because it may go away in the
349 future. (jnapiorkowski)
351 * Moose::Meta::TypeConstraint::Union
352 - Type constraint names are sorted as strings, not numbers.
355 * Moose::Meta::TypeConstraint::Parameterizable
356 - New parameterize method. This can be used as a factory method
357 to make a new type constraint with a given parameterized
358 type. (jnapiorkowski)
359 - added tests (jnapiorkowski)
361 0.59 Tue October 14, 2008
363 - Add abridged documentation for builder/default/initializer/
364 predicate, and link to more details sections in
365 Class::MOP::Attribute. (t0m)
367 * Moose::Util::TypeConstraints
368 - removed prototypes from all but the &-based stuff (mst)
370 * Moose::Util::TypeConstraints
371 - Creating a anonymous subtype with both a constraint and a
372 message failed with a very unhelpful error, but should just
373 work. Reported by t0m. (Dave Rolsky)
376 - Some tests that used Test::Warn if it was available failed
377 with older versions of Test::Warn. Reported by Fayland. (Dave
379 - Test firing behavior of triggers in relation to builder/default/
381 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
382 kinds of supported type. (t0m)
385 - In create(), do not pass "roles" option to the superclass
386 - added related test that creates an anon metaclass with
389 * Moose::Meta::TypeConstraint::Class
390 * Moose::Meta::TypeConstraint::Role
391 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
392 other types (as per change in 0.55_02). (t0m)
394 * Moose::Meta::TypeConstraint::Registry
395 - Fix warning when dealing with unknown type names (t0m)
397 * Moose::Util::TypeConstraints
398 - Reverted changes from 0.58 related to handle parameterized
399 types. This caused random failures on BSD and Win32 systems,
400 apparently related to the regex engine. This means that Moose
401 can no longer parse structured type constraints like
402 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
403 supported in a slightly different way via MooseX::Types some
404 time in the future. (Dave Rolsky)
406 0.58 Sat September 20, 2008
407 !! This release has an incompatible change regarding !!
408 !! how roles add methods to a class !!
410 * Roles and role application
411 ! Roles now add methods by calling add_method, not
412 alias_method. They make sure to always provide a method
413 object, which will be cloned internally. This means that it is
414 now possible to track the source of a method provided by a
415 role, and even follow its history through intermediate roles.
417 This means that methods added by a role now show up when
418 looking at a class's method list/map. (Dave Rolsky)
421 - From this release on, we'll try to maintain a list of
422 conflicting modules, and warn you if you have one
423 installed. For example, this release conflicts with ...
424 - MooseX::Singleton <= 0.11
425 - MooseX::Params::Validate <= 0.05
428 In general, we try to not break backwards compatibility for
429 most Moose users, but MooseX modules and other code which
430 extends Moose's metaclasses is often affected by very small
431 changes in the Moose internals.
433 * Moose::Meta::Method::Delegation
434 * Moose::Meta::Attribute
435 - Delegation methods now have their own method class. (Dave
438 * Moose::Meta::TypeConstraint::Parameterizable
439 - Added a new method 'parameterize' which is basically a factory
440 for the containing constraint. This makes it easier to create
441 new types of parameterized constraints. (jnapiorkowski)
443 * Moose::Meta::TypeConstraint::Union
444 - Changed the way Union types canonicalize their names to follow
445 the normalized TC naming rules, which means we strip all
446 whitespace. (jnapiorkowski)
448 * Moose::Util::TypeConstraints
449 - Parameter and Union args are now sorted, this makes Int|Str
450 the same constraint as Str|Int. (jnapiorkowski)
451 - Changes to the way Union types are parsed to more correctly
452 stringify their names. (jnapiorkowski)
453 - When creating a parameterized type, we now use the new
454 parameterize method. (jnapiorkowski)
455 - Incoming type constraint strings are now normalized to remove
456 all whitespace differences. (jnapiorkowski)
457 - Changed the way we parse type constraint strings so that we now
458 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
459 constraints. This lays the foundation for more flexible type
460 constraint implementations.
462 * Tests and docs for all the above. (jnapiorkowski)
466 - Moose::Exporter will no longer remove a subroutine that the
467 exporting package re-exports. Moose re-exports the
468 Carp::confess function, among others. The reasoning is that we
469 cannot know whether you have also explicitly imported those
470 functions for your own use, so we err on the safe side and
471 always keep them. (Dave Rolsky)
472 - added tests for this (rafl)
475 - Changes to how we fix metaclass compatibility that are much
476 too complicated to go into. The summary is that Moose is much
477 less likely to complain about metaclass incompatibility
478 now. In particular, if two metaclasses differ because
479 Moose::Util::MetaRole was used on the two corresponding
480 classes, then the difference in roles is reconciled for the
481 subclass's metaclass. (Dave Rolsky)
482 - Squashed an warning in _process_attribute (thepler)
485 - throw exceptions (sooner) for invalid attribute names (thepler)
486 - added tests for this (thepler)
488 * Moose::Util::MetaRole
489 - If you explicitly set a constructor or destructor class for a
490 metaclass object, and then applied roles to the metaclass,
491 that explicitly set class would be lost and replaced with the
495 * Moose::Meta::Attribute
496 * Moose::Meta::Method
499 * Moose::Error::Default
500 * Moose::Error::Croak
501 * Moose::Error::Confess
502 - All instances of confess() changed to use overridable
503 C<throw_error> method. This method ultimately calls a class
504 constructor, and you can change the class being called. In
505 addition, errors now pass more information than just a string.
506 The default C<error_class> behaves like C<Carp::confess>, so
507 the behavior is not visibly different for end users.
509 0.57 Wed September 3, 2008
511 - A new bit of doc intended to introduce folks familiar with
512 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
515 - Shows examples of two classes, each done first with and then
516 without Moose. This makes a nice parallel to
517 Moose::Intro. (Dave Rolsky)
519 * Moose::Util::TypeConstraints
520 - Fixed a bug in find_or_parse_type_constraint so that it
521 accepts a Moose::Meta::TypeConstraint object as the parent
522 type, not just a name (jnapiorkowski)
523 - added tests (jnapiorkowski)
526 - If Sub::Name was not present, unimporting failed to actually
527 remove some sugar subs, causing test failures (Dave Rolsky)
529 0.56 Mon September 1, 2008
530 For those not following the series of dev releases, there are
531 several major changes in this release of Moose.
532 ! Moose::init_meta should now be called as a method. See the
535 - Major performance improvements by nothingmuch.
537 - New modules for extension writers, Moose::Exporter and
538 Moose::Util::MetaRole by Dave Rolsky.
540 - Lots of doc improvements and additions, especially in the
545 * Removed all references to the experimental-but-no-longer-needed
546 Moose::Meta::Role::Application::ToMetaclassInstance.
548 * Require Class::MOP 0.65.
550 0.55_04 Sat August 30, 2008
551 * Moose::Util::MetaRole
552 * Moose::Cookbook::Extending::Recipe2
553 - This simplifies the application of roles to any meta class, as
554 well as the base object class. Reimplemented metaclass traits
555 using this module. (Dave Rolsky)
557 * Moose::Cookbook::Extending::Recipe1
558 - This a new recipe, an overview of various ways to write Moose
559 extensions (Dave Rolsky)
561 * Moose::Cookbook::Extending::Recipe3
562 * Moose::Cookbook::Extending::Recipe4
563 - These used to be Extending::Recipe1 and Extending::Recipe2,
566 0.55_03 Fri August 29, 2008
567 * No changes from 0.55_02 except increasing the Class::MOP
568 dependency to 0.64_07.
570 0.55_02 Fri August 29, 2008
571 * Makefile.PL and Moose.pm
572 - explicitly require Perl 5.8.0+ (Dave Rolsky)
574 * Moose::Util::TypeConstraints
575 - Fix warnings from find_type_constraint if the type is not
578 * Moose::Meta::TypeConstraint
579 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
580 return false if the type you specify cannot be found in the
581 type registry, rather than throwing an unhelpful and
582 coincidental exception. (t0m).
583 - added docs & test for this (t0m)
585 * Moose::Meta::TypeConstraint::Registry
586 - add_type_constraint now throws an exception if a parameter is
588 - added docs & test for this (t0m)
590 * Moose::Cookbook::FAQ
591 - Added a faq entry on the difference between "role" and "trait"
595 - Fixed a bug that caused role composition to not see a required
596 method when that method was provided by another role being
597 composed at the same time. (Dave Rolsky)
598 - test and bug finding (tokuhirom)
600 0.55_01 Wed August 20, 2008
602 !! Calling Moose::init_meta as a function is now !!
603 !! deprecated. Please see the Moose.pm docs for details. !!
605 * Moose::Meta::Method::Constructor
606 - Fix inlined constructor so that values produced by default
607 or builder methods are coerced as required. (t0m)
608 - added test for this (t0m)
610 * Moose::Meta::Attribute
611 - A lazy attribute with a default or builder did not attempt to
612 coerce the default value. The immutable code _did_
614 - added test for this (t0m)
617 - This is a new helper module for writing "Moose-alike"
618 modules. This should make the lives of MooseX module authors
619 much easier. (Dave Rolsky)
622 * Moose::Cookbook::Meta::Recipe5
623 - Implemented metaclass traits (and wrote a recipe for it):
625 use Moose -traits => 'Foo'
627 This should make writing small Moose extensions a little
630 * Moose::Cookbook::Basics::Recipe1
631 - Removed any examples of direct hashref access, and applied an
632 editorial axe to reduce verbosity. (Dave Rolsky)
634 * Moose::Cookbook::Basics::Recipe1
635 - Also applied an editorial axe here. (Dave Rolsky)
638 * Moose::Cookbook::Extending::Recipe1
639 * Moose::Cookbook::Extending::Recipe2
640 - Rewrote extending and embedding moose documentation and
641 recipes to use Moose::Exporter (Dave Rolsky)
645 - These two modules now warn when you load them from the main
646 package "main" package, because we will not export sugar to
647 main. Previously it just did nothing. (Dave Rolsky)
650 - Now provide an init_meta method just like Moose.pm, and you
651 can call this to provide an alternate role metaclass. (Dave
652 Rolsky and nothingmuch)
653 - get_method_map now respects the package cache flag (nothingmuch)
656 - Two new methods - add_method and wrap_method_body
660 - Optimizations including allowing constructors to accept hash
661 refs, making many more classes immutable, and making
662 constructors immutable. (nothingmuch)
664 0.55 Sun August 3, 2008
665 * Moose::Meta::Attribute
666 - breaking down the way 'handles' methods are
667 created so that the process can be more easily
668 overridden by subclasses (stevan)
670 * Moose::Meta::TypeConstraint
671 - fixing what is passed into a ->message with
672 the type constraints (RT #37569)
673 - added tests for this (Charles Alderman)
675 * Moose::Util::TypeConstraints
676 - fix coerce to accept anon types like subtype can (mst)
679 - reorganized the recipes into sections - Basics, Roles, Meta,
680 Extending - and wrote abstracts for each section (Dave Rolsky)
682 * Moose::Cookbook::Basics::Recipe10
683 - A new recipe that demonstrates operator overloading
684 in combination with Moose. (bluefeet)
686 * Moose::Cookbook::Meta::Recipe1
687 - an introduction to what meta is and why you'd want to make
688 your own metaclass extensions (Dave Rolsky)
690 * Moose::Cookbook::Meta::Recipe4
691 - a very simple metaclass example (Dave Rolsky)
693 * Moose::Cookbook::Extending::Recipe1
694 - how to write a Moose-alike module to use your own object base
697 * Moose::Cookbook::Extending::Recipe2
698 - how to write modules with an API just like C<Moose.pm> (Dave
702 - Tons of fixes, both syntactical and grammatical (Dave
703 Rolsky, Paul Fenwick)
705 0.54 Thurs. July 3, 2008
706 ... this is not my day today ...
708 * Moose::Meta::Attribute
709 - fixed legal_options_for_inheritance such that
710 clone_and_inherit options still works for
711 Class::MOP::Attribute objects and therefore
712 does not break MooseX::AttributeHelpers
715 0.53 Thurs. July 3, 2008
716 * Whoops, I guess I should run 'make manifest' before
717 actually releasing the module. No actual changes
718 in this release, except the fact that it includes
719 the changes that I didn't include in the last
722 0.52 Thurs. July 3, 2008
724 - added "FEATURE REQUESTS" section to the Moose docs
725 to properly direct people (stevan) (RT #34333)
726 - making 'extends' croak if it is passed a Role since
727 this is not ever something you want to do
728 (fixed by stevan, found by obra)
729 - added tests for this (stevan)
732 - adding support for DOES (as in UNIVERSAL::DOES)
734 - added test for this
736 * Moose::Meta::Attribute
737 - added legal_options_for_inheritance (wreis)
738 - added tests for this (wreis)
740 * Moose::Cookbook::Snacks::*
741 - removed some of the unfinished snacks that should
742 not have been released yet. Added some more examples
743 to the 'Keywords' snack. (stevan)
745 * Moose::Cookbook::Style
746 - added general Moose "style guide" of sorts to the
747 cookbook (nothingmuch) (RT #34335)
750 - added more BUILDARGS tests (stevan)
752 0.51 Thurs. Jun 26, 2008
754 - add unimport so "no Moose::Role" actually does
757 * Moose::Meta::Role::Application::ToRole
758 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
759 order to provide its own implementation, that method still got
760 added to the list of required methods for consumers of
761 RoleB. Now an aliased method is only added to the list of
762 required methods if the role doing the aliasing does not
763 provide its own implementation. See Recipe 11 for an example
764 of all this. (Dave Rolsky)
765 - added tests for this
767 * Moose::Meta::Method::Constructor
768 - when a single argument that wasn't a hashref was provided to
769 an immutabilized constructor, the error message was very
770 unhelpful, as opposed to the non-immutable error. Reported by
772 - added test for this (Dave Rolsky)
774 * Moose::Meta::Attribute
775 - added support for meta_attr->does("ShortAlias") (sartak)
776 - added tests for this (sartak)
777 - moved the bulk of the `handles` handling to the new
778 install_delegation method (Stevan)
781 - Added BUILDARGS, a new step in new()
783 * Moose::Meta::Role::Application::RoleSummation
784 - fix typos no one ever sees (sartak)
786 * Moose::Util::TypeConstraints
787 * Moose::Meta::TypeConstraint
788 * Moose::Meta::TypeCoercion
789 - Attempt to work around the ??{ } vs. threads issue
791 - Some null_constraint optimizations
793 0.50 Thurs. Jun 11, 2008
794 - Fixed a version number issue by bumping all modules
797 0.49 Thurs. Jun 11, 2008
798 !! This version now approx. 20-25% !!
799 !! faster with new Class::MOP 0.59 !!
801 * Moose::Meta::Attribute
802 - fixed how the is => (ro|rw) works with
803 custom defined reader, writer and accessor
805 - added docs for this (TODO).
806 - added tests for this (Thanks to Penfold)
807 - added the custom attribute alias for regular
808 Moose attributes which is "Moose"
809 - fix builder and default both being used
814 Moose::Meta::Attribute
816 Moose::Meta::Role::Composite
817 Moose::Util::TypeConstraints
818 - switched usage of reftype to ref because
822 - changing add_package_symbol to use the new
826 - fixed how DEMOLISHALL is called so that it
827 can be overrided in subclasses (thanks to Sartak)
828 - added test for this (thanks to Sartak)
830 * Moose::Util::TypeConstraints
831 - move the ClassName type check code to
832 Class::MOP::is_class_loaded (thanks to Sartak)
834 * Moose::Cookbook::Recipe11
835 - add tests for this (thanks to tokuhirom)
837 0.48 Thurs. May 29, 2008
838 (early morning release engineering)--
840 - fixing the version in Moose::Meta::Method::Destructor
841 which was causing the indexer to choke
843 0.47 Thurs. May 29, 2008
844 (late night release engineering)--
846 - fixing the version is META.yml, no functional
847 changes in this release
849 0.46 Wed. May 28, 2008
850 !! This version now approx. 20-25% !!
851 !! faster with new Class::MOP 0.57 !!
854 - some optimizations of the &initialize method
855 since it is called so often by &meta
859 - now use the get_all_package_symbols from the
860 updated Class::MOP, test suite is now 10 seconds
863 * Moose::Meta::Method::Destructor
864 - is_needed can now also be called as a class
865 method for immutablization to check if the
866 destructor object even needs to be created
869 * Moose::Meta::Method::Destructor
870 Moose::Meta::Method::Constructor
871 - added more descriptive error message to help
872 keep people from wasting time tracking an error
873 that is easily fixed by upgrading.
875 0.45 Saturday, May 24, 2008
877 - Because of work in Class::MOP 0.57, all
878 XS based functionality is now optional
879 and a Pure Perl version is supplied
880 - the CLASS_MOP_NO_XS environment variable
881 can now be used to force non-XS versions
883 - several of the packages have been tweaked
884 to take care of this, mostly we added
885 support for the package_name and name
886 variables in all the Method metaclasses
887 - before/around/after method modifiers now
888 support regexp matching of names
889 (thanks to Takatoshi Kitano)
890 - tests added for this
891 - NOTE: this only works for classes, it
892 is currently not supported in roles,
893 but, ... patches welcome
894 - All usage of Carp::confess have been replaced
895 by Carp::croak in the "keyword" functions since
896 the stack trace is usually not helpful
899 - All usage of Carp::confess have been replaced
900 by Carp::croak in the "keyword" functions since
901 the stack trace is usually not helpful
902 - The 'has' keyword for roles now accepts the
903 same array ref form that Moose.pm does
904 (has [qw/foo bar/] => (is => 'rw', ...))
905 - added test for this
907 * Moose::Meta::Attribute
908 - trigger on a ro-attribute is no longer an
909 error, as it's useful to trigger off of the
913 - added same 'add_package_symbol' fix as in
917 - does_role now handles non-Moose classes
919 - added tests for this
920 - added the 'add_method_modifier' function
921 (thanks to Takatoshi Kitano)
923 * Moose::Util::TypeConstraints
924 - subtypes of parameterizable types now are
925 themselves parameterizable types
927 * Moose::Meta::Method::Constructor
928 - fixed bug where trigger was not being
929 called by the inlined immutable
931 - added test for this (thanks to Caelum)
933 * Moose::Meta::Role::Application::ToInstance
934 - now uses the metaclass of the instance
935 (if possible) to create the anon-class
936 (thanks Jonathan Rockway)
938 * Moose::Cookbook::Recipe22
939 - added the meta-attribute trait recipe
943 - fixed hash-ordering test bug that was
944 causing occasional cpantester failures
945 - renamed the t/000_recipe/*.t tests to be
946 more descriptive (thanks to Sartak)
948 0.44 Sat. May 10, 2008
950 - made make_immutable warning cluck to
951 show where the error is (thanks mst)
954 - BUILDALL and DEMOLISHALL now call
955 ->body when looping through the
956 methods, to avoid the overloaded
958 - fixed issue where DEMOLISHALL was
959 eating the $@ values, and so not
960 working correctly, it still kind of
961 eats them, but so does vanilla perl
962 - added tests for this
964 * Moose::Cookbook::Recipe7
965 - added new recipe for immutable
966 functionality (thanks Dave Rolsky)
968 * Moose::Cookbook::Recipe9
969 - added new recipe for builder and
970 lazy_build (thanks Dave Rolsky)
972 * Moose::Cookbook::Recipe11
973 - added new recipe for method aliasing
974 and exclusion with Roles (thanks Dave Rolsky)
977 - fixed Win32 test failure (thanks spicyjack)
979 ~ removed Build.PL and Module::Build compat
980 since Module::Install has done that.
982 0.43 Wed. April, 30, 2008
984 drink more coffee before
985 doing release engineering
987 - whoops, forgot to do the smolder tests,
988 and we broke some of the custom meta-attr
989 modules. This fixes that.
991 0.42 Mon. April 28, 2008
992 - some bad tests slipped by, nothing else
993 changed in this release (cpantesters++)
995 - upped the Class::MOP dependency to 0.55
996 since we have tests which need the C3
999 0.41 Mon. April 28, 2008
1000 ~~ numerous documentation updates ~~
1002 - Changed all usage of die to Carp::croak for better
1003 error reporting (initial patch by Tod Hagan)
1005 ** IMPORTANT NOTE **
1006 - the make_immutable keyword is now deprecated, don't
1007 use it in any new code and please fix your old code
1008 as well. There will be 2 releases, and then it will
1014 - refactored the way inner and super work to avoid
1015 any method/@ISA cache penalty (nothingmuch)
1017 * Moose::Meta::Class
1018 - fixing &new_object to make sure trigger gets the
1019 coerced value (spotted by Charles Alderman on the
1021 - added test for this
1023 * Moose::Meta::Method::Constructor
1024 - immutable classes which had non-lazy attributes were calling
1025 the default generating sub twice in the constructor. (bug
1026 found by Jesse Luehrs, fixed by Dave Rolsky)
1027 - added tests for this (Dave Rolsky)
1028 - fix typo in initialize_body method (nothingmuch)
1030 * Moose::Meta::Method::Destructor
1031 - fix typo in initialize_body method (nothingmuch)
1033 * Moose::Meta::Method::Overriden
1034 Moose::Meta::Method::Augmented
1035 - moved the logic for these into their own
1036 classes (nothingmuch)
1038 * Moose::Meta::Attribute
1039 - inherited attributes may now be extended without
1040 restriction on the type ('isa', 'does') (Sartak)
1041 - added tests for this (Sartak)
1042 - when an attribute property is malformed (such as lazy without
1043 a default), give the name of the attribute in the error
1045 - added the &applied_traits and &has_applied_traits methods
1046 to allow introspection of traits
1047 - added tests for this
1048 - moved 'trait' and 'metaclass' argument handling to here from
1050 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1051 '+foo' syntax) (nothingmuch)
1052 - added tests for this (t0m)
1055 - localize $@ inside DEMOLISHALL to avoid it
1056 eating $@ (found by Ernesto)
1057 - added test for this (thanks to Ernesto)
1059 * Moose::Util::TypeConstraints
1060 - &find_type_constraint now DWIMs when given an
1061 type constraint object or name (nothingmuch)
1062 - &find_or_create_type_constraint superseded with a number of more
1064 - find_or_create_{isa,does}_type_constraint
1065 - find_or_parse_type_constraint
1067 * Moose::Meta::TypeConstraint
1068 Moose::Meta::TypeConstraint::Class
1069 Moose::Meta::TypeConstraint::Role
1070 Moose::Meta::TypeConstraint::Enum
1071 Moose::Meta::TypeConstraint::Union
1072 Moose::Meta::TypeConstraint::Parameterized
1073 - added the &equals method for comparing two type
1074 constraints (nothingmuch)
1075 - added tests for this (nothingmuch)
1077 * Moose::Meta::TypeConstraint
1078 - add the &parents method, which is just an alias to &parent.
1079 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1081 * Moose::Meta::TypeConstraint::Class
1082 - added the class attribute for introspection purposes
1084 - added tests for this
1086 * Moose::Meta::TypeConstraint::Enum
1087 Moose::Meta::TypeConstraint::Role
1088 - broke these out into their own classes (nothingmuch)
1090 * Moose::Cookbook::Recipe*
1091 - fixed references to test file locations in the POD
1092 and updated up some text for new Moose features
1096 - Added &resolve_metaclass_alias, a helper function for finding an actual
1097 class for a short name (e.g. in the traits list)
1099 0.40 Fri. March 14, 2008
1100 - I hate Pod::Coverage
1102 0.39 Fri. March 14, 2008
1104 - documenting the use of '+name' with attributes
1105 that come from recently composed roles. It makes
1106 sense, people are using it, and so why not just
1107 officially support it.
1108 - fixing the 'extends' keyword so that it will not
1109 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1112 - added the perl -Moose=+Class::Name feature to allow
1113 monkeypatching of classes in one liners
1116 - fixing the 'apply_all_roles' keyword so that it will not
1117 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1119 * Moose::Meta::Class
1120 - added ->create method which now supports roles (thanks to jrockway)
1121 - added tests for this
1122 - added ->create_anon_class which now supports roles and caching of
1123 the results (thanks to jrockway)
1124 - added tests for this
1125 - made ->does_role a little more forgiving when it is
1126 checking a Class::MOP era metaclasses.
1128 * Moose::Meta::Role::Application::ToInstance
1129 - it is now possible to pass extra params to be used when
1130 a role is applied to an the instance (rebless_params)
1131 - added tests for this
1133 * Moose::Util::TypeConstraints
1134 - class_type now accepts an optional second argument for a
1135 custom message. POD anotated accordingly (groditi)
1136 - added tests for this
1137 - it is now possible to make anon-enums by passing 'enum' an
1138 ARRAY ref instead of the $name => @values. Everything else
1140 - added tests for this
1143 - making test for using '+name' on attributes consumed
1144 from a role, it works and makes sense too.
1146 * Moose::Meta::Attribute
1147 - fix handles so that it doesn't return nothing
1148 when the method cannot be found, not sure why
1149 it ever did this originally, this means we now
1150 have slightly better support for AUTOLOADed
1152 - added more delegation tests
1153 - adding ->does method to this so as to better
1154 support traits and their introspection.
1155 - added tests for this
1158 - localizing the Data::Dumper configurations so
1159 that it does not pollute others (RT #33509)
1160 - made ->does a little more forgiving when it is
1161 passed Class::MOP era metaclasses.
1163 0.38 Fri. Feb. 15, 2008
1164 * Moose::Meta::Attribute
1165 - fixed initializer to correctly do
1166 type checking and coercion in the
1168 - added tests for this
1171 - fixed some finicky tests (thanks to konobi)
1173 0.37 Thurs. Feb. 14, 2008
1175 - fixed some details in Moose::init_meta
1176 and its superclass handling (thanks thepler)
1177 - added tests for this (thanks thepler)
1178 - 'has' now dies if you don't pass in name
1180 - added the 'make_immutable' keyword as a shortcut
1183 * Moose::Meta::Class
1184 Moose::Meta::Method::Constructor
1185 Moose::Meta::Attribute
1186 - making (init_arg => undef) work here too
1187 (thanks to nothingmuch)
1189 * Moose::Meta::Attribute
1190 Moose::Meta::Method::Constructor
1191 Moose::Meta::Method::Accessor
1192 - make lazy attributes respect attr initializers (rjbs)
1193 - added tests for this
1195 * Moose::Util::TypeConstraints
1196 Moose::Util::TypeConstraints::OptimizedConstraints
1197 Moose::Meta::TypeConstraints
1198 Moose::Meta::Attribute
1199 Moose::Meta::Method::Constructor
1200 Moose::Meta::Method::Accessor
1201 - making type errors use the
1202 assigned message (thanks to Sartak)
1203 - added tests for this
1205 * Moose::Meta::Method::Destructor
1206 - making sure DESTROY gets inlined properly
1207 with successive DEMOLISH calls (thanks to manito)
1209 * Moose::Meta::Attribute
1210 Moose::Meta::Method::Accessor
1211 - fixed handling of undef with type constraints
1213 - added tests for this
1216 - added &get_all_init_args and &get_all_attribute_values
1217 (thanks to Sartak and nothingmuch)
1219 0.36 Sat. Jan. 26, 2008
1221 Moose::Meta::Attribute
1222 - role type tests now support when roles are
1223 applied to non-Moose classes (found by ash)
1224 - added tests for this (thanks to ash)
1225 - couple extra tests to boost code coverage
1227 * Moose::Meta::Method::Constructor
1228 - improved fix for handling Class::MOP attributes
1229 - added test for this
1231 * Moose::Meta::Class
1232 - handled the add_attribute($attribute_meta_object)
1234 - added test for this
1236 0.35 Tues. Jan. 22, 2008
1237 * Moose::Meta::Method::Constructor
1238 - fix to make sure even Class::MOP attributes
1239 are handled correctly (Thanks to Dave Rolsky)
1240 - added test for this (also Dave Rolsky)
1242 * Moose::Meta::Class
1243 - improved error message on _apply_all_roles,
1244 you should now use Moose::Util::apply_all_roles
1245 and you shouldnt have been using a _ prefixed
1246 method in the first place ;)
1248 0.34 Mon. Jan. 21, 2008
1249 ~~~ more misc. doc. fixes ~~~
1250 ~~ updated copyright dates ~~
1252 Moose is now a postmodern object system :)
1253 - (see the POD for details)
1255 * <<Role System Refactoring>>
1256 - this release contains a major reworking and
1257 cleanup of the role system
1258 - 100% backwards compat.
1259 - Role application now restructured into seperate
1260 classes based on type of applicants
1261 - Role summation (combining of more than one role)
1262 is much cleaner and anon-classes are no longer
1263 used in this process
1264 - new Composite role metaclass
1265 - runtime application of roles to instances
1266 is now more efficient and re-uses generated
1267 classes when applicable
1269 * <<New Role composition features>>
1270 - methods can now be excluded from a given role
1272 - methods can now be aliased to another name (and
1273 still retain the original as well)
1275 * Moose::Util::TypeConstraints::OptimizedConstraints
1276 - added this module (see above)
1278 * Moose::Meta::Class
1279 - fixed the &_process_attribute method to be called
1280 by &add_attribute, so that the API is now correct
1282 * Moose::Meta::Method::Accessor
1283 - fixed bug when passing a list of values to
1284 an accessor would get (incorrectly) ignored.
1285 Thanks to Sartak for finding this ;)
1286 - added tests for this (Sartak again)
1288 * Moose::Meta::Method::Accessor
1289 Moose::Meta::Method::Constructor
1290 Moose::Meta::Attribute
1291 Moose::Meta::TypeConstraint
1292 Moose::Meta::TypeCoercion
1293 - lots of cleanup of such things as:
1295 - type constraint handling
1296 - error handling/messages
1297 (thanks to nothingmuch)
1299 * Moose::Meta::TypeConstraint::Parameterizable
1300 - added this module to support the refactor
1301 in Moose::Meta::TypeConstraint::Parameterized
1303 * Moose::Meta::TypeConstraint::Parameterized
1304 - refactored how these types are handled so they
1305 are more generic and not confined to ArrayRef
1309 - shortened some file names for better VMS support (RT #32381)
1311 0.33 Fri. Dec. 14, 2007
1312 !! Moose now loads 2 x faster !!
1313 !! with new Class::MOP 0.49 !!
1315 ++ new oose.pm module to make command line
1316 Moose-ness easier (see POD docs for more)
1318 * Moose::Meta::Class
1320 - several tweaks to take advantage of the
1321 new method map caching in Class::MOP
1323 * Moose::Meta::TypeConstraint::Parameterized
1324 - allow subtypes of ArrayRef and HashRef to
1325 be used as a container (sartak)
1326 - added tests for this
1327 - basic support for coercion to ArrayRef and
1328 HashRef for containers (sartak)
1329 - added tests for this
1331 * Moose::Meta::TypeCoercion
1332 - coercions will now create subtypes as needed
1333 so you can now add coercions to parameterized
1334 types without having to explictly define them
1335 - added tests for this
1337 * Moose::Meta::Method::Accessor
1338 - allow subclasses to decide whether we need
1339 to copy the value into a new variable (sartak)
1341 0.32 Tues. Dec. 4, 2007
1342 * Moose::Util::TypeConstraints
1343 - fixing how subtype aliases of unions work
1344 they should inherit the parent's coercion
1345 - added tests for this
1346 - you can now define multiple coercions on
1347 a single type at different times instead of
1348 having to do it all in one place
1349 - added tests for this
1351 * Moose::Meta::TypeConstraint
1352 - there is now a default constraint of sub { 1 }
1353 instead of Moose::Util::TypeConstraints setting
1356 * Moose::Meta::TypeCoercion
1357 * Moose::Meta::TypeCoercion::Union
1358 - added the &has_coercion_for_type and
1359 &add_type_coercions methods to support the
1360 new features above (although you cannot add
1361 more type coercions for Union types)
1363 0.31 Mon. Nov. 26, 2007
1364 * Moose::Meta::Attribute
1365 - made the +attr syntax handle extending types with
1366 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1367 now works if the original foo is an ArrayRef.
1368 - added tests for this.
1369 - delegation now works even if the attribute does not
1370 have a reader method using the get_read_method_ref
1371 method from Class::MOP::Attribute.
1372 - added tests for this
1373 - added docs for this
1375 * Moose::Util::TypeConstraints
1376 - passing no "additional attribute info" to
1377 &find_or_create_type_constraint will no longer
1378 attempt to create an __ANON__ type for you,
1379 instead it will just return undef.
1380 - added docs for this
1382 0.30 Fri. Nov. 23, 2007
1383 * Moose::Meta::Method::Constructor
1384 -builder related bug in inlined constructor. (groditi)
1386 * Moose::Meta::Method::Accessor
1387 - genereate unnecessary calls to predicates and refactor
1388 code generation for runtime speed (groditi)
1390 * Moose::Util::TypeConstraints
1391 - fix ClassName constraint to introspect symbol table (mst)
1392 - added more tests for this (mst)
1393 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1394 with work correctly.
1395 - added tests for this
1398 - adding the link to Recipie 11 (written by Sartak)
1399 - adding test for SYNOPSIS code
1402 - New tests for builder bug. Upon instantiation, if an
1403 attribute had a builder, no value and was not lazy the
1404 builder default was not getting run, oops. (groditi)
1406 0.29 Tues. Nov. 13, 2007
1407 * Moose::Meta::Attribute
1408 - Fix error message on missing builder method (groditi)
1410 * Moose::Meta::Method::Accessor
1411 - Fix error message on missing builder method (groditi)
1414 - Add test to check for the correct error message when
1415 builder method is missing (groditi)
1417 0.28 Tues. Nov. 13, 2007
1418 - 0.27 packaged incorrectly (groditi)
1420 0.27 Tues. Nov. 13, 2007
1421 * Moose::Meta::Attribute
1422 - Added support for the new builder option (groditi)
1423 - Added support for lazy_build option (groditi)
1424 - Changed slot initialization for predicate changes (groditi)
1426 * Moose::Meta::Method::Accessor
1427 - Added support for lazy_build option (groditi)
1428 - Fix inline methods to work with corrected predicate
1431 * Moose::Meta::Method::Constructor
1432 - Added support for lazy_build option (groditi)
1435 - tests for builder and lazy_build (groditi)
1437 * fixing some misc. bits in the docs that
1438 got mentioned on CPAN Forum & perlmonks
1441 - fixed how required methods are handled
1442 when they encounter overriden or modified
1443 methods from a class (thanks to confound).
1444 - added tests for this
1446 * Moose::Util::TypeConstraint
1447 - fixed the type notation parser so that
1448 the | always creates a union and so is
1449 no longer a valid type char (thanks to
1450 konobi, mugwump and #moose for working
1452 - added more tests for this
1454 0.26 Thurs. Sept. 27, 2007
1457 * Parameterized Types
1458 We now support parameterized collection types, such as:
1459 ArrayRef[Int] # array or integers
1460 HashRef[Object] # a hash with object values
1461 They can also be nested:
1462 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1463 And work with the type unions as well:
1464 ArrayRef[Int | Str] # array of integers of strings
1466 * Better Framework Extendability
1467 Moose.pm is now "extendable" such that it is now much
1468 easier to extend the framework and add your own keywords
1469 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1470 section of the Moose.pm docs.
1473 In an effort to begin documenting some of the various
1474 details of Moose as well as some common idioms, we have
1475 created Moose::Cookbook::Snacks as a place to find
1476 small (easily digestable) nuggets of Moose code.
1479 ~ Several doc updates/cleanup thanks to castaway ~
1481 - converted build system to use Module::Install instead of
1482 Module::Build (thanks to jrockway)
1485 - added all the meta classes to the immutable list and
1486 set it to inline the accessors
1487 - fix import to allow Sub::Exporter like { into => }
1488 and { into_level => } (perigrin)
1489 - exposed and documented init_meta() to allow better
1490 embedding and extending of Moose (perigrin)
1493 - complete re-organization of the test suite
1494 - added some new tests as well
1495 - finally re-enabled the Moose::POOP test since
1496 the new version of DBM::Deep now works again
1499 * Moose::Meta::Class
1500 - fixed very odd and very nasty recursion bug with
1502 - added tests for this (eilara)
1504 * Moose::Meta::Attribute
1505 Moose::Meta::Method::Constructor
1506 Moose::Meta::Method::Accessor
1507 - fixed issue with overload::Overloaded getting called
1508 on non-blessed items. (RT #29269)
1509 - added tests for this
1511 * Moose::Meta::Method::Accessor
1512 - fixed issue with generated accessor code making
1513 assumptions about hash based classes (thanks to dexter)
1515 * Moose::Coookbook::Snacks
1516 - these are bits of documentation, not quite as big as
1517 Recipes but which have no clear place in the module docs.
1518 So they are Snacks! (horray for castaway++)
1520 * Moose::Cookbook::Recipe4
1521 - updated it to use the new ArrayRef[MyType] construct
1522 - updated the accompanying test as well
1524 +++ Major Refactor of the Type Constraint system +++
1525 +++ with new features added as well +++
1527 * Moose::Util::TypeConstraint
1528 - no longer uses package variable to keep track of
1529 the type constraints, now uses the an instance of
1530 Moose::Meta::TypeConstraint::Registry to do it
1531 - added more sophisticated type notation parsing
1533 - added tests for this
1535 * Moose::Meta::TypeConstraint
1536 - some minor adjustments to make subclassing easier
1537 - added the package_defined_in attribute so that we
1538 can track where the type constraints are created
1540 * Moose::Meta::TypeConstraint::Union
1541 - this is now been refactored to be a subclass of
1542 Moose::Meta::TypeConstraint
1544 * Moose::Meta::TypeCoercion::Union
1545 - this has been added to service the newly refactored
1546 Moose::Meta::TypeConstraint::Union and is itself
1547 a subclass of Moose::Meta::TypeCoercion
1549 * Moose::Meta::TypeConstraint::Parameterized
1550 - added this module (taken from MooseX::AttributeHelpers)
1551 to help construct nested collection types
1552 - added tests for this
1554 * Moose::Meta::TypeConstraint::Registry
1555 - added this class to keep track of type constraints
1557 0.25 Mon. Aug. 13, 2007
1559 - Documentation update to reference Moose::Util::TypeConstraints
1560 under 'isa' in 'has' for how to define a new type
1561 (thanks to shlomif).
1563 * Moose::Meta::Attribute
1564 - required attributes now will no longer accept undef
1565 from the constructor, even if there is a default and lazy
1566 - added tests for this
1567 - default subroutines must return a value which passes the
1569 - added tests for this
1571 * Moose::Meta::Attribute
1572 * Moose::Meta::Method::Constructor
1573 * Moose::Meta::Method::Accessor
1574 - type-constraint tests now handle overloaded objects correctly
1575 in the error message
1576 - added tests for this (thanks to EvanCarroll)
1578 * Moose::Meta::TypeConstraint::Union
1579 - added (has_)hand_optimized_constraint to this class so that
1580 it behaves as the regular Moose::Meta::TypeConstraint does.
1583 - large refactoring of this code
1584 - added several more tests
1585 - tests for subtle conflict resolition issues
1586 added, but not currently running
1589 * Moose::Cookbook::Recipe7
1590 - added new recipe for augment/inner functionality
1592 - added test for this
1595 - a formal definition of roles (still in progress)
1598 - utilities for easier working with Moose classes
1599 - added tests for these
1602 - This contains Moose specific test functions
1603 - added tests for these
1605 0.24 Tues. July 3, 2007
1606 ~ Some doc updates/cleanup ~
1608 * Moose::Meta::Attribute
1609 - added support for roles to be given as parameters
1610 to the 'handles' option.
1611 - added tests and docs for this
1612 - the has '+foo' attribute form now accepts changes to
1613 the lazy option, and the addition of a handles option
1614 (but not changing the handles option)
1615 - added tests and docs for this
1618 - required methods are now fetched using find_method_by_name
1619 so that required methods can come from superclasses
1620 - adjusted tests for this
1622 0.23 Mon. June 18, 2007
1623 * Moose::Meta::Method::Constructor
1624 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1625 * Moose::Meta::Class
1626 - Modify make_immutable to work with the new Class::MOP immutable
1627 mechanism + POD + very basic test (groditi)
1628 * Moose::Meta::Attribute
1629 - Fix handles to use goto() so that caller() comes out properly on
1630 the other side (perigrin)
1632 0.22 Thurs. May 31, 2007
1633 * Moose::Util::TypeConstraints
1634 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1635 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1636 prototypes for functions
1637 - added the ClassName type constraint, this checks for strings
1638 which will respond true to ->isa(UNIVERSAL).
1639 - added tests and docs for this
1640 - subtyping just in name now works correctly by making the
1641 default for where be { 1 }
1642 - added test for this
1644 * Moose::Meta::Method::Accessor
1645 - coerce and lazy now work together correctly, thanks to
1646 merlyn for finding this bug
1647 - tests added for this
1648 - fix reader presedence bug in Moose::Meta::Attribute + tests
1651 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1652 a HASH-ref and missed. This produces better error messages then
1653 having it die cause undef is not a HASH.
1654 - added tests for this
1656 0.21 Thursday, May 2nd, 2007
1658 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1659 - modified unimport to remove super and inner along with the rest
1660 - altered unimport tests to handle this
1663 - altered super export to populate SUPER_SLOT
1665 * Moose::Meta::Class
1666 - altered augment and override modifier application to use *_SLOT
1667 - modified tests for these to unimport one test class each to test
1670 - fixed issue where custom attribute metaclasses
1671 where not handled correctly in roles
1672 - added tests for this
1674 * Moose::Meta::Class
1675 - fixed issue where extending metaclasses with
1676 roles would blow up. Thanks to Aankhen`` for
1677 finding this insidious error, and it's solution.
1679 ~~ lots of spelling and grammer fixes in the docs,
1680 many many thanks to rlb3 and Aankhen for these :)
1682 0.20 Friday, April 6th, 2007
1683 >> I messed up the SKIP logic in one test
1684 so this release is just to fix that.
1687 - 'has' now also accepts an ARRAY ref
1688 to create multiple attrs (see docs)
1689 (thanks to konobi for this)
1690 - added tests and docs
1692 0.19 Thurs. April 5th, 2007
1693 ~~ More documentation updates ~~
1695 * Moose::Util::TypeConstraints
1696 - 'type' now supports messages as well
1697 thanks to phaylon for finding this
1698 - added tests for this
1699 - added &list_all_type_constraints and
1700 &list_all_builtin_type_constraints
1701 functions to facilitate introspection.
1703 * Moose::Meta::Attribute
1704 - fixed regexp 'handles' declarations
1705 to build the list of delegated methods
1706 correctly (and not override important
1707 things like &new) thanks to ashleyb
1709 - added tests and docs for this
1710 - added the 'documentation' attributes
1711 so that you can actually document your
1712 attributes and inspect them through the
1714 - added tests and docs for this
1716 * Moose::Meta::Class
1717 - when loading custom attribute metaclasses
1718 it will first look in for the class in the
1719 Moose::Meta::Attribute::Custom::$name, and
1720 then default to just loading $name.
1721 - added tests and docs for this
1723 * Moose::Meta::TypeConstraint
1724 - type constraints now stringify to their names.
1725 - added test for this
1728 - added tests to assure we work with Module::Refresh
1729 - added stricter test skip logic in the Moose POOP
1730 test, ask Rob Kinyon why.
1731 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1733 0.18 Sat. March 10, 2007
1734 ~~ Many, many documentation updates ~~
1737 - We now use Class::MOP::load_class to
1739 - added tests to show types and subtypes
1740 working with Declare::Constraints::Simple
1741 and Test::Deep as constraint engines.
1744 !! You must have Class::MOP 0.37_001 !!
1745 !! for this developer release to work !!
1747 This release was primarily adding the immutable
1748 feature to Moose. An immutable class is one which
1749 you promise not to alter. When you set the class
1750 as immutable it will perform various bits of
1751 memoization and inline certain part of the code
1752 (constructors, destructors and accessors). This
1753 minimizes (and in some cases totally eliminates)
1754 one of Moose's biggest performance hits. This
1755 feature is not on by default, and is 100% optional.
1756 It has several configurable bits as well, so you
1757 can pick and choose to your specific needs.
1759 The changes involved in this were fairly wide and
1760 highly specific, but 100% backwards compatible, so
1761 I am not going to enumerate them here. If you are
1762 truely interested in what was changed, please do
1765 0.17 Tues. Nov. 14, 2006
1766 * Moose::Meta::Method::Accessor
1767 - bugfix for read-only accessors which
1768 are have a type constraint and lazy.
1769 Thanks to chansen for finding it.
1771 0.16 Tues. Nov. 14, 2006
1773 There are some speed improvements in this release,
1774 but they are only the begining, so stay tuned.
1777 - BUILDALL and DEMOLISHALL no longer get
1778 called unless they actually need to be.
1779 This gave us a signifigant speed boost
1780 for the cases when there is no BUILD or
1781 DEMOLISH method present.
1783 * Moose::Util::TypeConstraints
1784 * Moose::Meta::TypeConstraint
1785 - added an 'optimize_as' option to the
1786 type constraint, which allows for a
1787 hand optimized version of the type
1788 constraint to be used when possible.
1789 - Any internally created type constraints
1790 now provide an optimized version as well.
1792 0.15 Sun. Nov. 5, 2006
1794 This version of Moose *must* have Class::MOP 0.36 in order
1795 to work correctly. A number of small internal tweaks have
1796 been made in order to be compatible with that release.
1798 * Moose::Util::TypeConstraints
1799 - added &unimport so that you can clean out
1800 your class namespace of these exported
1803 * Moose::Meta::Class
1804 - fixed minor issue which occasionally
1805 comes up during global destruction
1807 - moved Moose::Meta::Method::Overriden into
1811 - moved Moose::Meta::Role::Method into
1814 * Moose::Meta::Attribute
1815 - changed how we do type checks so that
1816 we reduce the overall cost, but still
1819 - moved accessor generation methods to
1820 Moose::Meta::Method::Accessor to
1821 conform to the API changes from
1824 * Moose::Meta::TypeConstraint
1825 - changed how constraints are compiled
1826 so that we do less recursion and more
1827 iteration. This makes the type check
1829 - moved Moose::Meta::TypeConstraint::Union
1832 * Moose::Meta::Method::Accessor
1833 - created this from methods formerly found in
1834 Moose::Meta::Attribute
1836 * Moose::Meta::Role::Method
1837 - moved this from Moose::Meta::Role
1839 * Moose::Meta::Method::Overriden
1840 - moved this from Moose::Meta::Class
1842 * Moose::Meta::TypeConstraint::Union
1843 - moved this from Moose::Meta::TypeConstraint
1845 0.14 Mon. Oct. 9, 2006
1847 * Moose::Meta::Attribute
1848 - fixed lazy attributes which were not getting
1849 checked with the type constraint (thanks ashley)
1850 - added tests for this
1851 - removed the over-enthusiastic DWIMery of the
1852 automatic ArrayRef and HashRef defaults, it
1853 broke predicates in an ugly way.
1854 - removed tests for this
1856 0.13 Sat. Sept. 30, 2006
1858 This version of Moose *must* have Class::MOP 0.35 in order
1859 to work correctly. A number of small internal tweaks have
1860 been made in order to be compatible with that release.
1863 - Removed the use of UNIVERSAL::require to be a better
1864 symbol table citizen and remove a dependency
1865 (thanks Adam Kennedy)
1867 **~~ removed experimental & undocumented feature ~~**
1868 - commented out the 'method' and 'self' keywords, see the
1869 comments for more info.
1872 - added a FAQ and WTF files to document frequently
1873 asked questions and common problems
1875 * Moose::Util::TypeConstraints
1876 - added GlobRef and FileHandle type constraint
1877 - added tests for this
1879 * Moose::Meta::Attribute
1880 - if your attribute 'isa' ArrayRef of HashRef, and you have
1881 not explicitly set a default, then make the default DWIM.
1882 This will also work for subtypes of ArrayRef and HashRef
1884 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1885 - new test added for this (thanks to ashley)
1888 - added basic support for runtime role composition
1889 but this is still *highly experimental*, so feedback
1890 is much appreciated :)
1891 - added tests for this
1893 * Moose::Meta::TypeConstraint
1894 - the type constraint now handles the coercion process
1895 through delegation, this is to support the coercion
1898 * Moose::Meta::TypeConstraint::Union
1899 - it is now possible for coercions to be performed
1901 - added tests for this (thanks to konobi)
1903 * Moose::Meta::TypeCoercion
1904 - properly capturing error when type constraint
1908 - Scalar::Util 1.18 is bad on Win32, so temporarily
1909 only require version 1.17 for Win32 and cygwin.
1910 (thanks Adam Kennedy)
1912 0.12 Sat. Sept. 1, 2006
1914 - Recipe5 (subtypes & coercion) has been written
1917 - fixed "bad meta" error message to be more descriptive
1918 - fixed &unimport to not remove the &inner and &super
1919 keywords because we need to localize them.
1920 - fixed number of spelling/grammer issues, thanks Theory :)
1922 **~~ experimental & undocumented feature ~~**
1923 - added the method and self keywords, they are basically
1924 just sugar, and they may not stay around.
1927 - added &dump method to easily Data::Dumper
1930 * Moose::Meta::TypeConstraint
1931 - added the &is_a_type_of method to check both the current
1932 and the subtype of a method (similar to &isa with classes)
1935 - this is now a subclass of Class::MOP::Module, and no longer
1936 creates the _role_meta ugliness of before.
1937 - fixed tests to reflect this change
1939 0.11 Wed. July 12, 2006
1941 - added an &unimport method to remove all the keywords
1942 that Moose will import, simply add 'no Moose' to the
1943 bottom of your class file.
1946 - fixed some test failures caused by a forgotten test
1949 0.10 Thurs. July 6, 2006
1951 - improved error message when loading modules so
1952 it is less confusing when you load a role.
1953 - added &calculate_all_roles method to
1954 Moose::Meta::Class and Moose::Meta::Role
1957 This module has been tested against Class::MOP 0.30
1958 but it does not yet utilize the optimizations
1959 it makes available. Stay tuned for that ;)
1961 0.09_03 Fri. June 23, 2006
1962 ++ DEVELOPER RELEASE ++
1964 - 'use strict' and 'use warnings' are no longer
1965 needed in Moose classes, Moose itself will
1966 turn them on for you.
1967 - added tests for this
1968 - moved code from exported subs to private methods
1969 in Moose::Meta::Class
1972 - as with Moose, strict and warnings are
1973 automatically turned on for you.
1974 - added tests for this
1977 - now handles an edge case for override errors
1978 - added tests for this
1979 - added some more edge case tests
1981 0.09_02 Tues. May 16, 2006
1982 ++ DEVELOPER RELEASE ++
1984 - added prototypes to the exported subs
1988 - added prototypes to the exported subs
1991 * Moose::Util::TypeConstraints
1992 - cleaned up prototypes for the subs
1995 0.09_01 Fri. May 12, 2006
1996 ++ DEVELOPER RELEASE ++
1997 - This release works in combination with
1998 Class::MOP 0.29_01, it is a developer
1999 release because it uses the a new
2000 instance sub-protocol and a fairly
2001 complete Role implementation. It has
2002 not yet been optimized, so it slower
2003 the the previous CPAN version. This
2004 release also lacks good updated docs,
2005 the official release will have updated docs.
2008 - refactored the keyword exports
2009 - 'with' now checks Role validaity and
2010 accepts more than one Role at a time
2011 - 'extends' makes metaclass adjustments as
2012 needed to ensure metaclass compatibility
2015 - refactored the keyword exports
2016 - 'with' now checks Role validaity and
2017 accepts more than one Role at a time
2019 * Moose::Util::TypeConstraints
2020 - added the 'enum' keyword for simple
2021 string enumerations which can be used as
2023 - see example of usage in t/202_example.t
2026 - more careful checking of params to new()
2029 - much work done on the role composition
2030 - many new tests for conflict detection
2031 and composition edge cases
2032 - not enough documentation, I suggest
2033 looking at the tests
2035 * Moose::Meta::Instance
2036 - added new Instance metaclass to support
2037 the new Class::MOP instance protocol
2039 * Moose::Meta::Class
2040 - some small changes to support the new
2042 - some small additions to support Roles
2044 * Moose::Meta::Attribute
2045 - some improvements to the accessor generation code
2047 - some small changes to support the new
2049 - (still somewhat) experimental delegation support
2050 with the 'handles' option
2051 - added several tests for this
2052 - no docs for this yet
2054 0.05 Thurs. April 27, 2006
2056 - keywords are now exported with Sub::Exporter
2057 thanks to chansen for this commit
2058 - has keyword now takes a 'metaclass' option
2059 to support custom attribute meta-classes
2060 on a per-attribute basis
2061 - added tests for this
2062 - the 'has' keyword not accepts inherited slot
2063 specifications (has '+foo'). This is still an
2064 experimental feature and probably not finished
2065 see t/038_attribute_inherited_slot_specs.t for
2066 more details, or ask about it on #moose
2067 - added tests for this
2070 - keywords are now exported with Sub::Exporter
2072 * Moose::Utils::TypeConstraints
2073 - reorganized the type constraint hierarchy, thanks
2074 to nothingmuch and chansen for his help and advice
2076 - added some tests for this
2077 - keywords are now exported with Sub::Exporter
2078 thanks to chansen for this commit
2080 * Moose::Meta::Class
2081 - due to changes in Class::MOP, we had to change
2082 construct_instance (for the better)
2084 * Moose::Meta::Attribute
2085 - due to changes in Class::MOP, we had to add the
2086 initialize_instance_slot method (it's a good thing)
2088 * Moose::Meta::TypeConstraint
2089 - added type constraint unions
2090 - added tests for this
2091 - added the is_subtype_of predicate method
2092 - added tests for this
2094 0.04 Sun. April 16th, 2006
2096 - Roles can now consume other roles
2097 - added tests for this
2098 - Roles can specify required methods now with
2099 the requires() keyword
2100 - added tests for this
2103 - ripped out much of it's guts ,.. much cleaner now
2104 - added required methods and correct handling of
2105 them in apply() for both classes and roles
2106 - added tests for this
2107 - no longer adds a does() method to consuming classes
2108 it relys on the one in Moose::Object
2109 - added roles attribute and some methods to support
2110 roles consuming roles
2112 * Moose::Meta::Attribute
2113 - added support for triggers on attributes
2114 - added tests for this
2115 - added support for does option on an attribute
2116 - added tests for this
2118 * Moose::Meta::Class
2119 - added support for attribute triggers in the
2121 - added tests for this
2124 - Moose no longer creates a subtype for your class
2125 if a subtype of the same name already exists, this
2126 should DWIM in 99.9999% of all cases
2128 * Moose::Util::TypeConstraints
2129 - fixed bug where incorrect subtype conflicts were
2131 - added test for this
2134 - this class can now be extended with 'use base' if
2135 you need it, it properly loads the metaclass class now
2136 - added test for this
2138 0.03_02 Wed. April 12, 2006
2140 - you must now explictly use Moose::Util::TypeConstraints
2141 it no longer gets exported for you automatically
2144 - new() now accepts hash-refs as well as key/value lists
2145 - added does() method to check for Roles
2146 - added tests for this
2148 * Moose::Meta::Class
2149 - added roles attribute along with the add_role() and
2151 - added tests for this
2154 - now adds a does() method to consuming classes
2155 which tests the class's hierarchy for roles
2156 - added tests for this
2158 0.03_01 Mon. April 10, 2006
2160 - added new Role recipe (no content yet, only code)
2163 - added 'with' keyword for Role support
2164 - added test and docs for this
2165 - fixed subtype quoting bug
2166 - added test for this
2170 - added test and docs
2172 * Moose::Util::TypeConstraints
2173 - added the message keyword to add custom
2174 error messages to type constraints
2177 - the meta role to support Moose::Role
2178 - added tests and docs
2180 * Moose::Meta::Class
2181 - moved a number of things from Moose.pm
2182 to here, they should have been here
2185 * Moose::Meta::Attribute
2186 - moved the attribute option macros here
2187 instead of putting them in Moose.pm
2189 * Moose::Meta::TypeConstraint
2190 - added the message attributes and the
2192 - added tests and docs for this
2194 0.03 Thurs. March 30, 2006
2196 - added the Moose::Cookbook with 5 recipes,
2197 describing all the stuff Moose can do.
2200 - fixed an issue with &extends super class loading
2201 it now captures errors and deals with inline
2202 packages correctly (bug found by mst, solution
2204 - added super/override & inner/augment features
2205 - added tests and docs for these
2208 - BUILDALL now takes a reference of the %params
2209 that are passed to &new, and passes that to
2212 * Moose::Util::TypeConstraints
2213 - Type constraints now survive runtime reloading
2214 - added test for this
2216 * Moose::Meta::Class
2217 - fixed the way attribute defaults are handled
2218 during instance construction (bug found by chansen)
2220 * Moose::Meta::Attribute
2221 - read-only attributes now actually enforce their
2222 read-only-ness (this corrected in Class::MOP as
2225 0.02 Tues. March 21, 2006
2227 - many more tests, fixing some bugs and
2229 - &extends now loads the base module with
2231 - added UNIVERSAL::require to the
2234 - each new Moose class will also create
2235 and register a subtype of Object which
2236 correspond to the new Moose class.
2237 - the 'isa' option in &has now only
2238 accepts strings, and will DWIM in
2241 * Moose::Util::TypeConstraints
2242 - added type coercion features
2243 - added tests for this
2244 - added support for this in attributes
2245 and instance construction
2247 - type construction no longer creates a
2248 function, it registers the type instead.
2249 - added several functions to get the
2253 - BUILDALL and DEMOLISHALL were broken
2254 because of a mis-named hash key, Whoops :)
2256 * Moose::Meta::Attribute
2257 - adding support for coercion in the
2258 autogenerated accessors
2260 * Moose::Meta::Class
2261 - adding support for coercion in the
2262 instance construction
2264 * Moose::Meta::TypeConstraint
2265 * Moose::Meta::TypeCoercion
2266 - type constraints and coercions are now
2267 full fledges meta-objects
2269 0.01 Wed. March 15, 2006
2270 - Moooooooooooooooooose!!!