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 0.72 Mon, February 23, 2009
12 * Moose::Meta::Method::Constructor
13 - A mutable class accepted Foo->new(undef) without complaint,
14 while an immutable class would blow up with an unhelpful
15 error. Now, in both cases we throw a helpful error
16 instead. Reported by doy.
18 0.71_01 Sun, February 22, 2009
20 - Hopefully fixed some POD errors in a few recipes that caused
21 them to display weird on search.cpan.org.
23 * Moose::Util::TypeConstraints
24 - Calling type or subtype without the sugar helpers (as, where,
25 message) is now deprecated.
26 - The subtype function tried hard to guess what you meant, but
27 often got it wrong. For example:
29 my $subtype = subtype as 'ArrayRef[Object]';
31 This caused an error in the past, but now works as you'd
35 - Make sure Moose.pm is loaded before calling
36 Moose->throw_error. This wasn't normally an issue, but could
37 bite you in weird cases.
39 0.71 Thu, February 19, 2009
40 * Moose::Cookbook::Basics::Recipe11
41 - A new recipe which demonstrates the use of BUILDARGS and
44 * Moose::Cookbook::Roles::Recipe3
45 - A new recipe, applying a role to an object instance. (Dave
49 - Allow overriding specific keywords from "also" packages. (doy)
52 - Replace hardcoded cookbook tests with Test::Inline to ensure
53 the tests match the actual code in the recipes. (Dave Rolsky)
56 - Working on the above turned up a number of little bugs in the
57 recipe code. (Dave Rolsky)
59 * Moose::Util::TypeConstraints::Optimized
60 - Just use Class::MOP for the optimized ClassName check. (Dave
63 0.70 Sat, February 14, 2009
64 * Moose::Util::TypeConstraints
65 - Added the RoleName type (stevan)
66 - added tests for this (stevan)
68 * Moose::Cookbook::Basics::Recipe3
69 - Updated the before qw[left right] sub to be a little more
70 defensive about what it accepts (stevan)
71 - added more tests to t/000_recipies/basics/003_binary_tree.t
75 - We now always call DEMOLISHALL, even if a class does not
76 define DEMOLISH. This makes sure that method modifiers on
77 DEMOLISHALL work as expected. (doy)
78 - added tests for this (EvanCarroll)
80 * Moose::Util::MetaRole
81 - Accept roles for the wrapped_method_metaclass (rafl)
82 - added tests for this (rafl)
84 * Moose::Meta::Attribute
85 - We no longer pass the meta-attribute object as a final
86 argument to triggers. This actually changed for inlined code a
87 while back, but the non-inlined version and the docs were
91 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
92 they require 0.11. (Dave Rolsky)
95 - Lots of small changes to the manual, cookbook, and
96 elsewhere. These were based on feedback from various
97 users, too many to list here. (Dave Rolsky)
99 0.69 Thu, February 12, 2009
101 - Make some keyword errors use throw_error instead of croak
102 since Moose::Exporter wraps keywords now (Sartak)
105 - Revised every recipe for style and clarity. Also moved some
106 documentation out of cookbook recipes and into Moose::Manual
107 pages. This work was funded as part of the Moose docs grant
108 from TPF. (Dave Rolsky)
110 * Moose::Meta::Method::Delegation
111 - If the attribute doing the delegation was not populated, the
112 error message did not specify the attribute name
115 0.68 Wed, February 4, 2009
117 - Many spelling, typo, and formatting fixes by daxim.
119 * Moose::Manual::Attributes
120 - The NAME section in the POD used "Attribute" so search.cpan
121 didn't resolve links from other documents properly.
123 * Moose::Meta::Method::Overriden
124 - Now properly spelled as Overridden. Thanks to daxim for
127 0.67 Tue, February 3, 2009
129 - Lots of little typo fixes and a few clarifications. Several
130 pages didn't have proper titles, and so weren't actually
131 visible on search.cpan.org. Thanks to hanekomu for a variety
132 of fixes and formatting improvements.
134 0.66 Tue, February 3, 2009
136 - This is a brand new, extensive manual for Moose. This aims to
137 provide a complete introduction to all of Moose's
138 features. This work was funded as part of the Moose docs grant
139 from TPF. (Dave Rolsky)
141 * Moose::Meta::Attribute
142 - Added a delegation_metaclass method to replace a hard-coded
143 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
145 * Moose::Util::TypeConstraints
146 - If you created a subtype and passed a parent that Moose didn't
147 know about, it simply ignored the parent. Now it automatically
148 creates the parent as a class type. This may not be what you
149 want, but is less broken than before. (Dave Rolsky)
151 * Moose::Util::TypeConstraints
152 - This module tried throw errors by calling Moose->throw_error,
153 but it did not ensure that Moose was loaded first. This could
154 cause very unhelpful errors when it tried to throw an error
155 before Moose was loaded. (Dave Rolsky)
157 * Moose::Util::TypeConstraints
158 - You could declare a name with subtype such as "Foo!Bar" that
159 would be allowed, but if you used it in a parameterized type
160 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
161 vetting on names created via the sugar functions, so that they
162 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
164 0.65 Thu, January 22, 2008
165 * Moose and Moose::Meta::Method::Overridden
166 - If an overridden method called super(), and then the
167 superclass's method (not overridden) _also_ called super(),
168 Moose went into an endless recursion loop. Test provided by
169 Chris Prather. (Dave Rolsky)
171 * Moose::Meta::TypeConstraint
172 - All methods are now documented. (gphat)
174 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
175 - Fixed some bogus failures that occurred because we tried to
176 validate filesystem paths in a very ad-hoc and
177 not-quite-correct way. (Dave Rolsky)
179 * Moose::Util::TypeConstraints
180 - Added maybe_type to exports. See docs for details. (rjbs)
183 - Added Moose::Util::TypeConstraints to the SEE ALSO
187 - Methods created via an attribute can now fulfill a "requires"
188 declaration for a role. (nothingmuch)
190 * Moose::Meta::Method::*
191 - Stack traces from inlined code will now report its line and
192 file as being in your class, as opposed to in Moose
195 0.64 Wed, December 31, 2008
196 * Moose::Meta::Method::Accessor
197 - Always inline predicate and clearer methods (Sartak)
199 * Moose::Meta::Attribute
200 - Support for parameterized traits (Sartak)
201 - verify_against_type_constraint method to avoid duplication
202 and enhance extensibility (Sartak)
205 - Tests (but no support yet) for parameterized traits (Sartak)
208 - Require Class::MOP 0.75+, which has the side effect of making
209 sure we work on Win32. (Dave Rolsky)
211 0.63 Mon, December 8, 2008
213 - Some small grammar tweaks and bug fixes in non-Moose example
216 0.62_02 Fri, December 5, 2008
217 * Moose::Meta::Role::Application::ToClass
218 - When a class does not provide all of a role's required
219 methods, the error thrown now mentions all of the missing
220 methods, as opposed to just the first one found. Requested by
221 Curtis Poe (RT #41119). (Dave Rolsky)
223 * Moose::Meta::Method::Constructor
224 - Moose will no longer inline a constructor for your class
225 unless it inherits its constructor from Moose::Object, and
226 will warn when it doesn't inline. If you want to force
227 inlining anyway, pass "replace_constructor => 1" to
228 make_immutable. Addresses RT #40968, reported by Jon
229 Swartz. (Dave Rolsky)
230 - The quoting of default values could be broken if the default
231 contained a single quote ('). Now we use quotemeta to escape
232 anything potentially dangerous in the defaults. (Dave Rolsky)
234 0.62_01 Wed, December 3, 2008
236 - use the method->execute API for BUILDALL
237 and DEMOLISHALL (Sartak)
239 * Moose::Util::TypeConstraints
240 - We now make all the type constraint meta classes immutable
241 before creating the default types provided by Moose. This
242 should make loading Moose a little faster. (Dave Rolsky)
244 0.62 Wed November 26, 2008
245 * Moose::Meta::Role::Application::ToClass
246 Moose::Meta::Role::Application::ToRole
247 - fixed issues where excluding and aliasing the
248 same methods for a single role did not work
249 right (worked just fine with multiple
251 - added test for this (stevan)
253 * Moose::Meta::Role::Application::RoleSummation
254 - fixed the error message when trying to compose
255 a role with a role it excludes (Sartak)
258 - Catch another case where recursion caused the value
259 of $CALLER to be stamped on (t0m)
260 - added test for this (t0m)
263 - Remove the make_immutable keyword, which has been
264 deprecated since April. It breaks metaclasses that
265 use Moose without no Moose (Sartak)
267 * Moose::Meta::Attribute
268 - Removing an attribute from a class now also removes delegation
269 (handles) methods installed for that attribute (t0m)
270 - added test for this (t0m)
272 * Moose::Meta::Method::Constructor
273 - An attribute with a default that looked like a number (but was
274 really a string) would accidentally be treated as a number
275 when the constructor was made immutable (perigrin)
276 - added test for this (perigrin)
279 - create method for constructing a role
281 - added test for this (Sartak)
282 - anonymous roles! (Sartak)
283 - added test for this (Sartak)
286 - more consistent error messages (Sartak)
288 * Moose::Cookbook::Roles::Recipe1
289 - attempt to explain why a role that just requires
290 methods is useful (Sartak)
292 0.61 Fri November 7, 2008
293 * Moose::Meta::Attribute
294 - When passing a role to handles, it will be loaded if necessary
298 - Method objects returned by get_method (and other methods)
299 Could end up being returned without an associated_metaclass
300 attribute. Removing get_method_map, which is provided by
301 Class::MOP::Class, fixed this. The Moose version did nothing
302 different from its parent except introduce a bug. (Dave Rolsky)
303 - added tests for this (jdv79)
306 - Added a $VERSION to all .pm files which didn't have one. Fixes
307 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
309 * Moose::Cookbook::Basics::Recipe4
310 * Moose::Cookbook::Basics::Recipe6
311 - These files had spaces on the first line of the SYNOPSIS, as
312 opposed to a totally empty line. According to RT #40432, this
313 confuses POD parsers. (Dave Rolsky)
315 0.60 Fri October 24, 2008
317 - Passing "-traits" when loading Moose caused the Moose.pm
318 exports to be broken. Reported by t0m. (Dave Rolsky)
319 - Tests for this bug. (t0m)
322 - Change resolve_metaclass alias to use the new
323 load_first_existing_class function. This makes it a lot
324 simpler, and also around 5 times faster. (t0m)
325 - Add caching to resolve_metaclass_alias, which gives an order
326 of magnitude speedup to things which repeatedly call the
327 Moose::Meta::Attribute->does method, notably MooseX::Storage
330 * Moose::Util::TypeConstraint
331 - Put back the changes for parameterized constraints that
332 shouldn't have been removed in 0.59. We still cannot parse
333 them, but MooseX modules can create them in some other
334 way. See the 0.58 changes for more details. (jnapiorkowski)
335 - Changed the way subtypes are created so that the job is
336 delegated to a type constraint parent. This clears up some
337 hardcoded checking and should allow correct subtypes of
338 Moose::Meta::Type::Constraint. Don't rely on this new API too
339 much (create_child_type) because it may go away in the
340 future. (jnapiorkowski)
342 * Moose::Meta::TypeConstraint::Union
343 - Type constraint names are sorted as strings, not numbers.
346 * Moose::Meta::TypeConstraint::Parameterizable
347 - New parameterize method. This can be used as a factory method
348 to make a new type constraint with a given parameterized
349 type. (jnapiorkowski)
350 - added tests (jnapiorkowski)
352 0.59 Tue October 14, 2008
354 - Add abridged documentation for builder/default/initializer/
355 predicate, and link to more details sections in
356 Class::MOP::Attribute. (t0m)
358 * Moose::Util::TypeConstraints
359 - removed prototypes from all but the &-based stuff (mst)
361 * Moose::Util::TypeConstraints
362 - Creating a anonymous subtype with both a constraint and a
363 message failed with a very unhelpful error, but should just
364 work. Reported by t0m. (Dave Rolsky)
367 - Some tests that used Test::Warn if it was available failed
368 with older versions of Test::Warn. Reported by Fayland. (Dave
370 - Test firing behavior of triggers in relation to builder/default/
372 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
373 kinds of supported type. (t0m)
376 - In create(), do not pass "roles" option to the superclass
377 - added related test that creates an anon metaclass with
380 * Moose::Meta::TypeConstraint::Class
381 * Moose::Meta::TypeConstraint::Role
382 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
383 other types (as per change in 0.55_02). (t0m)
385 * Moose::Meta::TypeConstraint::Registry
386 - Fix warning when dealing with unknown type names (t0m)
388 * Moose::Util::TypeConstraints
389 - Reverted changes from 0.58 related to handle parameterized
390 types. This caused random failures on BSD and Win32 systems,
391 apparently related to the regex engine. This means that Moose
392 can no longer parse structured type constraints like
393 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
394 supported in a slightly different way via MooseX::Types some
395 time in the future. (Dave Rolsky)
397 0.58 Sat September 20, 2008
398 !! This release has an incompatible change regarding !!
399 !! how roles add methods to a class !!
401 * Roles and role application
402 ! Roles now add methods by calling add_method, not
403 alias_method. They make sure to always provide a method
404 object, which will be cloned internally. This means that it is
405 now possible to track the source of a method provided by a
406 role, and even follow its history through intermediate roles.
408 This means that methods added by a role now show up when
409 looking at a class's method list/map. (Dave Rolsky)
412 - From this release on, we'll try to maintain a list of
413 conflicting modules, and warn you if you have one
414 installed. For example, this release conflicts with ...
415 - MooseX::Singleton <= 0.11
416 - MooseX::Params::Validate <= 0.05
419 In general, we try to not break backwards compatibility for
420 most Moose users, but MooseX modules and other code which
421 extends Moose's metaclasses is often affected by very small
422 changes in the Moose internals.
424 * Moose::Meta::Method::Delegation
425 * Moose::Meta::Attribute
426 - Delegation methods now have their own method class. (Dave
429 * Moose::Meta::TypeConstraint::Parameterizable
430 - Added a new method 'parameterize' which is basically a factory
431 for the containing constraint. This makes it easier to create
432 new types of parameterized constraints. (jnapiorkowski)
434 * Moose::Meta::TypeConstraint::Union
435 - Changed the way Union types canonicalize their names to follow
436 the normalized TC naming rules, which means we strip all
437 whitespace. (jnapiorkowski)
439 * Moose::Util::TypeConstraints
440 - Parameter and Union args are now sorted, this makes Int|Str
441 the same constraint as Str|Int. (jnapiorkowski)
442 - Changes to the way Union types are parsed to more correctly
443 stringify their names. (jnapiorkowski)
444 - When creating a parameterized type, we now use the new
445 parameterize method. (jnapiorkowski)
446 - Incoming type constraint strings are now normalized to remove
447 all whitespace differences. (jnapiorkowski)
448 - Changed the way we parse type constraint strings so that we now
449 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
450 constraints. This lays the foundation for more flexible type
451 constraint implementations.
453 * Tests and docs for all the above. (jnapiorkowski)
457 - Moose::Exporter will no longer remove a subroutine that the
458 exporting package re-exports. Moose re-exports the
459 Carp::confess function, among others. The reasoning is that we
460 cannot know whether you have also explicitly imported those
461 functions for your own use, so we err on the safe side and
462 always keep them. (Dave Rolsky)
463 - added tests for this (rafl)
466 - Changes to how we fix metaclass compatibility that are much
467 too complicated to go into. The summary is that Moose is much
468 less likely to complain about metaclass incompatibility
469 now. In particular, if two metaclasses differ because
470 Moose::Util::MetaRole was used on the two corresponding
471 classes, then the difference in roles is reconciled for the
472 subclass's metaclass. (Dave Rolsky)
473 - Squashed an warning in _process_attribute (thepler)
476 - throw exceptions (sooner) for invalid attribute names (thepler)
477 - added tests for this (thepler)
479 * Moose::Util::MetaRole
480 - If you explicitly set a constructor or destructor class for a
481 metaclass object, and then applied roles to the metaclass,
482 that explicitly set class would be lost and replaced with the
486 * Moose::Meta::Attribute
487 * Moose::Meta::Method
490 * Moose::Error::Default
491 * Moose::Error::Croak
492 * Moose::Error::Confess
493 - All instances of confess() changed to use overridable
494 C<throw_error> method. This method ultimately calls a class
495 constructor, and you can change the class being called. In
496 addition, errors now pass more information than just a string.
497 The default C<error_class> behaves like C<Carp::confess>, so
498 the behavior is not visibly different for end users.
500 0.57 Wed September 3, 2008
502 - A new bit of doc intended to introduce folks familiar with
503 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
506 - Shows examples of two classes, each done first with and then
507 without Moose. This makes a nice parallel to
508 Moose::Intro. (Dave Rolsky)
510 * Moose::Util::TypeConstraints
511 - Fixed a bug in find_or_parse_type_constraint so that it
512 accepts a Moose::Meta::TypeConstraint object as the parent
513 type, not just a name (jnapiorkowski)
514 - added tests (jnapiorkowski)
517 - If Sub::Name was not present, unimporting failed to actually
518 remove some sugar subs, causing test failures (Dave Rolsky)
520 0.56 Mon September 1, 2008
521 For those not following the series of dev releases, there are
522 several major changes in this release of Moose.
523 ! Moose::init_meta should now be called as a method. See the
526 - Major performance improvements by nothingmuch.
528 - New modules for extension writers, Moose::Exporter and
529 Moose::Util::MetaRole by Dave Rolsky.
531 - Lots of doc improvements and additions, especially in the
536 * Removed all references to the experimental-but-no-longer-needed
537 Moose::Meta::Role::Application::ToMetaclassInstance.
539 * Require Class::MOP 0.65.
541 0.55_04 Sat August 30, 2008
542 * Moose::Util::MetaRole
543 * Moose::Cookbook::Extending::Recipe2
544 - This simplifies the application of roles to any meta class, as
545 well as the base object class. Reimplemented metaclass traits
546 using this module. (Dave Rolsky)
548 * Moose::Cookbook::Extending::Recipe1
549 - This a new recipe, an overview of various ways to write Moose
550 extensions (Dave Rolsky)
552 * Moose::Cookbook::Extending::Recipe3
553 * Moose::Cookbook::Extending::Recipe4
554 - These used to be Extending::Recipe1 and Extending::Recipe2,
557 0.55_03 Fri August 29, 2008
558 * No changes from 0.55_02 except increasing the Class::MOP
559 dependency to 0.64_07.
561 0.55_02 Fri August 29, 2008
562 * Makefile.PL and Moose.pm
563 - explicitly require Perl 5.8.0+ (Dave Rolsky)
565 * Moose::Util::TypeConstraints
566 - Fix warnings from find_type_constraint if the type is not
569 * Moose::Meta::TypeConstraint
570 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
571 return false if the type you specify cannot be found in the
572 type registry, rather than throwing an unhelpful and
573 coincidental exception. (t0m).
574 - added docs & test for this (t0m)
576 * Moose::Meta::TypeConstraint::Registry
577 - add_type_constraint now throws an exception if a parameter is
579 - added docs & test for this (t0m)
581 * Moose::Cookbook::FAQ
582 - Added a faq entry on the difference between "role" and "trait"
586 - Fixed a bug that caused role composition to not see a required
587 method when that method was provided by another role being
588 composed at the same time. (Dave Rolsky)
589 - test and bug finding (tokuhirom)
591 0.55_01 Wed August 20, 2008
593 !! Calling Moose::init_meta as a function is now !!
594 !! deprecated. Please see the Moose.pm docs for details. !!
596 * Moose::Meta::Method::Constructor
597 - Fix inlined constructor so that values produced by default
598 or builder methods are coerced as required. (t0m)
599 - added test for this (t0m)
601 * Moose::Meta::Attribute
602 - A lazy attribute with a default or builder did not attempt to
603 coerce the default value. The immutable code _did_
605 - added test for this (t0m)
608 - This is a new helper module for writing "Moose-alike"
609 modules. This should make the lives of MooseX module authors
610 much easier. (Dave Rolsky)
613 * Moose::Cookbook::Meta::Recipe5
614 - Implemented metaclass traits (and wrote a recipe for it):
616 use Moose -traits => 'Foo'
618 This should make writing small Moose extensions a little
621 * Moose::Cookbook::Basics::Recipe1
622 - Removed any examples of direct hashref access, and applied an
623 editorial axe to reduce verbosity. (Dave Rolsky)
625 * Moose::Cookbook::Basics::Recipe1
626 - Also applied an editorial axe here. (Dave Rolsky)
629 * Moose::Cookbook::Extending::Recipe1
630 * Moose::Cookbook::Extending::Recipe2
631 - Rewrote extending and embedding moose documentation and
632 recipes to use Moose::Exporter (Dave Rolsky)
636 - These two modules now warn when you load them from the main
637 package "main" package, because we will not export sugar to
638 main. Previously it just did nothing. (Dave Rolsky)
641 - Now provide an init_meta method just like Moose.pm, and you
642 can call this to provide an alternate role metaclass. (Dave
643 Rolsky and nothingmuch)
644 - get_method_map now respects the package cache flag (nothingmuch)
647 - Two new methods - add_method and wrap_method_body
651 - Optimizations including allowing constructors to accept hash
652 refs, making many more classes immutable, and making
653 constructors immutable. (nothingmuch)
655 0.55 Sun August 3, 2008
656 * Moose::Meta::Attribute
657 - breaking down the way 'handles' methods are
658 created so that the process can be more easily
659 overridden by subclasses (stevan)
661 * Moose::Meta::TypeConstraint
662 - fixing what is passed into a ->message with
663 the type constraints (RT #37569)
664 - added tests for this (Charles Alderman)
666 * Moose::Util::TypeConstraints
667 - fix coerce to accept anon types like subtype can (mst)
670 - reorganized the recipes into sections - Basics, Roles, Meta,
671 Extending - and wrote abstracts for each section (Dave Rolsky)
673 * Moose::Cookbook::Basics::Recipe10
674 - A new recipe that demonstrates operator overloading
675 in combination with Moose. (bluefeet)
677 * Moose::Cookbook::Meta::Recipe1
678 - an introduction to what meta is and why you'd want to make
679 your own metaclass extensions (Dave Rolsky)
681 * Moose::Cookbook::Meta::Recipe4
682 - a very simple metaclass example (Dave Rolsky)
684 * Moose::Cookbook::Extending::Recipe1
685 - how to write a Moose-alike module to use your own object base
688 * Moose::Cookbook::Extending::Recipe2
689 - how to write modules with an API just like C<Moose.pm> (Dave
693 - Tons of fixes, both syntactical and grammatical (Dave
694 Rolsky, Paul Fenwick)
696 0.54 Thurs. July 3, 2008
697 ... this is not my day today ...
699 * Moose::Meta::Attribute
700 - fixed legal_options_for_inheritance such that
701 clone_and_inherit options still works for
702 Class::MOP::Attribute objects and therefore
703 does not break MooseX::AttributeHelpers
706 0.53 Thurs. July 3, 2008
707 * Whoops, I guess I should run 'make manifest' before
708 actually releasing the module. No actual changes
709 in this release, except the fact that it includes
710 the changes that I didn't include in the last
713 0.52 Thurs. July 3, 2008
715 - added "FEATURE REQUESTS" section to the Moose docs
716 to properly direct people (stevan) (RT #34333)
717 - making 'extends' croak if it is passed a Role since
718 this is not ever something you want to do
719 (fixed by stevan, found by obra)
720 - added tests for this (stevan)
723 - adding support for DOES (as in UNIVERSAL::DOES)
725 - added test for this
727 * Moose::Meta::Attribute
728 - added legal_options_for_inheritance (wreis)
729 - added tests for this (wreis)
731 * Moose::Cookbook::Snacks::*
732 - removed some of the unfinished snacks that should
733 not have been released yet. Added some more examples
734 to the 'Keywords' snack. (stevan)
736 * Moose::Cookbook::Style
737 - added general Moose "style guide" of sorts to the
738 cookbook (nothingmuch) (RT #34335)
741 - added more BUILDARGS tests (stevan)
743 0.51 Thurs. Jun 26, 2008
745 - add unimport so "no Moose::Role" actually does
748 * Moose::Meta::Role::Application::ToRole
749 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
750 order to provide its own implementation, that method still got
751 added to the list of required methods for consumers of
752 RoleB. Now an aliased method is only added to the list of
753 required methods if the role doing the aliasing does not
754 provide its own implementation. See Recipe 11 for an example
755 of all this. (Dave Rolsky)
756 - added tests for this
758 * Moose::Meta::Method::Constructor
759 - when a single argument that wasn't a hashref was provided to
760 an immutabilized constructor, the error message was very
761 unhelpful, as opposed to the non-immutable error. Reported by
763 - added test for this (Dave Rolsky)
765 * Moose::Meta::Attribute
766 - added support for meta_attr->does("ShortAlias") (sartak)
767 - added tests for this (sartak)
768 - moved the bulk of the `handles` handling to the new
769 install_delegation method (Stevan)
772 - Added BUILDARGS, a new step in new()
774 * Moose::Meta::Role::Application::RoleSummation
775 - fix typos no one ever sees (sartak)
777 * Moose::Util::TypeConstraints
778 * Moose::Meta::TypeConstraint
779 * Moose::Meta::TypeCoercion
780 - Attempt to work around the ??{ } vs. threads issue
782 - Some null_constraint optimizations
784 0.50 Thurs. Jun 11, 2008
785 - Fixed a version number issue by bumping all modules
788 0.49 Thurs. Jun 11, 2008
789 !! This version now approx. 20-25% !!
790 !! faster with new Class::MOP 0.59 !!
792 * Moose::Meta::Attribute
793 - fixed how the is => (ro|rw) works with
794 custom defined reader, writer and accessor
796 - added docs for this (TODO).
797 - added tests for this (Thanks to Penfold)
798 - added the custom attribute alias for regular
799 Moose attributes which is "Moose"
800 - fix builder and default both being used
805 Moose::Meta::Attribute
807 Moose::Meta::Role::Composite
808 Moose::Util::TypeConstraints
809 - switched usage of reftype to ref because
813 - changing add_package_symbol to use the new
817 - fixed how DEMOLISHALL is called so that it
818 can be overrided in subclasses (thanks to Sartak)
819 - added test for this (thanks to Sartak)
821 * Moose::Util::TypeConstraints
822 - move the ClassName type check code to
823 Class::MOP::is_class_loaded (thanks to Sartak)
825 * Moose::Cookbook::Recipe11
826 - add tests for this (thanks to tokuhirom)
828 0.48 Thurs. May 29, 2008
829 (early morning release engineering)--
831 - fixing the version in Moose::Meta::Method::Destructor
832 which was causing the indexer to choke
834 0.47 Thurs. May 29, 2008
835 (late night release engineering)--
837 - fixing the version is META.yml, no functional
838 changes in this release
840 0.46 Wed. May 28, 2008
841 !! This version now approx. 20-25% !!
842 !! faster with new Class::MOP 0.57 !!
845 - some optimizations of the &initialize method
846 since it is called so often by &meta
850 - now use the get_all_package_symbols from the
851 updated Class::MOP, test suite is now 10 seconds
854 * Moose::Meta::Method::Destructor
855 - is_needed can now also be called as a class
856 method for immutablization to check if the
857 destructor object even needs to be created
860 * Moose::Meta::Method::Destructor
861 Moose::Meta::Method::Constructor
862 - added more descriptive error message to help
863 keep people from wasting time tracking an error
864 that is easily fixed by upgrading.
866 0.45 Saturday, May 24, 2008
868 - Because of work in Class::MOP 0.57, all
869 XS based functionality is now optional
870 and a Pure Perl version is supplied
871 - the CLASS_MOP_NO_XS environment variable
872 can now be used to force non-XS versions
874 - several of the packages have been tweaked
875 to take care of this, mostly we added
876 support for the package_name and name
877 variables in all the Method metaclasses
878 - before/around/after method modifiers now
879 support regexp matching of names
880 (thanks to Takatoshi Kitano)
881 - tests added for this
882 - NOTE: this only works for classes, it
883 is currently not supported in roles,
884 but, ... patches welcome
885 - All usage of Carp::confess have been replaced
886 by Carp::croak in the "keyword" functions since
887 the stack trace is usually not helpful
890 - All usage of Carp::confess have been replaced
891 by Carp::croak in the "keyword" functions since
892 the stack trace is usually not helpful
893 - The 'has' keyword for roles now accepts the
894 same array ref form that Moose.pm does
895 (has [qw/foo bar/] => (is => 'rw', ...))
896 - added test for this
898 * Moose::Meta::Attribute
899 - trigger on a ro-attribute is no longer an
900 error, as it's useful to trigger off of the
904 - added same 'add_package_symbol' fix as in
908 - does_role now handles non-Moose classes
910 - added tests for this
911 - added the 'add_method_modifier' function
912 (thanks to Takatoshi Kitano)
914 * Moose::Util::TypeConstraints
915 - subtypes of parameterizable types now are
916 themselves parameterizable types
918 * Moose::Meta::Method::Constructor
919 - fixed bug where trigger was not being
920 called by the inlined immutable
922 - added test for this (thanks to Caelum)
924 * Moose::Meta::Role::Application::ToInstance
925 - now uses the metaclass of the instance
926 (if possible) to create the anon-class
927 (thanks Jonathan Rockway)
929 * Moose::Cookbook::Recipe22
930 - added the meta-attribute trait recipe
934 - fixed hash-ordering test bug that was
935 causing occasional cpantester failures
936 - renamed the t/000_recipe/*.t tests to be
937 more descriptive (thanks to Sartak)
939 0.44 Sat. May 10, 2008
941 - made make_immutable warning cluck to
942 show where the error is (thanks mst)
945 - BUILDALL and DEMOLISHALL now call
946 ->body when looping through the
947 methods, to avoid the overloaded
949 - fixed issue where DEMOLISHALL was
950 eating the $@ values, and so not
951 working correctly, it still kind of
952 eats them, but so does vanilla perl
953 - added tests for this
955 * Moose::Cookbook::Recipe7
956 - added new recipe for immutable
957 functionality (thanks Dave Rolsky)
959 * Moose::Cookbook::Recipe9
960 - added new recipe for builder and
961 lazy_build (thanks Dave Rolsky)
963 * Moose::Cookbook::Recipe11
964 - added new recipe for method aliasing
965 and exclusion with Roles (thanks Dave Rolsky)
968 - fixed Win32 test failure (thanks spicyjack)
970 ~ removed Build.PL and Module::Build compat
971 since Module::Install has done that.
973 0.43 Wed. April, 30, 2008
975 drink more coffee before
976 doing release engineering
978 - whoops, forgot to do the smolder tests,
979 and we broke some of the custom meta-attr
980 modules. This fixes that.
982 0.42 Mon. April 28, 2008
983 - some bad tests slipped by, nothing else
984 changed in this release (cpantesters++)
986 - upped the Class::MOP dependency to 0.55
987 since we have tests which need the C3
990 0.41 Mon. April 28, 2008
991 ~~ numerous documentation updates ~~
993 - Changed all usage of die to Carp::croak for better
994 error reporting (initial patch by Tod Hagan)
997 - the make_immutable keyword is now deprecated, don't
998 use it in any new code and please fix your old code
999 as well. There will be 2 releases, and then it will
1005 - refactored the way inner and super work to avoid
1006 any method/@ISA cache penalty (nothingmuch)
1008 * Moose::Meta::Class
1009 - fixing &new_object to make sure trigger gets the
1010 coerced value (spotted by Charles Alderman on the
1012 - added test for this
1014 * Moose::Meta::Method::Constructor
1015 - immutable classes which had non-lazy attributes were calling
1016 the default generating sub twice in the constructor. (bug
1017 found by Jesse Luehrs, fixed by Dave Rolsky)
1018 - added tests for this (Dave Rolsky)
1019 - fix typo in initialize_body method (nothingmuch)
1021 * Moose::Meta::Method::Destructor
1022 - fix typo in initialize_body method (nothingmuch)
1024 * Moose::Meta::Method::Overriden
1025 Moose::Meta::Method::Augmented
1026 - moved the logic for these into their own
1027 classes (nothingmuch)
1029 * Moose::Meta::Attribute
1030 - inherited attributes may now be extended without
1031 restriction on the type ('isa', 'does') (Sartak)
1032 - added tests for this (Sartak)
1033 - when an attribute property is malformed (such as lazy without
1034 a default), give the name of the attribute in the error
1036 - added the &applied_traits and &has_applied_traits methods
1037 to allow introspection of traits
1038 - added tests for this
1039 - moved 'trait' and 'metaclass' argument handling to here from
1041 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1042 '+foo' syntax) (nothingmuch)
1043 - added tests for this (t0m)
1046 - localize $@ inside DEMOLISHALL to avoid it
1047 eating $@ (found by Ernesto)
1048 - added test for this (thanks to Ernesto)
1050 * Moose::Util::TypeConstraints
1051 - &find_type_constraint now DWIMs when given an
1052 type constraint object or name (nothingmuch)
1053 - &find_or_create_type_constraint superseded with a number of more
1055 - find_or_create_{isa,does}_type_constraint
1056 - find_or_parse_type_constraint
1058 * Moose::Meta::TypeConstraint
1059 Moose::Meta::TypeConstraint::Class
1060 Moose::Meta::TypeConstraint::Role
1061 Moose::Meta::TypeConstraint::Enum
1062 Moose::Meta::TypeConstraint::Union
1063 Moose::Meta::TypeConstraint::Parameterized
1064 - added the &equals method for comparing two type
1065 constraints (nothingmuch)
1066 - added tests for this (nothingmuch)
1068 * Moose::Meta::TypeConstraint
1069 - add the &parents method, which is just an alias to &parent.
1070 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1072 * Moose::Meta::TypeConstraint::Class
1073 - added the class attribute for introspection purposes
1075 - added tests for this
1077 * Moose::Meta::TypeConstraint::Enum
1078 Moose::Meta::TypeConstraint::Role
1079 - broke these out into their own classes (nothingmuch)
1081 * Moose::Cookbook::Recipe*
1082 - fixed references to test file locations in the POD
1083 and updated up some text for new Moose features
1087 - Added &resolve_metaclass_alias, a helper function for finding an actual
1088 class for a short name (e.g. in the traits list)
1090 0.40 Fri. March 14, 2008
1091 - I hate Pod::Coverage
1093 0.39 Fri. March 14, 2008
1095 - documenting the use of '+name' with attributes
1096 that come from recently composed roles. It makes
1097 sense, people are using it, and so why not just
1098 officially support it.
1099 - fixing the 'extends' keyword so that it will not
1100 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1103 - added the perl -Moose=+Class::Name feature to allow
1104 monkeypatching of classes in one liners
1107 - fixing the 'apply_all_roles' keyword so that it will not
1108 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1110 * Moose::Meta::Class
1111 - added ->create method which now supports roles (thanks to jrockway)
1112 - added tests for this
1113 - added ->create_anon_class which now supports roles and caching of
1114 the results (thanks to jrockway)
1115 - added tests for this
1116 - made ->does_role a little more forgiving when it is
1117 checking a Class::MOP era metaclasses.
1119 * Moose::Meta::Role::Application::ToInstance
1120 - it is now possible to pass extra params to be used when
1121 a role is applied to an the instance (rebless_params)
1122 - added tests for this
1124 * Moose::Util::TypeConstraints
1125 - class_type now accepts an optional second argument for a
1126 custom message. POD anotated accordingly (groditi)
1127 - added tests for this
1128 - it is now possible to make anon-enums by passing 'enum' an
1129 ARRAY ref instead of the $name => @values. Everything else
1131 - added tests for this
1134 - making test for using '+name' on attributes consumed
1135 from a role, it works and makes sense too.
1137 * Moose::Meta::Attribute
1138 - fix handles so that it doesn't return nothing
1139 when the method cannot be found, not sure why
1140 it ever did this originally, this means we now
1141 have slightly better support for AUTOLOADed
1143 - added more delegation tests
1144 - adding ->does method to this so as to better
1145 support traits and their introspection.
1146 - added tests for this
1149 - localizing the Data::Dumper configurations so
1150 that it does not pollute others (RT #33509)
1151 - made ->does a little more forgiving when it is
1152 passed Class::MOP era metaclasses.
1154 0.38 Fri. Feb. 15, 2008
1155 * Moose::Meta::Attribute
1156 - fixed initializer to correctly do
1157 type checking and coercion in the
1159 - added tests for this
1162 - fixed some finicky tests (thanks to konobi)
1164 0.37 Thurs. Feb. 14, 2008
1166 - fixed some details in Moose::init_meta
1167 and its superclass handling (thanks thepler)
1168 - added tests for this (thanks thepler)
1169 - 'has' now dies if you don't pass in name
1171 - added the 'make_immutable' keyword as a shortcut
1174 * Moose::Meta::Class
1175 Moose::Meta::Method::Constructor
1176 Moose::Meta::Attribute
1177 - making (init_arg => undef) work here too
1178 (thanks to nothingmuch)
1180 * Moose::Meta::Attribute
1181 Moose::Meta::Method::Constructor
1182 Moose::Meta::Method::Accessor
1183 - make lazy attributes respect attr initializers (rjbs)
1184 - added tests for this
1186 * Moose::Util::TypeConstraints
1187 Moose::Util::TypeConstraints::OptimizedConstraints
1188 Moose::Meta::TypeConstraints
1189 Moose::Meta::Attribute
1190 Moose::Meta::Method::Constructor
1191 Moose::Meta::Method::Accessor
1192 - making type errors use the
1193 assigned message (thanks to Sartak)
1194 - added tests for this
1196 * Moose::Meta::Method::Destructor
1197 - making sure DESTROY gets inlined properly
1198 with successive DEMOLISH calls (thanks to manito)
1200 * Moose::Meta::Attribute
1201 Moose::Meta::Method::Accessor
1202 - fixed handling of undef with type constraints
1204 - added tests for this
1207 - added &get_all_init_args and &get_all_attribute_values
1208 (thanks to Sartak and nothingmuch)
1210 0.36 Sat. Jan. 26, 2008
1212 Moose::Meta::Attribute
1213 - role type tests now support when roles are
1214 applied to non-Moose classes (found by ash)
1215 - added tests for this (thanks to ash)
1216 - couple extra tests to boost code coverage
1218 * Moose::Meta::Method::Constructor
1219 - improved fix for handling Class::MOP attributes
1220 - added test for this
1222 * Moose::Meta::Class
1223 - handled the add_attribute($attribute_meta_object)
1225 - added test for this
1227 0.35 Tues. Jan. 22, 2008
1228 * Moose::Meta::Method::Constructor
1229 - fix to make sure even Class::MOP attributes
1230 are handled correctly (Thanks to Dave Rolsky)
1231 - added test for this (also Dave Rolsky)
1233 * Moose::Meta::Class
1234 - improved error message on _apply_all_roles,
1235 you should now use Moose::Util::apply_all_roles
1236 and you shouldnt have been using a _ prefixed
1237 method in the first place ;)
1239 0.34 Mon. Jan. 21, 2008
1240 ~~~ more misc. doc. fixes ~~~
1241 ~~ updated copyright dates ~~
1243 Moose is now a postmodern object system :)
1244 - (see the POD for details)
1246 * <<Role System Refactoring>>
1247 - this release contains a major reworking and
1248 cleanup of the role system
1249 - 100% backwards compat.
1250 - Role application now restructured into seperate
1251 classes based on type of applicants
1252 - Role summation (combining of more than one role)
1253 is much cleaner and anon-classes are no longer
1254 used in this process
1255 - new Composite role metaclass
1256 - runtime application of roles to instances
1257 is now more efficient and re-uses generated
1258 classes when applicable
1260 * <<New Role composition features>>
1261 - methods can now be excluded from a given role
1263 - methods can now be aliased to another name (and
1264 still retain the original as well)
1266 * Moose::Util::TypeConstraints::OptimizedConstraints
1267 - added this module (see above)
1269 * Moose::Meta::Class
1270 - fixed the &_process_attribute method to be called
1271 by &add_attribute, so that the API is now correct
1273 * Moose::Meta::Method::Accessor
1274 - fixed bug when passing a list of values to
1275 an accessor would get (incorrectly) ignored.
1276 Thanks to Sartak for finding this ;)
1277 - added tests for this (Sartak again)
1279 * Moose::Meta::Method::Accessor
1280 Moose::Meta::Method::Constructor
1281 Moose::Meta::Attribute
1282 Moose::Meta::TypeConstraint
1283 Moose::Meta::TypeCoercion
1284 - lots of cleanup of such things as:
1286 - type constraint handling
1287 - error handling/messages
1288 (thanks to nothingmuch)
1290 * Moose::Meta::TypeConstraint::Parameterizable
1291 - added this module to support the refactor
1292 in Moose::Meta::TypeConstraint::Parameterized
1294 * Moose::Meta::TypeConstraint::Parameterized
1295 - refactored how these types are handled so they
1296 are more generic and not confined to ArrayRef
1300 - shortened some file names for better VMS support (RT #32381)
1302 0.33 Fri. Dec. 14, 2007
1303 !! Moose now loads 2 x faster !!
1304 !! with new Class::MOP 0.49 !!
1306 ++ new oose.pm module to make command line
1307 Moose-ness easier (see POD docs for more)
1309 * Moose::Meta::Class
1311 - several tweaks to take advantage of the
1312 new method map caching in Class::MOP
1314 * Moose::Meta::TypeConstraint::Parameterized
1315 - allow subtypes of ArrayRef and HashRef to
1316 be used as a container (sartak)
1317 - added tests for this
1318 - basic support for coercion to ArrayRef and
1319 HashRef for containers (sartak)
1320 - added tests for this
1322 * Moose::Meta::TypeCoercion
1323 - coercions will now create subtypes as needed
1324 so you can now add coercions to parameterized
1325 types without having to explictly define them
1326 - added tests for this
1328 * Moose::Meta::Method::Accessor
1329 - allow subclasses to decide whether we need
1330 to copy the value into a new variable (sartak)
1332 0.32 Tues. Dec. 4, 2007
1333 * Moose::Util::TypeConstraints
1334 - fixing how subtype aliases of unions work
1335 they should inherit the parent's coercion
1336 - added tests for this
1337 - you can now define multiple coercions on
1338 a single type at different times instead of
1339 having to do it all in one place
1340 - added tests for this
1342 * Moose::Meta::TypeConstraint
1343 - there is now a default constraint of sub { 1 }
1344 instead of Moose::Util::TypeConstraints setting
1347 * Moose::Meta::TypeCoercion
1348 * Moose::Meta::TypeCoercion::Union
1349 - added the &has_coercion_for_type and
1350 &add_type_coercions methods to support the
1351 new features above (although you cannot add
1352 more type coercions for Union types)
1354 0.31 Mon. Nov. 26, 2007
1355 * Moose::Meta::Attribute
1356 - made the +attr syntax handle extending types with
1357 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1358 now works if the original foo is an ArrayRef.
1359 - added tests for this.
1360 - delegation now works even if the attribute does not
1361 have a reader method using the get_read_method_ref
1362 method from Class::MOP::Attribute.
1363 - added tests for this
1364 - added docs for this
1366 * Moose::Util::TypeConstraints
1367 - passing no "additional attribute info" to
1368 &find_or_create_type_constraint will no longer
1369 attempt to create an __ANON__ type for you,
1370 instead it will just return undef.
1371 - added docs for this
1373 0.30 Fri. Nov. 23, 2007
1374 * Moose::Meta::Method::Constructor
1375 -builder related bug in inlined constructor. (groditi)
1377 * Moose::Meta::Method::Accessor
1378 - genereate unnecessary calls to predicates and refactor
1379 code generation for runtime speed (groditi)
1381 * Moose::Util::TypeConstraints
1382 - fix ClassName constraint to introspect symbol table (mst)
1383 - added more tests for this (mst)
1384 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1385 with work correctly.
1386 - added tests for this
1389 - adding the link to Recipie 11 (written by Sartak)
1390 - adding test for SYNOPSIS code
1393 - New tests for builder bug. Upon instantiation, if an
1394 attribute had a builder, no value and was not lazy the
1395 builder default was not getting run, oops. (groditi)
1397 0.29 Tues. Nov. 13, 2007
1398 * Moose::Meta::Attribute
1399 - Fix error message on missing builder method (groditi)
1401 * Moose::Meta::Method::Accessor
1402 - Fix error message on missing builder method (groditi)
1405 - Add test to check for the correct error message when
1406 builder method is missing (groditi)
1408 0.28 Tues. Nov. 13, 2007
1409 - 0.27 packaged incorrectly (groditi)
1411 0.27 Tues. Nov. 13, 2007
1412 * Moose::Meta::Attribute
1413 - Added support for the new builder option (groditi)
1414 - Added support for lazy_build option (groditi)
1415 - Changed slot initialization for predicate changes (groditi)
1417 * Moose::Meta::Method::Accessor
1418 - Added support for lazy_build option (groditi)
1419 - Fix inline methods to work with corrected predicate
1422 * Moose::Meta::Method::Constructor
1423 - Added support for lazy_build option (groditi)
1426 - tests for builder and lazy_build (groditi)
1428 * fixing some misc. bits in the docs that
1429 got mentioned on CPAN Forum & perlmonks
1432 - fixed how required methods are handled
1433 when they encounter overriden or modified
1434 methods from a class (thanks to confound).
1435 - added tests for this
1437 * Moose::Util::TypeConstraint
1438 - fixed the type notation parser so that
1439 the | always creates a union and so is
1440 no longer a valid type char (thanks to
1441 konobi, mugwump and #moose for working
1443 - added more tests for this
1445 0.26 Thurs. Sept. 27, 2007
1448 * Parameterized Types
1449 We now support parameterized collection types, such as:
1450 ArrayRef[Int] # array or integers
1451 HashRef[Object] # a hash with object values
1452 They can also be nested:
1453 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1454 And work with the type unions as well:
1455 ArrayRef[Int | Str] # array of integers of strings
1457 * Better Framework Extendability
1458 Moose.pm is now "extendable" such that it is now much
1459 easier to extend the framework and add your own keywords
1460 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1461 section of the Moose.pm docs.
1464 In an effort to begin documenting some of the various
1465 details of Moose as well as some common idioms, we have
1466 created Moose::Cookbook::Snacks as a place to find
1467 small (easily digestable) nuggets of Moose code.
1470 ~ Several doc updates/cleanup thanks to castaway ~
1472 - converted build system to use Module::Install instead of
1473 Module::Build (thanks to jrockway)
1476 - added all the meta classes to the immutable list and
1477 set it to inline the accessors
1478 - fix import to allow Sub::Exporter like { into => }
1479 and { into_level => } (perigrin)
1480 - exposed and documented init_meta() to allow better
1481 embedding and extending of Moose (perigrin)
1484 - complete re-organization of the test suite
1485 - added some new tests as well
1486 - finally re-enabled the Moose::POOP test since
1487 the new version of DBM::Deep now works again
1490 * Moose::Meta::Class
1491 - fixed very odd and very nasty recursion bug with
1493 - added tests for this (eilara)
1495 * Moose::Meta::Attribute
1496 Moose::Meta::Method::Constructor
1497 Moose::Meta::Method::Accessor
1498 - fixed issue with overload::Overloaded getting called
1499 on non-blessed items. (RT #29269)
1500 - added tests for this
1502 * Moose::Meta::Method::Accessor
1503 - fixed issue with generated accessor code making
1504 assumptions about hash based classes (thanks to dexter)
1506 * Moose::Coookbook::Snacks
1507 - these are bits of documentation, not quite as big as
1508 Recipes but which have no clear place in the module docs.
1509 So they are Snacks! (horray for castaway++)
1511 * Moose::Cookbook::Recipe4
1512 - updated it to use the new ArrayRef[MyType] construct
1513 - updated the accompanying test as well
1515 +++ Major Refactor of the Type Constraint system +++
1516 +++ with new features added as well +++
1518 * Moose::Util::TypeConstraint
1519 - no longer uses package variable to keep track of
1520 the type constraints, now uses the an instance of
1521 Moose::Meta::TypeConstraint::Registry to do it
1522 - added more sophisticated type notation parsing
1524 - added tests for this
1526 * Moose::Meta::TypeConstraint
1527 - some minor adjustments to make subclassing easier
1528 - added the package_defined_in attribute so that we
1529 can track where the type constraints are created
1531 * Moose::Meta::TypeConstraint::Union
1532 - this is now been refactored to be a subclass of
1533 Moose::Meta::TypeConstraint
1535 * Moose::Meta::TypeCoercion::Union
1536 - this has been added to service the newly refactored
1537 Moose::Meta::TypeConstraint::Union and is itself
1538 a subclass of Moose::Meta::TypeCoercion
1540 * Moose::Meta::TypeConstraint::Parameterized
1541 - added this module (taken from MooseX::AttributeHelpers)
1542 to help construct nested collection types
1543 - added tests for this
1545 * Moose::Meta::TypeConstraint::Registry
1546 - added this class to keep track of type constraints
1548 0.25 Mon. Aug. 13, 2007
1550 - Documentation update to reference Moose::Util::TypeConstraints
1551 under 'isa' in 'has' for how to define a new type
1552 (thanks to shlomif).
1554 * Moose::Meta::Attribute
1555 - required attributes now will no longer accept undef
1556 from the constructor, even if there is a default and lazy
1557 - added tests for this
1558 - default subroutines must return a value which passes the
1560 - added tests for this
1562 * Moose::Meta::Attribute
1563 * Moose::Meta::Method::Constructor
1564 * Moose::Meta::Method::Accessor
1565 - type-constraint tests now handle overloaded objects correctly
1566 in the error message
1567 - added tests for this (thanks to EvanCarroll)
1569 * Moose::Meta::TypeConstraint::Union
1570 - added (has_)hand_optimized_constraint to this class so that
1571 it behaves as the regular Moose::Meta::TypeConstraint does.
1574 - large refactoring of this code
1575 - added several more tests
1576 - tests for subtle conflict resolition issues
1577 added, but not currently running
1580 * Moose::Cookbook::Recipe7
1581 - added new recipe for augment/inner functionality
1583 - added test for this
1586 - a formal definition of roles (still in progress)
1589 - utilities for easier working with Moose classes
1590 - added tests for these
1593 - This contains Moose specific test functions
1594 - added tests for these
1596 0.24 Tues. July 3, 2007
1597 ~ Some doc updates/cleanup ~
1599 * Moose::Meta::Attribute
1600 - added support for roles to be given as parameters
1601 to the 'handles' option.
1602 - added tests and docs for this
1603 - the has '+foo' attribute form now accepts changes to
1604 the lazy option, and the addition of a handles option
1605 (but not changing the handles option)
1606 - added tests and docs for this
1609 - required methods are now fetched using find_method_by_name
1610 so that required methods can come from superclasses
1611 - adjusted tests for this
1613 0.23 Mon. June 18, 2007
1614 * Moose::Meta::Method::Constructor
1615 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1616 * Moose::Meta::Class
1617 - Modify make_immutable to work with the new Class::MOP immutable
1618 mechanism + POD + very basic test (groditi)
1619 * Moose::Meta::Attribute
1620 - Fix handles to use goto() so that caller() comes out properly on
1621 the other side (perigrin)
1623 0.22 Thurs. May 31, 2007
1624 * Moose::Util::TypeConstraints
1625 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1626 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1627 prototypes for functions
1628 - added the ClassName type constraint, this checks for strings
1629 which will respond true to ->isa(UNIVERSAL).
1630 - added tests and docs for this
1631 - subtyping just in name now works correctly by making the
1632 default for where be { 1 }
1633 - added test for this
1635 * Moose::Meta::Method::Accessor
1636 - coerce and lazy now work together correctly, thanks to
1637 merlyn for finding this bug
1638 - tests added for this
1639 - fix reader presedence bug in Moose::Meta::Attribute + tests
1642 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1643 a HASH-ref and missed. This produces better error messages then
1644 having it die cause undef is not a HASH.
1645 - added tests for this
1647 0.21 Thursday, May 2nd, 2007
1649 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1650 - modified unimport to remove super and inner along with the rest
1651 - altered unimport tests to handle this
1654 - altered super export to populate SUPER_SLOT
1656 * Moose::Meta::Class
1657 - altered augment and override modifier application to use *_SLOT
1658 - modified tests for these to unimport one test class each to test
1661 - fixed issue where custom attribute metaclasses
1662 where not handled correctly in roles
1663 - added tests for this
1665 * Moose::Meta::Class
1666 - fixed issue where extending metaclasses with
1667 roles would blow up. Thanks to Aankhen`` for
1668 finding this insidious error, and it's solution.
1670 ~~ lots of spelling and grammer fixes in the docs,
1671 many many thanks to rlb3 and Aankhen for these :)
1673 0.20 Friday, April 6th, 2007
1674 >> I messed up the SKIP logic in one test
1675 so this release is just to fix that.
1678 - 'has' now also accepts an ARRAY ref
1679 to create multiple attrs (see docs)
1680 (thanks to konobi for this)
1681 - added tests and docs
1683 0.19 Thurs. April 5th, 2007
1684 ~~ More documentation updates ~~
1686 * Moose::Util::TypeConstraints
1687 - 'type' now supports messages as well
1688 thanks to phaylon for finding this
1689 - added tests for this
1690 - added &list_all_type_constraints and
1691 &list_all_builtin_type_constraints
1692 functions to facilitate introspection.
1694 * Moose::Meta::Attribute
1695 - fixed regexp 'handles' declarations
1696 to build the list of delegated methods
1697 correctly (and not override important
1698 things like &new) thanks to ashleyb
1700 - added tests and docs for this
1701 - added the 'documentation' attributes
1702 so that you can actually document your
1703 attributes and inspect them through the
1705 - added tests and docs for this
1707 * Moose::Meta::Class
1708 - when loading custom attribute metaclasses
1709 it will first look in for the class in the
1710 Moose::Meta::Attribute::Custom::$name, and
1711 then default to just loading $name.
1712 - added tests and docs for this
1714 * Moose::Meta::TypeConstraint
1715 - type constraints now stringify to their names.
1716 - added test for this
1719 - added tests to assure we work with Module::Refresh
1720 - added stricter test skip logic in the Moose POOP
1721 test, ask Rob Kinyon why.
1722 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1724 0.18 Sat. March 10, 2007
1725 ~~ Many, many documentation updates ~~
1728 - We now use Class::MOP::load_class to
1730 - added tests to show types and subtypes
1731 working with Declare::Constraints::Simple
1732 and Test::Deep as constraint engines.
1735 !! You must have Class::MOP 0.37_001 !!
1736 !! for this developer release to work !!
1738 This release was primarily adding the immutable
1739 feature to Moose. An immutable class is one which
1740 you promise not to alter. When you set the class
1741 as immutable it will perform various bits of
1742 memoization and inline certain part of the code
1743 (constructors, destructors and accessors). This
1744 minimizes (and in some cases totally eliminates)
1745 one of Moose's biggest performance hits. This
1746 feature is not on by default, and is 100% optional.
1747 It has several configurable bits as well, so you
1748 can pick and choose to your specific needs.
1750 The changes involved in this were fairly wide and
1751 highly specific, but 100% backwards compatible, so
1752 I am not going to enumerate them here. If you are
1753 truely interested in what was changed, please do
1756 0.17 Tues. Nov. 14, 2006
1757 * Moose::Meta::Method::Accessor
1758 - bugfix for read-only accessors which
1759 are have a type constraint and lazy.
1760 Thanks to chansen for finding it.
1762 0.16 Tues. Nov. 14, 2006
1764 There are some speed improvements in this release,
1765 but they are only the begining, so stay tuned.
1768 - BUILDALL and DEMOLISHALL no longer get
1769 called unless they actually need to be.
1770 This gave us a signifigant speed boost
1771 for the cases when there is no BUILD or
1772 DEMOLISH method present.
1774 * Moose::Util::TypeConstraints
1775 * Moose::Meta::TypeConstraint
1776 - added an 'optimize_as' option to the
1777 type constraint, which allows for a
1778 hand optimized version of the type
1779 constraint to be used when possible.
1780 - Any internally created type constraints
1781 now provide an optimized version as well.
1783 0.15 Sun. Nov. 5, 2006
1785 This version of Moose *must* have Class::MOP 0.36 in order
1786 to work correctly. A number of small internal tweaks have
1787 been made in order to be compatible with that release.
1789 * Moose::Util::TypeConstraints
1790 - added &unimport so that you can clean out
1791 your class namespace of these exported
1794 * Moose::Meta::Class
1795 - fixed minor issue which occasionally
1796 comes up during global destruction
1798 - moved Moose::Meta::Method::Overriden into
1802 - moved Moose::Meta::Role::Method into
1805 * Moose::Meta::Attribute
1806 - changed how we do type checks so that
1807 we reduce the overall cost, but still
1810 - moved accessor generation methods to
1811 Moose::Meta::Method::Accessor to
1812 conform to the API changes from
1815 * Moose::Meta::TypeConstraint
1816 - changed how constraints are compiled
1817 so that we do less recursion and more
1818 iteration. This makes the type check
1820 - moved Moose::Meta::TypeConstraint::Union
1823 * Moose::Meta::Method::Accessor
1824 - created this from methods formerly found in
1825 Moose::Meta::Attribute
1827 * Moose::Meta::Role::Method
1828 - moved this from Moose::Meta::Role
1830 * Moose::Meta::Method::Overriden
1831 - moved this from Moose::Meta::Class
1833 * Moose::Meta::TypeConstraint::Union
1834 - moved this from Moose::Meta::TypeConstraint
1836 0.14 Mon. Oct. 9, 2006
1838 * Moose::Meta::Attribute
1839 - fixed lazy attributes which were not getting
1840 checked with the type constraint (thanks ashley)
1841 - added tests for this
1842 - removed the over-enthusiastic DWIMery of the
1843 automatic ArrayRef and HashRef defaults, it
1844 broke predicates in an ugly way.
1845 - removed tests for this
1847 0.13 Sat. Sept. 30, 2006
1849 This version of Moose *must* have Class::MOP 0.35 in order
1850 to work correctly. A number of small internal tweaks have
1851 been made in order to be compatible with that release.
1854 - Removed the use of UNIVERSAL::require to be a better
1855 symbol table citizen and remove a dependency
1856 (thanks Adam Kennedy)
1858 **~~ removed experimental & undocumented feature ~~**
1859 - commented out the 'method' and 'self' keywords, see the
1860 comments for more info.
1863 - added a FAQ and WTF files to document frequently
1864 asked questions and common problems
1866 * Moose::Util::TypeConstraints
1867 - added GlobRef and FileHandle type constraint
1868 - added tests for this
1870 * Moose::Meta::Attribute
1871 - if your attribute 'isa' ArrayRef of HashRef, and you have
1872 not explicitly set a default, then make the default DWIM.
1873 This will also work for subtypes of ArrayRef and HashRef
1875 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1876 - new test added for this (thanks to ashley)
1879 - added basic support for runtime role composition
1880 but this is still *highly experimental*, so feedback
1881 is much appreciated :)
1882 - added tests for this
1884 * Moose::Meta::TypeConstraint
1885 - the type constraint now handles the coercion process
1886 through delegation, this is to support the coercion
1889 * Moose::Meta::TypeConstraint::Union
1890 - it is now possible for coercions to be performed
1892 - added tests for this (thanks to konobi)
1894 * Moose::Meta::TypeCoercion
1895 - properly capturing error when type constraint
1899 - Scalar::Util 1.18 is bad on Win32, so temporarily
1900 only require version 1.17 for Win32 and cygwin.
1901 (thanks Adam Kennedy)
1903 0.12 Sat. Sept. 1, 2006
1905 - Recipe5 (subtypes & coercion) has been written
1908 - fixed "bad meta" error message to be more descriptive
1909 - fixed &unimport to not remove the &inner and &super
1910 keywords because we need to localize them.
1911 - fixed number of spelling/grammer issues, thanks Theory :)
1913 **~~ experimental & undocumented feature ~~**
1914 - added the method and self keywords, they are basically
1915 just sugar, and they may not stay around.
1918 - added &dump method to easily Data::Dumper
1921 * Moose::Meta::TypeConstraint
1922 - added the &is_a_type_of method to check both the current
1923 and the subtype of a method (similar to &isa with classes)
1926 - this is now a subclass of Class::MOP::Module, and no longer
1927 creates the _role_meta ugliness of before.
1928 - fixed tests to reflect this change
1930 0.11 Wed. July 12, 2006
1932 - added an &unimport method to remove all the keywords
1933 that Moose will import, simply add 'no Moose' to the
1934 bottom of your class file.
1937 - fixed some test failures caused by a forgotten test
1940 0.10 Thurs. July 6, 2006
1942 - improved error message when loading modules so
1943 it is less confusing when you load a role.
1944 - added &calculate_all_roles method to
1945 Moose::Meta::Class and Moose::Meta::Role
1948 This module has been tested against Class::MOP 0.30
1949 but it does not yet utilize the optimizations
1950 it makes available. Stay tuned for that ;)
1952 0.09_03 Fri. June 23, 2006
1953 ++ DEVELOPER RELEASE ++
1955 - 'use strict' and 'use warnings' are no longer
1956 needed in Moose classes, Moose itself will
1957 turn them on for you.
1958 - added tests for this
1959 - moved code from exported subs to private methods
1960 in Moose::Meta::Class
1963 - as with Moose, strict and warnings are
1964 automatically turned on for you.
1965 - added tests for this
1968 - now handles an edge case for override errors
1969 - added tests for this
1970 - added some more edge case tests
1972 0.09_02 Tues. May 16, 2006
1973 ++ DEVELOPER RELEASE ++
1975 - added prototypes to the exported subs
1979 - added prototypes to the exported subs
1982 * Moose::Util::TypeConstraints
1983 - cleaned up prototypes for the subs
1986 0.09_01 Fri. May 12, 2006
1987 ++ DEVELOPER RELEASE ++
1988 - This release works in combination with
1989 Class::MOP 0.29_01, it is a developer
1990 release because it uses the a new
1991 instance sub-protocol and a fairly
1992 complete Role implementation. It has
1993 not yet been optimized, so it slower
1994 the the previous CPAN version. This
1995 release also lacks good updated docs,
1996 the official release will have updated docs.
1999 - refactored the keyword exports
2000 - 'with' now checks Role validaity and
2001 accepts more than one Role at a time
2002 - 'extends' makes metaclass adjustments as
2003 needed to ensure metaclass compatibility
2006 - refactored the keyword exports
2007 - 'with' now checks Role validaity and
2008 accepts more than one Role at a time
2010 * Moose::Util::TypeConstraints
2011 - added the 'enum' keyword for simple
2012 string enumerations which can be used as
2014 - see example of usage in t/202_example.t
2017 - more careful checking of params to new()
2020 - much work done on the role composition
2021 - many new tests for conflict detection
2022 and composition edge cases
2023 - not enough documentation, I suggest
2024 looking at the tests
2026 * Moose::Meta::Instance
2027 - added new Instance metaclass to support
2028 the new Class::MOP instance protocol
2030 * Moose::Meta::Class
2031 - some small changes to support the new
2033 - some small additions to support Roles
2035 * Moose::Meta::Attribute
2036 - some improvements to the accessor generation code
2038 - some small changes to support the new
2040 - (still somewhat) experimental delegation support
2041 with the 'handles' option
2042 - added several tests for this
2043 - no docs for this yet
2045 0.05 Thurs. April 27, 2006
2047 - keywords are now exported with Sub::Exporter
2048 thanks to chansen for this commit
2049 - has keyword now takes a 'metaclass' option
2050 to support custom attribute meta-classes
2051 on a per-attribute basis
2052 - added tests for this
2053 - the 'has' keyword not accepts inherited slot
2054 specifications (has '+foo'). This is still an
2055 experimental feature and probably not finished
2056 see t/038_attribute_inherited_slot_specs.t for
2057 more details, or ask about it on #moose
2058 - added tests for this
2061 - keywords are now exported with Sub::Exporter
2063 * Moose::Utils::TypeConstraints
2064 - reorganized the type constraint hierarchy, thanks
2065 to nothingmuch and chansen for his help and advice
2067 - added some tests for this
2068 - keywords are now exported with Sub::Exporter
2069 thanks to chansen for this commit
2071 * Moose::Meta::Class
2072 - due to changes in Class::MOP, we had to change
2073 construct_instance (for the better)
2075 * Moose::Meta::Attribute
2076 - due to changes in Class::MOP, we had to add the
2077 initialize_instance_slot method (it's a good thing)
2079 * Moose::Meta::TypeConstraint
2080 - added type constraint unions
2081 - added tests for this
2082 - added the is_subtype_of predicate method
2083 - added tests for this
2085 0.04 Sun. April 16th, 2006
2087 - Roles can now consume other roles
2088 - added tests for this
2089 - Roles can specify required methods now with
2090 the requires() keyword
2091 - added tests for this
2094 - ripped out much of it's guts ,.. much cleaner now
2095 - added required methods and correct handling of
2096 them in apply() for both classes and roles
2097 - added tests for this
2098 - no longer adds a does() method to consuming classes
2099 it relys on the one in Moose::Object
2100 - added roles attribute and some methods to support
2101 roles consuming roles
2103 * Moose::Meta::Attribute
2104 - added support for triggers on attributes
2105 - added tests for this
2106 - added support for does option on an attribute
2107 - added tests for this
2109 * Moose::Meta::Class
2110 - added support for attribute triggers in the
2112 - added tests for this
2115 - Moose no longer creates a subtype for your class
2116 if a subtype of the same name already exists, this
2117 should DWIM in 99.9999% of all cases
2119 * Moose::Util::TypeConstraints
2120 - fixed bug where incorrect subtype conflicts were
2122 - added test for this
2125 - this class can now be extended with 'use base' if
2126 you need it, it properly loads the metaclass class now
2127 - added test for this
2129 0.03_02 Wed. April 12, 2006
2131 - you must now explictly use Moose::Util::TypeConstraints
2132 it no longer gets exported for you automatically
2135 - new() now accepts hash-refs as well as key/value lists
2136 - added does() method to check for Roles
2137 - added tests for this
2139 * Moose::Meta::Class
2140 - added roles attribute along with the add_role() and
2142 - added tests for this
2145 - now adds a does() method to consuming classes
2146 which tests the class's hierarchy for roles
2147 - added tests for this
2149 0.03_01 Mon. April 10, 2006
2151 - added new Role recipe (no content yet, only code)
2154 - added 'with' keyword for Role support
2155 - added test and docs for this
2156 - fixed subtype quoting bug
2157 - added test for this
2161 - added test and docs
2163 * Moose::Util::TypeConstraints
2164 - added the message keyword to add custom
2165 error messages to type constraints
2168 - the meta role to support Moose::Role
2169 - added tests and docs
2171 * Moose::Meta::Class
2172 - moved a number of things from Moose.pm
2173 to here, they should have been here
2176 * Moose::Meta::Attribute
2177 - moved the attribute option macros here
2178 instead of putting them in Moose.pm
2180 * Moose::Meta::TypeConstraint
2181 - added the message attributes and the
2183 - added tests and docs for this
2185 0.03 Thurs. March 30, 2006
2187 - added the Moose::Cookbook with 5 recipes,
2188 describing all the stuff Moose can do.
2191 - fixed an issue with &extends super class loading
2192 it now captures errors and deals with inline
2193 packages correctly (bug found by mst, solution
2195 - added super/override & inner/augment features
2196 - added tests and docs for these
2199 - BUILDALL now takes a reference of the %params
2200 that are passed to &new, and passes that to
2203 * Moose::Util::TypeConstraints
2204 - Type constraints now survive runtime reloading
2205 - added test for this
2207 * Moose::Meta::Class
2208 - fixed the way attribute defaults are handled
2209 during instance construction (bug found by chansen)
2211 * Moose::Meta::Attribute
2212 - read-only attributes now actually enforce their
2213 read-only-ness (this corrected in Class::MOP as
2216 0.02 Tues. March 21, 2006
2218 - many more tests, fixing some bugs and
2220 - &extends now loads the base module with
2222 - added UNIVERSAL::require to the
2225 - each new Moose class will also create
2226 and register a subtype of Object which
2227 correspond to the new Moose class.
2228 - the 'isa' option in &has now only
2229 accepts strings, and will DWIM in
2232 * Moose::Util::TypeConstraints
2233 - added type coercion features
2234 - added tests for this
2235 - added support for this in attributes
2236 and instance construction
2238 - type construction no longer creates a
2239 function, it registers the type instead.
2240 - added several functions to get the
2244 - BUILDALL and DEMOLISHALL were broken
2245 because of a mis-named hash key, Whoops :)
2247 * Moose::Meta::Attribute
2248 - adding support for coercion in the
2249 autogenerated accessors
2251 * Moose::Meta::Class
2252 - adding support for coercion in the
2253 instance construction
2255 * Moose::Meta::TypeConstraint
2256 * Moose::Meta::TypeCoercion
2257 - type constraints and coercions are now
2258 full fledges meta-objects
2260 0.01 Wed. March 15, 2006
2261 - Moooooooooooooooooose!!!