1 Revision history for Perl extension Moose
5 - Hopefully fixed some POD errors in a few recipes that caused
6 them to display weird on search.cpan.org.
8 * Moose::Util::TypeConstraints
9 - Calling type or subtype without the sugar helpers (as, where,
10 message) is now deprecated.
11 - The subtype function tried hard to guess what you meant, but
12 often got it wrong. For example:
14 my $subtype = subtype as 'ArrayRef[Object]';
16 This caused an error in the past, but now works as you'd
20 0.71 Thu, February 19, 2009
21 * Moose::Cookbook::Basics::Recipe11
22 - A new recipe which demonstrates the use of BUILDARGS and
25 * Moose::Cookbook::Roles::Recipe3
26 - A new recipe, applying a role to an object instance. (Dave
30 - Allow overriding specific keywords from "also" packages. (doy)
33 - Replace hardcoded cookbook tests with Test::Inline POD
34 to ensure they don't get out of sync. (Dave Rolsky)
37 - Working on the above turned up a number of little bugs in the
38 recipe code. (Dave Rolsky)
40 * Moose::Util::TypeConstraints::Optimized
41 - Just use Class::MOP for the optimized ClassName check. (Dave
44 0.70 Sat, February 14, 2009
45 * Moose::Util::TypeConstraints
46 - Added the RoleName type (stevan)
47 - added tests for this (stevan)
49 * Moose::Cookbook::Basics::Recipe3
50 - Updated the before qw[left right] sub to be a little more
51 defensive about what it accepts (stevan)
52 - added more tests to t/000_recipies/basics/003_binary_tree.t
56 - We now always call DEMOLISHALL, even if a class does not
57 define DEMOLISH. This makes sure that method modifiers on
58 DEMOLISHALL work as expected. (doy)
59 - added tests for this (EvanCarroll)
61 * Moose::Util::MetaRole
62 - Accept roles for the wrapped_method_metaclass (rafl)
63 - added tests for this (rafl)
65 * Moose::Meta::Attribute
66 - We no longer pass the meta-attribute object as a final
67 argument to triggers. This actually changed for inlined code a
68 while back, but the non-inlined version and the docs were
72 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
73 they require 0.11. (Dave Rolsky)
76 - Lots of small changes to the manual, cookbook, and
77 elsewhere. These were based on feedback from various
78 users, too many to list here. (Dave Rolsky)
80 0.69 Thu, February 12, 2009
82 - Make some keyword errors use throw_error instead of croak
83 since Moose::Exporter wraps keywords now (Sartak)
86 - Revised every recipe for style and clarity. Also moved some
87 documentation out of cookbook recipes and into Moose::Manual
88 pages. This work was funded as part of the Moose docs grant
89 from TPF. (Dave Rolsky)
91 * Moose::Meta::Method::Delegation
92 - If the attribute doing the delegation was not populated, the
93 error message did not specify the attribute name
96 0.68 Wed, February 4, 2009
98 - Many spelling, typo, and formatting fixes by daxim.
100 * Moose::Manual::Attributes
101 - The NAME section in the POD used "Attribute" so search.cpan
102 didn't resolve links from other documents properly.
104 * Moose::Meta::Method::Overriden
105 - Now properly spelled as Overridden. Thanks to daxim for
108 0.67 Tue, February 3, 2009
110 - Lots of little typo fixes and a few clarifications. Several
111 pages didn't have proper titles, and so weren't actually
112 visible on search.cpan.org. Thanks to hanekomu for a variety
113 of fixes and formatting improvements.
115 0.66 Tue, February 3, 2009
117 - This is a brand new, extensive manual for Moose. This aims to
118 provide a complete introduction to all of Moose's
119 features. This work was funded as part of the Moose docs grant
120 from TPF. (Dave Rolsky)
122 * Moose::Meta::Attribute
123 - Added a delegation_metaclass method to replace a hard-coded
124 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
126 * Moose::Util::TypeConstraints
127 - If you created a subtype and passed a parent that Moose didn't
128 know about, it simply ignored the parent. Now it automatically
129 creates the parent as a class type. This may not be what you
130 want, but is less broken than before. (Dave Rolsky)
132 * Moose::Util::TypeConstraints
133 - This module tried throw errors by calling Moose->throw_error,
134 but it did not ensure that Moose was loaded first. This could
135 cause very unhelpful errors when it tried to throw an error
136 before Moose was loaded. (Dave Rolsky)
138 * Moose::Util::TypeConstraints
139 - You could declare a name with subtype such as "Foo!Bar" that
140 would be allowed, but if you used it in a parameterized type
141 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
142 vetting on names created via the sugar functions, so that they
143 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
145 0.65 Thu, January 22, 2008
146 * Moose and Moose::Meta::Method::Overridden
147 - If an overridden method called super(), and then the
148 superclass's method (not overridden) _also_ called super(),
149 Moose went into an endless recursion loop. Test provided by
150 Chris Prather. (Dave Rolsky)
152 * Moose::Meta::TypeConstraint
153 - All methods are now documented. (gphat)
155 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
156 - Fixed some bogus failures that occurred because we tried to
157 validate filesystem paths in a very ad-hoc and
158 not-quite-correct way. (Dave Rolsky)
160 * Moose::Util::TypeConstraints
161 - Added maybe_type to exports. See docs for details. (rjbs)
164 - Added Moose::Util::TypeConstraints to the SEE ALSO
168 - Methods created via an attribute can now fulfill a "requires"
169 declaration for a role. (nothingmuch)
171 * Moose::Meta::Method::*
172 - Stack traces from inlined code will now report its line and
173 file as being in your class, as opposed to in Moose
176 0.64 Wed, December 31, 2008
177 * Moose::Meta::Method::Accessor
178 - Always inline predicate and clearer methods (Sartak)
180 * Moose::Meta::Attribute
181 - Support for parameterized traits (Sartak)
182 - verify_against_type_constraint method to avoid duplication
183 and enhance extensibility (Sartak)
186 - Tests (but no support yet) for parameterized traits (Sartak)
189 - Require Class::MOP 0.75+, which has the side effect of making
190 sure we work on Win32. (Dave Rolsky)
192 0.63 Mon, December 8, 2008
194 - Some small grammar tweaks and bug fixes in non-Moose example
197 0.62_02 Fri, December 5, 2008
198 * Moose::Meta::Role::Application::ToClass
199 - When a class does not provide all of a role's required
200 methods, the error thrown now mentions all of the missing
201 methods, as opposed to just the first one found. Requested by
202 Curtis Poe (RT #41119). (Dave Rolsky)
204 * Moose::Meta::Method::Constructor
205 - Moose will no longer inline a constructor for your class
206 unless it inherits its constructor from Moose::Object, and
207 will warn when it doesn't inline. If you want to force
208 inlining anyway, pass "replace_constructor => 1" to
209 make_immutable. Addresses RT #40968, reported by Jon
210 Swartz. (Dave Rolsky)
211 - The quoting of default values could be broken if the default
212 contained a single quote ('). Now we use quotemeta to escape
213 anything potentially dangerous in the defaults. (Dave Rolsky)
215 0.62_01 Wed, December 3, 2008
217 - use the method->execute API for BUILDALL
218 and DEMOLISHALL (Sartak)
220 * Moose::Util::TypeConstraints
221 - We now make all the type constraint meta classes immutable
222 before creating the default types provided by Moose. This
223 should make loading Moose a little faster. (Dave Rolsky)
225 0.62 Wed November 26, 2008
226 * Moose::Meta::Role::Application::ToClass
227 Moose::Meta::Role::Application::ToRole
228 - fixed issues where excluding and aliasing the
229 same methods for a single role did not work
230 right (worked just fine with multiple
232 - added test for this (stevan)
234 * Moose::Meta::Role::Application::RoleSummation
235 - fixed the error message when trying to compose
236 a role with a role it excludes (Sartak)
239 - Catch another case where recursion caused the value
240 of $CALLER to be stamped on (t0m)
241 - added test for this (t0m)
244 - Remove the make_immutable keyword, which has been
245 deprecated since April. It breaks metaclasses that
246 use Moose without no Moose (Sartak)
248 * Moose::Meta::Attribute
249 - Removing an attribute from a class now also removes delegation
250 (handles) methods installed for that attribute (t0m)
251 - added test for this (t0m)
253 * Moose::Meta::Method::Constructor
254 - An attribute with a default that looked like a number (but was
255 really a string) would accidentally be treated as a number
256 when the constructor was made immutable (perigrin)
257 - added test for this (perigrin)
260 - create method for constructing a role
262 - added test for this (Sartak)
263 - anonymous roles! (Sartak)
264 - added test for this (Sartak)
267 - more consistent error messages (Sartak)
269 * Moose::Cookbook::Roles::Recipe1
270 - attempt to explain why a role that just requires
271 methods is useful (Sartak)
273 0.61 Fri November 7, 2008
274 * Moose::Meta::Attribute
275 - When passing a role to handles, it will be loaded if necessary
279 - Method objects returned by get_method (and other methods)
280 Could end up being returned without an associated_metaclass
281 attribute. Removing get_method_map, which is provided by
282 Class::MOP::Class, fixed this. The Moose version did nothing
283 different from its parent except introduce a bug. (Dave Rolsky)
284 - added tests for this (jdv79)
287 - Added a $VERSION to all .pm files which didn't have one. Fixes
288 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
290 * Moose::Cookbook::Basics::Recipe4
291 * Moose::Cookbook::Basics::Recipe6
292 - These files had spaces on the first line of the SYNOPSIS, as
293 opposed to a totally empty line. According to RT #40432, this
294 confuses POD parsers. (Dave Rolsky)
296 0.60 Fri October 24, 2008
298 - Passing "-traits" when loading Moose caused the Moose.pm
299 exports to be broken. Reported by t0m. (Dave Rolsky)
300 - Tests for this bug. (t0m)
303 - Change resolve_metaclass alias to use the new
304 load_first_existing_class function. This makes it a lot
305 simpler, and also around 5 times faster. (t0m)
306 - Add caching to resolve_metaclass_alias, which gives an order
307 of magnitude speedup to things which repeatedly call the
308 Moose::Meta::Attribute->does method, notably MooseX::Storage
311 * Moose::Util::TypeConstraint
312 - Put back the changes for parameterized constraints that
313 shouldn't have been removed in 0.59. We still cannot parse
314 them, but MooseX modules can create them in some other
315 way. See the 0.58 changes for more details. (jnapiorkowski)
316 - Changed the way subtypes are created so that the job is
317 delegated to a type constraint parent. This clears up some
318 hardcoded checking and should allow correct subtypes of
319 Moose::Meta::Type::Constraint. Don't rely on this new API too
320 much (create_child_type) because it may go away in the
321 future. (jnapiorkowski)
323 * Moose::Meta::TypeConstraint::Union
324 - Type constraint names are sorted as strings, not numbers.
327 * Moose::Meta::TypeConstraint::Parameterizable
328 - New parameterize method. This can be used as a factory method
329 to make a new type constraint with a given parameterized
330 type. (jnapiorkowski)
331 - added tests (jnapiorkowski)
333 0.59 Tue October 14, 2008
335 - Add abridged documentation for builder/default/initializer/
336 predicate, and link to more details sections in
337 Class::MOP::Attribute. (t0m)
339 * Moose::Util::TypeConstraints
340 - removed prototypes from all but the &-based stuff (mst)
342 * Moose::Util::TypeConstraints
343 - Creating a anonymous subtype with both a constraint and a
344 message failed with a very unhelpful error, but should just
345 work. Reported by t0m. (Dave Rolsky)
348 - Some tests that used Test::Warn if it was available failed
349 with older versions of Test::Warn. Reported by Fayland. (Dave
351 - Test firing behavior of triggers in relation to builder/default/
353 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
354 kinds of supported type. (t0m)
357 - In create(), do not pass "roles" option to the superclass
358 - added related test that creates an anon metaclass with
361 * Moose::Meta::TypeConstraint::Class
362 * Moose::Meta::TypeConstraint::Role
363 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
364 other types (as per change in 0.55_02). (t0m)
366 * Moose::Meta::TypeConstraint::Registry
367 - Fix warning when dealing with unknown type names (t0m)
369 * Moose::Util::TypeConstraints
370 - Reverted changes from 0.58 related to handle parameterized
371 types. This caused random failures on BSD and Win32 systems,
372 apparently related to the regex engine. This means that Moose
373 can no longer parse structured type constraints like
374 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
375 supported in a slightly different way via MooseX::Types some
376 time in the future. (Dave Rolsky)
378 0.58 Sat September 20, 2008
379 !! This release has an incompatible change regarding !!
380 !! how roles add methods to a class !!
382 * Roles and role application
383 ! Roles now add methods by calling add_method, not
384 alias_method. They make sure to always provide a method
385 object, which will be cloned internally. This means that it is
386 now possible to track the source of a method provided by a
387 role, and even follow its history through intermediate roles.
389 This means that methods added by a role now show up when
390 looking at a class's method list/map. (Dave Rolsky)
393 - From this release on, we'll try to maintain a list of
394 conflicting modules, and warn you if you have one
395 installed. For example, this release conflicts with ...
396 - MooseX::Singleton <= 0.11
397 - MooseX::Params::Validate <= 0.05
400 In general, we try to not break backwards compatibility for
401 most Moose users, but MooseX modules and other code which
402 extends Moose's metaclasses is often affected by very small
403 changes in the Moose internals.
405 * Moose::Meta::Method::Delegation
406 * Moose::Meta::Attribute
407 - Delegation methods now have their own method class. (Dave
410 * Moose::Meta::TypeConstraint::Parameterizable
411 - Added a new method 'parameterize' which is basically a factory
412 for the containing constraint. This makes it easier to create
413 new types of parameterized constraints. (jnapiorkowski)
415 * Moose::Meta::TypeConstraint::Union
416 - Changed the way Union types canonicalize their names to follow
417 the normalized TC naming rules, which means we strip all
418 whitespace. (jnapiorkowski)
420 * Moose::Util::TypeConstraints
421 - Parameter and Union args are now sorted, this makes Int|Str
422 the same constraint as Str|Int. (jnapiorkowski)
423 - Changes to the way Union types are parsed to more correctly
424 stringify their names. (jnapiorkowski)
425 - When creating a parameterized type, we now use the new
426 parameterize method. (jnapiorkowski)
427 - Incoming type constraint strings are now normalized to remove
428 all whitespace differences. (jnapiorkowski)
429 - Changed the way we parse type constraint strings so that we now
430 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
431 constraints. This lays the foundation for more flexible type
432 constraint implementations.
434 * Tests and docs for all the above. (jnapiorkowski)
438 - Moose::Exporter will no longer remove a subroutine that the
439 exporting package re-exports. Moose re-exports the
440 Carp::confess function, among others. The reasoning is that we
441 cannot know whether you have also explicitly imported those
442 functions for your own use, so we err on the safe side and
443 always keep them. (Dave Rolsky)
444 - added tests for this (rafl)
447 - Changes to how we fix metaclass compatibility that are much
448 too complicated to go into. The summary is that Moose is much
449 less likely to complain about metaclass incompatibility
450 now. In particular, if two metaclasses differ because
451 Moose::Util::MetaRole was used on the two corresponding
452 classes, then the difference in roles is reconciled for the
453 subclass's metaclass. (Dave Rolsky)
454 - Squashed an warning in _process_attribute (thepler)
457 - throw exceptions (sooner) for invalid attribute names (thepler)
458 - added tests for this (thepler)
460 * Moose::Util::MetaRole
461 - If you explicitly set a constructor or destructor class for a
462 metaclass object, and then applied roles to the metaclass,
463 that explicitly set class would be lost and replaced with the
467 * Moose::Meta::Attribute
468 * Moose::Meta::Method
471 * Moose::Error::Default
472 * Moose::Error::Croak
473 * Moose::Error::Confess
474 - All instances of confess() changed to use overridable
475 C<throw_error> method. This method ultimately calls a class
476 constructor, and you can change the class being called. In
477 addition, errors now pass more information than just a string.
478 The default C<error_class> behaves like C<Carp::confess>, so
479 the behavior is not visibly different for end users.
481 0.57 Wed September 3, 2008
483 - A new bit of doc intended to introduce folks familiar with
484 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
487 - Shows examples of two classes, each done first with and then
488 without Moose. This makes a nice parallel to
489 Moose::Intro. (Dave Rolsky)
491 * Moose::Util::TypeConstraints
492 - Fixed a bug in find_or_parse_type_constraint so that it
493 accepts a Moose::Meta::TypeConstraint object as the parent
494 type, not just a name (jnapiorkowski)
495 - added tests (jnapiorkowski)
498 - If Sub::Name was not present, unimporting failed to actually
499 remove some sugar subs, causing test failures (Dave Rolsky)
501 0.56 Mon September 1, 2008
502 For those not following the series of dev releases, there are
503 several major changes in this release of Moose.
504 ! Moose::init_meta should now be called as a method. See the
507 - Major performance improvements by nothingmuch.
509 - New modules for extension writers, Moose::Exporter and
510 Moose::Util::MetaRole by Dave Rolsky.
512 - Lots of doc improvements and additions, especially in the
517 * Removed all references to the experimental-but-no-longer-needed
518 Moose::Meta::Role::Application::ToMetaclassInstance.
520 * Require Class::MOP 0.65.
522 0.55_04 Sat August 30, 2008
523 * Moose::Util::MetaRole
524 * Moose::Cookbook::Extending::Recipe2
525 - This simplifies the application of roles to any meta class, as
526 well as the base object class. Reimplemented metaclass traits
527 using this module. (Dave Rolsky)
529 * Moose::Cookbook::Extending::Recipe1
530 - This a new recipe, an overview of various ways to write Moose
531 extensions (Dave Rolsky)
533 * Moose::Cookbook::Extending::Recipe3
534 * Moose::Cookbook::Extending::Recipe4
535 - These used to be Extending::Recipe1 and Extending::Recipe2,
538 0.55_03 Fri August 29, 2008
539 * No changes from 0.55_02 except increasing the Class::MOP
540 dependency to 0.64_07.
542 0.55_02 Fri August 29, 2008
543 * Makefile.PL and Moose.pm
544 - explicitly require Perl 5.8.0+ (Dave Rolsky)
546 * Moose::Util::TypeConstraints
547 - Fix warnings from find_type_constraint if the type is not
550 * Moose::Meta::TypeConstraint
551 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
552 return false if the type you specify cannot be found in the
553 type registry, rather than throwing an unhelpful and
554 coincidental exception. (t0m).
555 - added docs & test for this (t0m)
557 * Moose::Meta::TypeConstraint::Registry
558 - add_type_constraint now throws an exception if a parameter is
560 - added docs & test for this (t0m)
562 * Moose::Cookbook::FAQ
563 - Added a faq entry on the difference between "role" and "trait"
567 - Fixed a bug that caused role composition to not see a required
568 method when that method was provided by another role being
569 composed at the same time. (Dave Rolsky)
570 - test and bug finding (tokuhirom)
572 0.55_01 Wed August 20, 2008
574 !! Calling Moose::init_meta as a function is now !!
575 !! deprecated. Please see the Moose.pm docs for details. !!
577 * Moose::Meta::Method::Constructor
578 - Fix inlined constructor so that values produced by default
579 or builder methods are coerced as required. (t0m)
580 - added test for this (t0m)
582 * Moose::Meta::Attribute
583 - A lazy attribute with a default or builder did not attempt to
584 coerce the default value. The immutable code _did_
586 - added test for this (t0m)
589 - This is a new helper module for writing "Moose-alike"
590 modules. This should make the lives of MooseX module authors
591 much easier. (Dave Rolsky)
594 * Moose::Cookbook::Meta::Recipe5
595 - Implemented metaclass traits (and wrote a recipe for it):
597 use Moose -traits => 'Foo'
599 This should make writing small Moose extensions a little
602 * Moose::Cookbook::Basics::Recipe1
603 - Removed any examples of direct hashref access, and applied an
604 editorial axe to reduce verbosity. (Dave Rolsky)
606 * Moose::Cookbook::Basics::Recipe1
607 - Also applied an editorial axe here. (Dave Rolsky)
610 * Moose::Cookbook::Extending::Recipe1
611 * Moose::Cookbook::Extending::Recipe2
612 - Rewrote extending and embedding moose documentation and
613 recipes to use Moose::Exporter (Dave Rolsky)
617 - These two modules now warn when you load them from the main
618 package "main" package, because we will not export sugar to
619 main. Previously it just did nothing. (Dave Rolsky)
622 - Now provide an init_meta method just like Moose.pm, and you
623 can call this to provide an alternate role metaclass. (Dave
624 Rolsky and nothingmuch)
625 - get_method_map now respects the package cache flag (nothingmuch)
628 - Two new methods - add_method and wrap_method_body
632 - Optimizations including allowing constructors to accept hash
633 refs, making many more classes immutable, and making
634 constructors immutable. (nothingmuch)
636 0.55 Sun August 3, 2008
637 * Moose::Meta::Attribute
638 - breaking down the way 'handles' methods are
639 created so that the process can be more easily
640 overridden by subclasses (stevan)
642 * Moose::Meta::TypeConstraint
643 - fixing what is passed into a ->message with
644 the type constraints (RT #37569)
645 - added tests for this (Charles Alderman)
647 * Moose::Util::TypeConstraints
648 - fix coerce to accept anon types like subtype can (mst)
651 - reorganized the recipes into sections - Basics, Roles, Meta,
652 Extending - and wrote abstracts for each section (Dave Rolsky)
654 * Moose::Cookbook::Basics::Recipe10
655 - A new recipe that demonstrates operator overloading
656 in combination with Moose. (bluefeet)
658 * Moose::Cookbook::Meta::Recipe1
659 - an introduction to what meta is and why you'd want to make
660 your own metaclass extensions (Dave Rolsky)
662 * Moose::Cookbook::Meta::Recipe4
663 - a very simple metaclass example (Dave Rolsky)
665 * Moose::Cookbook::Extending::Recipe1
666 - how to write a Moose-alike module to use your own object base
669 * Moose::Cookbook::Extending::Recipe2
670 - how to write modules with an API just like C<Moose.pm> (Dave
674 - Tons of fixes, both syntactical and grammatical (Dave
675 Rolsky, Paul Fenwick)
677 0.54 Thurs. July 3, 2008
678 ... this is not my day today ...
680 * Moose::Meta::Attribute
681 - fixed legal_options_for_inheritance such that
682 clone_and_inherit options still works for
683 Class::MOP::Attribute objects and therefore
684 does not break MooseX::AttributeHelpers
687 0.53 Thurs. July 3, 2008
688 * Whoops, I guess I should run 'make manifest' before
689 actually releasing the module. No actual changes
690 in this release, except the fact that it includes
691 the changes that I didn't include in the last
694 0.52 Thurs. July 3, 2008
696 - added "FEATURE REQUESTS" section to the Moose docs
697 to properly direct people (stevan) (RT #34333)
698 - making 'extends' croak if it is passed a Role since
699 this is not ever something you want to do
700 (fixed by stevan, found by obra)
701 - added tests for this (stevan)
704 - adding support for DOES (as in UNIVERSAL::DOES)
706 - added test for this
708 * Moose::Meta::Attribute
709 - added legal_options_for_inheritance (wreis)
710 - added tests for this (wreis)
712 * Moose::Cookbook::Snacks::*
713 - removed some of the unfinished snacks that should
714 not have been released yet. Added some more examples
715 to the 'Keywords' snack. (stevan)
717 * Moose::Cookbook::Style
718 - added general Moose "style guide" of sorts to the
719 cookbook (nothingmuch) (RT #34335)
722 - added more BUILDARGS tests (stevan)
724 0.51 Thurs. Jun 26, 2008
726 - add unimport so "no Moose::Role" actually does
729 * Moose::Meta::Role::Application::ToRole
730 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
731 order to provide its own implementation, that method still got
732 added to the list of required methods for consumers of
733 RoleB. Now an aliased method is only added to the list of
734 required methods if the role doing the aliasing does not
735 provide its own implementation. See Recipe 11 for an example
736 of all this. (Dave Rolsky)
737 - added tests for this
739 * Moose::Meta::Method::Constructor
740 - when a single argument that wasn't a hashref was provided to
741 an immutabilized constructor, the error message was very
742 unhelpful, as opposed to the non-immutable error. Reported by
744 - added test for this (Dave Rolsky)
746 * Moose::Meta::Attribute
747 - added support for meta_attr->does("ShortAlias") (sartak)
748 - added tests for this (sartak)
749 - moved the bulk of the `handles` handling to the new
750 install_delegation method (Stevan)
753 - Added BUILDARGS, a new step in new()
755 * Moose::Meta::Role::Application::RoleSummation
756 - fix typos no one ever sees (sartak)
758 * Moose::Util::TypeConstraints
759 * Moose::Meta::TypeConstraint
760 * Moose::Meta::TypeCoercion
761 - Attempt to work around the ??{ } vs. threads issue
763 - Some null_constraint optimizations
765 0.50 Thurs. Jun 11, 2008
766 - Fixed a version number issue by bumping all modules
769 0.49 Thurs. Jun 11, 2008
770 !! This version now approx. 20-25% !!
771 !! faster with new Class::MOP 0.59 !!
773 * Moose::Meta::Attribute
774 - fixed how the is => (ro|rw) works with
775 custom defined reader, writer and accessor
777 - added docs for this (TODO).
778 - added tests for this (Thanks to Penfold)
779 - added the custom attribute alias for regular
780 Moose attributes which is "Moose"
781 - fix builder and default both being used
786 Moose::Meta::Attribute
788 Moose::Meta::Role::Composite
789 Moose::Util::TypeConstraints
790 - switched usage of reftype to ref because
794 - changing add_package_symbol to use the new
798 - fixed how DEMOLISHALL is called so that it
799 can be overrided in subclasses (thanks to Sartak)
800 - added test for this (thanks to Sartak)
802 * Moose::Util::TypeConstraints
803 - move the ClassName type check code to
804 Class::MOP::is_class_loaded (thanks to Sartak)
806 * Moose::Cookbook::Recipe11
807 - add tests for this (thanks to tokuhirom)
809 0.48 Thurs. May 29, 2008
810 (early morning release engineering)--
812 - fixing the version in Moose::Meta::Method::Destructor
813 which was causing the indexer to choke
815 0.47 Thurs. May 29, 2008
816 (late night release engineering)--
818 - fixing the version is META.yml, no functional
819 changes in this release
821 0.46 Wed. May 28, 2008
822 !! This version now approx. 20-25% !!
823 !! faster with new Class::MOP 0.57 !!
826 - some optimizations of the &initialize method
827 since it is called so often by &meta
831 - now use the get_all_package_symbols from the
832 updated Class::MOP, test suite is now 10 seconds
835 * Moose::Meta::Method::Destructor
836 - is_needed can now also be called as a class
837 method for immutablization to check if the
838 destructor object even needs to be created
841 * Moose::Meta::Method::Destructor
842 Moose::Meta::Method::Constructor
843 - added more descriptive error message to help
844 keep people from wasting time tracking an error
845 that is easily fixed by upgrading.
847 0.45 Saturday, May 24, 2008
849 - Because of work in Class::MOP 0.57, all
850 XS based functionality is now optional
851 and a Pure Perl version is supplied
852 - the CLASS_MOP_NO_XS environment variable
853 can now be used to force non-XS versions
855 - several of the packages have been tweaked
856 to take care of this, mostly we added
857 support for the package_name and name
858 variables in all the Method metaclasses
859 - before/around/after method modifiers now
860 support regexp matching of names
861 (thanks to Takatoshi Kitano)
862 - tests added for this
863 - NOTE: this only works for classes, it
864 is currently not supported in roles,
865 but, ... patches welcome
866 - All usage of Carp::confess have been replaced
867 by Carp::croak in the "keyword" functions since
868 the stack trace is usually not helpful
871 - All usage of Carp::confess have been replaced
872 by Carp::croak in the "keyword" functions since
873 the stack trace is usually not helpful
874 - The 'has' keyword for roles now accepts the
875 same array ref form that Moose.pm does
876 (has [qw/foo bar/] => (is => 'rw', ...))
877 - added test for this
879 * Moose::Meta::Attribute
880 - trigger on a ro-attribute is no longer an
881 error, as it's useful to trigger off of the
885 - added same 'add_package_symbol' fix as in
889 - does_role now handles non-Moose classes
891 - added tests for this
892 - added the 'add_method_modifier' function
893 (thanks to Takatoshi Kitano)
895 * Moose::Util::TypeConstraints
896 - subtypes of parameterizable types now are
897 themselves parameterizable types
899 * Moose::Meta::Method::Constructor
900 - fixed bug where trigger was not being
901 called by the inlined immutable
903 - added test for this (thanks to Caelum)
905 * Moose::Meta::Role::Application::ToInstance
906 - now uses the metaclass of the instance
907 (if possible) to create the anon-class
908 (thanks Jonathan Rockway)
910 * Moose::Cookbook::Recipe22
911 - added the meta-attribute trait recipe
915 - fixed hash-ordering test bug that was
916 causing occasional cpantester failures
917 - renamed the t/000_recipe/*.t tests to be
918 more descriptive (thanks to Sartak)
920 0.44 Sat. May 10, 2008
922 - made make_immutable warning cluck to
923 show where the error is (thanks mst)
926 - BUILDALL and DEMOLISHALL now call
927 ->body when looping through the
928 methods, to avoid the overloaded
930 - fixed issue where DEMOLISHALL was
931 eating the $@ values, and so not
932 working correctly, it still kind of
933 eats them, but so does vanilla perl
934 - added tests for this
936 * Moose::Cookbook::Recipe7
937 - added new recipe for immutable
938 functionality (thanks Dave Rolsky)
940 * Moose::Cookbook::Recipe9
941 - added new recipe for builder and
942 lazy_build (thanks Dave Rolsky)
944 * Moose::Cookbook::Recipe11
945 - added new recipe for method aliasing
946 and exclusion with Roles (thanks Dave Rolsky)
949 - fixed Win32 test failure (thanks spicyjack)
951 ~ removed Build.PL and Module::Build compat
952 since Module::Install has done that.
954 0.43 Wed. April, 30, 2008
956 drink more coffee before
957 doing release engineering
959 - whoops, forgot to do the smolder tests,
960 and we broke some of the custom meta-attr
961 modules. This fixes that.
963 0.42 Mon. April 28, 2008
964 - some bad tests slipped by, nothing else
965 changed in this release (cpantesters++)
967 - upped the Class::MOP dependency to 0.55
968 since we have tests which need the C3
971 0.41 Mon. April 28, 2008
972 ~~ numerous documentation updates ~~
974 - Changed all usage of die to Carp::croak for better
975 error reporting (initial patch by Tod Hagan)
978 - the make_immutable keyword is now deprecated, don't
979 use it in any new code and please fix your old code
980 as well. There will be 2 releases, and then it will
986 - refactored the way inner and super work to avoid
987 any method/@ISA cache penalty (nothingmuch)
990 - fixing &new_object to make sure trigger gets the
991 coerced value (spotted by Charles Alderman on the
993 - added test for this
995 * Moose::Meta::Method::Constructor
996 - immutable classes which had non-lazy attributes were calling
997 the default generating sub twice in the constructor. (bug
998 found by Jesse Luehrs, fixed by Dave Rolsky)
999 - added tests for this (Dave Rolsky)
1000 - fix typo in initialize_body method (nothingmuch)
1002 * Moose::Meta::Method::Destructor
1003 - fix typo in initialize_body method (nothingmuch)
1005 * Moose::Meta::Method::Overriden
1006 Moose::Meta::Method::Augmented
1007 - moved the logic for these into their own
1008 classes (nothingmuch)
1010 * Moose::Meta::Attribute
1011 - inherited attributes may now be extended without
1012 restriction on the type ('isa', 'does') (Sartak)
1013 - added tests for this (Sartak)
1014 - when an attribute property is malformed (such as lazy without
1015 a default), give the name of the attribute in the error
1017 - added the &applied_traits and &has_applied_traits methods
1018 to allow introspection of traits
1019 - added tests for this
1020 - moved 'trait' and 'metaclass' argument handling to here from
1022 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1023 '+foo' syntax) (nothingmuch)
1024 - added tests for this (t0m)
1027 - localize $@ inside DEMOLISHALL to avoid it
1028 eating $@ (found by Ernesto)
1029 - added test for this (thanks to Ernesto)
1031 * Moose::Util::TypeConstraints
1032 - &find_type_constraint now DWIMs when given an
1033 type constraint object or name (nothingmuch)
1034 - &find_or_create_type_constraint superseded with a number of more
1036 - find_or_create_{isa,does}_type_constraint
1037 - find_or_parse_type_constraint
1039 * Moose::Meta::TypeConstraint
1040 Moose::Meta::TypeConstraint::Class
1041 Moose::Meta::TypeConstraint::Role
1042 Moose::Meta::TypeConstraint::Enum
1043 Moose::Meta::TypeConstraint::Union
1044 Moose::Meta::TypeConstraint::Parameterized
1045 - added the &equals method for comparing two type
1046 constraints (nothingmuch)
1047 - added tests for this (nothingmuch)
1049 * Moose::Meta::TypeConstraint
1050 - add the &parents method, which is just an alias to &parent.
1051 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1053 * Moose::Meta::TypeConstraint::Class
1054 - added the class attribute for introspection purposes
1056 - added tests for this
1058 * Moose::Meta::TypeConstraint::Enum
1059 Moose::Meta::TypeConstraint::Role
1060 - broke these out into their own classes (nothingmuch)
1062 * Moose::Cookbook::Recipe*
1063 - fixed references to test file locations in the POD
1064 and updated up some text for new Moose features
1068 - Added &resolve_metaclass_alias, a helper function for finding an actual
1069 class for a short name (e.g. in the traits list)
1071 0.40 Fri. March 14, 2008
1072 - I hate Pod::Coverage
1074 0.39 Fri. March 14, 2008
1076 - documenting the use of '+name' with attributes
1077 that come from recently composed roles. It makes
1078 sense, people are using it, and so why not just
1079 officially support it.
1080 - fixing the 'extends' keyword so that it will not
1081 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1084 - added the perl -Moose=+Class::Name feature to allow
1085 monkeypatching of classes in one liners
1088 - fixing the 'apply_all_roles' keyword so that it will not
1089 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1091 * Moose::Meta::Class
1092 - added ->create method which now supports roles (thanks to jrockway)
1093 - added tests for this
1094 - added ->create_anon_class which now supports roles and caching of
1095 the results (thanks to jrockway)
1096 - added tests for this
1097 - made ->does_role a little more forgiving when it is
1098 checking a Class::MOP era metaclasses.
1100 * Moose::Meta::Role::Application::ToInstance
1101 - it is now possible to pass extra params to be used when
1102 a role is applied to an the instance (rebless_params)
1103 - added tests for this
1105 * Moose::Util::TypeConstraints
1106 - class_type now accepts an optional second argument for a
1107 custom message. POD anotated accordingly (groditi)
1108 - added tests for this
1109 - it is now possible to make anon-enums by passing 'enum' an
1110 ARRAY ref instead of the $name => @values. Everything else
1112 - added tests for this
1115 - making test for using '+name' on attributes consumed
1116 from a role, it works and makes sense too.
1118 * Moose::Meta::Attribute
1119 - fix handles so that it doesn't return nothing
1120 when the method cannot be found, not sure why
1121 it ever did this originally, this means we now
1122 have slightly better support for AUTOLOADed
1124 - added more delegation tests
1125 - adding ->does method to this so as to better
1126 support traits and their introspection.
1127 - added tests for this
1130 - localizing the Data::Dumper configurations so
1131 that it does not pollute others (RT #33509)
1132 - made ->does a little more forgiving when it is
1133 passed Class::MOP era metaclasses.
1135 0.38 Fri. Feb. 15, 2008
1136 * Moose::Meta::Attribute
1137 - fixed initializer to correctly do
1138 type checking and coercion in the
1140 - added tests for this
1143 - fixed some finicky tests (thanks to konobi)
1145 0.37 Thurs. Feb. 14, 2008
1147 - fixed some details in Moose::init_meta
1148 and its superclass handling (thanks thepler)
1149 - added tests for this (thanks thepler)
1150 - 'has' now dies if you don't pass in name
1152 - added the 'make_immutable' keyword as a shortcut
1155 * Moose::Meta::Class
1156 Moose::Meta::Method::Constructor
1157 Moose::Meta::Attribute
1158 - making (init_arg => undef) work here too
1159 (thanks to nothingmuch)
1161 * Moose::Meta::Attribute
1162 Moose::Meta::Method::Constructor
1163 Moose::Meta::Method::Accessor
1164 - make lazy attributes respect attr initializers (rjbs)
1165 - added tests for this
1167 * Moose::Util::TypeConstraints
1168 Moose::Util::TypeConstraints::OptimizedConstraints
1169 Moose::Meta::TypeConstraints
1170 Moose::Meta::Attribute
1171 Moose::Meta::Method::Constructor
1172 Moose::Meta::Method::Accessor
1173 - making type errors use the
1174 assigned message (thanks to Sartak)
1175 - added tests for this
1177 * Moose::Meta::Method::Destructor
1178 - making sure DESTROY gets inlined properly
1179 with successive DEMOLISH calls (thanks to manito)
1181 * Moose::Meta::Attribute
1182 Moose::Meta::Method::Accessor
1183 - fixed handling of undef with type constraints
1185 - added tests for this
1188 - added &get_all_init_args and &get_all_attribute_values
1189 (thanks to Sartak and nothingmuch)
1191 0.36 Sat. Jan. 26, 2008
1193 Moose::Meta::Attribute
1194 - role type tests now support when roles are
1195 applied to non-Moose classes (found by ash)
1196 - added tests for this (thanks to ash)
1197 - couple extra tests to boost code coverage
1199 * Moose::Meta::Method::Constructor
1200 - improved fix for handling Class::MOP attributes
1201 - added test for this
1203 * Moose::Meta::Class
1204 - handled the add_attribute($attribute_meta_object)
1206 - added test for this
1208 0.35 Tues. Jan. 22, 2008
1209 * Moose::Meta::Method::Constructor
1210 - fix to make sure even Class::MOP attributes
1211 are handled correctly (Thanks to Dave Rolsky)
1212 - added test for this (also Dave Rolsky)
1214 * Moose::Meta::Class
1215 - improved error message on _apply_all_roles,
1216 you should now use Moose::Util::apply_all_roles
1217 and you shouldnt have been using a _ prefixed
1218 method in the first place ;)
1220 0.34 Mon. Jan. 21, 2008
1221 ~~~ more misc. doc. fixes ~~~
1222 ~~ updated copyright dates ~~
1224 Moose is now a postmodern object system :)
1225 - (see the POD for details)
1227 * <<Role System Refactoring>>
1228 - this release contains a major reworking and
1229 cleanup of the role system
1230 - 100% backwards compat.
1231 - Role application now restructured into seperate
1232 classes based on type of applicants
1233 - Role summation (combining of more than one role)
1234 is much cleaner and anon-classes are no longer
1235 used in this process
1236 - new Composite role metaclass
1237 - runtime application of roles to instances
1238 is now more efficient and re-uses generated
1239 classes when applicable
1241 * <<New Role composition features>>
1242 - methods can now be excluded from a given role
1244 - methods can now be aliased to another name (and
1245 still retain the original as well)
1247 * Moose::Util::TypeConstraints::OptimizedConstraints
1248 - added this module (see above)
1250 * Moose::Meta::Class
1251 - fixed the &_process_attribute method to be called
1252 by &add_attribute, so that the API is now correct
1254 * Moose::Meta::Method::Accessor
1255 - fixed bug when passing a list of values to
1256 an accessor would get (incorrectly) ignored.
1257 Thanks to Sartak for finding this ;)
1258 - added tests for this (Sartak again)
1260 * Moose::Meta::Method::Accessor
1261 Moose::Meta::Method::Constructor
1262 Moose::Meta::Attribute
1263 Moose::Meta::TypeConstraint
1264 Moose::Meta::TypeCoercion
1265 - lots of cleanup of such things as:
1267 - type constraint handling
1268 - error handling/messages
1269 (thanks to nothingmuch)
1271 * Moose::Meta::TypeConstraint::Parameterizable
1272 - added this module to support the refactor
1273 in Moose::Meta::TypeConstraint::Parameterized
1275 * Moose::Meta::TypeConstraint::Parameterized
1276 - refactored how these types are handled so they
1277 are more generic and not confined to ArrayRef
1281 - shortened some file names for better VMS support (RT #32381)
1283 0.33 Fri. Dec. 14, 2007
1284 !! Moose now loads 2 x faster !!
1285 !! with new Class::MOP 0.49 !!
1287 ++ new oose.pm module to make command line
1288 Moose-ness easier (see POD docs for more)
1290 * Moose::Meta::Class
1292 - several tweaks to take advantage of the
1293 new method map caching in Class::MOP
1295 * Moose::Meta::TypeConstraint::Parameterized
1296 - allow subtypes of ArrayRef and HashRef to
1297 be used as a container (sartak)
1298 - added tests for this
1299 - basic support for coercion to ArrayRef and
1300 HashRef for containers (sartak)
1301 - added tests for this
1303 * Moose::Meta::TypeCoercion
1304 - coercions will now create subtypes as needed
1305 so you can now add coercions to parameterized
1306 types without having to explictly define them
1307 - added tests for this
1309 * Moose::Meta::Method::Accessor
1310 - allow subclasses to decide whether we need
1311 to copy the value into a new variable (sartak)
1313 0.32 Tues. Dec. 4, 2007
1314 * Moose::Util::TypeConstraints
1315 - fixing how subtype aliases of unions work
1316 they should inherit the parent's coercion
1317 - added tests for this
1318 - you can now define multiple coercions on
1319 a single type at different times instead of
1320 having to do it all in one place
1321 - added tests for this
1323 * Moose::Meta::TypeConstraint
1324 - there is now a default constraint of sub { 1 }
1325 instead of Moose::Util::TypeConstraints setting
1328 * Moose::Meta::TypeCoercion
1329 * Moose::Meta::TypeCoercion::Union
1330 - added the &has_coercion_for_type and
1331 &add_type_coercions methods to support the
1332 new features above (although you cannot add
1333 more type coercions for Union types)
1335 0.31 Mon. Nov. 26, 2007
1336 * Moose::Meta::Attribute
1337 - made the +attr syntax handle extending types with
1338 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1339 now works if the original foo is an ArrayRef.
1340 - added tests for this.
1341 - delegation now works even if the attribute does not
1342 have a reader method using the get_read_method_ref
1343 method from Class::MOP::Attribute.
1344 - added tests for this
1345 - added docs for this
1347 * Moose::Util::TypeConstraints
1348 - passing no "additional attribute info" to
1349 &find_or_create_type_constraint will no longer
1350 attempt to create an __ANON__ type for you,
1351 instead it will just return undef.
1352 - added docs for this
1354 0.30 Fri. Nov. 23, 2007
1355 * Moose::Meta::Method::Constructor
1356 -builder related bug in inlined constructor. (groditi)
1358 * Moose::Meta::Method::Accessor
1359 - genereate unnecessary calls to predicates and refactor
1360 code generation for runtime speed (groditi)
1362 * Moose::Util::TypeConstraints
1363 - fix ClassName constraint to introspect symbol table (mst)
1364 - added more tests for this (mst)
1365 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1366 with work correctly.
1367 - added tests for this
1370 - adding the link to Recipie 11 (written by Sartak)
1371 - adding test for SYNOPSIS code
1374 - New tests for builder bug. Upon instantiation, if an
1375 attribute had a builder, no value and was not lazy the
1376 builder default was not getting run, oops. (groditi)
1378 0.29 Tues. Nov. 13, 2007
1379 * Moose::Meta::Attribute
1380 - Fix error message on missing builder method (groditi)
1382 * Moose::Meta::Method::Accessor
1383 - Fix error message on missing builder method (groditi)
1386 - Add test to check for the correct error message when
1387 builder method is missing (groditi)
1389 0.28 Tues. Nov. 13, 2007
1390 - 0.27 packaged incorrectly (groditi)
1392 0.27 Tues. Nov. 13, 2007
1393 * Moose::Meta::Attribute
1394 - Added support for the new builder option (groditi)
1395 - Added support for lazy_build option (groditi)
1396 - Changed slot initialization for predicate changes (groditi)
1398 * Moose::Meta::Method::Accessor
1399 - Added support for lazy_build option (groditi)
1400 - Fix inline methods to work with corrected predicate
1403 * Moose::Meta::Method::Constructor
1404 - Added support for lazy_build option (groditi)
1407 - tests for builder and lazy_build (groditi)
1409 * fixing some misc. bits in the docs that
1410 got mentioned on CPAN Forum & perlmonks
1413 - fixed how required methods are handled
1414 when they encounter overriden or modified
1415 methods from a class (thanks to confound).
1416 - added tests for this
1418 * Moose::Util::TypeConstraint
1419 - fixed the type notation parser so that
1420 the | always creates a union and so is
1421 no longer a valid type char (thanks to
1422 konobi, mugwump and #moose for working
1424 - added more tests for this
1426 0.26 Thurs. Sept. 27, 2007
1429 * Parameterized Types
1430 We now support parameterized collection types, such as:
1431 ArrayRef[Int] # array or integers
1432 HashRef[Object] # a hash with object values
1433 They can also be nested:
1434 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1435 And work with the type unions as well:
1436 ArrayRef[Int | Str] # array of integers of strings
1438 * Better Framework Extendability
1439 Moose.pm is now "extendable" such that it is now much
1440 easier to extend the framework and add your own keywords
1441 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1442 section of the Moose.pm docs.
1445 In an effort to begin documenting some of the various
1446 details of Moose as well as some common idioms, we have
1447 created Moose::Cookbook::Snacks as a place to find
1448 small (easily digestable) nuggets of Moose code.
1451 ~ Several doc updates/cleanup thanks to castaway ~
1453 - converted build system to use Module::Install instead of
1454 Module::Build (thanks to jrockway)
1457 - added all the meta classes to the immutable list and
1458 set it to inline the accessors
1459 - fix import to allow Sub::Exporter like { into => }
1460 and { into_level => } (perigrin)
1461 - exposed and documented init_meta() to allow better
1462 embedding and extending of Moose (perigrin)
1465 - complete re-organization of the test suite
1466 - added some new tests as well
1467 - finally re-enabled the Moose::POOP test since
1468 the new version of DBM::Deep now works again
1471 * Moose::Meta::Class
1472 - fixed very odd and very nasty recursion bug with
1474 - added tests for this (eilara)
1476 * Moose::Meta::Attribute
1477 Moose::Meta::Method::Constructor
1478 Moose::Meta::Method::Accessor
1479 - fixed issue with overload::Overloaded getting called
1480 on non-blessed items. (RT #29269)
1481 - added tests for this
1483 * Moose::Meta::Method::Accessor
1484 - fixed issue with generated accessor code making
1485 assumptions about hash based classes (thanks to dexter)
1487 * Moose::Coookbook::Snacks
1488 - these are bits of documentation, not quite as big as
1489 Recipes but which have no clear place in the module docs.
1490 So they are Snacks! (horray for castaway++)
1492 * Moose::Cookbook::Recipe4
1493 - updated it to use the new ArrayRef[MyType] construct
1494 - updated the accompanying test as well
1496 +++ Major Refactor of the Type Constraint system +++
1497 +++ with new features added as well +++
1499 * Moose::Util::TypeConstraint
1500 - no longer uses package variable to keep track of
1501 the type constraints, now uses the an instance of
1502 Moose::Meta::TypeConstraint::Registry to do it
1503 - added more sophisticated type notation parsing
1505 - added tests for this
1507 * Moose::Meta::TypeConstraint
1508 - some minor adjustments to make subclassing easier
1509 - added the package_defined_in attribute so that we
1510 can track where the type constraints are created
1512 * Moose::Meta::TypeConstraint::Union
1513 - this is now been refactored to be a subclass of
1514 Moose::Meta::TypeConstraint
1516 * Moose::Meta::TypeCoercion::Union
1517 - this has been added to service the newly refactored
1518 Moose::Meta::TypeConstraint::Union and is itself
1519 a subclass of Moose::Meta::TypeCoercion
1521 * Moose::Meta::TypeConstraint::Parameterized
1522 - added this module (taken from MooseX::AttributeHelpers)
1523 to help construct nested collection types
1524 - added tests for this
1526 * Moose::Meta::TypeConstraint::Registry
1527 - added this class to keep track of type constraints
1529 0.25 Mon. Aug. 13, 2007
1531 - Documentation update to reference Moose::Util::TypeConstraints
1532 under 'isa' in 'has' for how to define a new type
1533 (thanks to shlomif).
1535 * Moose::Meta::Attribute
1536 - required attributes now will no longer accept undef
1537 from the constructor, even if there is a default and lazy
1538 - added tests for this
1539 - default subroutines must return a value which passes the
1541 - added tests for this
1543 * Moose::Meta::Attribute
1544 * Moose::Meta::Method::Constructor
1545 * Moose::Meta::Method::Accessor
1546 - type-constraint tests now handle overloaded objects correctly
1547 in the error message
1548 - added tests for this (thanks to EvanCarroll)
1550 * Moose::Meta::TypeConstraint::Union
1551 - added (has_)hand_optimized_constraint to this class so that
1552 it behaves as the regular Moose::Meta::TypeConstraint does.
1555 - large refactoring of this code
1556 - added several more tests
1557 - tests for subtle conflict resolition issues
1558 added, but not currently running
1561 * Moose::Cookbook::Recipe7
1562 - added new recipe for augment/inner functionality
1564 - added test for this
1567 - a formal definition of roles (still in progress)
1570 - utilities for easier working with Moose classes
1571 - added tests for these
1574 - This contains Moose specific test functions
1575 - added tests for these
1577 0.24 Tues. July 3, 2007
1578 ~ Some doc updates/cleanup ~
1580 * Moose::Meta::Attribute
1581 - added support for roles to be given as parameters
1582 to the 'handles' option.
1583 - added tests and docs for this
1584 - the has '+foo' attribute form now accepts changes to
1585 the lazy option, and the addition of a handles option
1586 (but not changing the handles option)
1587 - added tests and docs for this
1590 - required methods are now fetched using find_method_by_name
1591 so that required methods can come from superclasses
1592 - adjusted tests for this
1594 0.23 Mon. June 18, 2007
1595 * Moose::Meta::Method::Constructor
1596 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1597 * Moose::Meta::Class
1598 - Modify make_immutable to work with the new Class::MOP immutable
1599 mechanism + POD + very basic test (groditi)
1600 * Moose::Meta::Attribute
1601 - Fix handles to use goto() so that caller() comes out properly on
1602 the other side (perigrin)
1604 0.22 Thurs. May 31, 2007
1605 * Moose::Util::TypeConstraints
1606 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1607 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1608 prototypes for functions
1609 - added the ClassName type constraint, this checks for strings
1610 which will respond true to ->isa(UNIVERSAL).
1611 - added tests and docs for this
1612 - subtyping just in name now works correctly by making the
1613 default for where be { 1 }
1614 - added test for this
1616 * Moose::Meta::Method::Accessor
1617 - coerce and lazy now work together correctly, thanks to
1618 merlyn for finding this bug
1619 - tests added for this
1620 - fix reader presedence bug in Moose::Meta::Attribute + tests
1623 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1624 a HASH-ref and missed. This produces better error messages then
1625 having it die cause undef is not a HASH.
1626 - added tests for this
1628 0.21 Thursday, May 2nd, 2007
1630 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1631 - modified unimport to remove super and inner along with the rest
1632 - altered unimport tests to handle this
1635 - altered super export to populate SUPER_SLOT
1637 * Moose::Meta::Class
1638 - altered augment and override modifier application to use *_SLOT
1639 - modified tests for these to unimport one test class each to test
1642 - fixed issue where custom attribute metaclasses
1643 where not handled correctly in roles
1644 - added tests for this
1646 * Moose::Meta::Class
1647 - fixed issue where extending metaclasses with
1648 roles would blow up. Thanks to Aankhen`` for
1649 finding this insidious error, and it's solution.
1651 ~~ lots of spelling and grammer fixes in the docs,
1652 many many thanks to rlb3 and Aankhen for these :)
1654 0.20 Friday, April 6th, 2007
1655 >> I messed up the SKIP logic in one test
1656 so this release is just to fix that.
1659 - 'has' now also accepts an ARRAY ref
1660 to create multiple attrs (see docs)
1661 (thanks to konobi for this)
1662 - added tests and docs
1664 0.19 Thurs. April 5th, 2007
1665 ~~ More documentation updates ~~
1667 * Moose::Util::TypeConstraints
1668 - 'type' now supports messages as well
1669 thanks to phaylon for finding this
1670 - added tests for this
1671 - added &list_all_type_constraints and
1672 &list_all_builtin_type_constraints
1673 functions to facilitate introspection.
1675 * Moose::Meta::Attribute
1676 - fixed regexp 'handles' declarations
1677 to build the list of delegated methods
1678 correctly (and not override important
1679 things like &new) thanks to ashleyb
1681 - added tests and docs for this
1682 - added the 'documentation' attributes
1683 so that you can actually document your
1684 attributes and inspect them through the
1686 - added tests and docs for this
1688 * Moose::Meta::Class
1689 - when loading custom attribute metaclasses
1690 it will first look in for the class in the
1691 Moose::Meta::Attribute::Custom::$name, and
1692 then default to just loading $name.
1693 - added tests and docs for this
1695 * Moose::Meta::TypeConstraint
1696 - type constraints now stringify to their names.
1697 - added test for this
1700 - added tests to assure we work with Module::Refresh
1701 - added stricter test skip logic in the Moose POOP
1702 test, ask Rob Kinyon why.
1703 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1705 0.18 Sat. March 10, 2007
1706 ~~ Many, many documentation updates ~~
1709 - We now use Class::MOP::load_class to
1711 - added tests to show types and subtypes
1712 working with Declare::Constraints::Simple
1713 and Test::Deep as constraint engines.
1716 !! You must have Class::MOP 0.37_001 !!
1717 !! for this developer release to work !!
1719 This release was primarily adding the immutable
1720 feature to Moose. An immutable class is one which
1721 you promise not to alter. When you set the class
1722 as immutable it will perform various bits of
1723 memoization and inline certain part of the code
1724 (constructors, destructors and accessors). This
1725 minimizes (and in some cases totally eliminates)
1726 one of Moose's biggest performance hits. This
1727 feature is not on by default, and is 100% optional.
1728 It has several configurable bits as well, so you
1729 can pick and choose to your specific needs.
1731 The changes involved in this were fairly wide and
1732 highly specific, but 100% backwards compatible, so
1733 I am not going to enumerate them here. If you are
1734 truely interested in what was changed, please do
1737 0.17 Tues. Nov. 14, 2006
1738 * Moose::Meta::Method::Accessor
1739 - bugfix for read-only accessors which
1740 are have a type constraint and lazy.
1741 Thanks to chansen for finding it.
1743 0.16 Tues. Nov. 14, 2006
1745 There are some speed improvements in this release,
1746 but they are only the begining, so stay tuned.
1749 - BUILDALL and DEMOLISHALL no longer get
1750 called unless they actually need to be.
1751 This gave us a signifigant speed boost
1752 for the cases when there is no BUILD or
1753 DEMOLISH method present.
1755 * Moose::Util::TypeConstraints
1756 * Moose::Meta::TypeConstraint
1757 - added an 'optimize_as' option to the
1758 type constraint, which allows for a
1759 hand optimized version of the type
1760 constraint to be used when possible.
1761 - Any internally created type constraints
1762 now provide an optimized version as well.
1764 0.15 Sun. Nov. 5, 2006
1766 This version of Moose *must* have Class::MOP 0.36 in order
1767 to work correctly. A number of small internal tweaks have
1768 been made in order to be compatible with that release.
1770 * Moose::Util::TypeConstraints
1771 - added &unimport so that you can clean out
1772 your class namespace of these exported
1775 * Moose::Meta::Class
1776 - fixed minor issue which occasionally
1777 comes up during global destruction
1779 - moved Moose::Meta::Method::Overriden into
1783 - moved Moose::Meta::Role::Method into
1786 * Moose::Meta::Attribute
1787 - changed how we do type checks so that
1788 we reduce the overall cost, but still
1791 - moved accessor generation methods to
1792 Moose::Meta::Method::Accessor to
1793 conform to the API changes from
1796 * Moose::Meta::TypeConstraint
1797 - changed how constraints are compiled
1798 so that we do less recursion and more
1799 iteration. This makes the type check
1801 - moved Moose::Meta::TypeConstraint::Union
1804 * Moose::Meta::Method::Accessor
1805 - created this from methods formerly found in
1806 Moose::Meta::Attribute
1808 * Moose::Meta::Role::Method
1809 - moved this from Moose::Meta::Role
1811 * Moose::Meta::Method::Overriden
1812 - moved this from Moose::Meta::Class
1814 * Moose::Meta::TypeConstraint::Union
1815 - moved this from Moose::Meta::TypeConstraint
1817 0.14 Mon. Oct. 9, 2006
1819 * Moose::Meta::Attribute
1820 - fixed lazy attributes which were not getting
1821 checked with the type constraint (thanks ashley)
1822 - added tests for this
1823 - removed the over-enthusiastic DWIMery of the
1824 automatic ArrayRef and HashRef defaults, it
1825 broke predicates in an ugly way.
1826 - removed tests for this
1828 0.13 Sat. Sept. 30, 2006
1830 This version of Moose *must* have Class::MOP 0.35 in order
1831 to work correctly. A number of small internal tweaks have
1832 been made in order to be compatible with that release.
1835 - Removed the use of UNIVERSAL::require to be a better
1836 symbol table citizen and remove a dependency
1837 (thanks Adam Kennedy)
1839 **~~ removed experimental & undocumented feature ~~**
1840 - commented out the 'method' and 'self' keywords, see the
1841 comments for more info.
1844 - added a FAQ and WTF files to document frequently
1845 asked questions and common problems
1847 * Moose::Util::TypeConstraints
1848 - added GlobRef and FileHandle type constraint
1849 - added tests for this
1851 * Moose::Meta::Attribute
1852 - if your attribute 'isa' ArrayRef of HashRef, and you have
1853 not explicitly set a default, then make the default DWIM.
1854 This will also work for subtypes of ArrayRef and HashRef
1856 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1857 - new test added for this (thanks to ashley)
1860 - added basic support for runtime role composition
1861 but this is still *highly experimental*, so feedback
1862 is much appreciated :)
1863 - added tests for this
1865 * Moose::Meta::TypeConstraint
1866 - the type constraint now handles the coercion process
1867 through delegation, this is to support the coercion
1870 * Moose::Meta::TypeConstraint::Union
1871 - it is now possible for coercions to be performed
1873 - added tests for this (thanks to konobi)
1875 * Moose::Meta::TypeCoercion
1876 - properly capturing error when type constraint
1880 - Scalar::Util 1.18 is bad on Win32, so temporarily
1881 only require version 1.17 for Win32 and cygwin.
1882 (thanks Adam Kennedy)
1884 0.12 Sat. Sept. 1, 2006
1886 - Recipe5 (subtypes & coercion) has been written
1889 - fixed "bad meta" error message to be more descriptive
1890 - fixed &unimport to not remove the &inner and &super
1891 keywords because we need to localize them.
1892 - fixed number of spelling/grammer issues, thanks Theory :)
1894 **~~ experimental & undocumented feature ~~**
1895 - added the method and self keywords, they are basically
1896 just sugar, and they may not stay around.
1899 - added &dump method to easily Data::Dumper
1902 * Moose::Meta::TypeConstraint
1903 - added the &is_a_type_of method to check both the current
1904 and the subtype of a method (similar to &isa with classes)
1907 - this is now a subclass of Class::MOP::Module, and no longer
1908 creates the _role_meta ugliness of before.
1909 - fixed tests to reflect this change
1911 0.11 Wed. July 12, 2006
1913 - added an &unimport method to remove all the keywords
1914 that Moose will import, simply add 'no Moose' to the
1915 bottom of your class file.
1918 - fixed some test failures caused by a forgotten test
1921 0.10 Thurs. July 6, 2006
1923 - improved error message when loading modules so
1924 it is less confusing when you load a role.
1925 - added &calculate_all_roles method to
1926 Moose::Meta::Class and Moose::Meta::Role
1929 This module has been tested against Class::MOP 0.30
1930 but it does not yet utilize the optimizations
1931 it makes available. Stay tuned for that ;)
1933 0.09_03 Fri. June 23, 2006
1934 ++ DEVELOPER RELEASE ++
1936 - 'use strict' and 'use warnings' are no longer
1937 needed in Moose classes, Moose itself will
1938 turn them on for you.
1939 - added tests for this
1940 - moved code from exported subs to private methods
1941 in Moose::Meta::Class
1944 - as with Moose, strict and warnings are
1945 automatically turned on for you.
1946 - added tests for this
1949 - now handles an edge case for override errors
1950 - added tests for this
1951 - added some more edge case tests
1953 0.09_02 Tues. May 16, 2006
1954 ++ DEVELOPER RELEASE ++
1956 - added prototypes to the exported subs
1960 - added prototypes to the exported subs
1963 * Moose::Util::TypeConstraints
1964 - cleaned up prototypes for the subs
1967 0.09_01 Fri. May 12, 2006
1968 ++ DEVELOPER RELEASE ++
1969 - This release works in combination with
1970 Class::MOP 0.29_01, it is a developer
1971 release because it uses the a new
1972 instance sub-protocol and a fairly
1973 complete Role implementation. It has
1974 not yet been optimized, so it slower
1975 the the previous CPAN version. This
1976 release also lacks good updated docs,
1977 the official release will have updated docs.
1980 - refactored the keyword exports
1981 - 'with' now checks Role validaity and
1982 accepts more than one Role at a time
1983 - 'extends' makes metaclass adjustments as
1984 needed to ensure metaclass compatibility
1987 - refactored the keyword exports
1988 - 'with' now checks Role validaity and
1989 accepts more than one Role at a time
1991 * Moose::Util::TypeConstraints
1992 - added the 'enum' keyword for simple
1993 string enumerations which can be used as
1995 - see example of usage in t/202_example.t
1998 - more careful checking of params to new()
2001 - much work done on the role composition
2002 - many new tests for conflict detection
2003 and composition edge cases
2004 - not enough documentation, I suggest
2005 looking at the tests
2007 * Moose::Meta::Instance
2008 - added new Instance metaclass to support
2009 the new Class::MOP instance protocol
2011 * Moose::Meta::Class
2012 - some small changes to support the new
2014 - some small additions to support Roles
2016 * Moose::Meta::Attribute
2017 - some improvements to the accessor generation code
2019 - some small changes to support the new
2021 - (still somewhat) experimental delegation support
2022 with the 'handles' option
2023 - added several tests for this
2024 - no docs for this yet
2026 0.05 Thurs. April 27, 2006
2028 - keywords are now exported with Sub::Exporter
2029 thanks to chansen for this commit
2030 - has keyword now takes a 'metaclass' option
2031 to support custom attribute meta-classes
2032 on a per-attribute basis
2033 - added tests for this
2034 - the 'has' keyword not accepts inherited slot
2035 specifications (has '+foo'). This is still an
2036 experimental feature and probably not finished
2037 see t/038_attribute_inherited_slot_specs.t for
2038 more details, or ask about it on #moose
2039 - added tests for this
2042 - keywords are now exported with Sub::Exporter
2044 * Moose::Utils::TypeConstraints
2045 - reorganized the type constraint hierarchy, thanks
2046 to nothingmuch and chansen for his help and advice
2048 - added some tests for this
2049 - keywords are now exported with Sub::Exporter
2050 thanks to chansen for this commit
2052 * Moose::Meta::Class
2053 - due to changes in Class::MOP, we had to change
2054 construct_instance (for the better)
2056 * Moose::Meta::Attribute
2057 - due to changes in Class::MOP, we had to add the
2058 initialize_instance_slot method (it's a good thing)
2060 * Moose::Meta::TypeConstraint
2061 - added type constraint unions
2062 - added tests for this
2063 - added the is_subtype_of predicate method
2064 - added tests for this
2066 0.04 Sun. April 16th, 2006
2068 - Roles can now consume other roles
2069 - added tests for this
2070 - Roles can specify required methods now with
2071 the requires() keyword
2072 - added tests for this
2075 - ripped out much of it's guts ,.. much cleaner now
2076 - added required methods and correct handling of
2077 them in apply() for both classes and roles
2078 - added tests for this
2079 - no longer adds a does() method to consuming classes
2080 it relys on the one in Moose::Object
2081 - added roles attribute and some methods to support
2082 roles consuming roles
2084 * Moose::Meta::Attribute
2085 - added support for triggers on attributes
2086 - added tests for this
2087 - added support for does option on an attribute
2088 - added tests for this
2090 * Moose::Meta::Class
2091 - added support for attribute triggers in the
2093 - added tests for this
2096 - Moose no longer creates a subtype for your class
2097 if a subtype of the same name already exists, this
2098 should DWIM in 99.9999% of all cases
2100 * Moose::Util::TypeConstraints
2101 - fixed bug where incorrect subtype conflicts were
2103 - added test for this
2106 - this class can now be extended with 'use base' if
2107 you need it, it properly loads the metaclass class now
2108 - added test for this
2110 0.03_02 Wed. April 12, 2006
2112 - you must now explictly use Moose::Util::TypeConstraints
2113 it no longer gets exported for you automatically
2116 - new() now accepts hash-refs as well as key/value lists
2117 - added does() method to check for Roles
2118 - added tests for this
2120 * Moose::Meta::Class
2121 - added roles attribute along with the add_role() and
2123 - added tests for this
2126 - now adds a does() method to consuming classes
2127 which tests the class's hierarchy for roles
2128 - added tests for this
2130 0.03_01 Mon. April 10, 2006
2132 - added new Role recipe (no content yet, only code)
2135 - added 'with' keyword for Role support
2136 - added test and docs for this
2137 - fixed subtype quoting bug
2138 - added test for this
2142 - added test and docs
2144 * Moose::Util::TypeConstraints
2145 - added the message keyword to add custom
2146 error messages to type constraints
2149 - the meta role to support Moose::Role
2150 - added tests and docs
2152 * Moose::Meta::Class
2153 - moved a number of things from Moose.pm
2154 to here, they should have been here
2157 * Moose::Meta::Attribute
2158 - moved the attribute option macros here
2159 instead of putting them in Moose.pm
2161 * Moose::Meta::TypeConstraint
2162 - added the message attributes and the
2164 - added tests and docs for this
2166 0.03 Thurs. March 30, 2006
2168 - added the Moose::Cookbook with 5 recipes,
2169 describing all the stuff Moose can do.
2172 - fixed an issue with &extends super class loading
2173 it now captures errors and deals with inline
2174 packages correctly (bug found by mst, solution
2176 - added super/override & inner/augment features
2177 - added tests and docs for these
2180 - BUILDALL now takes a reference of the %params
2181 that are passed to &new, and passes that to
2184 * Moose::Util::TypeConstraints
2185 - Type constraints now survive runtime reloading
2186 - added test for this
2188 * Moose::Meta::Class
2189 - fixed the way attribute defaults are handled
2190 during instance construction (bug found by chansen)
2192 * Moose::Meta::Attribute
2193 - read-only attributes now actually enforce their
2194 read-only-ness (this corrected in Class::MOP as
2197 0.02 Tues. March 21, 2006
2199 - many more tests, fixing some bugs and
2201 - &extends now loads the base module with
2203 - added UNIVERSAL::require to the
2206 - each new Moose class will also create
2207 and register a subtype of Object which
2208 correspond to the new Moose class.
2209 - the 'isa' option in &has now only
2210 accepts strings, and will DWIM in
2213 * Moose::Util::TypeConstraints
2214 - added type coercion features
2215 - added tests for this
2216 - added support for this in attributes
2217 and instance construction
2219 - type construction no longer creates a
2220 function, it registers the type instead.
2221 - added several functions to get the
2225 - BUILDALL and DEMOLISHALL were broken
2226 because of a mis-named hash key, Whoops :)
2228 * Moose::Meta::Attribute
2229 - adding support for coercion in the
2230 autogenerated accessors
2232 * Moose::Meta::Class
2233 - adding support for coercion in the
2234 instance construction
2236 * Moose::Meta::TypeConstraint
2237 * Moose::Meta::TypeCoercion
2238 - type constraints and coercions are now
2239 full fledges meta-objects
2241 0.01 Wed. March 15, 2006
2242 - Moooooooooooooooooose!!!