1 Revision history for Perl extension Moose
4 * Moose::Cookbook::Basics::Recipe11
5 - A new recipe which demonstrates the use of BUILDARGS and
8 0.70 Sat, February 14, 2009
9 * Moose::Util::TypeConstraints
10 - Added the RoleName type (stevan)
11 - added tests for this (stevan)
13 * Moose::Cookbook::Basics::Recipe3
14 - Updated the before qw[left right] sub to be a little more
15 defensive about what it accepts (stevan)
16 - added more tests to t/000_recipies/basics/003_binary_tree.t
20 - We now always call DEMOLISHALL, even if a class does not
21 define DEMOLISH. This makes sure that method modifiers on
22 DEMOLISHALL work as expected. (doy)
23 - added tests for this (EvanCarroll)
25 * Moose::Util::MetaRole
26 - Accept roles for the wrapped_method_metaclass (rafl)
27 - added tests for this (rafl)
29 * Moose::Meta::Attribute
30 - We no longer pass the meta-attribute object as a final
31 argument to triggers. This actually changed for inlined code a
32 while back, but the non-inlined version and the docs were
36 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
37 they require 0.11. (Dave Rolsky)
40 - Lots of small changes to the manual, cookbook, and
41 elsewhere. These were based on feedback from various
42 users, too many to list here. (Dave Rolsky)
44 0.69 Thu, February 12, 2009
46 - Make some keyword errors use throw_error instead of croak
47 since Moose::Exporter wraps keywords now (Sartak)
50 - Revised every recipe for style and clarity. Also moved some
51 documentation out of cookbook recipes and into Moose::Manual
52 pages. This work was funded as part of the Moose docs grant
53 from TPF. (Dave Rolsky)
55 * Moose::Meta::Method::Delegation
56 - If the attribute doing the delegation was not populated, the
57 error message did not specify the attribute name
60 0.68 Wed, February 4, 2009
62 - Many spelling, typo, and formatting fixes by daxim.
64 * Moose::Manual::Attributes
65 - The NAME section in the POD used "Attribute" so search.cpan
66 didn't resolve links from other documents properly.
68 * Moose::Meta::Method::Overriden
69 - Now properly spelled as Overridden. Thanks to daxim for
72 0.67 Tue, February 3, 2009
74 - Lots of little typo fixes and a few clarifications. Several
75 pages didn't have proper titles, and so weren't actually
76 visible on search.cpan.org. Thanks to hanekomu for a variety
77 of fixes and formatting improvements.
79 0.66 Tue, February 3, 2009
81 - This is a brand new, extensive manual for Moose. This aims to
82 provide a complete introduction to all of Moose's
83 features. This work was funded as part of the Moose docs grant
84 from TPF. (Dave Rolsky)
86 * Moose::Meta::Attribute
87 - Added a delegation_metaclass method to replace a hard-coded
88 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
90 * Moose::Util::TypeConstraints
91 - If you created a subtype and passed a parent that Moose didn't
92 know about, it simply ignored the parent. Now it automatically
93 creates the parent as a class type. This may not be what you
94 want, but is less broken than before. (Dave Rolsky)
96 * Moose::Util::TypeConstraints
97 - This module tried throw errors by calling Moose->throw_error,
98 but it did not ensure that Moose was loaded first. This could
99 cause very unhelpful errors when it tried to throw an error
100 before Moose was loaded. (Dave Rolsky)
102 * Moose::Util::TypeConstraints
103 - You could declare a name with subtype such as "Foo!Bar" that
104 would be allowed, but if you used it in a parameterized type
105 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
106 vetting on names created via the sugar functions, so that they
107 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
109 0.65 Thu, January 22, 2008
110 * Moose and Moose::Meta::Method::Overridden
111 - If an overridden method called super(), and then the
112 superclass's method (not overridden) _also_ called super(),
113 Moose went into an endless recursion loop. Test provided by
114 Chris Prather. (Dave Rolsky)
116 * Moose::Meta::TypeConstraint
117 - All methods are now documented. (gphat)
119 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
120 - Fixed some bogus failures that occurred because we tried to
121 validate filesystem paths in a very ad-hoc and
122 not-quite-correct way. (Dave Rolsky)
124 * Moose::Util::TypeConstraints
125 - Added maybe_type to exports. See docs for details. (rjbs)
128 - Added Moose::Util::TypeConstraints to the SEE ALSO
132 - Methods created via an attribute can now fulfill a "requires"
133 declaration for a role. (nothingmuch)
135 * Moose::Meta::Method::*
136 - Stack traces from inlined code will now report its line and
137 file as being in your class, as opposed to in Moose
140 0.64 Wed, December 31, 2008
141 * Moose::Meta::Method::Accessor
142 - Always inline predicate and clearer methods (Sartak)
144 * Moose::Meta::Attribute
145 - Support for parameterized traits (Sartak)
146 - verify_against_type_constraint method to avoid duplication
147 and enhance extensibility (Sartak)
150 - Tests (but no support yet) for parameterized traits (Sartak)
153 - Require Class::MOP 0.75+, which has the side effect of making
154 sure we work on Win32. (Dave Rolsky)
156 0.63 Mon, December 8, 2008
158 - Some small grammar tweaks and bug fixes in non-Moose example
161 0.62_02 Fri, December 5, 2008
162 * Moose::Meta::Role::Application::ToClass
163 - When a class does not provide all of a role's required
164 methods, the error thrown now mentions all of the missing
165 methods, as opposed to just the first one found. Requested by
166 Curtis Poe (RT #41119). (Dave Rolsky)
168 * Moose::Meta::Method::Constructor
169 - Moose will no longer inline a constructor for your class
170 unless it inherits its constructor from Moose::Object, and
171 will warn when it doesn't inline. If you want to force
172 inlining anyway, pass "replace_constructor => 1" to
173 make_immutable. Addresses RT #40968, reported by Jon
174 Swartz. (Dave Rolsky)
175 - The quoting of default values could be broken if the default
176 contained a single quote ('). Now we use quotemeta to escape
177 anything potentially dangerous in the defaults. (Dave Rolsky)
179 0.62_01 Wed, December 3, 2008
181 - use the method->execute API for BUILDALL
182 and DEMOLISHALL (Sartak)
184 * Moose::Util::TypeConstraints
185 - We now make all the type constraint meta classes immutable
186 before creating the default types provided by Moose. This
187 should make loading Moose a little faster. (Dave Rolsky)
189 0.62 Wed November 26, 2008
190 * Moose::Meta::Role::Application::ToClass
191 Moose::Meta::Role::Application::ToRole
192 - fixed issues where excluding and aliasing the
193 same methods for a single role did not work
194 right (worked just fine with multiple
196 - added test for this (stevan)
198 * Moose::Meta::Role::Application::RoleSummation
199 - fixed the error message when trying to compose
200 a role with a role it excludes (Sartak)
203 - Catch another case where recursion caused the value
204 of $CALLER to be stamped on (t0m)
205 - added test for this (t0m)
208 - Remove the make_immutable keyword, which has been
209 deprecated since April. It breaks metaclasses that
210 use Moose without no Moose (Sartak)
212 * Moose::Meta::Attribute
213 - Removing an attribute from a class now also removes delegation
214 (handles) methods installed for that attribute (t0m)
215 - added test for this (t0m)
217 * Moose::Meta::Method::Constructor
218 - An attribute with a default that looked like a number (but was
219 really a string) would accidentally be treated as a number
220 when the constructor was made immutable (perigrin)
221 - added test for this (perigrin)
224 - create method for constructing a role
226 - added test for this (Sartak)
227 - anonymous roles! (Sartak)
228 - added test for this (Sartak)
231 - more consistent error messages (Sartak)
233 * Moose::Cookbook::Roles::Recipe1
234 - attempt to explain why a role that just requires
235 methods is useful (Sartak)
237 0.61 Fri November 7, 2008
238 * Moose::Meta::Attribute
239 - When passing a role to handles, it will be loaded if necessary
243 - Method objects returned by get_method (and other methods)
244 Could end up being returned without an associated_metaclass
245 attribute. Removing get_method_map, which is provided by
246 Class::MOP::Class, fixed this. The Moose version did nothing
247 different from its parent except introduce a bug. (Dave Rolsky)
248 - added tests for this (jdv79)
251 - Added a $VERSION to all .pm files which didn't have one. Fixes
252 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
254 * Moose::Cookbook::Basics::Recipe4
255 * Moose::Cookbook::Basics::Recipe6
256 - These files had spaces on the first line of the SYNOPSIS, as
257 opposed to a totally empty line. According to RT #40432, this
258 confuses POD parsers. (Dave Rolsky)
260 0.60 Fri October 24, 2008
262 - Passing "-traits" when loading Moose caused the Moose.pm
263 exports to be broken. Reported by t0m. (Dave Rolsky)
264 - Tests for this bug. (t0m)
267 - Change resolve_metaclass alias to use the new
268 load_first_existing_class function. This makes it a lot
269 simpler, and also around 5 times faster. (t0m)
270 - Add caching to resolve_metaclass_alias, which gives an order
271 of magnitude speedup to things which repeatedly call the
272 Moose::Meta::Attribute->does method, notably MooseX::Storage
275 * Moose::Util::TypeConstraint
276 - Put back the changes for parameterized constraints that
277 shouldn't have been removed in 0.59. We still cannot parse
278 them, but MooseX modules can create them in some other
279 way. See the 0.58 changes for more details. (jnapiorkowski)
280 - Changed the way subtypes are created so that the job is
281 delegated to a type constraint parent. This clears up some
282 hardcoded checking and should allow correct subtypes of
283 Moose::Meta::Type::Constraint. Don't rely on this new API too
284 much (create_child_type) because it may go away in the
285 future. (jnapiorkowski)
287 * Moose::Meta::TypeConstraint::Union
288 - Type constraint names are sorted as strings, not numbers.
291 * Moose::Meta::TypeConstraint::Parameterizable
292 - New parameterize method. This can be used as a factory method
293 to make a new type constraint with a given parameterized
294 type. (jnapiorkowski)
295 - added tests (jnapiorkowski)
297 0.59 Tue October 14, 2008
299 - Add abridged documentation for builder/default/initializer/
300 predicate, and link to more details sections in
301 Class::MOP::Attribute. (t0m)
303 * Moose::Util::TypeConstraints
304 - removed prototypes from all but the &-based stuff (mst)
306 * Moose::Util::TypeConstraints
307 - Creating a anonymous subtype with both a constraint and a
308 message failed with a very unhelpful error, but should just
309 work. Reported by t0m. (Dave Rolsky)
312 - Some tests that used Test::Warn if it was available failed
313 with older versions of Test::Warn. Reported by Fayland. (Dave
315 - Test firing behavior of triggers in relation to builder/default/
317 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
318 kinds of supported type. (t0m)
321 - In create(), do not pass "roles" option to the superclass
322 - added related test that creates an anon metaclass with
325 * Moose::Meta::TypeConstraint::Class
326 * Moose::Meta::TypeConstraint::Role
327 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
328 other types (as per change in 0.55_02). (t0m)
330 * Moose::Meta::TypeConstraint::Registry
331 - Fix warning when dealing with unknown type names (t0m)
333 * Moose::Util::TypeConstraints
334 - Reverted changes from 0.58 related to handle parameterized
335 types. This caused random failures on BSD and Win32 systems,
336 apparently related to the regex engine. This means that Moose
337 can no longer parse structured type constraints like
338 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
339 supported in a slightly different way via MooseX::Types some
340 time in the future. (Dave Rolsky)
342 0.58 Sat September 20, 2008
343 !! This release has an incompatible change regarding !!
344 !! how roles add methods to a class !!
346 * Roles and role application
347 ! Roles now add methods by calling add_method, not
348 alias_method. They make sure to always provide a method
349 object, which will be cloned internally. This means that it is
350 now possible to track the source of a method provided by a
351 role, and even follow its history through intermediate roles.
353 This means that methods added by a role now show up when
354 looking at a class's method list/map. (Dave Rolsky)
357 - From this release on, we'll try to maintain a list of
358 conflicting modules, and warn you if you have one
359 installed. For example, this release conflicts with ...
360 - MooseX::Singleton <= 0.11
361 - MooseX::Params::Validate <= 0.05
364 In general, we try to not break backwards compatibility for
365 most Moose users, but MooseX modules and other code which
366 extends Moose's metaclasses is often affected by very small
367 changes in the Moose internals.
369 * Moose::Meta::Method::Delegation
370 * Moose::Meta::Attribute
371 - Delegation methods now have their own method class. (Dave
374 * Moose::Meta::TypeConstraint::Parameterizable
375 - Added a new method 'parameterize' which is basically a factory
376 for the containing constraint. This makes it easier to create
377 new types of parameterized constraints. (jnapiorkowski)
379 * Moose::Meta::TypeConstraint::Union
380 - Changed the way Union types canonicalize their names to follow
381 the normalized TC naming rules, which means we strip all
382 whitespace. (jnapiorkowski)
384 * Moose::Util::TypeConstraints
385 - Parameter and Union args are now sorted, this makes Int|Str
386 the same constraint as Str|Int. (jnapiorkowski)
387 - Changes to the way Union types are parsed to more correctly
388 stringify their names. (jnapiorkowski)
389 - When creating a parameterized type, we now use the new
390 parameterize method. (jnapiorkowski)
391 - Incoming type constraint strings are now normalized to remove
392 all whitespace differences. (jnapiorkowski)
393 - Changed the way we parse type constraint strings so that we now
394 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
395 constraints. This lays the foundation for more flexible type
396 constraint implementations.
398 * Tests and docs for all the above. (jnapiorkowski)
402 - Moose::Exporter will no longer remove a subroutine that the
403 exporting package re-exports. Moose re-exports the
404 Carp::confess function, among others. The reasoning is that we
405 cannot know whether you have also explicitly imported those
406 functions for your own use, so we err on the safe side and
407 always keep them. (Dave Rolsky)
408 - added tests for this (rafl)
411 - Changes to how we fix metaclass compatibility that are much
412 too complicated to go into. The summary is that Moose is much
413 less likely to complain about metaclass incompatibility
414 now. In particular, if two metaclasses differ because
415 Moose::Util::MetaRole was used on the two corresponding
416 classes, then the difference in roles is reconciled for the
417 subclass's metaclass. (Dave Rolsky)
418 - Squashed an warning in _process_attribute (thepler)
421 - throw exceptions (sooner) for invalid attribute names (thepler)
422 - added tests for this (thepler)
424 * Moose::Util::MetaRole
425 - If you explicitly set a constructor or destructor class for a
426 metaclass object, and then applied roles to the metaclass,
427 that explicitly set class would be lost and replaced with the
431 * Moose::Meta::Attribute
432 * Moose::Meta::Method
435 * Moose::Error::Default
436 * Moose::Error::Croak
437 * Moose::Error::Confess
438 - All instances of confess() changed to use overridable
439 C<throw_error> method. This method ultimately calls a class
440 constructor, and you can change the class being called. In
441 addition, errors now pass more information than just a string.
442 The default C<error_class> behaves like C<Carp::confess>, so
443 the behavior is not visibly different for end users.
445 0.57 Wed September 3, 2008
447 - A new bit of doc intended to introduce folks familiar with
448 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
451 - Shows examples of two classes, each done first with and then
452 without Moose. This makes a nice parallel to
453 Moose::Intro. (Dave Rolsky)
455 * Moose::Util::TypeConstraints
456 - Fixed a bug in find_or_parse_type_constraint so that it
457 accepts a Moose::Meta::TypeConstraint object as the parent
458 type, not just a name (jnapiorkowski)
459 - added tests (jnapiorkowski)
462 - If Sub::Name was not present, unimporting failed to actually
463 remove some sugar subs, causing test failures (Dave Rolsky)
465 0.56 Mon September 1, 2008
466 For those not following the series of dev releases, there are
467 several major changes in this release of Moose.
468 ! Moose::init_meta should now be called as a method. See the
471 - Major performance improvements by nothingmuch.
473 - New modules for extension writers, Moose::Exporter and
474 Moose::Util::MetaRole by Dave Rolsky.
476 - Lots of doc improvements and additions, especially in the
481 * Removed all references to the experimental-but-no-longer-needed
482 Moose::Meta::Role::Application::ToMetaclassInstance.
484 * Require Class::MOP 0.65.
486 0.55_04 Sat August 30, 2008
487 * Moose::Util::MetaRole
488 * Moose::Cookbook::Extending::Recipe2
489 - This simplifies the application of roles to any meta class, as
490 well as the base object class. Reimplemented metaclass traits
491 using this module. (Dave Rolsky)
493 * Moose::Cookbook::Extending::Recipe1
494 - This a new recipe, an overview of various ways to write Moose
495 extensions (Dave Rolsky)
497 * Moose::Cookbook::Extending::Recipe3
498 * Moose::Cookbook::Extending::Recipe4
499 - These used to be Extending::Recipe1 and Extending::Recipe2,
502 0.55_03 Fri August 29, 2008
503 * No changes from 0.55_02 except increasing the Class::MOP
504 dependency to 0.64_07.
506 0.55_02 Fri August 29, 2008
507 * Makefile.PL and Moose.pm
508 - explicitly require Perl 5.8.0+ (Dave Rolsky)
510 * Moose::Util::TypeConstraints
511 - Fix warnings from find_type_constraint if the type is not
514 * Moose::Meta::TypeConstraint
515 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
516 return false if the type you specify cannot be found in the
517 type registry, rather than throwing an unhelpful and
518 coincidental exception. (t0m).
519 - added docs & test for this (t0m)
521 * Moose::Meta::TypeConstraint::Registry
522 - add_type_constraint now throws an exception if a parameter is
524 - added docs & test for this (t0m)
526 * Moose::Cookbook::FAQ
527 - Added a faq entry on the difference between "role" and "trait"
531 - Fixed a bug that caused role composition to not see a required
532 method when that method was provided by another role being
533 composed at the same time. (Dave Rolsky)
534 - test and bug finding (tokuhirom)
536 0.55_01 Wed August 20, 2008
538 !! Calling Moose::init_meta as a function is now !!
539 !! deprecated. Please see the Moose.pm docs for details. !!
541 * Moose::Meta::Method::Constructor
542 - Fix inlined constructor so that values produced by default
543 or builder methods are coerced as required. (t0m)
544 - added test for this (t0m)
546 * Moose::Meta::Attribute
547 - A lazy attribute with a default or builder did not attempt to
548 coerce the default value. The immutable code _did_
550 - added test for this (t0m)
553 - This is a new helper module for writing "Moose-alike"
554 modules. This should make the lives of MooseX module authors
555 much easier. (Dave Rolsky)
558 * Moose::Cookbook::Meta::Recipe5
559 - Implemented metaclass traits (and wrote a recipe for it):
561 use Moose -traits => 'Foo'
563 This should make writing small Moose extensions a little
566 * Moose::Cookbook::Basics::Recipe1
567 - Removed any examples of direct hashref access, and applied an
568 editorial axe to reduce verbosity. (Dave Rolsky)
570 * Moose::Cookbook::Basics::Recipe1
571 - Also applied an editorial axe here. (Dave Rolsky)
574 * Moose::Cookbook::Extending::Recipe1
575 * Moose::Cookbook::Extending::Recipe2
576 - Rewrote extending and embedding moose documentation and
577 recipes to use Moose::Exporter (Dave Rolsky)
581 - These two modules now warn when you load them from the main
582 package "main" package, because we will not export sugar to
583 main. Previously it just did nothing. (Dave Rolsky)
586 - Now provide an init_meta method just like Moose.pm, and you
587 can call this to provide an alternate role metaclass. (Dave
588 Rolsky and nothingmuch)
589 - get_method_map now respects the package cache flag (nothingmuch)
592 - Two new methods - add_method and wrap_method_body
596 - Optimizations including allowing constructors to accept hash
597 refs, making many more classes immutable, and making
598 constructors immutable. (nothingmuch)
600 0.55 Sun August 3, 2008
601 * Moose::Meta::Attribute
602 - breaking down the way 'handles' methods are
603 created so that the process can be more easily
604 overridden by subclasses (stevan)
606 * Moose::Meta::TypeConstraint
607 - fixing what is passed into a ->message with
608 the type constraints (RT #37569)
609 - added tests for this (Charles Alderman)
611 * Moose::Util::TypeConstraints
612 - fix coerce to accept anon types like subtype can (mst)
615 - reorganized the recipes into sections - Basics, Roles, Meta,
616 Extending - and wrote abstracts for each section (Dave Rolsky)
618 * Moose::Cookbook::Basics::Recipe10
619 - A new recipe that demonstrates operator overloading
620 in combination with Moose. (bluefeet)
622 * Moose::Cookbook::Meta::Recipe1
623 - an introduction to what meta is and why you'd want to make
624 your own metaclass extensions (Dave Rolsky)
626 * Moose::Cookbook::Meta::Recipe4
627 - a very simple metaclass example (Dave Rolsky)
629 * Moose::Cookbook::Extending::Recipe1
630 - how to write a Moose-alike module to use your own object base
633 * Moose::Cookbook::Extending::Recipe2
634 - how to write modules with an API just like C<Moose.pm> (Dave
638 - Tons of fixes, both syntactical and grammatical (Dave
639 Rolsky, Paul Fenwick)
641 0.54 Thurs. July 3, 2008
642 ... this is not my day today ...
644 * Moose::Meta::Attribute
645 - fixed legal_options_for_inheritance such that
646 clone_and_inherit options still works for
647 Class::MOP::Attribute objects and therefore
648 does not break MooseX::AttributeHelpers
651 0.53 Thurs. July 3, 2008
652 * Whoops, I guess I should run 'make manifest' before
653 actually releasing the module. No actual changes
654 in this release, except the fact that it includes
655 the changes that I didn't include in the last
658 0.52 Thurs. July 3, 2008
660 - added "FEATURE REQUESTS" section to the Moose docs
661 to properly direct people (stevan) (RT #34333)
662 - making 'extends' croak if it is passed a Role since
663 this is not ever something you want to do
664 (fixed by stevan, found by obra)
665 - added tests for this (stevan)
668 - adding support for DOES (as in UNIVERSAL::DOES)
670 - added test for this
672 * Moose::Meta::Attribute
673 - added legal_options_for_inheritance (wreis)
674 - added tests for this (wreis)
676 * Moose::Cookbook::Snacks::*
677 - removed some of the unfinished snacks that should
678 not have been released yet. Added some more examples
679 to the 'Keywords' snack. (stevan)
681 * Moose::Cookbook::Style
682 - added general Moose "style guide" of sorts to the
683 cookbook (nothingmuch) (RT #34335)
686 - added more BUILDARGS tests (stevan)
688 0.51 Thurs. Jun 26, 2008
690 - add unimport so "no Moose::Role" actually does
693 * Moose::Meta::Role::Application::ToRole
694 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
695 order to provide its own implementation, that method still got
696 added to the list of required methods for consumers of
697 RoleB. Now an aliased method is only added to the list of
698 required methods if the role doing the aliasing does not
699 provide its own implementation. See Recipe 11 for an example
700 of all this. (Dave Rolsky)
701 - added tests for this
703 * Moose::Meta::Method::Constructor
704 - when a single argument that wasn't a hashref was provided to
705 an immutabilized constructor, the error message was very
706 unhelpful, as opposed to the non-immutable error. Reported by
708 - added test for this (Dave Rolsky)
710 * Moose::Meta::Attribute
711 - added support for meta_attr->does("ShortAlias") (sartak)
712 - added tests for this (sartak)
713 - moved the bulk of the `handles` handling to the new
714 install_delegation method (Stevan)
717 - Added BUILDARGS, a new step in new()
719 * Moose::Meta::Role::Application::RoleSummation
720 - fix typos no one ever sees (sartak)
722 * Moose::Util::TypeConstraints
723 * Moose::Meta::TypeConstraint
724 * Moose::Meta::TypeCoercion
725 - Attempt to work around the ??{ } vs. threads issue
727 - Some null_constraint optimizations
729 0.50 Thurs. Jun 11, 2008
730 - Fixed a version number issue by bumping all modules
733 0.49 Thurs. Jun 11, 2008
734 !! This version now approx. 20-25% !!
735 !! faster with new Class::MOP 0.59 !!
737 * Moose::Meta::Attribute
738 - fixed how the is => (ro|rw) works with
739 custom defined reader, writer and accessor
741 - added docs for this (TODO).
742 - added tests for this (Thanks to Penfold)
743 - added the custom attribute alias for regular
744 Moose attributes which is "Moose"
745 - fix builder and default both being used
750 Moose::Meta::Attribute
752 Moose::Meta::Role::Composite
753 Moose::Util::TypeConstraints
754 - switched usage of reftype to ref because
758 - changing add_package_symbol to use the new
762 - fixed how DEMOLISHALL is called so that it
763 can be overrided in subclasses (thanks to Sartak)
764 - added test for this (thanks to Sartak)
766 * Moose::Util::TypeConstraints
767 - move the ClassName type check code to
768 Class::MOP::is_class_loaded (thanks to Sartak)
770 * Moose::Cookbook::Recipe11
771 - add tests for this (thanks to tokuhirom)
773 0.48 Thurs. May 29, 2008
774 (early morning release engineering)--
776 - fixing the version in Moose::Meta::Method::Destructor
777 which was causing the indexer to choke
779 0.47 Thurs. May 29, 2008
780 (late night release engineering)--
782 - fixing the version is META.yml, no functional
783 changes in this release
785 0.46 Wed. May 28, 2008
786 !! This version now approx. 20-25% !!
787 !! faster with new Class::MOP 0.57 !!
790 - some optimizations of the &initialize method
791 since it is called so often by &meta
795 - now use the get_all_package_symbols from the
796 updated Class::MOP, test suite is now 10 seconds
799 * Moose::Meta::Method::Destructor
800 - is_needed can now also be called as a class
801 method for immutablization to check if the
802 destructor object even needs to be created
805 * Moose::Meta::Method::Destructor
806 Moose::Meta::Method::Constructor
807 - added more descriptive error message to help
808 keep people from wasting time tracking an error
809 that is easily fixed by upgrading.
811 0.45 Saturday, May 24, 2008
813 - Because of work in Class::MOP 0.57, all
814 XS based functionality is now optional
815 and a Pure Perl version is supplied
816 - the CLASS_MOP_NO_XS environment variable
817 can now be used to force non-XS versions
819 - several of the packages have been tweaked
820 to take care of this, mostly we added
821 support for the package_name and name
822 variables in all the Method metaclasses
823 - before/around/after method modifiers now
824 support regexp matching of names
825 (thanks to Takatoshi Kitano)
826 - tests added for this
827 - NOTE: this only works for classes, it
828 is currently not supported in roles,
829 but, ... patches welcome
830 - All usage of Carp::confess have been replaced
831 by Carp::croak in the "keyword" functions since
832 the stack trace is usually not helpful
835 - All usage of Carp::confess have been replaced
836 by Carp::croak in the "keyword" functions since
837 the stack trace is usually not helpful
838 - The 'has' keyword for roles now accepts the
839 same array ref form that Moose.pm does
840 (has [qw/foo bar/] => (is => 'rw', ...))
841 - added test for this
843 * Moose::Meta::Attribute
844 - trigger on a ro-attribute is no longer an
845 error, as it's useful to trigger off of the
849 - added same 'add_package_symbol' fix as in
853 - does_role now handles non-Moose classes
855 - added tests for this
856 - added the 'add_method_modifier' function
857 (thanks to Takatoshi Kitano)
859 * Moose::Util::TypeConstraints
860 - subtypes of parameterizable types now are
861 themselves parameterizable types
863 * Moose::Meta::Method::Constructor
864 - fixed bug where trigger was not being
865 called by the inlined immutable
867 - added test for this (thanks to Caelum)
869 * Moose::Meta::Role::Application::ToInstance
870 - now uses the metaclass of the instance
871 (if possible) to create the anon-class
872 (thanks Jonathan Rockway)
874 * Moose::Cookbook::Recipe22
875 - added the meta-attribute trait recipe
879 - fixed hash-ordering test bug that was
880 causing occasional cpantester failures
881 - renamed the t/000_recipe/*.t tests to be
882 more descriptive (thanks to Sartak)
884 0.44 Sat. May 10, 2008
886 - made make_immutable warning cluck to
887 show where the error is (thanks mst)
890 - BUILDALL and DEMOLISHALL now call
891 ->body when looping through the
892 methods, to avoid the overloaded
894 - fixed issue where DEMOLISHALL was
895 eating the $@ values, and so not
896 working correctly, it still kind of
897 eats them, but so does vanilla perl
898 - added tests for this
900 * Moose::Cookbook::Recipe7
901 - added new recipe for immutable
902 functionality (thanks Dave Rolsky)
904 * Moose::Cookbook::Recipe9
905 - added new recipe for builder and
906 lazy_build (thanks Dave Rolsky)
908 * Moose::Cookbook::Recipe11
909 - added new recipe for method aliasing
910 and exclusion with Roles (thanks Dave Rolsky)
913 - fixed Win32 test failure (thanks spicyjack)
915 ~ removed Build.PL and Module::Build compat
916 since Module::Install has done that.
918 0.43 Wed. April, 30, 2008
920 drink more coffee before
921 doing release engineering
923 - whoops, forgot to do the smolder tests,
924 and we broke some of the custom meta-attr
925 modules. This fixes that.
927 0.42 Mon. April 28, 2008
928 - some bad tests slipped by, nothing else
929 changed in this release (cpantesters++)
931 - upped the Class::MOP dependency to 0.55
932 since we have tests which need the C3
935 0.41 Mon. April 28, 2008
936 ~~ numerous documentation updates ~~
938 - Changed all usage of die to Carp::croak for better
939 error reporting (initial patch by Tod Hagan)
942 - the make_immutable keyword is now deprecated, don't
943 use it in any new code and please fix your old code
944 as well. There will be 2 releases, and then it will
950 - refactored the way inner and super work to avoid
951 any method/@ISA cache penalty (nothingmuch)
954 - fixing &new_object to make sure trigger gets the
955 coerced value (spotted by Charles Alderman on the
957 - added test for this
959 * Moose::Meta::Method::Constructor
960 - immutable classes which had non-lazy attributes were calling
961 the default generating sub twice in the constructor. (bug
962 found by Jesse Luehrs, fixed by Dave Rolsky)
963 - added tests for this (Dave Rolsky)
964 - fix typo in initialize_body method (nothingmuch)
966 * Moose::Meta::Method::Destructor
967 - fix typo in initialize_body method (nothingmuch)
969 * Moose::Meta::Method::Overriden
970 Moose::Meta::Method::Augmented
971 - moved the logic for these into their own
972 classes (nothingmuch)
974 * Moose::Meta::Attribute
975 - inherited attributes may now be extended without
976 restriction on the type ('isa', 'does') (Sartak)
977 - added tests for this (Sartak)
978 - when an attribute property is malformed (such as lazy without
979 a default), give the name of the attribute in the error
981 - added the &applied_traits and &has_applied_traits methods
982 to allow introspection of traits
983 - added tests for this
984 - moved 'trait' and 'metaclass' argument handling to here from
986 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
987 '+foo' syntax) (nothingmuch)
988 - added tests for this (t0m)
991 - localize $@ inside DEMOLISHALL to avoid it
992 eating $@ (found by Ernesto)
993 - added test for this (thanks to Ernesto)
995 * Moose::Util::TypeConstraints
996 - &find_type_constraint now DWIMs when given an
997 type constraint object or name (nothingmuch)
998 - &find_or_create_type_constraint superseded with a number of more
1000 - find_or_create_{isa,does}_type_constraint
1001 - find_or_parse_type_constraint
1003 * Moose::Meta::TypeConstraint
1004 Moose::Meta::TypeConstraint::Class
1005 Moose::Meta::TypeConstraint::Role
1006 Moose::Meta::TypeConstraint::Enum
1007 Moose::Meta::TypeConstraint::Union
1008 Moose::Meta::TypeConstraint::Parameterized
1009 - added the &equals method for comparing two type
1010 constraints (nothingmuch)
1011 - added tests for this (nothingmuch)
1013 * Moose::Meta::TypeConstraint
1014 - add the &parents method, which is just an alias to &parent.
1015 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1017 * Moose::Meta::TypeConstraint::Class
1018 - added the class attribute for introspection purposes
1020 - added tests for this
1022 * Moose::Meta::TypeConstraint::Enum
1023 Moose::Meta::TypeConstraint::Role
1024 - broke these out into their own classes (nothingmuch)
1026 * Moose::Cookbook::Recipe*
1027 - fixed references to test file locations in the POD
1028 and updated up some text for new Moose features
1032 - Added &resolve_metaclass_alias, a helper function for finding an actual
1033 class for a short name (e.g. in the traits list)
1035 0.40 Fri. March 14, 2008
1036 - I hate Pod::Coverage
1038 0.39 Fri. March 14, 2008
1040 - documenting the use of '+name' with attributes
1041 that come from recently composed roles. It makes
1042 sense, people are using it, and so why not just
1043 officially support it.
1044 - fixing the 'extends' keyword so that it will not
1045 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1048 - added the perl -Moose=+Class::Name feature to allow
1049 monkeypatching of classes in one liners
1052 - fixing the 'apply_all_roles' keyword so that it will not
1053 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1055 * Moose::Meta::Class
1056 - added ->create method which now supports roles (thanks to jrockway)
1057 - added tests for this
1058 - added ->create_anon_class which now supports roles and caching of
1059 the results (thanks to jrockway)
1060 - added tests for this
1061 - made ->does_role a little more forgiving when it is
1062 checking a Class::MOP era metaclasses.
1064 * Moose::Meta::Role::Application::ToInstance
1065 - it is now possible to pass extra params to be used when
1066 a role is applied to an the instance (rebless_params)
1067 - added tests for this
1069 * Moose::Util::TypeConstraints
1070 - class_type now accepts an optional second argument for a
1071 custom message. POD anotated accordingly (groditi)
1072 - added tests for this
1073 - it is now possible to make anon-enums by passing 'enum' an
1074 ARRAY ref instead of the $name => @values. Everything else
1076 - added tests for this
1079 - making test for using '+name' on attributes consumed
1080 from a role, it works and makes sense too.
1082 * Moose::Meta::Attribute
1083 - fix handles so that it doesn't return nothing
1084 when the method cannot be found, not sure why
1085 it ever did this originally, this means we now
1086 have slightly better support for AUTOLOADed
1088 - added more delegation tests
1089 - adding ->does method to this so as to better
1090 support traits and their introspection.
1091 - added tests for this
1094 - localizing the Data::Dumper configurations so
1095 that it does not pollute others (RT #33509)
1096 - made ->does a little more forgiving when it is
1097 passed Class::MOP era metaclasses.
1099 0.38 Fri. Feb. 15, 2008
1100 * Moose::Meta::Attribute
1101 - fixed initializer to correctly do
1102 type checking and coercion in the
1104 - added tests for this
1107 - fixed some finicky tests (thanks to konobi)
1109 0.37 Thurs. Feb. 14, 2008
1111 - fixed some details in Moose::init_meta
1112 and its superclass handling (thanks thepler)
1113 - added tests for this (thanks thepler)
1114 - 'has' now dies if you don't pass in name
1116 - added the 'make_immutable' keyword as a shortcut
1119 * Moose::Meta::Class
1120 Moose::Meta::Method::Constructor
1121 Moose::Meta::Attribute
1122 - making (init_arg => undef) work here too
1123 (thanks to nothingmuch)
1125 * Moose::Meta::Attribute
1126 Moose::Meta::Method::Constructor
1127 Moose::Meta::Method::Accessor
1128 - make lazy attributes respect attr initializers (rjbs)
1129 - added tests for this
1131 * Moose::Util::TypeConstraints
1132 Moose::Util::TypeConstraints::OptimizedConstraints
1133 Moose::Meta::TypeConstraints
1134 Moose::Meta::Attribute
1135 Moose::Meta::Method::Constructor
1136 Moose::Meta::Method::Accessor
1137 - making type errors use the
1138 assigned message (thanks to Sartak)
1139 - added tests for this
1141 * Moose::Meta::Method::Destructor
1142 - making sure DESTROY gets inlined properly
1143 with successive DEMOLISH calls (thanks to manito)
1145 * Moose::Meta::Attribute
1146 Moose::Meta::Method::Accessor
1147 - fixed handling of undef with type constraints
1149 - added tests for this
1152 - added &get_all_init_args and &get_all_attribute_values
1153 (thanks to Sartak and nothingmuch)
1155 0.36 Sat. Jan. 26, 2008
1157 Moose::Meta::Attribute
1158 - role type tests now support when roles are
1159 applied to non-Moose classes (found by ash)
1160 - added tests for this (thanks to ash)
1161 - couple extra tests to boost code coverage
1163 * Moose::Meta::Method::Constructor
1164 - improved fix for handling Class::MOP attributes
1165 - added test for this
1167 * Moose::Meta::Class
1168 - handled the add_attribute($attribute_meta_object)
1170 - added test for this
1172 0.35 Tues. Jan. 22, 2008
1173 * Moose::Meta::Method::Constructor
1174 - fix to make sure even Class::MOP attributes
1175 are handled correctly (Thanks to Dave Rolsky)
1176 - added test for this (also Dave Rolsky)
1178 * Moose::Meta::Class
1179 - improved error message on _apply_all_roles,
1180 you should now use Moose::Util::apply_all_roles
1181 and you shouldnt have been using a _ prefixed
1182 method in the first place ;)
1184 0.34 Mon. Jan. 21, 2008
1185 ~~~ more misc. doc. fixes ~~~
1186 ~~ updated copyright dates ~~
1188 Moose is now a postmodern object system :)
1189 - (see the POD for details)
1191 * <<Role System Refactoring>>
1192 - this release contains a major reworking and
1193 cleanup of the role system
1194 - 100% backwards compat.
1195 - Role application now restructured into seperate
1196 classes based on type of applicants
1197 - Role summation (combining of more than one role)
1198 is much cleaner and anon-classes are no longer
1199 used in this process
1200 - new Composite role metaclass
1201 - runtime application of roles to instances
1202 is now more efficient and re-uses generated
1203 classes when applicable
1205 * <<New Role composition features>>
1206 - methods can now be excluded from a given role
1208 - methods can now be aliased to another name (and
1209 still retain the original as well)
1211 * Moose::Util::TypeConstraints::OptimizedConstraints
1212 - added this module (see above)
1214 * Moose::Meta::Class
1215 - fixed the &_process_attribute method to be called
1216 by &add_attribute, so that the API is now correct
1218 * Moose::Meta::Method::Accessor
1219 - fixed bug when passing a list of values to
1220 an accessor would get (incorrectly) ignored.
1221 Thanks to Sartak for finding this ;)
1222 - added tests for this (Sartak again)
1224 * Moose::Meta::Method::Accessor
1225 Moose::Meta::Method::Constructor
1226 Moose::Meta::Attribute
1227 Moose::Meta::TypeConstraint
1228 Moose::Meta::TypeCoercion
1229 - lots of cleanup of such things as:
1231 - type constraint handling
1232 - error handling/messages
1233 (thanks to nothingmuch)
1235 * Moose::Meta::TypeConstraint::Parameterizable
1236 - added this module to support the refactor
1237 in Moose::Meta::TypeConstraint::Parameterized
1239 * Moose::Meta::TypeConstraint::Parameterized
1240 - refactored how these types are handled so they
1241 are more generic and not confined to ArrayRef
1245 - shortened some file names for better VMS support (RT #32381)
1247 0.33 Fri. Dec. 14, 2007
1248 !! Moose now loads 2 x faster !!
1249 !! with new Class::MOP 0.49 !!
1251 ++ new oose.pm module to make command line
1252 Moose-ness easier (see POD docs for more)
1254 * Moose::Meta::Class
1256 - several tweaks to take advantage of the
1257 new method map caching in Class::MOP
1259 * Moose::Meta::TypeConstraint::Parameterized
1260 - allow subtypes of ArrayRef and HashRef to
1261 be used as a container (sartak)
1262 - added tests for this
1263 - basic support for coercion to ArrayRef and
1264 HashRef for containers (sartak)
1265 - added tests for this
1267 * Moose::Meta::TypeCoercion
1268 - coercions will now create subtypes as needed
1269 so you can now add coercions to parameterized
1270 types without having to explictly define them
1271 - added tests for this
1273 * Moose::Meta::Method::Accessor
1274 - allow subclasses to decide whether we need
1275 to copy the value into a new variable (sartak)
1277 0.32 Tues. Dec. 4, 2007
1278 * Moose::Util::TypeConstraints
1279 - fixing how subtype aliases of unions work
1280 they should inherit the parent's coercion
1281 - added tests for this
1282 - you can now define multiple coercions on
1283 a single type at different times instead of
1284 having to do it all in one place
1285 - added tests for this
1287 * Moose::Meta::TypeConstraint
1288 - there is now a default constraint of sub { 1 }
1289 instead of Moose::Util::TypeConstraints setting
1292 * Moose::Meta::TypeCoercion
1293 * Moose::Meta::TypeCoercion::Union
1294 - added the &has_coercion_for_type and
1295 &add_type_coercions methods to support the
1296 new features above (although you cannot add
1297 more type coercions for Union types)
1299 0.31 Mon. Nov. 26, 2007
1300 * Moose::Meta::Attribute
1301 - made the +attr syntax handle extending types with
1302 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1303 now works if the original foo is an ArrayRef.
1304 - added tests for this.
1305 - delegation now works even if the attribute does not
1306 have a reader method using the get_read_method_ref
1307 method from Class::MOP::Attribute.
1308 - added tests for this
1309 - added docs for this
1311 * Moose::Util::TypeConstraints
1312 - passing no "additional attribute info" to
1313 &find_or_create_type_constraint will no longer
1314 attempt to create an __ANON__ type for you,
1315 instead it will just return undef.
1316 - added docs for this
1318 0.30 Fri. Nov. 23, 2007
1319 * Moose::Meta::Method::Constructor
1320 -builder related bug in inlined constructor. (groditi)
1322 * Moose::Meta::Method::Accessor
1323 - genereate unnecessary calls to predicates and refactor
1324 code generation for runtime speed (groditi)
1326 * Moose::Util::TypeConstraints
1327 - fix ClassName constraint to introspect symbol table (mst)
1328 - added more tests for this (mst)
1329 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1330 with work correctly.
1331 - added tests for this
1334 - adding the link to Recipie 11 (written by Sartak)
1335 - adding test for SYNOPSIS code
1338 - New tests for builder bug. Upon instantiation, if an
1339 attribute had a builder, no value and was not lazy the
1340 builder default was not getting run, oops. (groditi)
1342 0.29 Tues. Nov. 13, 2007
1343 * Moose::Meta::Attribute
1344 - Fix error message on missing builder method (groditi)
1346 * Moose::Meta::Method::Accessor
1347 - Fix error message on missing builder method (groditi)
1350 - Add test to check for the correct error message when
1351 builder method is missing (groditi)
1353 0.28 Tues. Nov. 13, 2007
1354 - 0.27 packaged incorrectly (groditi)
1356 0.27 Tues. Nov. 13, 2007
1357 * Moose::Meta::Attribute
1358 - Added support for the new builder option (groditi)
1359 - Added support for lazy_build option (groditi)
1360 - Changed slot initialization for predicate changes (groditi)
1362 * Moose::Meta::Method::Accessor
1363 - Added support for lazy_build option (groditi)
1364 - Fix inline methods to work with corrected predicate
1367 * Moose::Meta::Method::Constructor
1368 - Added support for lazy_build option (groditi)
1371 - tests for builder and lazy_build (groditi)
1373 * fixing some misc. bits in the docs that
1374 got mentioned on CPAN Forum & perlmonks
1377 - fixed how required methods are handled
1378 when they encounter overriden or modified
1379 methods from a class (thanks to confound).
1380 - added tests for this
1382 * Moose::Util::TypeConstraint
1383 - fixed the type notation parser so that
1384 the | always creates a union and so is
1385 no longer a valid type char (thanks to
1386 konobi, mugwump and #moose for working
1388 - added more tests for this
1390 0.26 Thurs. Sept. 27, 2007
1393 * Parameterized Types
1394 We now support parameterized collection types, such as:
1395 ArrayRef[Int] # array or integers
1396 HashRef[Object] # a hash with object values
1397 They can also be nested:
1398 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1399 And work with the type unions as well:
1400 ArrayRef[Int | Str] # array of integers of strings
1402 * Better Framework Extendability
1403 Moose.pm is now "extendable" such that it is now much
1404 easier to extend the framework and add your own keywords
1405 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1406 section of the Moose.pm docs.
1409 In an effort to begin documenting some of the various
1410 details of Moose as well as some common idioms, we have
1411 created Moose::Cookbook::Snacks as a place to find
1412 small (easily digestable) nuggets of Moose code.
1415 ~ Several doc updates/cleanup thanks to castaway ~
1417 - converted build system to use Module::Install instead of
1418 Module::Build (thanks to jrockway)
1421 - added all the meta classes to the immutable list and
1422 set it to inline the accessors
1423 - fix import to allow Sub::Exporter like { into => }
1424 and { into_level => } (perigrin)
1425 - exposed and documented init_meta() to allow better
1426 embedding and extending of Moose (perigrin)
1429 - complete re-organization of the test suite
1430 - added some new tests as well
1431 - finally re-enabled the Moose::POOP test since
1432 the new version of DBM::Deep now works again
1435 * Moose::Meta::Class
1436 - fixed very odd and very nasty recursion bug with
1438 - added tests for this (eilara)
1440 * Moose::Meta::Attribute
1441 Moose::Meta::Method::Constructor
1442 Moose::Meta::Method::Accessor
1443 - fixed issue with overload::Overloaded getting called
1444 on non-blessed items. (RT #29269)
1445 - added tests for this
1447 * Moose::Meta::Method::Accessor
1448 - fixed issue with generated accessor code making
1449 assumptions about hash based classes (thanks to dexter)
1451 * Moose::Coookbook::Snacks
1452 - these are bits of documentation, not quite as big as
1453 Recipes but which have no clear place in the module docs.
1454 So they are Snacks! (horray for castaway++)
1456 * Moose::Cookbook::Recipe4
1457 - updated it to use the new ArrayRef[MyType] construct
1458 - updated the accompanying test as well
1460 +++ Major Refactor of the Type Constraint system +++
1461 +++ with new features added as well +++
1463 * Moose::Util::TypeConstraint
1464 - no longer uses package variable to keep track of
1465 the type constraints, now uses the an instance of
1466 Moose::Meta::TypeConstraint::Registry to do it
1467 - added more sophisticated type notation parsing
1469 - added tests for this
1471 * Moose::Meta::TypeConstraint
1472 - some minor adjustments to make subclassing easier
1473 - added the package_defined_in attribute so that we
1474 can track where the type constraints are created
1476 * Moose::Meta::TypeConstraint::Union
1477 - this is now been refactored to be a subclass of
1478 Moose::Meta::TypeConstraint
1480 * Moose::Meta::TypeCoercion::Union
1481 - this has been added to service the newly refactored
1482 Moose::Meta::TypeConstraint::Union and is itself
1483 a subclass of Moose::Meta::TypeCoercion
1485 * Moose::Meta::TypeConstraint::Parameterized
1486 - added this module (taken from MooseX::AttributeHelpers)
1487 to help construct nested collection types
1488 - added tests for this
1490 * Moose::Meta::TypeConstraint::Registry
1491 - added this class to keep track of type constraints
1493 0.25 Mon. Aug. 13, 2007
1495 - Documentation update to reference Moose::Util::TypeConstraints
1496 under 'isa' in 'has' for how to define a new type
1497 (thanks to shlomif).
1499 * Moose::Meta::Attribute
1500 - required attributes now will no longer accept undef
1501 from the constructor, even if there is a default and lazy
1502 - added tests for this
1503 - default subroutines must return a value which passes the
1505 - added tests for this
1507 * Moose::Meta::Attribute
1508 * Moose::Meta::Method::Constructor
1509 * Moose::Meta::Method::Accessor
1510 - type-constraint tests now handle overloaded objects correctly
1511 in the error message
1512 - added tests for this (thanks to EvanCarroll)
1514 * Moose::Meta::TypeConstraint::Union
1515 - added (has_)hand_optimized_constraint to this class so that
1516 it behaves as the regular Moose::Meta::TypeConstraint does.
1519 - large refactoring of this code
1520 - added several more tests
1521 - tests for subtle conflict resolition issues
1522 added, but not currently running
1525 * Moose::Cookbook::Recipe7
1526 - added new recipe for augment/inner functionality
1528 - added test for this
1531 - a formal definition of roles (still in progress)
1534 - utilities for easier working with Moose classes
1535 - added tests for these
1538 - This contains Moose specific test functions
1539 - added tests for these
1541 0.24 Tues. July 3, 2007
1542 ~ Some doc updates/cleanup ~
1544 * Moose::Meta::Attribute
1545 - added support for roles to be given as parameters
1546 to the 'handles' option.
1547 - added tests and docs for this
1548 - the has '+foo' attribute form now accepts changes to
1549 the lazy option, and the addition of a handles option
1550 (but not changing the handles option)
1551 - added tests and docs for this
1554 - required methods are now fetched using find_method_by_name
1555 so that required methods can come from superclasses
1556 - adjusted tests for this
1558 0.23 Mon. June 18, 2007
1559 * Moose::Meta::Method::Constructor
1560 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1561 * Moose::Meta::Class
1562 - Modify make_immutable to work with the new Class::MOP immutable
1563 mechanism + POD + very basic test (groditi)
1564 * Moose::Meta::Attribute
1565 - Fix handles to use goto() so that caller() comes out properly on
1566 the other side (perigrin)
1568 0.22 Thurs. May 31, 2007
1569 * Moose::Util::TypeConstraints
1570 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1571 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1572 prototypes for functions
1573 - added the ClassName type constraint, this checks for strings
1574 which will respond true to ->isa(UNIVERSAL).
1575 - added tests and docs for this
1576 - subtyping just in name now works correctly by making the
1577 default for where be { 1 }
1578 - added test for this
1580 * Moose::Meta::Method::Accessor
1581 - coerce and lazy now work together correctly, thanks to
1582 merlyn for finding this bug
1583 - tests added for this
1584 - fix reader presedence bug in Moose::Meta::Attribute + tests
1587 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1588 a HASH-ref and missed. This produces better error messages then
1589 having it die cause undef is not a HASH.
1590 - added tests for this
1592 0.21 Thursday, May 2nd, 2007
1594 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1595 - modified unimport to remove super and inner along with the rest
1596 - altered unimport tests to handle this
1599 - altered super export to populate SUPER_SLOT
1601 * Moose::Meta::Class
1602 - altered augment and override modifier application to use *_SLOT
1603 - modified tests for these to unimport one test class each to test
1606 - fixed issue where custom attribute metaclasses
1607 where not handled correctly in roles
1608 - added tests for this
1610 * Moose::Meta::Class
1611 - fixed issue where extending metaclasses with
1612 roles would blow up. Thanks to Aankhen`` for
1613 finding this insidious error, and it's solution.
1615 ~~ lots of spelling and grammer fixes in the docs,
1616 many many thanks to rlb3 and Aankhen for these :)
1618 0.20 Friday, April 6th, 2007
1619 >> I messed up the SKIP logic in one test
1620 so this release is just to fix that.
1623 - 'has' now also accepts an ARRAY ref
1624 to create multiple attrs (see docs)
1625 (thanks to konobi for this)
1626 - added tests and docs
1628 0.19 Thurs. April 5th, 2007
1629 ~~ More documentation updates ~~
1631 * Moose::Util::TypeConstraints
1632 - 'type' now supports messages as well
1633 thanks to phaylon for finding this
1634 - added tests for this
1635 - added &list_all_type_constraints and
1636 &list_all_builtin_type_constraints
1637 functions to facilitate introspection.
1639 * Moose::Meta::Attribute
1640 - fixed regexp 'handles' declarations
1641 to build the list of delegated methods
1642 correctly (and not override important
1643 things like &new) thanks to ashleyb
1645 - added tests and docs for this
1646 - added the 'documentation' attributes
1647 so that you can actually document your
1648 attributes and inspect them through the
1650 - added tests and docs for this
1652 * Moose::Meta::Class
1653 - when loading custom attribute metaclasses
1654 it will first look in for the class in the
1655 Moose::Meta::Attribute::Custom::$name, and
1656 then default to just loading $name.
1657 - added tests and docs for this
1659 * Moose::Meta::TypeConstraint
1660 - type constraints now stringify to their names.
1661 - added test for this
1664 - added tests to assure we work with Module::Refresh
1665 - added stricter test skip logic in the Moose POOP
1666 test, ask Rob Kinyon why.
1667 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1669 0.18 Sat. March 10, 2007
1670 ~~ Many, many documentation updates ~~
1673 - We now use Class::MOP::load_class to
1675 - added tests to show types and subtypes
1676 working with Declare::Constraints::Simple
1677 and Test::Deep as constraint engines.
1680 !! You must have Class::MOP 0.37_001 !!
1681 !! for this developer release to work !!
1683 This release was primarily adding the immutable
1684 feature to Moose. An immutable class is one which
1685 you promise not to alter. When you set the class
1686 as immutable it will perform various bits of
1687 memoization and inline certain part of the code
1688 (constructors, destructors and accessors). This
1689 minimizes (and in some cases totally eliminates)
1690 one of Moose's biggest performance hits. This
1691 feature is not on by default, and is 100% optional.
1692 It has several configurable bits as well, so you
1693 can pick and choose to your specific needs.
1695 The changes involved in this were fairly wide and
1696 highly specific, but 100% backwards compatible, so
1697 I am not going to enumerate them here. If you are
1698 truely interested in what was changed, please do
1701 0.17 Tues. Nov. 14, 2006
1702 * Moose::Meta::Method::Accessor
1703 - bugfix for read-only accessors which
1704 are have a type constraint and lazy.
1705 Thanks to chansen for finding it.
1707 0.16 Tues. Nov. 14, 2006
1709 There are some speed improvements in this release,
1710 but they are only the begining, so stay tuned.
1713 - BUILDALL and DEMOLISHALL no longer get
1714 called unless they actually need to be.
1715 This gave us a signifigant speed boost
1716 for the cases when there is no BUILD or
1717 DEMOLISH method present.
1719 * Moose::Util::TypeConstraints
1720 * Moose::Meta::TypeConstraint
1721 - added an 'optimize_as' option to the
1722 type constraint, which allows for a
1723 hand optimized version of the type
1724 constraint to be used when possible.
1725 - Any internally created type constraints
1726 now provide an optimized version as well.
1728 0.15 Sun. Nov. 5, 2006
1730 This version of Moose *must* have Class::MOP 0.36 in order
1731 to work correctly. A number of small internal tweaks have
1732 been made in order to be compatible with that release.
1734 * Moose::Util::TypeConstraints
1735 - added &unimport so that you can clean out
1736 your class namespace of these exported
1739 * Moose::Meta::Class
1740 - fixed minor issue which occasionally
1741 comes up during global destruction
1743 - moved Moose::Meta::Method::Overriden into
1747 - moved Moose::Meta::Role::Method into
1750 * Moose::Meta::Attribute
1751 - changed how we do type checks so that
1752 we reduce the overall cost, but still
1755 - moved accessor generation methods to
1756 Moose::Meta::Method::Accessor to
1757 conform to the API changes from
1760 * Moose::Meta::TypeConstraint
1761 - changed how constraints are compiled
1762 so that we do less recursion and more
1763 iteration. This makes the type check
1765 - moved Moose::Meta::TypeConstraint::Union
1768 * Moose::Meta::Method::Accessor
1769 - created this from methods formerly found in
1770 Moose::Meta::Attribute
1772 * Moose::Meta::Role::Method
1773 - moved this from Moose::Meta::Role
1775 * Moose::Meta::Method::Overriden
1776 - moved this from Moose::Meta::Class
1778 * Moose::Meta::TypeConstraint::Union
1779 - moved this from Moose::Meta::TypeConstraint
1781 0.14 Mon. Oct. 9, 2006
1783 * Moose::Meta::Attribute
1784 - fixed lazy attributes which were not getting
1785 checked with the type constraint (thanks ashley)
1786 - added tests for this
1787 - removed the over-enthusiastic DWIMery of the
1788 automatic ArrayRef and HashRef defaults, it
1789 broke predicates in an ugly way.
1790 - removed tests for this
1792 0.13 Sat. Sept. 30, 2006
1794 This version of Moose *must* have Class::MOP 0.35 in order
1795 to work correctly. A number of small internal tweaks have
1796 been made in order to be compatible with that release.
1799 - Removed the use of UNIVERSAL::require to be a better
1800 symbol table citizen and remove a dependency
1801 (thanks Adam Kennedy)
1803 **~~ removed experimental & undocumented feature ~~**
1804 - commented out the 'method' and 'self' keywords, see the
1805 comments for more info.
1808 - added a FAQ and WTF files to document frequently
1809 asked questions and common problems
1811 * Moose::Util::TypeConstraints
1812 - added GlobRef and FileHandle type constraint
1813 - added tests for this
1815 * Moose::Meta::Attribute
1816 - if your attribute 'isa' ArrayRef of HashRef, and you have
1817 not explicitly set a default, then make the default DWIM.
1818 This will also work for subtypes of ArrayRef and HashRef
1820 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1821 - new test added for this (thanks to ashley)
1824 - added basic support for runtime role composition
1825 but this is still *highly experimental*, so feedback
1826 is much appreciated :)
1827 - added tests for this
1829 * Moose::Meta::TypeConstraint
1830 - the type constraint now handles the coercion process
1831 through delegation, this is to support the coercion
1834 * Moose::Meta::TypeConstraint::Union
1835 - it is now possible for coercions to be performed
1837 - added tests for this (thanks to konobi)
1839 * Moose::Meta::TypeCoercion
1840 - properly capturing error when type constraint
1844 - Scalar::Util 1.18 is bad on Win32, so temporarily
1845 only require version 1.17 for Win32 and cygwin.
1846 (thanks Adam Kennedy)
1848 0.12 Sat. Sept. 1, 2006
1850 - Recipe5 (subtypes & coercion) has been written
1853 - fixed "bad meta" error message to be more descriptive
1854 - fixed &unimport to not remove the &inner and &super
1855 keywords because we need to localize them.
1856 - fixed number of spelling/grammer issues, thanks Theory :)
1858 **~~ experimental & undocumented feature ~~**
1859 - added the method and self keywords, they are basically
1860 just sugar, and they may not stay around.
1863 - added &dump method to easily Data::Dumper
1866 * Moose::Meta::TypeConstraint
1867 - added the &is_a_type_of method to check both the current
1868 and the subtype of a method (similar to &isa with classes)
1871 - this is now a subclass of Class::MOP::Module, and no longer
1872 creates the _role_meta ugliness of before.
1873 - fixed tests to reflect this change
1875 0.11 Wed. July 12, 2006
1877 - added an &unimport method to remove all the keywords
1878 that Moose will import, simply add 'no Moose' to the
1879 bottom of your class file.
1882 - fixed some test failures caused by a forgotten test
1885 0.10 Thurs. July 6, 2006
1887 - improved error message when loading modules so
1888 it is less confusing when you load a role.
1889 - added &calculate_all_roles method to
1890 Moose::Meta::Class and Moose::Meta::Role
1893 This module has been tested against Class::MOP 0.30
1894 but it does not yet utilize the optimizations
1895 it makes available. Stay tuned for that ;)
1897 0.09_03 Fri. June 23, 2006
1898 ++ DEVELOPER RELEASE ++
1900 - 'use strict' and 'use warnings' are no longer
1901 needed in Moose classes, Moose itself will
1902 turn them on for you.
1903 - added tests for this
1904 - moved code from exported subs to private methods
1905 in Moose::Meta::Class
1908 - as with Moose, strict and warnings are
1909 automatically turned on for you.
1910 - added tests for this
1913 - now handles an edge case for override errors
1914 - added tests for this
1915 - added some more edge case tests
1917 0.09_02 Tues. May 16, 2006
1918 ++ DEVELOPER RELEASE ++
1920 - added prototypes to the exported subs
1924 - added prototypes to the exported subs
1927 * Moose::Util::TypeConstraints
1928 - cleaned up prototypes for the subs
1931 0.09_01 Fri. May 12, 2006
1932 ++ DEVELOPER RELEASE ++
1933 - This release works in combination with
1934 Class::MOP 0.29_01, it is a developer
1935 release because it uses the a new
1936 instance sub-protocol and a fairly
1937 complete Role implementation. It has
1938 not yet been optimized, so it slower
1939 the the previous CPAN version. This
1940 release also lacks good updated docs,
1941 the official release will have updated docs.
1944 - refactored the keyword exports
1945 - 'with' now checks Role validaity and
1946 accepts more than one Role at a time
1947 - 'extends' makes metaclass adjustments as
1948 needed to ensure metaclass compatibility
1951 - refactored the keyword exports
1952 - 'with' now checks Role validaity and
1953 accepts more than one Role at a time
1955 * Moose::Util::TypeConstraints
1956 - added the 'enum' keyword for simple
1957 string enumerations which can be used as
1959 - see example of usage in t/202_example.t
1962 - more careful checking of params to new()
1965 - much work done on the role composition
1966 - many new tests for conflict detection
1967 and composition edge cases
1968 - not enough documentation, I suggest
1969 looking at the tests
1971 * Moose::Meta::Instance
1972 - added new Instance metaclass to support
1973 the new Class::MOP instance protocol
1975 * Moose::Meta::Class
1976 - some small changes to support the new
1978 - some small additions to support Roles
1980 * Moose::Meta::Attribute
1981 - some improvements to the accessor generation code
1983 - some small changes to support the new
1985 - (still somewhat) experimental delegation support
1986 with the 'handles' option
1987 - added several tests for this
1988 - no docs for this yet
1990 0.05 Thurs. April 27, 2006
1992 - keywords are now exported with Sub::Exporter
1993 thanks to chansen for this commit
1994 - has keyword now takes a 'metaclass' option
1995 to support custom attribute meta-classes
1996 on a per-attribute basis
1997 - added tests for this
1998 - the 'has' keyword not accepts inherited slot
1999 specifications (has '+foo'). This is still an
2000 experimental feature and probably not finished
2001 see t/038_attribute_inherited_slot_specs.t for
2002 more details, or ask about it on #moose
2003 - added tests for this
2006 - keywords are now exported with Sub::Exporter
2008 * Moose::Utils::TypeConstraints
2009 - reorganized the type constraint hierarchy, thanks
2010 to nothingmuch and chansen for his help and advice
2012 - added some tests for this
2013 - keywords are now exported with Sub::Exporter
2014 thanks to chansen for this commit
2016 * Moose::Meta::Class
2017 - due to changes in Class::MOP, we had to change
2018 construct_instance (for the better)
2020 * Moose::Meta::Attribute
2021 - due to changes in Class::MOP, we had to add the
2022 initialize_instance_slot method (it's a good thing)
2024 * Moose::Meta::TypeConstraint
2025 - added type constraint unions
2026 - added tests for this
2027 - added the is_subtype_of predicate method
2028 - added tests for this
2030 0.04 Sun. April 16th, 2006
2032 - Roles can now consume other roles
2033 - added tests for this
2034 - Roles can specify required methods now with
2035 the requires() keyword
2036 - added tests for this
2039 - ripped out much of it's guts ,.. much cleaner now
2040 - added required methods and correct handling of
2041 them in apply() for both classes and roles
2042 - added tests for this
2043 - no longer adds a does() method to consuming classes
2044 it relys on the one in Moose::Object
2045 - added roles attribute and some methods to support
2046 roles consuming roles
2048 * Moose::Meta::Attribute
2049 - added support for triggers on attributes
2050 - added tests for this
2051 - added support for does option on an attribute
2052 - added tests for this
2054 * Moose::Meta::Class
2055 - added support for attribute triggers in the
2057 - added tests for this
2060 - Moose no longer creates a subtype for your class
2061 if a subtype of the same name already exists, this
2062 should DWIM in 99.9999% of all cases
2064 * Moose::Util::TypeConstraints
2065 - fixed bug where incorrect subtype conflicts were
2067 - added test for this
2070 - this class can now be extended with 'use base' if
2071 you need it, it properly loads the metaclass class now
2072 - added test for this
2074 0.03_02 Wed. April 12, 2006
2076 - you must now explictly use Moose::Util::TypeConstraints
2077 it no longer gets exported for you automatically
2080 - new() now accepts hash-refs as well as key/value lists
2081 - added does() method to check for Roles
2082 - added tests for this
2084 * Moose::Meta::Class
2085 - added roles attribute along with the add_role() and
2087 - added tests for this
2090 - now adds a does() method to consuming classes
2091 which tests the class's hierarchy for roles
2092 - added tests for this
2094 0.03_01 Mon. April 10, 2006
2096 - added new Role recipe (no content yet, only code)
2099 - added 'with' keyword for Role support
2100 - added test and docs for this
2101 - fixed subtype quoting bug
2102 - added test for this
2106 - added test and docs
2108 * Moose::Util::TypeConstraints
2109 - added the message keyword to add custom
2110 error messages to type constraints
2113 - the meta role to support Moose::Role
2114 - added tests and docs
2116 * Moose::Meta::Class
2117 - moved a number of things from Moose.pm
2118 to here, they should have been here
2121 * Moose::Meta::Attribute
2122 - moved the attribute option macros here
2123 instead of putting them in Moose.pm
2125 * Moose::Meta::TypeConstraint
2126 - added the message attributes and the
2128 - added tests and docs for this
2130 0.03 Thurs. March 30, 2006
2132 - added the Moose::Cookbook with 5 recipes,
2133 describing all the stuff Moose can do.
2136 - fixed an issue with &extends super class loading
2137 it now captures errors and deals with inline
2138 packages correctly (bug found by mst, solution
2140 - added super/override & inner/augment features
2141 - added tests and docs for these
2144 - BUILDALL now takes a reference of the %params
2145 that are passed to &new, and passes that to
2148 * Moose::Util::TypeConstraints
2149 - Type constraints now survive runtime reloading
2150 - added test for this
2152 * Moose::Meta::Class
2153 - fixed the way attribute defaults are handled
2154 during instance construction (bug found by chansen)
2156 * Moose::Meta::Attribute
2157 - read-only attributes now actually enforce their
2158 read-only-ness (this corrected in Class::MOP as
2161 0.02 Tues. March 21, 2006
2163 - many more tests, fixing some bugs and
2165 - &extends now loads the base module with
2167 - added UNIVERSAL::require to the
2170 - each new Moose class will also create
2171 and register a subtype of Object which
2172 correspond to the new Moose class.
2173 - the 'isa' option in &has now only
2174 accepts strings, and will DWIM in
2177 * Moose::Util::TypeConstraints
2178 - added type coercion features
2179 - added tests for this
2180 - added support for this in attributes
2181 and instance construction
2183 - type construction no longer creates a
2184 function, it registers the type instead.
2185 - added several functions to get the
2189 - BUILDALL and DEMOLISHALL were broken
2190 because of a mis-named hash key, Whoops :)
2192 * Moose::Meta::Attribute
2193 - adding support for coercion in the
2194 autogenerated accessors
2196 * Moose::Meta::Class
2197 - adding support for coercion in the
2198 instance construction
2200 * Moose::Meta::TypeConstraint
2201 * Moose::Meta::TypeCoercion
2202 - type constraints and coercions are now
2203 full fledges meta-objects
2205 0.01 Wed. March 15, 2006
2206 - Moooooooooooooooooose!!!