1 Revision history for Perl extension Moose
4 * Moose::Util::TypeConstraints
5 - Calling subtype with a name as the only argument is now an
6 exception. If you want an anonymous subtype do:
8 my $subtype = subtype as 'Foo';
10 * Moose::Cookbook::Meta::Recipe7
11 - A new recipe, creating a custom meta-instance class.
13 0.72 Mon, February 23, 2009
15 * Moose::Meta::Method::Constructor
16 - A mutable class accepted Foo->new(undef) without complaint,
17 while an immutable class would blow up with an unhelpful
18 error. Now, in both cases we throw a helpful error
19 instead. Reported by doy.
21 0.71_01 Sun, February 22, 2009
23 - Hopefully fixed some POD errors in a few recipes that caused
24 them to display weird on search.cpan.org.
26 * Moose::Util::TypeConstraints
27 - Calling type or subtype without the sugar helpers (as, where,
28 message) is now deprecated.
29 - The subtype function tried hard to guess what you meant, but
30 often got it wrong. For example:
32 my $subtype = subtype as 'ArrayRef[Object]';
34 This caused an error in the past, but now works as you'd
38 - Make sure Moose.pm is loaded before calling
39 Moose->throw_error. This wasn't normally an issue, but could
40 bite you in weird cases.
42 0.71 Thu, February 19, 2009
43 * Moose::Cookbook::Basics::Recipe11
44 - A new recipe which demonstrates the use of BUILDARGS and
47 * Moose::Cookbook::Roles::Recipe3
48 - A new recipe, applying a role to an object instance. (Dave
52 - Allow overriding specific keywords from "also" packages. (doy)
55 - Replace hardcoded cookbook tests with Test::Inline to ensure
56 the tests match the actual code in the recipes. (Dave Rolsky)
59 - Working on the above turned up a number of little bugs in the
60 recipe code. (Dave Rolsky)
62 * Moose::Util::TypeConstraints::Optimized
63 - Just use Class::MOP for the optimized ClassName check. (Dave
66 0.70 Sat, February 14, 2009
67 * Moose::Util::TypeConstraints
68 - Added the RoleName type (stevan)
69 - added tests for this (stevan)
71 * Moose::Cookbook::Basics::Recipe3
72 - Updated the before qw[left right] sub to be a little more
73 defensive about what it accepts (stevan)
74 - added more tests to t/000_recipies/basics/003_binary_tree.t
78 - We now always call DEMOLISHALL, even if a class does not
79 define DEMOLISH. This makes sure that method modifiers on
80 DEMOLISHALL work as expected. (doy)
81 - added tests for this (EvanCarroll)
83 * Moose::Util::MetaRole
84 - Accept roles for the wrapped_method_metaclass (rafl)
85 - added tests for this (rafl)
87 * Moose::Meta::Attribute
88 - We no longer pass the meta-attribute object as a final
89 argument to triggers. This actually changed for inlined code a
90 while back, but the non-inlined version and the docs were
94 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
95 they require 0.11. (Dave Rolsky)
98 - Lots of small changes to the manual, cookbook, and
99 elsewhere. These were based on feedback from various
100 users, too many to list here. (Dave Rolsky)
102 0.69 Thu, February 12, 2009
104 - Make some keyword errors use throw_error instead of croak
105 since Moose::Exporter wraps keywords now (Sartak)
108 - Revised every recipe for style and clarity. Also moved some
109 documentation out of cookbook recipes and into Moose::Manual
110 pages. This work was funded as part of the Moose docs grant
111 from TPF. (Dave Rolsky)
113 * Moose::Meta::Method::Delegation
114 - If the attribute doing the delegation was not populated, the
115 error message did not specify the attribute name
118 0.68 Wed, February 4, 2009
120 - Many spelling, typo, and formatting fixes by daxim.
122 * Moose::Manual::Attributes
123 - The NAME section in the POD used "Attribute" so search.cpan
124 didn't resolve links from other documents properly.
126 * Moose::Meta::Method::Overriden
127 - Now properly spelled as Overridden. Thanks to daxim for
130 0.67 Tue, February 3, 2009
132 - Lots of little typo fixes and a few clarifications. Several
133 pages didn't have proper titles, and so weren't actually
134 visible on search.cpan.org. Thanks to hanekomu for a variety
135 of fixes and formatting improvements.
137 0.66 Tue, February 3, 2009
139 - This is a brand new, extensive manual for Moose. This aims to
140 provide a complete introduction to all of Moose's
141 features. This work was funded as part of the Moose docs grant
142 from TPF. (Dave Rolsky)
144 * Moose::Meta::Attribute
145 - Added a delegation_metaclass method to replace a hard-coded
146 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
148 * Moose::Util::TypeConstraints
149 - If you created a subtype and passed a parent that Moose didn't
150 know about, it simply ignored the parent. Now it automatically
151 creates the parent as a class type. This may not be what you
152 want, but is less broken than before. (Dave Rolsky)
154 * Moose::Util::TypeConstraints
155 - This module tried throw errors by calling Moose->throw_error,
156 but it did not ensure that Moose was loaded first. This could
157 cause very unhelpful errors when it tried to throw an error
158 before Moose was loaded. (Dave Rolsky)
160 * Moose::Util::TypeConstraints
161 - You could declare a name with subtype such as "Foo!Bar" that
162 would be allowed, but if you used it in a parameterized type
163 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
164 vetting on names created via the sugar functions, so that they
165 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
167 0.65 Thu, January 22, 2008
168 * Moose and Moose::Meta::Method::Overridden
169 - If an overridden method called super(), and then the
170 superclass's method (not overridden) _also_ called super(),
171 Moose went into an endless recursion loop. Test provided by
172 Chris Prather. (Dave Rolsky)
174 * Moose::Meta::TypeConstraint
175 - All methods are now documented. (gphat)
177 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
178 - Fixed some bogus failures that occurred because we tried to
179 validate filesystem paths in a very ad-hoc and
180 not-quite-correct way. (Dave Rolsky)
182 * Moose::Util::TypeConstraints
183 - Added maybe_type to exports. See docs for details. (rjbs)
186 - Added Moose::Util::TypeConstraints to the SEE ALSO
190 - Methods created via an attribute can now fulfill a "requires"
191 declaration for a role. (nothingmuch)
193 * Moose::Meta::Method::*
194 - Stack traces from inlined code will now report its line and
195 file as being in your class, as opposed to in Moose
198 0.64 Wed, December 31, 2008
199 * Moose::Meta::Method::Accessor
200 - Always inline predicate and clearer methods (Sartak)
202 * Moose::Meta::Attribute
203 - Support for parameterized traits (Sartak)
204 - verify_against_type_constraint method to avoid duplication
205 and enhance extensibility (Sartak)
208 - Tests (but no support yet) for parameterized traits (Sartak)
211 - Require Class::MOP 0.75+, which has the side effect of making
212 sure we work on Win32. (Dave Rolsky)
214 0.63 Mon, December 8, 2008
216 - Some small grammar tweaks and bug fixes in non-Moose example
219 0.62_02 Fri, December 5, 2008
220 * Moose::Meta::Role::Application::ToClass
221 - When a class does not provide all of a role's required
222 methods, the error thrown now mentions all of the missing
223 methods, as opposed to just the first one found. Requested by
224 Curtis Poe (RT #41119). (Dave Rolsky)
226 * Moose::Meta::Method::Constructor
227 - Moose will no longer inline a constructor for your class
228 unless it inherits its constructor from Moose::Object, and
229 will warn when it doesn't inline. If you want to force
230 inlining anyway, pass "replace_constructor => 1" to
231 make_immutable. Addresses RT #40968, reported by Jon
232 Swartz. (Dave Rolsky)
233 - The quoting of default values could be broken if the default
234 contained a single quote ('). Now we use quotemeta to escape
235 anything potentially dangerous in the defaults. (Dave Rolsky)
237 0.62_01 Wed, December 3, 2008
239 - use the method->execute API for BUILDALL
240 and DEMOLISHALL (Sartak)
242 * Moose::Util::TypeConstraints
243 - We now make all the type constraint meta classes immutable
244 before creating the default types provided by Moose. This
245 should make loading Moose a little faster. (Dave Rolsky)
247 0.62 Wed November 26, 2008
248 * Moose::Meta::Role::Application::ToClass
249 Moose::Meta::Role::Application::ToRole
250 - fixed issues where excluding and aliasing the
251 same methods for a single role did not work
252 right (worked just fine with multiple
254 - added test for this (stevan)
256 * Moose::Meta::Role::Application::RoleSummation
257 - fixed the error message when trying to compose
258 a role with a role it excludes (Sartak)
261 - Catch another case where recursion caused the value
262 of $CALLER to be stamped on (t0m)
263 - added test for this (t0m)
266 - Remove the make_immutable keyword, which has been
267 deprecated since April. It breaks metaclasses that
268 use Moose without no Moose (Sartak)
270 * Moose::Meta::Attribute
271 - Removing an attribute from a class now also removes delegation
272 (handles) methods installed for that attribute (t0m)
273 - added test for this (t0m)
275 * Moose::Meta::Method::Constructor
276 - An attribute with a default that looked like a number (but was
277 really a string) would accidentally be treated as a number
278 when the constructor was made immutable (perigrin)
279 - added test for this (perigrin)
282 - create method for constructing a role
284 - added test for this (Sartak)
285 - anonymous roles! (Sartak)
286 - added test for this (Sartak)
289 - more consistent error messages (Sartak)
291 * Moose::Cookbook::Roles::Recipe1
292 - attempt to explain why a role that just requires
293 methods is useful (Sartak)
295 0.61 Fri November 7, 2008
296 * Moose::Meta::Attribute
297 - When passing a role to handles, it will be loaded if necessary
301 - Method objects returned by get_method (and other methods)
302 Could end up being returned without an associated_metaclass
303 attribute. Removing get_method_map, which is provided by
304 Class::MOP::Class, fixed this. The Moose version did nothing
305 different from its parent except introduce a bug. (Dave Rolsky)
306 - added tests for this (jdv79)
309 - Added a $VERSION to all .pm files which didn't have one. Fixes
310 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
312 * Moose::Cookbook::Basics::Recipe4
313 * Moose::Cookbook::Basics::Recipe6
314 - These files had spaces on the first line of the SYNOPSIS, as
315 opposed to a totally empty line. According to RT #40432, this
316 confuses POD parsers. (Dave Rolsky)
318 0.60 Fri October 24, 2008
320 - Passing "-traits" when loading Moose caused the Moose.pm
321 exports to be broken. Reported by t0m. (Dave Rolsky)
322 - Tests for this bug. (t0m)
325 - Change resolve_metaclass alias to use the new
326 load_first_existing_class function. This makes it a lot
327 simpler, and also around 5 times faster. (t0m)
328 - Add caching to resolve_metaclass_alias, which gives an order
329 of magnitude speedup to things which repeatedly call the
330 Moose::Meta::Attribute->does method, notably MooseX::Storage
333 * Moose::Util::TypeConstraint
334 - Put back the changes for parameterized constraints that
335 shouldn't have been removed in 0.59. We still cannot parse
336 them, but MooseX modules can create them in some other
337 way. See the 0.58 changes for more details. (jnapiorkowski)
338 - Changed the way subtypes are created so that the job is
339 delegated to a type constraint parent. This clears up some
340 hardcoded checking and should allow correct subtypes of
341 Moose::Meta::Type::Constraint. Don't rely on this new API too
342 much (create_child_type) because it may go away in the
343 future. (jnapiorkowski)
345 * Moose::Meta::TypeConstraint::Union
346 - Type constraint names are sorted as strings, not numbers.
349 * Moose::Meta::TypeConstraint::Parameterizable
350 - New parameterize method. This can be used as a factory method
351 to make a new type constraint with a given parameterized
352 type. (jnapiorkowski)
353 - added tests (jnapiorkowski)
355 0.59 Tue October 14, 2008
357 - Add abridged documentation for builder/default/initializer/
358 predicate, and link to more details sections in
359 Class::MOP::Attribute. (t0m)
361 * Moose::Util::TypeConstraints
362 - removed prototypes from all but the &-based stuff (mst)
364 * Moose::Util::TypeConstraints
365 - Creating a anonymous subtype with both a constraint and a
366 message failed with a very unhelpful error, but should just
367 work. Reported by t0m. (Dave Rolsky)
370 - Some tests that used Test::Warn if it was available failed
371 with older versions of Test::Warn. Reported by Fayland. (Dave
373 - Test firing behavior of triggers in relation to builder/default/
375 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
376 kinds of supported type. (t0m)
379 - In create(), do not pass "roles" option to the superclass
380 - added related test that creates an anon metaclass with
383 * Moose::Meta::TypeConstraint::Class
384 * Moose::Meta::TypeConstraint::Role
385 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
386 other types (as per change in 0.55_02). (t0m)
388 * Moose::Meta::TypeConstraint::Registry
389 - Fix warning when dealing with unknown type names (t0m)
391 * Moose::Util::TypeConstraints
392 - Reverted changes from 0.58 related to handle parameterized
393 types. This caused random failures on BSD and Win32 systems,
394 apparently related to the regex engine. This means that Moose
395 can no longer parse structured type constraints like
396 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
397 supported in a slightly different way via MooseX::Types some
398 time in the future. (Dave Rolsky)
400 0.58 Sat September 20, 2008
401 !! This release has an incompatible change regarding !!
402 !! how roles add methods to a class !!
404 * Roles and role application
405 ! Roles now add methods by calling add_method, not
406 alias_method. They make sure to always provide a method
407 object, which will be cloned internally. This means that it is
408 now possible to track the source of a method provided by a
409 role, and even follow its history through intermediate roles.
411 This means that methods added by a role now show up when
412 looking at a class's method list/map. (Dave Rolsky)
415 - From this release on, we'll try to maintain a list of
416 conflicting modules, and warn you if you have one
417 installed. For example, this release conflicts with ...
418 - MooseX::Singleton <= 0.11
419 - MooseX::Params::Validate <= 0.05
422 In general, we try to not break backwards compatibility for
423 most Moose users, but MooseX modules and other code which
424 extends Moose's metaclasses is often affected by very small
425 changes in the Moose internals.
427 * Moose::Meta::Method::Delegation
428 * Moose::Meta::Attribute
429 - Delegation methods now have their own method class. (Dave
432 * Moose::Meta::TypeConstraint::Parameterizable
433 - Added a new method 'parameterize' which is basically a factory
434 for the containing constraint. This makes it easier to create
435 new types of parameterized constraints. (jnapiorkowski)
437 * Moose::Meta::TypeConstraint::Union
438 - Changed the way Union types canonicalize their names to follow
439 the normalized TC naming rules, which means we strip all
440 whitespace. (jnapiorkowski)
442 * Moose::Util::TypeConstraints
443 - Parameter and Union args are now sorted, this makes Int|Str
444 the same constraint as Str|Int. (jnapiorkowski)
445 - Changes to the way Union types are parsed to more correctly
446 stringify their names. (jnapiorkowski)
447 - When creating a parameterized type, we now use the new
448 parameterize method. (jnapiorkowski)
449 - Incoming type constraint strings are now normalized to remove
450 all whitespace differences. (jnapiorkowski)
451 - Changed the way we parse type constraint strings so that we now
452 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
453 constraints. This lays the foundation for more flexible type
454 constraint implementations.
456 * Tests and docs for all the above. (jnapiorkowski)
460 - Moose::Exporter will no longer remove a subroutine that the
461 exporting package re-exports. Moose re-exports the
462 Carp::confess function, among others. The reasoning is that we
463 cannot know whether you have also explicitly imported those
464 functions for your own use, so we err on the safe side and
465 always keep them. (Dave Rolsky)
466 - added tests for this (rafl)
469 - Changes to how we fix metaclass compatibility that are much
470 too complicated to go into. The summary is that Moose is much
471 less likely to complain about metaclass incompatibility
472 now. In particular, if two metaclasses differ because
473 Moose::Util::MetaRole was used on the two corresponding
474 classes, then the difference in roles is reconciled for the
475 subclass's metaclass. (Dave Rolsky)
476 - Squashed an warning in _process_attribute (thepler)
479 - throw exceptions (sooner) for invalid attribute names (thepler)
480 - added tests for this (thepler)
482 * Moose::Util::MetaRole
483 - If you explicitly set a constructor or destructor class for a
484 metaclass object, and then applied roles to the metaclass,
485 that explicitly set class would be lost and replaced with the
489 * Moose::Meta::Attribute
490 * Moose::Meta::Method
493 * Moose::Error::Default
494 * Moose::Error::Croak
495 * Moose::Error::Confess
496 - All instances of confess() changed to use overridable
497 C<throw_error> method. This method ultimately calls a class
498 constructor, and you can change the class being called. In
499 addition, errors now pass more information than just a string.
500 The default C<error_class> behaves like C<Carp::confess>, so
501 the behavior is not visibly different for end users.
503 0.57 Wed September 3, 2008
505 - A new bit of doc intended to introduce folks familiar with
506 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
509 - Shows examples of two classes, each done first with and then
510 without Moose. This makes a nice parallel to
511 Moose::Intro. (Dave Rolsky)
513 * Moose::Util::TypeConstraints
514 - Fixed a bug in find_or_parse_type_constraint so that it
515 accepts a Moose::Meta::TypeConstraint object as the parent
516 type, not just a name (jnapiorkowski)
517 - added tests (jnapiorkowski)
520 - If Sub::Name was not present, unimporting failed to actually
521 remove some sugar subs, causing test failures (Dave Rolsky)
523 0.56 Mon September 1, 2008
524 For those not following the series of dev releases, there are
525 several major changes in this release of Moose.
526 ! Moose::init_meta should now be called as a method. See the
529 - Major performance improvements by nothingmuch.
531 - New modules for extension writers, Moose::Exporter and
532 Moose::Util::MetaRole by Dave Rolsky.
534 - Lots of doc improvements and additions, especially in the
539 * Removed all references to the experimental-but-no-longer-needed
540 Moose::Meta::Role::Application::ToMetaclassInstance.
542 * Require Class::MOP 0.65.
544 0.55_04 Sat August 30, 2008
545 * Moose::Util::MetaRole
546 * Moose::Cookbook::Extending::Recipe2
547 - This simplifies the application of roles to any meta class, as
548 well as the base object class. Reimplemented metaclass traits
549 using this module. (Dave Rolsky)
551 * Moose::Cookbook::Extending::Recipe1
552 - This a new recipe, an overview of various ways to write Moose
553 extensions (Dave Rolsky)
555 * Moose::Cookbook::Extending::Recipe3
556 * Moose::Cookbook::Extending::Recipe4
557 - These used to be Extending::Recipe1 and Extending::Recipe2,
560 0.55_03 Fri August 29, 2008
561 * No changes from 0.55_02 except increasing the Class::MOP
562 dependency to 0.64_07.
564 0.55_02 Fri August 29, 2008
565 * Makefile.PL and Moose.pm
566 - explicitly require Perl 5.8.0+ (Dave Rolsky)
568 * Moose::Util::TypeConstraints
569 - Fix warnings from find_type_constraint if the type is not
572 * Moose::Meta::TypeConstraint
573 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
574 return false if the type you specify cannot be found in the
575 type registry, rather than throwing an unhelpful and
576 coincidental exception. (t0m).
577 - added docs & test for this (t0m)
579 * Moose::Meta::TypeConstraint::Registry
580 - add_type_constraint now throws an exception if a parameter is
582 - added docs & test for this (t0m)
584 * Moose::Cookbook::FAQ
585 - Added a faq entry on the difference between "role" and "trait"
589 - Fixed a bug that caused role composition to not see a required
590 method when that method was provided by another role being
591 composed at the same time. (Dave Rolsky)
592 - test and bug finding (tokuhirom)
594 0.55_01 Wed August 20, 2008
596 !! Calling Moose::init_meta as a function is now !!
597 !! deprecated. Please see the Moose.pm docs for details. !!
599 * Moose::Meta::Method::Constructor
600 - Fix inlined constructor so that values produced by default
601 or builder methods are coerced as required. (t0m)
602 - added test for this (t0m)
604 * Moose::Meta::Attribute
605 - A lazy attribute with a default or builder did not attempt to
606 coerce the default value. The immutable code _did_
608 - added test for this (t0m)
611 - This is a new helper module for writing "Moose-alike"
612 modules. This should make the lives of MooseX module authors
613 much easier. (Dave Rolsky)
616 * Moose::Cookbook::Meta::Recipe5
617 - Implemented metaclass traits (and wrote a recipe for it):
619 use Moose -traits => 'Foo'
621 This should make writing small Moose extensions a little
624 * Moose::Cookbook::Basics::Recipe1
625 - Removed any examples of direct hashref access, and applied an
626 editorial axe to reduce verbosity. (Dave Rolsky)
628 * Moose::Cookbook::Basics::Recipe1
629 - Also applied an editorial axe here. (Dave Rolsky)
632 * Moose::Cookbook::Extending::Recipe1
633 * Moose::Cookbook::Extending::Recipe2
634 - Rewrote extending and embedding moose documentation and
635 recipes to use Moose::Exporter (Dave Rolsky)
639 - These two modules now warn when you load them from the main
640 package "main" package, because we will not export sugar to
641 main. Previously it just did nothing. (Dave Rolsky)
644 - Now provide an init_meta method just like Moose.pm, and you
645 can call this to provide an alternate role metaclass. (Dave
646 Rolsky and nothingmuch)
647 - get_method_map now respects the package cache flag (nothingmuch)
650 - Two new methods - add_method and wrap_method_body
654 - Optimizations including allowing constructors to accept hash
655 refs, making many more classes immutable, and making
656 constructors immutable. (nothingmuch)
658 0.55 Sun August 3, 2008
659 * Moose::Meta::Attribute
660 - breaking down the way 'handles' methods are
661 created so that the process can be more easily
662 overridden by subclasses (stevan)
664 * Moose::Meta::TypeConstraint
665 - fixing what is passed into a ->message with
666 the type constraints (RT #37569)
667 - added tests for this (Charles Alderman)
669 * Moose::Util::TypeConstraints
670 - fix coerce to accept anon types like subtype can (mst)
673 - reorganized the recipes into sections - Basics, Roles, Meta,
674 Extending - and wrote abstracts for each section (Dave Rolsky)
676 * Moose::Cookbook::Basics::Recipe10
677 - A new recipe that demonstrates operator overloading
678 in combination with Moose. (bluefeet)
680 * Moose::Cookbook::Meta::Recipe1
681 - an introduction to what meta is and why you'd want to make
682 your own metaclass extensions (Dave Rolsky)
684 * Moose::Cookbook::Meta::Recipe4
685 - a very simple metaclass example (Dave Rolsky)
687 * Moose::Cookbook::Extending::Recipe1
688 - how to write a Moose-alike module to use your own object base
691 * Moose::Cookbook::Extending::Recipe2
692 - how to write modules with an API just like C<Moose.pm> (Dave
696 - Tons of fixes, both syntactical and grammatical (Dave
697 Rolsky, Paul Fenwick)
699 0.54 Thurs. July 3, 2008
700 ... this is not my day today ...
702 * Moose::Meta::Attribute
703 - fixed legal_options_for_inheritance such that
704 clone_and_inherit options still works for
705 Class::MOP::Attribute objects and therefore
706 does not break MooseX::AttributeHelpers
709 0.53 Thurs. July 3, 2008
710 * Whoops, I guess I should run 'make manifest' before
711 actually releasing the module. No actual changes
712 in this release, except the fact that it includes
713 the changes that I didn't include in the last
716 0.52 Thurs. July 3, 2008
718 - added "FEATURE REQUESTS" section to the Moose docs
719 to properly direct people (stevan) (RT #34333)
720 - making 'extends' croak if it is passed a Role since
721 this is not ever something you want to do
722 (fixed by stevan, found by obra)
723 - added tests for this (stevan)
726 - adding support for DOES (as in UNIVERSAL::DOES)
728 - added test for this
730 * Moose::Meta::Attribute
731 - added legal_options_for_inheritance (wreis)
732 - added tests for this (wreis)
734 * Moose::Cookbook::Snacks::*
735 - removed some of the unfinished snacks that should
736 not have been released yet. Added some more examples
737 to the 'Keywords' snack. (stevan)
739 * Moose::Cookbook::Style
740 - added general Moose "style guide" of sorts to the
741 cookbook (nothingmuch) (RT #34335)
744 - added more BUILDARGS tests (stevan)
746 0.51 Thurs. Jun 26, 2008
748 - add unimport so "no Moose::Role" actually does
751 * Moose::Meta::Role::Application::ToRole
752 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
753 order to provide its own implementation, that method still got
754 added to the list of required methods for consumers of
755 RoleB. Now an aliased method is only added to the list of
756 required methods if the role doing the aliasing does not
757 provide its own implementation. See Recipe 11 for an example
758 of all this. (Dave Rolsky)
759 - added tests for this
761 * Moose::Meta::Method::Constructor
762 - when a single argument that wasn't a hashref was provided to
763 an immutabilized constructor, the error message was very
764 unhelpful, as opposed to the non-immutable error. Reported by
766 - added test for this (Dave Rolsky)
768 * Moose::Meta::Attribute
769 - added support for meta_attr->does("ShortAlias") (sartak)
770 - added tests for this (sartak)
771 - moved the bulk of the `handles` handling to the new
772 install_delegation method (Stevan)
775 - Added BUILDARGS, a new step in new()
777 * Moose::Meta::Role::Application::RoleSummation
778 - fix typos no one ever sees (sartak)
780 * Moose::Util::TypeConstraints
781 * Moose::Meta::TypeConstraint
782 * Moose::Meta::TypeCoercion
783 - Attempt to work around the ??{ } vs. threads issue
785 - Some null_constraint optimizations
787 0.50 Thurs. Jun 11, 2008
788 - Fixed a version number issue by bumping all modules
791 0.49 Thurs. Jun 11, 2008
792 !! This version now approx. 20-25% !!
793 !! faster with new Class::MOP 0.59 !!
795 * Moose::Meta::Attribute
796 - fixed how the is => (ro|rw) works with
797 custom defined reader, writer and accessor
799 - added docs for this (TODO).
800 - added tests for this (Thanks to Penfold)
801 - added the custom attribute alias for regular
802 Moose attributes which is "Moose"
803 - fix builder and default both being used
808 Moose::Meta::Attribute
810 Moose::Meta::Role::Composite
811 Moose::Util::TypeConstraints
812 - switched usage of reftype to ref because
816 - changing add_package_symbol to use the new
820 - fixed how DEMOLISHALL is called so that it
821 can be overrided in subclasses (thanks to Sartak)
822 - added test for this (thanks to Sartak)
824 * Moose::Util::TypeConstraints
825 - move the ClassName type check code to
826 Class::MOP::is_class_loaded (thanks to Sartak)
828 * Moose::Cookbook::Recipe11
829 - add tests for this (thanks to tokuhirom)
831 0.48 Thurs. May 29, 2008
832 (early morning release engineering)--
834 - fixing the version in Moose::Meta::Method::Destructor
835 which was causing the indexer to choke
837 0.47 Thurs. May 29, 2008
838 (late night release engineering)--
840 - fixing the version is META.yml, no functional
841 changes in this release
843 0.46 Wed. May 28, 2008
844 !! This version now approx. 20-25% !!
845 !! faster with new Class::MOP 0.57 !!
848 - some optimizations of the &initialize method
849 since it is called so often by &meta
853 - now use the get_all_package_symbols from the
854 updated Class::MOP, test suite is now 10 seconds
857 * Moose::Meta::Method::Destructor
858 - is_needed can now also be called as a class
859 method for immutablization to check if the
860 destructor object even needs to be created
863 * Moose::Meta::Method::Destructor
864 Moose::Meta::Method::Constructor
865 - added more descriptive error message to help
866 keep people from wasting time tracking an error
867 that is easily fixed by upgrading.
869 0.45 Saturday, May 24, 2008
871 - Because of work in Class::MOP 0.57, all
872 XS based functionality is now optional
873 and a Pure Perl version is supplied
874 - the CLASS_MOP_NO_XS environment variable
875 can now be used to force non-XS versions
877 - several of the packages have been tweaked
878 to take care of this, mostly we added
879 support for the package_name and name
880 variables in all the Method metaclasses
881 - before/around/after method modifiers now
882 support regexp matching of names
883 (thanks to Takatoshi Kitano)
884 - tests added for this
885 - NOTE: this only works for classes, it
886 is currently not supported in roles,
887 but, ... patches welcome
888 - All usage of Carp::confess have been replaced
889 by Carp::croak in the "keyword" functions since
890 the stack trace is usually not helpful
893 - All usage of Carp::confess have been replaced
894 by Carp::croak in the "keyword" functions since
895 the stack trace is usually not helpful
896 - The 'has' keyword for roles now accepts the
897 same array ref form that Moose.pm does
898 (has [qw/foo bar/] => (is => 'rw', ...))
899 - added test for this
901 * Moose::Meta::Attribute
902 - trigger on a ro-attribute is no longer an
903 error, as it's useful to trigger off of the
907 - added same 'add_package_symbol' fix as in
911 - does_role now handles non-Moose classes
913 - added tests for this
914 - added the 'add_method_modifier' function
915 (thanks to Takatoshi Kitano)
917 * Moose::Util::TypeConstraints
918 - subtypes of parameterizable types now are
919 themselves parameterizable types
921 * Moose::Meta::Method::Constructor
922 - fixed bug where trigger was not being
923 called by the inlined immutable
925 - added test for this (thanks to Caelum)
927 * Moose::Meta::Role::Application::ToInstance
928 - now uses the metaclass of the instance
929 (if possible) to create the anon-class
930 (thanks Jonathan Rockway)
932 * Moose::Cookbook::Recipe22
933 - added the meta-attribute trait recipe
937 - fixed hash-ordering test bug that was
938 causing occasional cpantester failures
939 - renamed the t/000_recipe/*.t tests to be
940 more descriptive (thanks to Sartak)
942 0.44 Sat. May 10, 2008
944 - made make_immutable warning cluck to
945 show where the error is (thanks mst)
948 - BUILDALL and DEMOLISHALL now call
949 ->body when looping through the
950 methods, to avoid the overloaded
952 - fixed issue where DEMOLISHALL was
953 eating the $@ values, and so not
954 working correctly, it still kind of
955 eats them, but so does vanilla perl
956 - added tests for this
958 * Moose::Cookbook::Recipe7
959 - added new recipe for immutable
960 functionality (thanks Dave Rolsky)
962 * Moose::Cookbook::Recipe9
963 - added new recipe for builder and
964 lazy_build (thanks Dave Rolsky)
966 * Moose::Cookbook::Recipe11
967 - added new recipe for method aliasing
968 and exclusion with Roles (thanks Dave Rolsky)
971 - fixed Win32 test failure (thanks spicyjack)
973 ~ removed Build.PL and Module::Build compat
974 since Module::Install has done that.
976 0.43 Wed. April, 30, 2008
978 drink more coffee before
979 doing release engineering
981 - whoops, forgot to do the smolder tests,
982 and we broke some of the custom meta-attr
983 modules. This fixes that.
985 0.42 Mon. April 28, 2008
986 - some bad tests slipped by, nothing else
987 changed in this release (cpantesters++)
989 - upped the Class::MOP dependency to 0.55
990 since we have tests which need the C3
993 0.41 Mon. April 28, 2008
994 ~~ numerous documentation updates ~~
996 - Changed all usage of die to Carp::croak for better
997 error reporting (initial patch by Tod Hagan)
1000 - the make_immutable keyword is now deprecated, don't
1001 use it in any new code and please fix your old code
1002 as well. There will be 2 releases, and then it will
1008 - refactored the way inner and super work to avoid
1009 any method/@ISA cache penalty (nothingmuch)
1011 * Moose::Meta::Class
1012 - fixing &new_object to make sure trigger gets the
1013 coerced value (spotted by Charles Alderman on the
1015 - added test for this
1017 * Moose::Meta::Method::Constructor
1018 - immutable classes which had non-lazy attributes were calling
1019 the default generating sub twice in the constructor. (bug
1020 found by Jesse Luehrs, fixed by Dave Rolsky)
1021 - added tests for this (Dave Rolsky)
1022 - fix typo in initialize_body method (nothingmuch)
1024 * Moose::Meta::Method::Destructor
1025 - fix typo in initialize_body method (nothingmuch)
1027 * Moose::Meta::Method::Overriden
1028 Moose::Meta::Method::Augmented
1029 - moved the logic for these into their own
1030 classes (nothingmuch)
1032 * Moose::Meta::Attribute
1033 - inherited attributes may now be extended without
1034 restriction on the type ('isa', 'does') (Sartak)
1035 - added tests for this (Sartak)
1036 - when an attribute property is malformed (such as lazy without
1037 a default), give the name of the attribute in the error
1039 - added the &applied_traits and &has_applied_traits methods
1040 to allow introspection of traits
1041 - added tests for this
1042 - moved 'trait' and 'metaclass' argument handling to here from
1044 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1045 '+foo' syntax) (nothingmuch)
1046 - added tests for this (t0m)
1049 - localize $@ inside DEMOLISHALL to avoid it
1050 eating $@ (found by Ernesto)
1051 - added test for this (thanks to Ernesto)
1053 * Moose::Util::TypeConstraints
1054 - &find_type_constraint now DWIMs when given an
1055 type constraint object or name (nothingmuch)
1056 - &find_or_create_type_constraint superseded with a number of more
1058 - find_or_create_{isa,does}_type_constraint
1059 - find_or_parse_type_constraint
1061 * Moose::Meta::TypeConstraint
1062 Moose::Meta::TypeConstraint::Class
1063 Moose::Meta::TypeConstraint::Role
1064 Moose::Meta::TypeConstraint::Enum
1065 Moose::Meta::TypeConstraint::Union
1066 Moose::Meta::TypeConstraint::Parameterized
1067 - added the &equals method for comparing two type
1068 constraints (nothingmuch)
1069 - added tests for this (nothingmuch)
1071 * Moose::Meta::TypeConstraint
1072 - add the &parents method, which is just an alias to &parent.
1073 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1075 * Moose::Meta::TypeConstraint::Class
1076 - added the class attribute for introspection purposes
1078 - added tests for this
1080 * Moose::Meta::TypeConstraint::Enum
1081 Moose::Meta::TypeConstraint::Role
1082 - broke these out into their own classes (nothingmuch)
1084 * Moose::Cookbook::Recipe*
1085 - fixed references to test file locations in the POD
1086 and updated up some text for new Moose features
1090 - Added &resolve_metaclass_alias, a helper function for finding an actual
1091 class for a short name (e.g. in the traits list)
1093 0.40 Fri. March 14, 2008
1094 - I hate Pod::Coverage
1096 0.39 Fri. March 14, 2008
1098 - documenting the use of '+name' with attributes
1099 that come from recently composed roles. It makes
1100 sense, people are using it, and so why not just
1101 officially support it.
1102 - fixing the 'extends' keyword so that it will not
1103 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1106 - added the perl -Moose=+Class::Name feature to allow
1107 monkeypatching of classes in one liners
1110 - fixing the 'apply_all_roles' keyword so that it will not
1111 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1113 * Moose::Meta::Class
1114 - added ->create method which now supports roles (thanks to jrockway)
1115 - added tests for this
1116 - added ->create_anon_class which now supports roles and caching of
1117 the results (thanks to jrockway)
1118 - added tests for this
1119 - made ->does_role a little more forgiving when it is
1120 checking a Class::MOP era metaclasses.
1122 * Moose::Meta::Role::Application::ToInstance
1123 - it is now possible to pass extra params to be used when
1124 a role is applied to an the instance (rebless_params)
1125 - added tests for this
1127 * Moose::Util::TypeConstraints
1128 - class_type now accepts an optional second argument for a
1129 custom message. POD anotated accordingly (groditi)
1130 - added tests for this
1131 - it is now possible to make anon-enums by passing 'enum' an
1132 ARRAY ref instead of the $name => @values. Everything else
1134 - added tests for this
1137 - making test for using '+name' on attributes consumed
1138 from a role, it works and makes sense too.
1140 * Moose::Meta::Attribute
1141 - fix handles so that it doesn't return nothing
1142 when the method cannot be found, not sure why
1143 it ever did this originally, this means we now
1144 have slightly better support for AUTOLOADed
1146 - added more delegation tests
1147 - adding ->does method to this so as to better
1148 support traits and their introspection.
1149 - added tests for this
1152 - localizing the Data::Dumper configurations so
1153 that it does not pollute others (RT #33509)
1154 - made ->does a little more forgiving when it is
1155 passed Class::MOP era metaclasses.
1157 0.38 Fri. Feb. 15, 2008
1158 * Moose::Meta::Attribute
1159 - fixed initializer to correctly do
1160 type checking and coercion in the
1162 - added tests for this
1165 - fixed some finicky tests (thanks to konobi)
1167 0.37 Thurs. Feb. 14, 2008
1169 - fixed some details in Moose::init_meta
1170 and its superclass handling (thanks thepler)
1171 - added tests for this (thanks thepler)
1172 - 'has' now dies if you don't pass in name
1174 - added the 'make_immutable' keyword as a shortcut
1177 * Moose::Meta::Class
1178 Moose::Meta::Method::Constructor
1179 Moose::Meta::Attribute
1180 - making (init_arg => undef) work here too
1181 (thanks to nothingmuch)
1183 * Moose::Meta::Attribute
1184 Moose::Meta::Method::Constructor
1185 Moose::Meta::Method::Accessor
1186 - make lazy attributes respect attr initializers (rjbs)
1187 - added tests for this
1189 * Moose::Util::TypeConstraints
1190 Moose::Util::TypeConstraints::OptimizedConstraints
1191 Moose::Meta::TypeConstraints
1192 Moose::Meta::Attribute
1193 Moose::Meta::Method::Constructor
1194 Moose::Meta::Method::Accessor
1195 - making type errors use the
1196 assigned message (thanks to Sartak)
1197 - added tests for this
1199 * Moose::Meta::Method::Destructor
1200 - making sure DESTROY gets inlined properly
1201 with successive DEMOLISH calls (thanks to manito)
1203 * Moose::Meta::Attribute
1204 Moose::Meta::Method::Accessor
1205 - fixed handling of undef with type constraints
1207 - added tests for this
1210 - added &get_all_init_args and &get_all_attribute_values
1211 (thanks to Sartak and nothingmuch)
1213 0.36 Sat. Jan. 26, 2008
1215 Moose::Meta::Attribute
1216 - role type tests now support when roles are
1217 applied to non-Moose classes (found by ash)
1218 - added tests for this (thanks to ash)
1219 - couple extra tests to boost code coverage
1221 * Moose::Meta::Method::Constructor
1222 - improved fix for handling Class::MOP attributes
1223 - added test for this
1225 * Moose::Meta::Class
1226 - handled the add_attribute($attribute_meta_object)
1228 - added test for this
1230 0.35 Tues. Jan. 22, 2008
1231 * Moose::Meta::Method::Constructor
1232 - fix to make sure even Class::MOP attributes
1233 are handled correctly (Thanks to Dave Rolsky)
1234 - added test for this (also Dave Rolsky)
1236 * Moose::Meta::Class
1237 - improved error message on _apply_all_roles,
1238 you should now use Moose::Util::apply_all_roles
1239 and you shouldnt have been using a _ prefixed
1240 method in the first place ;)
1242 0.34 Mon. Jan. 21, 2008
1243 ~~~ more misc. doc. fixes ~~~
1244 ~~ updated copyright dates ~~
1246 Moose is now a postmodern object system :)
1247 - (see the POD for details)
1249 * <<Role System Refactoring>>
1250 - this release contains a major reworking and
1251 cleanup of the role system
1252 - 100% backwards compat.
1253 - Role application now restructured into seperate
1254 classes based on type of applicants
1255 - Role summation (combining of more than one role)
1256 is much cleaner and anon-classes are no longer
1257 used in this process
1258 - new Composite role metaclass
1259 - runtime application of roles to instances
1260 is now more efficient and re-uses generated
1261 classes when applicable
1263 * <<New Role composition features>>
1264 - methods can now be excluded from a given role
1266 - methods can now be aliased to another name (and
1267 still retain the original as well)
1269 * Moose::Util::TypeConstraints::OptimizedConstraints
1270 - added this module (see above)
1272 * Moose::Meta::Class
1273 - fixed the &_process_attribute method to be called
1274 by &add_attribute, so that the API is now correct
1276 * Moose::Meta::Method::Accessor
1277 - fixed bug when passing a list of values to
1278 an accessor would get (incorrectly) ignored.
1279 Thanks to Sartak for finding this ;)
1280 - added tests for this (Sartak again)
1282 * Moose::Meta::Method::Accessor
1283 Moose::Meta::Method::Constructor
1284 Moose::Meta::Attribute
1285 Moose::Meta::TypeConstraint
1286 Moose::Meta::TypeCoercion
1287 - lots of cleanup of such things as:
1289 - type constraint handling
1290 - error handling/messages
1291 (thanks to nothingmuch)
1293 * Moose::Meta::TypeConstraint::Parameterizable
1294 - added this module to support the refactor
1295 in Moose::Meta::TypeConstraint::Parameterized
1297 * Moose::Meta::TypeConstraint::Parameterized
1298 - refactored how these types are handled so they
1299 are more generic and not confined to ArrayRef
1303 - shortened some file names for better VMS support (RT #32381)
1305 0.33 Fri. Dec. 14, 2007
1306 !! Moose now loads 2 x faster !!
1307 !! with new Class::MOP 0.49 !!
1309 ++ new oose.pm module to make command line
1310 Moose-ness easier (see POD docs for more)
1312 * Moose::Meta::Class
1314 - several tweaks to take advantage of the
1315 new method map caching in Class::MOP
1317 * Moose::Meta::TypeConstraint::Parameterized
1318 - allow subtypes of ArrayRef and HashRef to
1319 be used as a container (sartak)
1320 - added tests for this
1321 - basic support for coercion to ArrayRef and
1322 HashRef for containers (sartak)
1323 - added tests for this
1325 * Moose::Meta::TypeCoercion
1326 - coercions will now create subtypes as needed
1327 so you can now add coercions to parameterized
1328 types without having to explictly define them
1329 - added tests for this
1331 * Moose::Meta::Method::Accessor
1332 - allow subclasses to decide whether we need
1333 to copy the value into a new variable (sartak)
1335 0.32 Tues. Dec. 4, 2007
1336 * Moose::Util::TypeConstraints
1337 - fixing how subtype aliases of unions work
1338 they should inherit the parent's coercion
1339 - added tests for this
1340 - you can now define multiple coercions on
1341 a single type at different times instead of
1342 having to do it all in one place
1343 - added tests for this
1345 * Moose::Meta::TypeConstraint
1346 - there is now a default constraint of sub { 1 }
1347 instead of Moose::Util::TypeConstraints setting
1350 * Moose::Meta::TypeCoercion
1351 * Moose::Meta::TypeCoercion::Union
1352 - added the &has_coercion_for_type and
1353 &add_type_coercions methods to support the
1354 new features above (although you cannot add
1355 more type coercions for Union types)
1357 0.31 Mon. Nov. 26, 2007
1358 * Moose::Meta::Attribute
1359 - made the +attr syntax handle extending types with
1360 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1361 now works if the original foo is an ArrayRef.
1362 - added tests for this.
1363 - delegation now works even if the attribute does not
1364 have a reader method using the get_read_method_ref
1365 method from Class::MOP::Attribute.
1366 - added tests for this
1367 - added docs for this
1369 * Moose::Util::TypeConstraints
1370 - passing no "additional attribute info" to
1371 &find_or_create_type_constraint will no longer
1372 attempt to create an __ANON__ type for you,
1373 instead it will just return undef.
1374 - added docs for this
1376 0.30 Fri. Nov. 23, 2007
1377 * Moose::Meta::Method::Constructor
1378 -builder related bug in inlined constructor. (groditi)
1380 * Moose::Meta::Method::Accessor
1381 - genereate unnecessary calls to predicates and refactor
1382 code generation for runtime speed (groditi)
1384 * Moose::Util::TypeConstraints
1385 - fix ClassName constraint to introspect symbol table (mst)
1386 - added more tests for this (mst)
1387 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1388 with work correctly.
1389 - added tests for this
1392 - adding the link to Recipie 11 (written by Sartak)
1393 - adding test for SYNOPSIS code
1396 - New tests for builder bug. Upon instantiation, if an
1397 attribute had a builder, no value and was not lazy the
1398 builder default was not getting run, oops. (groditi)
1400 0.29 Tues. Nov. 13, 2007
1401 * Moose::Meta::Attribute
1402 - Fix error message on missing builder method (groditi)
1404 * Moose::Meta::Method::Accessor
1405 - Fix error message on missing builder method (groditi)
1408 - Add test to check for the correct error message when
1409 builder method is missing (groditi)
1411 0.28 Tues. Nov. 13, 2007
1412 - 0.27 packaged incorrectly (groditi)
1414 0.27 Tues. Nov. 13, 2007
1415 * Moose::Meta::Attribute
1416 - Added support for the new builder option (groditi)
1417 - Added support for lazy_build option (groditi)
1418 - Changed slot initialization for predicate changes (groditi)
1420 * Moose::Meta::Method::Accessor
1421 - Added support for lazy_build option (groditi)
1422 - Fix inline methods to work with corrected predicate
1425 * Moose::Meta::Method::Constructor
1426 - Added support for lazy_build option (groditi)
1429 - tests for builder and lazy_build (groditi)
1431 * fixing some misc. bits in the docs that
1432 got mentioned on CPAN Forum & perlmonks
1435 - fixed how required methods are handled
1436 when they encounter overriden or modified
1437 methods from a class (thanks to confound).
1438 - added tests for this
1440 * Moose::Util::TypeConstraint
1441 - fixed the type notation parser so that
1442 the | always creates a union and so is
1443 no longer a valid type char (thanks to
1444 konobi, mugwump and #moose for working
1446 - added more tests for this
1448 0.26 Thurs. Sept. 27, 2007
1451 * Parameterized Types
1452 We now support parameterized collection types, such as:
1453 ArrayRef[Int] # array or integers
1454 HashRef[Object] # a hash with object values
1455 They can also be nested:
1456 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1457 And work with the type unions as well:
1458 ArrayRef[Int | Str] # array of integers of strings
1460 * Better Framework Extendability
1461 Moose.pm is now "extendable" such that it is now much
1462 easier to extend the framework and add your own keywords
1463 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1464 section of the Moose.pm docs.
1467 In an effort to begin documenting some of the various
1468 details of Moose as well as some common idioms, we have
1469 created Moose::Cookbook::Snacks as a place to find
1470 small (easily digestable) nuggets of Moose code.
1473 ~ Several doc updates/cleanup thanks to castaway ~
1475 - converted build system to use Module::Install instead of
1476 Module::Build (thanks to jrockway)
1479 - added all the meta classes to the immutable list and
1480 set it to inline the accessors
1481 - fix import to allow Sub::Exporter like { into => }
1482 and { into_level => } (perigrin)
1483 - exposed and documented init_meta() to allow better
1484 embedding and extending of Moose (perigrin)
1487 - complete re-organization of the test suite
1488 - added some new tests as well
1489 - finally re-enabled the Moose::POOP test since
1490 the new version of DBM::Deep now works again
1493 * Moose::Meta::Class
1494 - fixed very odd and very nasty recursion bug with
1496 - added tests for this (eilara)
1498 * Moose::Meta::Attribute
1499 Moose::Meta::Method::Constructor
1500 Moose::Meta::Method::Accessor
1501 - fixed issue with overload::Overloaded getting called
1502 on non-blessed items. (RT #29269)
1503 - added tests for this
1505 * Moose::Meta::Method::Accessor
1506 - fixed issue with generated accessor code making
1507 assumptions about hash based classes (thanks to dexter)
1509 * Moose::Coookbook::Snacks
1510 - these are bits of documentation, not quite as big as
1511 Recipes but which have no clear place in the module docs.
1512 So they are Snacks! (horray for castaway++)
1514 * Moose::Cookbook::Recipe4
1515 - updated it to use the new ArrayRef[MyType] construct
1516 - updated the accompanying test as well
1518 +++ Major Refactor of the Type Constraint system +++
1519 +++ with new features added as well +++
1521 * Moose::Util::TypeConstraint
1522 - no longer uses package variable to keep track of
1523 the type constraints, now uses the an instance of
1524 Moose::Meta::TypeConstraint::Registry to do it
1525 - added more sophisticated type notation parsing
1527 - added tests for this
1529 * Moose::Meta::TypeConstraint
1530 - some minor adjustments to make subclassing easier
1531 - added the package_defined_in attribute so that we
1532 can track where the type constraints are created
1534 * Moose::Meta::TypeConstraint::Union
1535 - this is now been refactored to be a subclass of
1536 Moose::Meta::TypeConstraint
1538 * Moose::Meta::TypeCoercion::Union
1539 - this has been added to service the newly refactored
1540 Moose::Meta::TypeConstraint::Union and is itself
1541 a subclass of Moose::Meta::TypeCoercion
1543 * Moose::Meta::TypeConstraint::Parameterized
1544 - added this module (taken from MooseX::AttributeHelpers)
1545 to help construct nested collection types
1546 - added tests for this
1548 * Moose::Meta::TypeConstraint::Registry
1549 - added this class to keep track of type constraints
1551 0.25 Mon. Aug. 13, 2007
1553 - Documentation update to reference Moose::Util::TypeConstraints
1554 under 'isa' in 'has' for how to define a new type
1555 (thanks to shlomif).
1557 * Moose::Meta::Attribute
1558 - required attributes now will no longer accept undef
1559 from the constructor, even if there is a default and lazy
1560 - added tests for this
1561 - default subroutines must return a value which passes the
1563 - added tests for this
1565 * Moose::Meta::Attribute
1566 * Moose::Meta::Method::Constructor
1567 * Moose::Meta::Method::Accessor
1568 - type-constraint tests now handle overloaded objects correctly
1569 in the error message
1570 - added tests for this (thanks to EvanCarroll)
1572 * Moose::Meta::TypeConstraint::Union
1573 - added (has_)hand_optimized_constraint to this class so that
1574 it behaves as the regular Moose::Meta::TypeConstraint does.
1577 - large refactoring of this code
1578 - added several more tests
1579 - tests for subtle conflict resolition issues
1580 added, but not currently running
1583 * Moose::Cookbook::Recipe7
1584 - added new recipe for augment/inner functionality
1586 - added test for this
1589 - a formal definition of roles (still in progress)
1592 - utilities for easier working with Moose classes
1593 - added tests for these
1596 - This contains Moose specific test functions
1597 - added tests for these
1599 0.24 Tues. July 3, 2007
1600 ~ Some doc updates/cleanup ~
1602 * Moose::Meta::Attribute
1603 - added support for roles to be given as parameters
1604 to the 'handles' option.
1605 - added tests and docs for this
1606 - the has '+foo' attribute form now accepts changes to
1607 the lazy option, and the addition of a handles option
1608 (but not changing the handles option)
1609 - added tests and docs for this
1612 - required methods are now fetched using find_method_by_name
1613 so that required methods can come from superclasses
1614 - adjusted tests for this
1616 0.23 Mon. June 18, 2007
1617 * Moose::Meta::Method::Constructor
1618 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1619 * Moose::Meta::Class
1620 - Modify make_immutable to work with the new Class::MOP immutable
1621 mechanism + POD + very basic test (groditi)
1622 * Moose::Meta::Attribute
1623 - Fix handles to use goto() so that caller() comes out properly on
1624 the other side (perigrin)
1626 0.22 Thurs. May 31, 2007
1627 * Moose::Util::TypeConstraints
1628 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1629 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1630 prototypes for functions
1631 - added the ClassName type constraint, this checks for strings
1632 which will respond true to ->isa(UNIVERSAL).
1633 - added tests and docs for this
1634 - subtyping just in name now works correctly by making the
1635 default for where be { 1 }
1636 - added test for this
1638 * Moose::Meta::Method::Accessor
1639 - coerce and lazy now work together correctly, thanks to
1640 merlyn for finding this bug
1641 - tests added for this
1642 - fix reader presedence bug in Moose::Meta::Attribute + tests
1645 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1646 a HASH-ref and missed. This produces better error messages then
1647 having it die cause undef is not a HASH.
1648 - added tests for this
1650 0.21 Thursday, May 2nd, 2007
1652 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1653 - modified unimport to remove super and inner along with the rest
1654 - altered unimport tests to handle this
1657 - altered super export to populate SUPER_SLOT
1659 * Moose::Meta::Class
1660 - altered augment and override modifier application to use *_SLOT
1661 - modified tests for these to unimport one test class each to test
1664 - fixed issue where custom attribute metaclasses
1665 where not handled correctly in roles
1666 - added tests for this
1668 * Moose::Meta::Class
1669 - fixed issue where extending metaclasses with
1670 roles would blow up. Thanks to Aankhen`` for
1671 finding this insidious error, and it's solution.
1673 ~~ lots of spelling and grammer fixes in the docs,
1674 many many thanks to rlb3 and Aankhen for these :)
1676 0.20 Friday, April 6th, 2007
1677 >> I messed up the SKIP logic in one test
1678 so this release is just to fix that.
1681 - 'has' now also accepts an ARRAY ref
1682 to create multiple attrs (see docs)
1683 (thanks to konobi for this)
1684 - added tests and docs
1686 0.19 Thurs. April 5th, 2007
1687 ~~ More documentation updates ~~
1689 * Moose::Util::TypeConstraints
1690 - 'type' now supports messages as well
1691 thanks to phaylon for finding this
1692 - added tests for this
1693 - added &list_all_type_constraints and
1694 &list_all_builtin_type_constraints
1695 functions to facilitate introspection.
1697 * Moose::Meta::Attribute
1698 - fixed regexp 'handles' declarations
1699 to build the list of delegated methods
1700 correctly (and not override important
1701 things like &new) thanks to ashleyb
1703 - added tests and docs for this
1704 - added the 'documentation' attributes
1705 so that you can actually document your
1706 attributes and inspect them through the
1708 - added tests and docs for this
1710 * Moose::Meta::Class
1711 - when loading custom attribute metaclasses
1712 it will first look in for the class in the
1713 Moose::Meta::Attribute::Custom::$name, and
1714 then default to just loading $name.
1715 - added tests and docs for this
1717 * Moose::Meta::TypeConstraint
1718 - type constraints now stringify to their names.
1719 - added test for this
1722 - added tests to assure we work with Module::Refresh
1723 - added stricter test skip logic in the Moose POOP
1724 test, ask Rob Kinyon why.
1725 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1727 0.18 Sat. March 10, 2007
1728 ~~ Many, many documentation updates ~~
1731 - We now use Class::MOP::load_class to
1733 - added tests to show types and subtypes
1734 working with Declare::Constraints::Simple
1735 and Test::Deep as constraint engines.
1738 !! You must have Class::MOP 0.37_001 !!
1739 !! for this developer release to work !!
1741 This release was primarily adding the immutable
1742 feature to Moose. An immutable class is one which
1743 you promise not to alter. When you set the class
1744 as immutable it will perform various bits of
1745 memoization and inline certain part of the code
1746 (constructors, destructors and accessors). This
1747 minimizes (and in some cases totally eliminates)
1748 one of Moose's biggest performance hits. This
1749 feature is not on by default, and is 100% optional.
1750 It has several configurable bits as well, so you
1751 can pick and choose to your specific needs.
1753 The changes involved in this were fairly wide and
1754 highly specific, but 100% backwards compatible, so
1755 I am not going to enumerate them here. If you are
1756 truely interested in what was changed, please do
1759 0.17 Tues. Nov. 14, 2006
1760 * Moose::Meta::Method::Accessor
1761 - bugfix for read-only accessors which
1762 are have a type constraint and lazy.
1763 Thanks to chansen for finding it.
1765 0.16 Tues. Nov. 14, 2006
1767 There are some speed improvements in this release,
1768 but they are only the begining, so stay tuned.
1771 - BUILDALL and DEMOLISHALL no longer get
1772 called unless they actually need to be.
1773 This gave us a signifigant speed boost
1774 for the cases when there is no BUILD or
1775 DEMOLISH method present.
1777 * Moose::Util::TypeConstraints
1778 * Moose::Meta::TypeConstraint
1779 - added an 'optimize_as' option to the
1780 type constraint, which allows for a
1781 hand optimized version of the type
1782 constraint to be used when possible.
1783 - Any internally created type constraints
1784 now provide an optimized version as well.
1786 0.15 Sun. Nov. 5, 2006
1788 This version of Moose *must* have Class::MOP 0.36 in order
1789 to work correctly. A number of small internal tweaks have
1790 been made in order to be compatible with that release.
1792 * Moose::Util::TypeConstraints
1793 - added &unimport so that you can clean out
1794 your class namespace of these exported
1797 * Moose::Meta::Class
1798 - fixed minor issue which occasionally
1799 comes up during global destruction
1801 - moved Moose::Meta::Method::Overriden into
1805 - moved Moose::Meta::Role::Method into
1808 * Moose::Meta::Attribute
1809 - changed how we do type checks so that
1810 we reduce the overall cost, but still
1813 - moved accessor generation methods to
1814 Moose::Meta::Method::Accessor to
1815 conform to the API changes from
1818 * Moose::Meta::TypeConstraint
1819 - changed how constraints are compiled
1820 so that we do less recursion and more
1821 iteration. This makes the type check
1823 - moved Moose::Meta::TypeConstraint::Union
1826 * Moose::Meta::Method::Accessor
1827 - created this from methods formerly found in
1828 Moose::Meta::Attribute
1830 * Moose::Meta::Role::Method
1831 - moved this from Moose::Meta::Role
1833 * Moose::Meta::Method::Overriden
1834 - moved this from Moose::Meta::Class
1836 * Moose::Meta::TypeConstraint::Union
1837 - moved this from Moose::Meta::TypeConstraint
1839 0.14 Mon. Oct. 9, 2006
1841 * Moose::Meta::Attribute
1842 - fixed lazy attributes which were not getting
1843 checked with the type constraint (thanks ashley)
1844 - added tests for this
1845 - removed the over-enthusiastic DWIMery of the
1846 automatic ArrayRef and HashRef defaults, it
1847 broke predicates in an ugly way.
1848 - removed tests for this
1850 0.13 Sat. Sept. 30, 2006
1852 This version of Moose *must* have Class::MOP 0.35 in order
1853 to work correctly. A number of small internal tweaks have
1854 been made in order to be compatible with that release.
1857 - Removed the use of UNIVERSAL::require to be a better
1858 symbol table citizen and remove a dependency
1859 (thanks Adam Kennedy)
1861 **~~ removed experimental & undocumented feature ~~**
1862 - commented out the 'method' and 'self' keywords, see the
1863 comments for more info.
1866 - added a FAQ and WTF files to document frequently
1867 asked questions and common problems
1869 * Moose::Util::TypeConstraints
1870 - added GlobRef and FileHandle type constraint
1871 - added tests for this
1873 * Moose::Meta::Attribute
1874 - if your attribute 'isa' ArrayRef of HashRef, and you have
1875 not explicitly set a default, then make the default DWIM.
1876 This will also work for subtypes of ArrayRef and HashRef
1878 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1879 - new test added for this (thanks to ashley)
1882 - added basic support for runtime role composition
1883 but this is still *highly experimental*, so feedback
1884 is much appreciated :)
1885 - added tests for this
1887 * Moose::Meta::TypeConstraint
1888 - the type constraint now handles the coercion process
1889 through delegation, this is to support the coercion
1892 * Moose::Meta::TypeConstraint::Union
1893 - it is now possible for coercions to be performed
1895 - added tests for this (thanks to konobi)
1897 * Moose::Meta::TypeCoercion
1898 - properly capturing error when type constraint
1902 - Scalar::Util 1.18 is bad on Win32, so temporarily
1903 only require version 1.17 for Win32 and cygwin.
1904 (thanks Adam Kennedy)
1906 0.12 Sat. Sept. 1, 2006
1908 - Recipe5 (subtypes & coercion) has been written
1911 - fixed "bad meta" error message to be more descriptive
1912 - fixed &unimport to not remove the &inner and &super
1913 keywords because we need to localize them.
1914 - fixed number of spelling/grammer issues, thanks Theory :)
1916 **~~ experimental & undocumented feature ~~**
1917 - added the method and self keywords, they are basically
1918 just sugar, and they may not stay around.
1921 - added &dump method to easily Data::Dumper
1924 * Moose::Meta::TypeConstraint
1925 - added the &is_a_type_of method to check both the current
1926 and the subtype of a method (similar to &isa with classes)
1929 - this is now a subclass of Class::MOP::Module, and no longer
1930 creates the _role_meta ugliness of before.
1931 - fixed tests to reflect this change
1933 0.11 Wed. July 12, 2006
1935 - added an &unimport method to remove all the keywords
1936 that Moose will import, simply add 'no Moose' to the
1937 bottom of your class file.
1940 - fixed some test failures caused by a forgotten test
1943 0.10 Thurs. July 6, 2006
1945 - improved error message when loading modules so
1946 it is less confusing when you load a role.
1947 - added &calculate_all_roles method to
1948 Moose::Meta::Class and Moose::Meta::Role
1951 This module has been tested against Class::MOP 0.30
1952 but it does not yet utilize the optimizations
1953 it makes available. Stay tuned for that ;)
1955 0.09_03 Fri. June 23, 2006
1956 ++ DEVELOPER RELEASE ++
1958 - 'use strict' and 'use warnings' are no longer
1959 needed in Moose classes, Moose itself will
1960 turn them on for you.
1961 - added tests for this
1962 - moved code from exported subs to private methods
1963 in Moose::Meta::Class
1966 - as with Moose, strict and warnings are
1967 automatically turned on for you.
1968 - added tests for this
1971 - now handles an edge case for override errors
1972 - added tests for this
1973 - added some more edge case tests
1975 0.09_02 Tues. May 16, 2006
1976 ++ DEVELOPER RELEASE ++
1978 - added prototypes to the exported subs
1982 - added prototypes to the exported subs
1985 * Moose::Util::TypeConstraints
1986 - cleaned up prototypes for the subs
1989 0.09_01 Fri. May 12, 2006
1990 ++ DEVELOPER RELEASE ++
1991 - This release works in combination with
1992 Class::MOP 0.29_01, it is a developer
1993 release because it uses the a new
1994 instance sub-protocol and a fairly
1995 complete Role implementation. It has
1996 not yet been optimized, so it slower
1997 the the previous CPAN version. This
1998 release also lacks good updated docs,
1999 the official release will have updated docs.
2002 - refactored the keyword exports
2003 - 'with' now checks Role validaity and
2004 accepts more than one Role at a time
2005 - 'extends' makes metaclass adjustments as
2006 needed to ensure metaclass compatibility
2009 - refactored the keyword exports
2010 - 'with' now checks Role validaity and
2011 accepts more than one Role at a time
2013 * Moose::Util::TypeConstraints
2014 - added the 'enum' keyword for simple
2015 string enumerations which can be used as
2017 - see example of usage in t/202_example.t
2020 - more careful checking of params to new()
2023 - much work done on the role composition
2024 - many new tests for conflict detection
2025 and composition edge cases
2026 - not enough documentation, I suggest
2027 looking at the tests
2029 * Moose::Meta::Instance
2030 - added new Instance metaclass to support
2031 the new Class::MOP instance protocol
2033 * Moose::Meta::Class
2034 - some small changes to support the new
2036 - some small additions to support Roles
2038 * Moose::Meta::Attribute
2039 - some improvements to the accessor generation code
2041 - some small changes to support the new
2043 - (still somewhat) experimental delegation support
2044 with the 'handles' option
2045 - added several tests for this
2046 - no docs for this yet
2048 0.05 Thurs. April 27, 2006
2050 - keywords are now exported with Sub::Exporter
2051 thanks to chansen for this commit
2052 - has keyword now takes a 'metaclass' option
2053 to support custom attribute meta-classes
2054 on a per-attribute basis
2055 - added tests for this
2056 - the 'has' keyword not accepts inherited slot
2057 specifications (has '+foo'). This is still an
2058 experimental feature and probably not finished
2059 see t/038_attribute_inherited_slot_specs.t for
2060 more details, or ask about it on #moose
2061 - added tests for this
2064 - keywords are now exported with Sub::Exporter
2066 * Moose::Utils::TypeConstraints
2067 - reorganized the type constraint hierarchy, thanks
2068 to nothingmuch and chansen for his help and advice
2070 - added some tests for this
2071 - keywords are now exported with Sub::Exporter
2072 thanks to chansen for this commit
2074 * Moose::Meta::Class
2075 - due to changes in Class::MOP, we had to change
2076 construct_instance (for the better)
2078 * Moose::Meta::Attribute
2079 - due to changes in Class::MOP, we had to add the
2080 initialize_instance_slot method (it's a good thing)
2082 * Moose::Meta::TypeConstraint
2083 - added type constraint unions
2084 - added tests for this
2085 - added the is_subtype_of predicate method
2086 - added tests for this
2088 0.04 Sun. April 16th, 2006
2090 - Roles can now consume other roles
2091 - added tests for this
2092 - Roles can specify required methods now with
2093 the requires() keyword
2094 - added tests for this
2097 - ripped out much of it's guts ,.. much cleaner now
2098 - added required methods and correct handling of
2099 them in apply() for both classes and roles
2100 - added tests for this
2101 - no longer adds a does() method to consuming classes
2102 it relys on the one in Moose::Object
2103 - added roles attribute and some methods to support
2104 roles consuming roles
2106 * Moose::Meta::Attribute
2107 - added support for triggers on attributes
2108 - added tests for this
2109 - added support for does option on an attribute
2110 - added tests for this
2112 * Moose::Meta::Class
2113 - added support for attribute triggers in the
2115 - added tests for this
2118 - Moose no longer creates a subtype for your class
2119 if a subtype of the same name already exists, this
2120 should DWIM in 99.9999% of all cases
2122 * Moose::Util::TypeConstraints
2123 - fixed bug where incorrect subtype conflicts were
2125 - added test for this
2128 - this class can now be extended with 'use base' if
2129 you need it, it properly loads the metaclass class now
2130 - added test for this
2132 0.03_02 Wed. April 12, 2006
2134 - you must now explictly use Moose::Util::TypeConstraints
2135 it no longer gets exported for you automatically
2138 - new() now accepts hash-refs as well as key/value lists
2139 - added does() method to check for Roles
2140 - added tests for this
2142 * Moose::Meta::Class
2143 - added roles attribute along with the add_role() and
2145 - added tests for this
2148 - now adds a does() method to consuming classes
2149 which tests the class's hierarchy for roles
2150 - added tests for this
2152 0.03_01 Mon. April 10, 2006
2154 - added new Role recipe (no content yet, only code)
2157 - added 'with' keyword for Role support
2158 - added test and docs for this
2159 - fixed subtype quoting bug
2160 - added test for this
2164 - added test and docs
2166 * Moose::Util::TypeConstraints
2167 - added the message keyword to add custom
2168 error messages to type constraints
2171 - the meta role to support Moose::Role
2172 - added tests and docs
2174 * Moose::Meta::Class
2175 - moved a number of things from Moose.pm
2176 to here, they should have been here
2179 * Moose::Meta::Attribute
2180 - moved the attribute option macros here
2181 instead of putting them in Moose.pm
2183 * Moose::Meta::TypeConstraint
2184 - added the message attributes and the
2186 - added tests and docs for this
2188 0.03 Thurs. March 30, 2006
2190 - added the Moose::Cookbook with 5 recipes,
2191 describing all the stuff Moose can do.
2194 - fixed an issue with &extends super class loading
2195 it now captures errors and deals with inline
2196 packages correctly (bug found by mst, solution
2198 - added super/override & inner/augment features
2199 - added tests and docs for these
2202 - BUILDALL now takes a reference of the %params
2203 that are passed to &new, and passes that to
2206 * Moose::Util::TypeConstraints
2207 - Type constraints now survive runtime reloading
2208 - added test for this
2210 * Moose::Meta::Class
2211 - fixed the way attribute defaults are handled
2212 during instance construction (bug found by chansen)
2214 * Moose::Meta::Attribute
2215 - read-only attributes now actually enforce their
2216 read-only-ness (this corrected in Class::MOP as
2219 0.02 Tues. March 21, 2006
2221 - many more tests, fixing some bugs and
2223 - &extends now loads the base module with
2225 - added UNIVERSAL::require to the
2228 - each new Moose class will also create
2229 and register a subtype of Object which
2230 correspond to the new Moose class.
2231 - the 'isa' option in &has now only
2232 accepts strings, and will DWIM in
2235 * Moose::Util::TypeConstraints
2236 - added type coercion features
2237 - added tests for this
2238 - added support for this in attributes
2239 and instance construction
2241 - type construction no longer creates a
2242 function, it registers the type instead.
2243 - added several functions to get the
2247 - BUILDALL and DEMOLISHALL were broken
2248 because of a mis-named hash key, Whoops :)
2250 * Moose::Meta::Attribute
2251 - adding support for coercion in the
2252 autogenerated accessors
2254 * Moose::Meta::Class
2255 - adding support for coercion in the
2256 instance construction
2258 * Moose::Meta::TypeConstraint
2259 * Moose::Meta::TypeCoercion
2260 - type constraints and coercions are now
2261 full fledges meta-objects
2263 0.01 Wed. March 15, 2006
2264 - Moooooooooooooooooose!!!