1 Revision history for Perl extension Moose
3 0.71 Thu, February 19, 2009
4 * Moose::Cookbook::Basics::Recipe11
5 - A new recipe which demonstrates the use of BUILDARGS and
8 * Moose::Cookbook::Roles::Recipe3
9 - A new recipe, applying a role to an object instance. (Dave
13 - Allow overriding specific keywords from "also" packages. (doy)
15 * Moose::Util::TypeConstraints
16 - Calling type or subtype without the sugar helpers (as, where,
17 message) is now deprecated.
18 - The subtype function tried hard to guess what you meant, but
19 often got it wrong. For example:
21 my $subtype = subtype as 'ArrayRef[Object]';
23 This caused an error in the past, but now works as you'd
27 - Replace hardcoded cookbook tests with Test::Inline POD
28 to ensure they don't get out of sync. (Dave Rolsky)
31 - Working on the above turned up a number of little bugs in the
32 recipe code. (Dave Rolsky)
34 * Moose::Util::TypeConstraints::Optimized
35 - Just use Class::MOP for the optimized ClassName check. (Dave
38 0.70 Sat, February 14, 2009
39 * Moose::Util::TypeConstraints
40 - Added the RoleName type (stevan)
41 - added tests for this (stevan)
43 * Moose::Cookbook::Basics::Recipe3
44 - Updated the before qw[left right] sub to be a little more
45 defensive about what it accepts (stevan)
46 - added more tests to t/000_recipies/basics/003_binary_tree.t
50 - We now always call DEMOLISHALL, even if a class does not
51 define DEMOLISH. This makes sure that method modifiers on
52 DEMOLISHALL work as expected. (doy)
53 - added tests for this (EvanCarroll)
55 * Moose::Util::MetaRole
56 - Accept roles for the wrapped_method_metaclass (rafl)
57 - added tests for this (rafl)
59 * Moose::Meta::Attribute
60 - We no longer pass the meta-attribute object as a final
61 argument to triggers. This actually changed for inlined code a
62 while back, but the non-inlined version and the docs were
66 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
67 they require 0.11. (Dave Rolsky)
70 - Lots of small changes to the manual, cookbook, and
71 elsewhere. These were based on feedback from various
72 users, too many to list here. (Dave Rolsky)
74 0.69 Thu, February 12, 2009
76 - Make some keyword errors use throw_error instead of croak
77 since Moose::Exporter wraps keywords now (Sartak)
80 - Revised every recipe for style and clarity. Also moved some
81 documentation out of cookbook recipes and into Moose::Manual
82 pages. This work was funded as part of the Moose docs grant
83 from TPF. (Dave Rolsky)
85 * Moose::Meta::Method::Delegation
86 - If the attribute doing the delegation was not populated, the
87 error message did not specify the attribute name
90 0.68 Wed, February 4, 2009
92 - Many spelling, typo, and formatting fixes by daxim.
94 * Moose::Manual::Attributes
95 - The NAME section in the POD used "Attribute" so search.cpan
96 didn't resolve links from other documents properly.
98 * Moose::Meta::Method::Overriden
99 - Now properly spelled as Overridden. Thanks to daxim for
102 0.67 Tue, February 3, 2009
104 - Lots of little typo fixes and a few clarifications. Several
105 pages didn't have proper titles, and so weren't actually
106 visible on search.cpan.org. Thanks to hanekomu for a variety
107 of fixes and formatting improvements.
109 0.66 Tue, February 3, 2009
111 - This is a brand new, extensive manual for Moose. This aims to
112 provide a complete introduction to all of Moose's
113 features. This work was funded as part of the Moose docs grant
114 from TPF. (Dave Rolsky)
116 * Moose::Meta::Attribute
117 - Added a delegation_metaclass method to replace a hard-coded
118 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
120 * Moose::Util::TypeConstraints
121 - If you created a subtype and passed a parent that Moose didn't
122 know about, it simply ignored the parent. Now it automatically
123 creates the parent as a class type. This may not be what you
124 want, but is less broken than before. (Dave Rolsky)
126 * Moose::Util::TypeConstraints
127 - This module tried throw errors by calling Moose->throw_error,
128 but it did not ensure that Moose was loaded first. This could
129 cause very unhelpful errors when it tried to throw an error
130 before Moose was loaded. (Dave Rolsky)
132 * Moose::Util::TypeConstraints
133 - You could declare a name with subtype such as "Foo!Bar" that
134 would be allowed, but if you used it in a parameterized type
135 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
136 vetting on names created via the sugar functions, so that they
137 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
139 0.65 Thu, January 22, 2008
140 * Moose and Moose::Meta::Method::Overridden
141 - If an overridden method called super(), and then the
142 superclass's method (not overridden) _also_ called super(),
143 Moose went into an endless recursion loop. Test provided by
144 Chris Prather. (Dave Rolsky)
146 * Moose::Meta::TypeConstraint
147 - All methods are now documented. (gphat)
149 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
150 - Fixed some bogus failures that occurred because we tried to
151 validate filesystem paths in a very ad-hoc and
152 not-quite-correct way. (Dave Rolsky)
154 * Moose::Util::TypeConstraints
155 - Added maybe_type to exports. See docs for details. (rjbs)
158 - Added Moose::Util::TypeConstraints to the SEE ALSO
162 - Methods created via an attribute can now fulfill a "requires"
163 declaration for a role. (nothingmuch)
165 * Moose::Meta::Method::*
166 - Stack traces from inlined code will now report its line and
167 file as being in your class, as opposed to in Moose
170 0.64 Wed, December 31, 2008
171 * Moose::Meta::Method::Accessor
172 - Always inline predicate and clearer methods (Sartak)
174 * Moose::Meta::Attribute
175 - Support for parameterized traits (Sartak)
176 - verify_against_type_constraint method to avoid duplication
177 and enhance extensibility (Sartak)
180 - Tests (but no support yet) for parameterized traits (Sartak)
183 - Require Class::MOP 0.75+, which has the side effect of making
184 sure we work on Win32. (Dave Rolsky)
186 0.63 Mon, December 8, 2008
188 - Some small grammar tweaks and bug fixes in non-Moose example
191 0.62_02 Fri, December 5, 2008
192 * Moose::Meta::Role::Application::ToClass
193 - When a class does not provide all of a role's required
194 methods, the error thrown now mentions all of the missing
195 methods, as opposed to just the first one found. Requested by
196 Curtis Poe (RT #41119). (Dave Rolsky)
198 * Moose::Meta::Method::Constructor
199 - Moose will no longer inline a constructor for your class
200 unless it inherits its constructor from Moose::Object, and
201 will warn when it doesn't inline. If you want to force
202 inlining anyway, pass "replace_constructor => 1" to
203 make_immutable. Addresses RT #40968, reported by Jon
204 Swartz. (Dave Rolsky)
205 - The quoting of default values could be broken if the default
206 contained a single quote ('). Now we use quotemeta to escape
207 anything potentially dangerous in the defaults. (Dave Rolsky)
209 0.62_01 Wed, December 3, 2008
211 - use the method->execute API for BUILDALL
212 and DEMOLISHALL (Sartak)
214 * Moose::Util::TypeConstraints
215 - We now make all the type constraint meta classes immutable
216 before creating the default types provided by Moose. This
217 should make loading Moose a little faster. (Dave Rolsky)
219 0.62 Wed November 26, 2008
220 * Moose::Meta::Role::Application::ToClass
221 Moose::Meta::Role::Application::ToRole
222 - fixed issues where excluding and aliasing the
223 same methods for a single role did not work
224 right (worked just fine with multiple
226 - added test for this (stevan)
228 * Moose::Meta::Role::Application::RoleSummation
229 - fixed the error message when trying to compose
230 a role with a role it excludes (Sartak)
233 - Catch another case where recursion caused the value
234 of $CALLER to be stamped on (t0m)
235 - added test for this (t0m)
238 - Remove the make_immutable keyword, which has been
239 deprecated since April. It breaks metaclasses that
240 use Moose without no Moose (Sartak)
242 * Moose::Meta::Attribute
243 - Removing an attribute from a class now also removes delegation
244 (handles) methods installed for that attribute (t0m)
245 - added test for this (t0m)
247 * Moose::Meta::Method::Constructor
248 - An attribute with a default that looked like a number (but was
249 really a string) would accidentally be treated as a number
250 when the constructor was made immutable (perigrin)
251 - added test for this (perigrin)
254 - create method for constructing a role
256 - added test for this (Sartak)
257 - anonymous roles! (Sartak)
258 - added test for this (Sartak)
261 - more consistent error messages (Sartak)
263 * Moose::Cookbook::Roles::Recipe1
264 - attempt to explain why a role that just requires
265 methods is useful (Sartak)
267 0.61 Fri November 7, 2008
268 * Moose::Meta::Attribute
269 - When passing a role to handles, it will be loaded if necessary
273 - Method objects returned by get_method (and other methods)
274 Could end up being returned without an associated_metaclass
275 attribute. Removing get_method_map, which is provided by
276 Class::MOP::Class, fixed this. The Moose version did nothing
277 different from its parent except introduce a bug. (Dave Rolsky)
278 - added tests for this (jdv79)
281 - Added a $VERSION to all .pm files which didn't have one. Fixes
282 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
284 * Moose::Cookbook::Basics::Recipe4
285 * Moose::Cookbook::Basics::Recipe6
286 - These files had spaces on the first line of the SYNOPSIS, as
287 opposed to a totally empty line. According to RT #40432, this
288 confuses POD parsers. (Dave Rolsky)
290 0.60 Fri October 24, 2008
292 - Passing "-traits" when loading Moose caused the Moose.pm
293 exports to be broken. Reported by t0m. (Dave Rolsky)
294 - Tests for this bug. (t0m)
297 - Change resolve_metaclass alias to use the new
298 load_first_existing_class function. This makes it a lot
299 simpler, and also around 5 times faster. (t0m)
300 - Add caching to resolve_metaclass_alias, which gives an order
301 of magnitude speedup to things which repeatedly call the
302 Moose::Meta::Attribute->does method, notably MooseX::Storage
305 * Moose::Util::TypeConstraint
306 - Put back the changes for parameterized constraints that
307 shouldn't have been removed in 0.59. We still cannot parse
308 them, but MooseX modules can create them in some other
309 way. See the 0.58 changes for more details. (jnapiorkowski)
310 - Changed the way subtypes are created so that the job is
311 delegated to a type constraint parent. This clears up some
312 hardcoded checking and should allow correct subtypes of
313 Moose::Meta::Type::Constraint. Don't rely on this new API too
314 much (create_child_type) because it may go away in the
315 future. (jnapiorkowski)
317 * Moose::Meta::TypeConstraint::Union
318 - Type constraint names are sorted as strings, not numbers.
321 * Moose::Meta::TypeConstraint::Parameterizable
322 - New parameterize method. This can be used as a factory method
323 to make a new type constraint with a given parameterized
324 type. (jnapiorkowski)
325 - added tests (jnapiorkowski)
327 0.59 Tue October 14, 2008
329 - Add abridged documentation for builder/default/initializer/
330 predicate, and link to more details sections in
331 Class::MOP::Attribute. (t0m)
333 * Moose::Util::TypeConstraints
334 - removed prototypes from all but the &-based stuff (mst)
336 * Moose::Util::TypeConstraints
337 - Creating a anonymous subtype with both a constraint and a
338 message failed with a very unhelpful error, but should just
339 work. Reported by t0m. (Dave Rolsky)
342 - Some tests that used Test::Warn if it was available failed
343 with older versions of Test::Warn. Reported by Fayland. (Dave
345 - Test firing behavior of triggers in relation to builder/default/
347 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
348 kinds of supported type. (t0m)
351 - In create(), do not pass "roles" option to the superclass
352 - added related test that creates an anon metaclass with
355 * Moose::Meta::TypeConstraint::Class
356 * Moose::Meta::TypeConstraint::Role
357 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
358 other types (as per change in 0.55_02). (t0m)
360 * Moose::Meta::TypeConstraint::Registry
361 - Fix warning when dealing with unknown type names (t0m)
363 * Moose::Util::TypeConstraints
364 - Reverted changes from 0.58 related to handle parameterized
365 types. This caused random failures on BSD and Win32 systems,
366 apparently related to the regex engine. This means that Moose
367 can no longer parse structured type constraints like
368 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
369 supported in a slightly different way via MooseX::Types some
370 time in the future. (Dave Rolsky)
372 0.58 Sat September 20, 2008
373 !! This release has an incompatible change regarding !!
374 !! how roles add methods to a class !!
376 * Roles and role application
377 ! Roles now add methods by calling add_method, not
378 alias_method. They make sure to always provide a method
379 object, which will be cloned internally. This means that it is
380 now possible to track the source of a method provided by a
381 role, and even follow its history through intermediate roles.
383 This means that methods added by a role now show up when
384 looking at a class's method list/map. (Dave Rolsky)
387 - From this release on, we'll try to maintain a list of
388 conflicting modules, and warn you if you have one
389 installed. For example, this release conflicts with ...
390 - MooseX::Singleton <= 0.11
391 - MooseX::Params::Validate <= 0.05
394 In general, we try to not break backwards compatibility for
395 most Moose users, but MooseX modules and other code which
396 extends Moose's metaclasses is often affected by very small
397 changes in the Moose internals.
399 * Moose::Meta::Method::Delegation
400 * Moose::Meta::Attribute
401 - Delegation methods now have their own method class. (Dave
404 * Moose::Meta::TypeConstraint::Parameterizable
405 - Added a new method 'parameterize' which is basically a factory
406 for the containing constraint. This makes it easier to create
407 new types of parameterized constraints. (jnapiorkowski)
409 * Moose::Meta::TypeConstraint::Union
410 - Changed the way Union types canonicalize their names to follow
411 the normalized TC naming rules, which means we strip all
412 whitespace. (jnapiorkowski)
414 * Moose::Util::TypeConstraints
415 - Parameter and Union args are now sorted, this makes Int|Str
416 the same constraint as Str|Int. (jnapiorkowski)
417 - Changes to the way Union types are parsed to more correctly
418 stringify their names. (jnapiorkowski)
419 - When creating a parameterized type, we now use the new
420 parameterize method. (jnapiorkowski)
421 - Incoming type constraint strings are now normalized to remove
422 all whitespace differences. (jnapiorkowski)
423 - Changed the way we parse type constraint strings so that we now
424 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
425 constraints. This lays the foundation for more flexible type
426 constraint implementations.
428 * Tests and docs for all the above. (jnapiorkowski)
432 - Moose::Exporter will no longer remove a subroutine that the
433 exporting package re-exports. Moose re-exports the
434 Carp::confess function, among others. The reasoning is that we
435 cannot know whether you have also explicitly imported those
436 functions for your own use, so we err on the safe side and
437 always keep them. (Dave Rolsky)
438 - added tests for this (rafl)
441 - Changes to how we fix metaclass compatibility that are much
442 too complicated to go into. The summary is that Moose is much
443 less likely to complain about metaclass incompatibility
444 now. In particular, if two metaclasses differ because
445 Moose::Util::MetaRole was used on the two corresponding
446 classes, then the difference in roles is reconciled for the
447 subclass's metaclass. (Dave Rolsky)
448 - Squashed an warning in _process_attribute (thepler)
451 - throw exceptions (sooner) for invalid attribute names (thepler)
452 - added tests for this (thepler)
454 * Moose::Util::MetaRole
455 - If you explicitly set a constructor or destructor class for a
456 metaclass object, and then applied roles to the metaclass,
457 that explicitly set class would be lost and replaced with the
461 * Moose::Meta::Attribute
462 * Moose::Meta::Method
465 * Moose::Error::Default
466 * Moose::Error::Croak
467 * Moose::Error::Confess
468 - All instances of confess() changed to use overridable
469 C<throw_error> method. This method ultimately calls a class
470 constructor, and you can change the class being called. In
471 addition, errors now pass more information than just a string.
472 The default C<error_class> behaves like C<Carp::confess>, so
473 the behavior is not visibly different for end users.
475 0.57 Wed September 3, 2008
477 - A new bit of doc intended to introduce folks familiar with
478 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
481 - Shows examples of two classes, each done first with and then
482 without Moose. This makes a nice parallel to
483 Moose::Intro. (Dave Rolsky)
485 * Moose::Util::TypeConstraints
486 - Fixed a bug in find_or_parse_type_constraint so that it
487 accepts a Moose::Meta::TypeConstraint object as the parent
488 type, not just a name (jnapiorkowski)
489 - added tests (jnapiorkowski)
492 - If Sub::Name was not present, unimporting failed to actually
493 remove some sugar subs, causing test failures (Dave Rolsky)
495 0.56 Mon September 1, 2008
496 For those not following the series of dev releases, there are
497 several major changes in this release of Moose.
498 ! Moose::init_meta should now be called as a method. See the
501 - Major performance improvements by nothingmuch.
503 - New modules for extension writers, Moose::Exporter and
504 Moose::Util::MetaRole by Dave Rolsky.
506 - Lots of doc improvements and additions, especially in the
511 * Removed all references to the experimental-but-no-longer-needed
512 Moose::Meta::Role::Application::ToMetaclassInstance.
514 * Require Class::MOP 0.65.
516 0.55_04 Sat August 30, 2008
517 * Moose::Util::MetaRole
518 * Moose::Cookbook::Extending::Recipe2
519 - This simplifies the application of roles to any meta class, as
520 well as the base object class. Reimplemented metaclass traits
521 using this module. (Dave Rolsky)
523 * Moose::Cookbook::Extending::Recipe1
524 - This a new recipe, an overview of various ways to write Moose
525 extensions (Dave Rolsky)
527 * Moose::Cookbook::Extending::Recipe3
528 * Moose::Cookbook::Extending::Recipe4
529 - These used to be Extending::Recipe1 and Extending::Recipe2,
532 0.55_03 Fri August 29, 2008
533 * No changes from 0.55_02 except increasing the Class::MOP
534 dependency to 0.64_07.
536 0.55_02 Fri August 29, 2008
537 * Makefile.PL and Moose.pm
538 - explicitly require Perl 5.8.0+ (Dave Rolsky)
540 * Moose::Util::TypeConstraints
541 - Fix warnings from find_type_constraint if the type is not
544 * Moose::Meta::TypeConstraint
545 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
546 return false if the type you specify cannot be found in the
547 type registry, rather than throwing an unhelpful and
548 coincidental exception. (t0m).
549 - added docs & test for this (t0m)
551 * Moose::Meta::TypeConstraint::Registry
552 - add_type_constraint now throws an exception if a parameter is
554 - added docs & test for this (t0m)
556 * Moose::Cookbook::FAQ
557 - Added a faq entry on the difference between "role" and "trait"
561 - Fixed a bug that caused role composition to not see a required
562 method when that method was provided by another role being
563 composed at the same time. (Dave Rolsky)
564 - test and bug finding (tokuhirom)
566 0.55_01 Wed August 20, 2008
568 !! Calling Moose::init_meta as a function is now !!
569 !! deprecated. Please see the Moose.pm docs for details. !!
571 * Moose::Meta::Method::Constructor
572 - Fix inlined constructor so that values produced by default
573 or builder methods are coerced as required. (t0m)
574 - added test for this (t0m)
576 * Moose::Meta::Attribute
577 - A lazy attribute with a default or builder did not attempt to
578 coerce the default value. The immutable code _did_
580 - added test for this (t0m)
583 - This is a new helper module for writing "Moose-alike"
584 modules. This should make the lives of MooseX module authors
585 much easier. (Dave Rolsky)
588 * Moose::Cookbook::Meta::Recipe5
589 - Implemented metaclass traits (and wrote a recipe for it):
591 use Moose -traits => 'Foo'
593 This should make writing small Moose extensions a little
596 * Moose::Cookbook::Basics::Recipe1
597 - Removed any examples of direct hashref access, and applied an
598 editorial axe to reduce verbosity. (Dave Rolsky)
600 * Moose::Cookbook::Basics::Recipe1
601 - Also applied an editorial axe here. (Dave Rolsky)
604 * Moose::Cookbook::Extending::Recipe1
605 * Moose::Cookbook::Extending::Recipe2
606 - Rewrote extending and embedding moose documentation and
607 recipes to use Moose::Exporter (Dave Rolsky)
611 - These two modules now warn when you load them from the main
612 package "main" package, because we will not export sugar to
613 main. Previously it just did nothing. (Dave Rolsky)
616 - Now provide an init_meta method just like Moose.pm, and you
617 can call this to provide an alternate role metaclass. (Dave
618 Rolsky and nothingmuch)
619 - get_method_map now respects the package cache flag (nothingmuch)
622 - Two new methods - add_method and wrap_method_body
626 - Optimizations including allowing constructors to accept hash
627 refs, making many more classes immutable, and making
628 constructors immutable. (nothingmuch)
630 0.55 Sun August 3, 2008
631 * Moose::Meta::Attribute
632 - breaking down the way 'handles' methods are
633 created so that the process can be more easily
634 overridden by subclasses (stevan)
636 * Moose::Meta::TypeConstraint
637 - fixing what is passed into a ->message with
638 the type constraints (RT #37569)
639 - added tests for this (Charles Alderman)
641 * Moose::Util::TypeConstraints
642 - fix coerce to accept anon types like subtype can (mst)
645 - reorganized the recipes into sections - Basics, Roles, Meta,
646 Extending - and wrote abstracts for each section (Dave Rolsky)
648 * Moose::Cookbook::Basics::Recipe10
649 - A new recipe that demonstrates operator overloading
650 in combination with Moose. (bluefeet)
652 * Moose::Cookbook::Meta::Recipe1
653 - an introduction to what meta is and why you'd want to make
654 your own metaclass extensions (Dave Rolsky)
656 * Moose::Cookbook::Meta::Recipe4
657 - a very simple metaclass example (Dave Rolsky)
659 * Moose::Cookbook::Extending::Recipe1
660 - how to write a Moose-alike module to use your own object base
663 * Moose::Cookbook::Extending::Recipe2
664 - how to write modules with an API just like C<Moose.pm> (Dave
668 - Tons of fixes, both syntactical and grammatical (Dave
669 Rolsky, Paul Fenwick)
671 0.54 Thurs. July 3, 2008
672 ... this is not my day today ...
674 * Moose::Meta::Attribute
675 - fixed legal_options_for_inheritance such that
676 clone_and_inherit options still works for
677 Class::MOP::Attribute objects and therefore
678 does not break MooseX::AttributeHelpers
681 0.53 Thurs. July 3, 2008
682 * Whoops, I guess I should run 'make manifest' before
683 actually releasing the module. No actual changes
684 in this release, except the fact that it includes
685 the changes that I didn't include in the last
688 0.52 Thurs. July 3, 2008
690 - added "FEATURE REQUESTS" section to the Moose docs
691 to properly direct people (stevan) (RT #34333)
692 - making 'extends' croak if it is passed a Role since
693 this is not ever something you want to do
694 (fixed by stevan, found by obra)
695 - added tests for this (stevan)
698 - adding support for DOES (as in UNIVERSAL::DOES)
700 - added test for this
702 * Moose::Meta::Attribute
703 - added legal_options_for_inheritance (wreis)
704 - added tests for this (wreis)
706 * Moose::Cookbook::Snacks::*
707 - removed some of the unfinished snacks that should
708 not have been released yet. Added some more examples
709 to the 'Keywords' snack. (stevan)
711 * Moose::Cookbook::Style
712 - added general Moose "style guide" of sorts to the
713 cookbook (nothingmuch) (RT #34335)
716 - added more BUILDARGS tests (stevan)
718 0.51 Thurs. Jun 26, 2008
720 - add unimport so "no Moose::Role" actually does
723 * Moose::Meta::Role::Application::ToRole
724 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
725 order to provide its own implementation, that method still got
726 added to the list of required methods for consumers of
727 RoleB. Now an aliased method is only added to the list of
728 required methods if the role doing the aliasing does not
729 provide its own implementation. See Recipe 11 for an example
730 of all this. (Dave Rolsky)
731 - added tests for this
733 * Moose::Meta::Method::Constructor
734 - when a single argument that wasn't a hashref was provided to
735 an immutabilized constructor, the error message was very
736 unhelpful, as opposed to the non-immutable error. Reported by
738 - added test for this (Dave Rolsky)
740 * Moose::Meta::Attribute
741 - added support for meta_attr->does("ShortAlias") (sartak)
742 - added tests for this (sartak)
743 - moved the bulk of the `handles` handling to the new
744 install_delegation method (Stevan)
747 - Added BUILDARGS, a new step in new()
749 * Moose::Meta::Role::Application::RoleSummation
750 - fix typos no one ever sees (sartak)
752 * Moose::Util::TypeConstraints
753 * Moose::Meta::TypeConstraint
754 * Moose::Meta::TypeCoercion
755 - Attempt to work around the ??{ } vs. threads issue
757 - Some null_constraint optimizations
759 0.50 Thurs. Jun 11, 2008
760 - Fixed a version number issue by bumping all modules
763 0.49 Thurs. Jun 11, 2008
764 !! This version now approx. 20-25% !!
765 !! faster with new Class::MOP 0.59 !!
767 * Moose::Meta::Attribute
768 - fixed how the is => (ro|rw) works with
769 custom defined reader, writer and accessor
771 - added docs for this (TODO).
772 - added tests for this (Thanks to Penfold)
773 - added the custom attribute alias for regular
774 Moose attributes which is "Moose"
775 - fix builder and default both being used
780 Moose::Meta::Attribute
782 Moose::Meta::Role::Composite
783 Moose::Util::TypeConstraints
784 - switched usage of reftype to ref because
788 - changing add_package_symbol to use the new
792 - fixed how DEMOLISHALL is called so that it
793 can be overrided in subclasses (thanks to Sartak)
794 - added test for this (thanks to Sartak)
796 * Moose::Util::TypeConstraints
797 - move the ClassName type check code to
798 Class::MOP::is_class_loaded (thanks to Sartak)
800 * Moose::Cookbook::Recipe11
801 - add tests for this (thanks to tokuhirom)
803 0.48 Thurs. May 29, 2008
804 (early morning release engineering)--
806 - fixing the version in Moose::Meta::Method::Destructor
807 which was causing the indexer to choke
809 0.47 Thurs. May 29, 2008
810 (late night release engineering)--
812 - fixing the version is META.yml, no functional
813 changes in this release
815 0.46 Wed. May 28, 2008
816 !! This version now approx. 20-25% !!
817 !! faster with new Class::MOP 0.57 !!
820 - some optimizations of the &initialize method
821 since it is called so often by &meta
825 - now use the get_all_package_symbols from the
826 updated Class::MOP, test suite is now 10 seconds
829 * Moose::Meta::Method::Destructor
830 - is_needed can now also be called as a class
831 method for immutablization to check if the
832 destructor object even needs to be created
835 * Moose::Meta::Method::Destructor
836 Moose::Meta::Method::Constructor
837 - added more descriptive error message to help
838 keep people from wasting time tracking an error
839 that is easily fixed by upgrading.
841 0.45 Saturday, May 24, 2008
843 - Because of work in Class::MOP 0.57, all
844 XS based functionality is now optional
845 and a Pure Perl version is supplied
846 - the CLASS_MOP_NO_XS environment variable
847 can now be used to force non-XS versions
849 - several of the packages have been tweaked
850 to take care of this, mostly we added
851 support for the package_name and name
852 variables in all the Method metaclasses
853 - before/around/after method modifiers now
854 support regexp matching of names
855 (thanks to Takatoshi Kitano)
856 - tests added for this
857 - NOTE: this only works for classes, it
858 is currently not supported in roles,
859 but, ... patches welcome
860 - All usage of Carp::confess have been replaced
861 by Carp::croak in the "keyword" functions since
862 the stack trace is usually not helpful
865 - All usage of Carp::confess have been replaced
866 by Carp::croak in the "keyword" functions since
867 the stack trace is usually not helpful
868 - The 'has' keyword for roles now accepts the
869 same array ref form that Moose.pm does
870 (has [qw/foo bar/] => (is => 'rw', ...))
871 - added test for this
873 * Moose::Meta::Attribute
874 - trigger on a ro-attribute is no longer an
875 error, as it's useful to trigger off of the
879 - added same 'add_package_symbol' fix as in
883 - does_role now handles non-Moose classes
885 - added tests for this
886 - added the 'add_method_modifier' function
887 (thanks to Takatoshi Kitano)
889 * Moose::Util::TypeConstraints
890 - subtypes of parameterizable types now are
891 themselves parameterizable types
893 * Moose::Meta::Method::Constructor
894 - fixed bug where trigger was not being
895 called by the inlined immutable
897 - added test for this (thanks to Caelum)
899 * Moose::Meta::Role::Application::ToInstance
900 - now uses the metaclass of the instance
901 (if possible) to create the anon-class
902 (thanks Jonathan Rockway)
904 * Moose::Cookbook::Recipe22
905 - added the meta-attribute trait recipe
909 - fixed hash-ordering test bug that was
910 causing occasional cpantester failures
911 - renamed the t/000_recipe/*.t tests to be
912 more descriptive (thanks to Sartak)
914 0.44 Sat. May 10, 2008
916 - made make_immutable warning cluck to
917 show where the error is (thanks mst)
920 - BUILDALL and DEMOLISHALL now call
921 ->body when looping through the
922 methods, to avoid the overloaded
924 - fixed issue where DEMOLISHALL was
925 eating the $@ values, and so not
926 working correctly, it still kind of
927 eats them, but so does vanilla perl
928 - added tests for this
930 * Moose::Cookbook::Recipe7
931 - added new recipe for immutable
932 functionality (thanks Dave Rolsky)
934 * Moose::Cookbook::Recipe9
935 - added new recipe for builder and
936 lazy_build (thanks Dave Rolsky)
938 * Moose::Cookbook::Recipe11
939 - added new recipe for method aliasing
940 and exclusion with Roles (thanks Dave Rolsky)
943 - fixed Win32 test failure (thanks spicyjack)
945 ~ removed Build.PL and Module::Build compat
946 since Module::Install has done that.
948 0.43 Wed. April, 30, 2008
950 drink more coffee before
951 doing release engineering
953 - whoops, forgot to do the smolder tests,
954 and we broke some of the custom meta-attr
955 modules. This fixes that.
957 0.42 Mon. April 28, 2008
958 - some bad tests slipped by, nothing else
959 changed in this release (cpantesters++)
961 - upped the Class::MOP dependency to 0.55
962 since we have tests which need the C3
965 0.41 Mon. April 28, 2008
966 ~~ numerous documentation updates ~~
968 - Changed all usage of die to Carp::croak for better
969 error reporting (initial patch by Tod Hagan)
972 - the make_immutable keyword is now deprecated, don't
973 use it in any new code and please fix your old code
974 as well. There will be 2 releases, and then it will
980 - refactored the way inner and super work to avoid
981 any method/@ISA cache penalty (nothingmuch)
984 - fixing &new_object to make sure trigger gets the
985 coerced value (spotted by Charles Alderman on the
987 - added test for this
989 * Moose::Meta::Method::Constructor
990 - immutable classes which had non-lazy attributes were calling
991 the default generating sub twice in the constructor. (bug
992 found by Jesse Luehrs, fixed by Dave Rolsky)
993 - added tests for this (Dave Rolsky)
994 - fix typo in initialize_body method (nothingmuch)
996 * Moose::Meta::Method::Destructor
997 - fix typo in initialize_body method (nothingmuch)
999 * Moose::Meta::Method::Overriden
1000 Moose::Meta::Method::Augmented
1001 - moved the logic for these into their own
1002 classes (nothingmuch)
1004 * Moose::Meta::Attribute
1005 - inherited attributes may now be extended without
1006 restriction on the type ('isa', 'does') (Sartak)
1007 - added tests for this (Sartak)
1008 - when an attribute property is malformed (such as lazy without
1009 a default), give the name of the attribute in the error
1011 - added the &applied_traits and &has_applied_traits methods
1012 to allow introspection of traits
1013 - added tests for this
1014 - moved 'trait' and 'metaclass' argument handling to here from
1016 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1017 '+foo' syntax) (nothingmuch)
1018 - added tests for this (t0m)
1021 - localize $@ inside DEMOLISHALL to avoid it
1022 eating $@ (found by Ernesto)
1023 - added test for this (thanks to Ernesto)
1025 * Moose::Util::TypeConstraints
1026 - &find_type_constraint now DWIMs when given an
1027 type constraint object or name (nothingmuch)
1028 - &find_or_create_type_constraint superseded with a number of more
1030 - find_or_create_{isa,does}_type_constraint
1031 - find_or_parse_type_constraint
1033 * Moose::Meta::TypeConstraint
1034 Moose::Meta::TypeConstraint::Class
1035 Moose::Meta::TypeConstraint::Role
1036 Moose::Meta::TypeConstraint::Enum
1037 Moose::Meta::TypeConstraint::Union
1038 Moose::Meta::TypeConstraint::Parameterized
1039 - added the &equals method for comparing two type
1040 constraints (nothingmuch)
1041 - added tests for this (nothingmuch)
1043 * Moose::Meta::TypeConstraint
1044 - add the &parents method, which is just an alias to &parent.
1045 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1047 * Moose::Meta::TypeConstraint::Class
1048 - added the class attribute for introspection purposes
1050 - added tests for this
1052 * Moose::Meta::TypeConstraint::Enum
1053 Moose::Meta::TypeConstraint::Role
1054 - broke these out into their own classes (nothingmuch)
1056 * Moose::Cookbook::Recipe*
1057 - fixed references to test file locations in the POD
1058 and updated up some text for new Moose features
1062 - Added &resolve_metaclass_alias, a helper function for finding an actual
1063 class for a short name (e.g. in the traits list)
1065 0.40 Fri. March 14, 2008
1066 - I hate Pod::Coverage
1068 0.39 Fri. March 14, 2008
1070 - documenting the use of '+name' with attributes
1071 that come from recently composed roles. It makes
1072 sense, people are using it, and so why not just
1073 officially support it.
1074 - fixing the 'extends' keyword so that it will not
1075 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1078 - added the perl -Moose=+Class::Name feature to allow
1079 monkeypatching of classes in one liners
1082 - fixing the 'apply_all_roles' keyword so that it will not
1083 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1085 * Moose::Meta::Class
1086 - added ->create method which now supports roles (thanks to jrockway)
1087 - added tests for this
1088 - added ->create_anon_class which now supports roles and caching of
1089 the results (thanks to jrockway)
1090 - added tests for this
1091 - made ->does_role a little more forgiving when it is
1092 checking a Class::MOP era metaclasses.
1094 * Moose::Meta::Role::Application::ToInstance
1095 - it is now possible to pass extra params to be used when
1096 a role is applied to an the instance (rebless_params)
1097 - added tests for this
1099 * Moose::Util::TypeConstraints
1100 - class_type now accepts an optional second argument for a
1101 custom message. POD anotated accordingly (groditi)
1102 - added tests for this
1103 - it is now possible to make anon-enums by passing 'enum' an
1104 ARRAY ref instead of the $name => @values. Everything else
1106 - added tests for this
1109 - making test for using '+name' on attributes consumed
1110 from a role, it works and makes sense too.
1112 * Moose::Meta::Attribute
1113 - fix handles so that it doesn't return nothing
1114 when the method cannot be found, not sure why
1115 it ever did this originally, this means we now
1116 have slightly better support for AUTOLOADed
1118 - added more delegation tests
1119 - adding ->does method to this so as to better
1120 support traits and their introspection.
1121 - added tests for this
1124 - localizing the Data::Dumper configurations so
1125 that it does not pollute others (RT #33509)
1126 - made ->does a little more forgiving when it is
1127 passed Class::MOP era metaclasses.
1129 0.38 Fri. Feb. 15, 2008
1130 * Moose::Meta::Attribute
1131 - fixed initializer to correctly do
1132 type checking and coercion in the
1134 - added tests for this
1137 - fixed some finicky tests (thanks to konobi)
1139 0.37 Thurs. Feb. 14, 2008
1141 - fixed some details in Moose::init_meta
1142 and its superclass handling (thanks thepler)
1143 - added tests for this (thanks thepler)
1144 - 'has' now dies if you don't pass in name
1146 - added the 'make_immutable' keyword as a shortcut
1149 * Moose::Meta::Class
1150 Moose::Meta::Method::Constructor
1151 Moose::Meta::Attribute
1152 - making (init_arg => undef) work here too
1153 (thanks to nothingmuch)
1155 * Moose::Meta::Attribute
1156 Moose::Meta::Method::Constructor
1157 Moose::Meta::Method::Accessor
1158 - make lazy attributes respect attr initializers (rjbs)
1159 - added tests for this
1161 * Moose::Util::TypeConstraints
1162 Moose::Util::TypeConstraints::OptimizedConstraints
1163 Moose::Meta::TypeConstraints
1164 Moose::Meta::Attribute
1165 Moose::Meta::Method::Constructor
1166 Moose::Meta::Method::Accessor
1167 - making type errors use the
1168 assigned message (thanks to Sartak)
1169 - added tests for this
1171 * Moose::Meta::Method::Destructor
1172 - making sure DESTROY gets inlined properly
1173 with successive DEMOLISH calls (thanks to manito)
1175 * Moose::Meta::Attribute
1176 Moose::Meta::Method::Accessor
1177 - fixed handling of undef with type constraints
1179 - added tests for this
1182 - added &get_all_init_args and &get_all_attribute_values
1183 (thanks to Sartak and nothingmuch)
1185 0.36 Sat. Jan. 26, 2008
1187 Moose::Meta::Attribute
1188 - role type tests now support when roles are
1189 applied to non-Moose classes (found by ash)
1190 - added tests for this (thanks to ash)
1191 - couple extra tests to boost code coverage
1193 * Moose::Meta::Method::Constructor
1194 - improved fix for handling Class::MOP attributes
1195 - added test for this
1197 * Moose::Meta::Class
1198 - handled the add_attribute($attribute_meta_object)
1200 - added test for this
1202 0.35 Tues. Jan. 22, 2008
1203 * Moose::Meta::Method::Constructor
1204 - fix to make sure even Class::MOP attributes
1205 are handled correctly (Thanks to Dave Rolsky)
1206 - added test for this (also Dave Rolsky)
1208 * Moose::Meta::Class
1209 - improved error message on _apply_all_roles,
1210 you should now use Moose::Util::apply_all_roles
1211 and you shouldnt have been using a _ prefixed
1212 method in the first place ;)
1214 0.34 Mon. Jan. 21, 2008
1215 ~~~ more misc. doc. fixes ~~~
1216 ~~ updated copyright dates ~~
1218 Moose is now a postmodern object system :)
1219 - (see the POD for details)
1221 * <<Role System Refactoring>>
1222 - this release contains a major reworking and
1223 cleanup of the role system
1224 - 100% backwards compat.
1225 - Role application now restructured into seperate
1226 classes based on type of applicants
1227 - Role summation (combining of more than one role)
1228 is much cleaner and anon-classes are no longer
1229 used in this process
1230 - new Composite role metaclass
1231 - runtime application of roles to instances
1232 is now more efficient and re-uses generated
1233 classes when applicable
1235 * <<New Role composition features>>
1236 - methods can now be excluded from a given role
1238 - methods can now be aliased to another name (and
1239 still retain the original as well)
1241 * Moose::Util::TypeConstraints::OptimizedConstraints
1242 - added this module (see above)
1244 * Moose::Meta::Class
1245 - fixed the &_process_attribute method to be called
1246 by &add_attribute, so that the API is now correct
1248 * Moose::Meta::Method::Accessor
1249 - fixed bug when passing a list of values to
1250 an accessor would get (incorrectly) ignored.
1251 Thanks to Sartak for finding this ;)
1252 - added tests for this (Sartak again)
1254 * Moose::Meta::Method::Accessor
1255 Moose::Meta::Method::Constructor
1256 Moose::Meta::Attribute
1257 Moose::Meta::TypeConstraint
1258 Moose::Meta::TypeCoercion
1259 - lots of cleanup of such things as:
1261 - type constraint handling
1262 - error handling/messages
1263 (thanks to nothingmuch)
1265 * Moose::Meta::TypeConstraint::Parameterizable
1266 - added this module to support the refactor
1267 in Moose::Meta::TypeConstraint::Parameterized
1269 * Moose::Meta::TypeConstraint::Parameterized
1270 - refactored how these types are handled so they
1271 are more generic and not confined to ArrayRef
1275 - shortened some file names for better VMS support (RT #32381)
1277 0.33 Fri. Dec. 14, 2007
1278 !! Moose now loads 2 x faster !!
1279 !! with new Class::MOP 0.49 !!
1281 ++ new oose.pm module to make command line
1282 Moose-ness easier (see POD docs for more)
1284 * Moose::Meta::Class
1286 - several tweaks to take advantage of the
1287 new method map caching in Class::MOP
1289 * Moose::Meta::TypeConstraint::Parameterized
1290 - allow subtypes of ArrayRef and HashRef to
1291 be used as a container (sartak)
1292 - added tests for this
1293 - basic support for coercion to ArrayRef and
1294 HashRef for containers (sartak)
1295 - added tests for this
1297 * Moose::Meta::TypeCoercion
1298 - coercions will now create subtypes as needed
1299 so you can now add coercions to parameterized
1300 types without having to explictly define them
1301 - added tests for this
1303 * Moose::Meta::Method::Accessor
1304 - allow subclasses to decide whether we need
1305 to copy the value into a new variable (sartak)
1307 0.32 Tues. Dec. 4, 2007
1308 * Moose::Util::TypeConstraints
1309 - fixing how subtype aliases of unions work
1310 they should inherit the parent's coercion
1311 - added tests for this
1312 - you can now define multiple coercions on
1313 a single type at different times instead of
1314 having to do it all in one place
1315 - added tests for this
1317 * Moose::Meta::TypeConstraint
1318 - there is now a default constraint of sub { 1 }
1319 instead of Moose::Util::TypeConstraints setting
1322 * Moose::Meta::TypeCoercion
1323 * Moose::Meta::TypeCoercion::Union
1324 - added the &has_coercion_for_type and
1325 &add_type_coercions methods to support the
1326 new features above (although you cannot add
1327 more type coercions for Union types)
1329 0.31 Mon. Nov. 26, 2007
1330 * Moose::Meta::Attribute
1331 - made the +attr syntax handle extending types with
1332 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1333 now works if the original foo is an ArrayRef.
1334 - added tests for this.
1335 - delegation now works even if the attribute does not
1336 have a reader method using the get_read_method_ref
1337 method from Class::MOP::Attribute.
1338 - added tests for this
1339 - added docs for this
1341 * Moose::Util::TypeConstraints
1342 - passing no "additional attribute info" to
1343 &find_or_create_type_constraint will no longer
1344 attempt to create an __ANON__ type for you,
1345 instead it will just return undef.
1346 - added docs for this
1348 0.30 Fri. Nov. 23, 2007
1349 * Moose::Meta::Method::Constructor
1350 -builder related bug in inlined constructor. (groditi)
1352 * Moose::Meta::Method::Accessor
1353 - genereate unnecessary calls to predicates and refactor
1354 code generation for runtime speed (groditi)
1356 * Moose::Util::TypeConstraints
1357 - fix ClassName constraint to introspect symbol table (mst)
1358 - added more tests for this (mst)
1359 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1360 with work correctly.
1361 - added tests for this
1364 - adding the link to Recipie 11 (written by Sartak)
1365 - adding test for SYNOPSIS code
1368 - New tests for builder bug. Upon instantiation, if an
1369 attribute had a builder, no value and was not lazy the
1370 builder default was not getting run, oops. (groditi)
1372 0.29 Tues. Nov. 13, 2007
1373 * Moose::Meta::Attribute
1374 - Fix error message on missing builder method (groditi)
1376 * Moose::Meta::Method::Accessor
1377 - Fix error message on missing builder method (groditi)
1380 - Add test to check for the correct error message when
1381 builder method is missing (groditi)
1383 0.28 Tues. Nov. 13, 2007
1384 - 0.27 packaged incorrectly (groditi)
1386 0.27 Tues. Nov. 13, 2007
1387 * Moose::Meta::Attribute
1388 - Added support for the new builder option (groditi)
1389 - Added support for lazy_build option (groditi)
1390 - Changed slot initialization for predicate changes (groditi)
1392 * Moose::Meta::Method::Accessor
1393 - Added support for lazy_build option (groditi)
1394 - Fix inline methods to work with corrected predicate
1397 * Moose::Meta::Method::Constructor
1398 - Added support for lazy_build option (groditi)
1401 - tests for builder and lazy_build (groditi)
1403 * fixing some misc. bits in the docs that
1404 got mentioned on CPAN Forum & perlmonks
1407 - fixed how required methods are handled
1408 when they encounter overriden or modified
1409 methods from a class (thanks to confound).
1410 - added tests for this
1412 * Moose::Util::TypeConstraint
1413 - fixed the type notation parser so that
1414 the | always creates a union and so is
1415 no longer a valid type char (thanks to
1416 konobi, mugwump and #moose for working
1418 - added more tests for this
1420 0.26 Thurs. Sept. 27, 2007
1423 * Parameterized Types
1424 We now support parameterized collection types, such as:
1425 ArrayRef[Int] # array or integers
1426 HashRef[Object] # a hash with object values
1427 They can also be nested:
1428 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1429 And work with the type unions as well:
1430 ArrayRef[Int | Str] # array of integers of strings
1432 * Better Framework Extendability
1433 Moose.pm is now "extendable" such that it is now much
1434 easier to extend the framework and add your own keywords
1435 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1436 section of the Moose.pm docs.
1439 In an effort to begin documenting some of the various
1440 details of Moose as well as some common idioms, we have
1441 created Moose::Cookbook::Snacks as a place to find
1442 small (easily digestable) nuggets of Moose code.
1445 ~ Several doc updates/cleanup thanks to castaway ~
1447 - converted build system to use Module::Install instead of
1448 Module::Build (thanks to jrockway)
1451 - added all the meta classes to the immutable list and
1452 set it to inline the accessors
1453 - fix import to allow Sub::Exporter like { into => }
1454 and { into_level => } (perigrin)
1455 - exposed and documented init_meta() to allow better
1456 embedding and extending of Moose (perigrin)
1459 - complete re-organization of the test suite
1460 - added some new tests as well
1461 - finally re-enabled the Moose::POOP test since
1462 the new version of DBM::Deep now works again
1465 * Moose::Meta::Class
1466 - fixed very odd and very nasty recursion bug with
1468 - added tests for this (eilara)
1470 * Moose::Meta::Attribute
1471 Moose::Meta::Method::Constructor
1472 Moose::Meta::Method::Accessor
1473 - fixed issue with overload::Overloaded getting called
1474 on non-blessed items. (RT #29269)
1475 - added tests for this
1477 * Moose::Meta::Method::Accessor
1478 - fixed issue with generated accessor code making
1479 assumptions about hash based classes (thanks to dexter)
1481 * Moose::Coookbook::Snacks
1482 - these are bits of documentation, not quite as big as
1483 Recipes but which have no clear place in the module docs.
1484 So they are Snacks! (horray for castaway++)
1486 * Moose::Cookbook::Recipe4
1487 - updated it to use the new ArrayRef[MyType] construct
1488 - updated the accompanying test as well
1490 +++ Major Refactor of the Type Constraint system +++
1491 +++ with new features added as well +++
1493 * Moose::Util::TypeConstraint
1494 - no longer uses package variable to keep track of
1495 the type constraints, now uses the an instance of
1496 Moose::Meta::TypeConstraint::Registry to do it
1497 - added more sophisticated type notation parsing
1499 - added tests for this
1501 * Moose::Meta::TypeConstraint
1502 - some minor adjustments to make subclassing easier
1503 - added the package_defined_in attribute so that we
1504 can track where the type constraints are created
1506 * Moose::Meta::TypeConstraint::Union
1507 - this is now been refactored to be a subclass of
1508 Moose::Meta::TypeConstraint
1510 * Moose::Meta::TypeCoercion::Union
1511 - this has been added to service the newly refactored
1512 Moose::Meta::TypeConstraint::Union and is itself
1513 a subclass of Moose::Meta::TypeCoercion
1515 * Moose::Meta::TypeConstraint::Parameterized
1516 - added this module (taken from MooseX::AttributeHelpers)
1517 to help construct nested collection types
1518 - added tests for this
1520 * Moose::Meta::TypeConstraint::Registry
1521 - added this class to keep track of type constraints
1523 0.25 Mon. Aug. 13, 2007
1525 - Documentation update to reference Moose::Util::TypeConstraints
1526 under 'isa' in 'has' for how to define a new type
1527 (thanks to shlomif).
1529 * Moose::Meta::Attribute
1530 - required attributes now will no longer accept undef
1531 from the constructor, even if there is a default and lazy
1532 - added tests for this
1533 - default subroutines must return a value which passes the
1535 - added tests for this
1537 * Moose::Meta::Attribute
1538 * Moose::Meta::Method::Constructor
1539 * Moose::Meta::Method::Accessor
1540 - type-constraint tests now handle overloaded objects correctly
1541 in the error message
1542 - added tests for this (thanks to EvanCarroll)
1544 * Moose::Meta::TypeConstraint::Union
1545 - added (has_)hand_optimized_constraint to this class so that
1546 it behaves as the regular Moose::Meta::TypeConstraint does.
1549 - large refactoring of this code
1550 - added several more tests
1551 - tests for subtle conflict resolition issues
1552 added, but not currently running
1555 * Moose::Cookbook::Recipe7
1556 - added new recipe for augment/inner functionality
1558 - added test for this
1561 - a formal definition of roles (still in progress)
1564 - utilities for easier working with Moose classes
1565 - added tests for these
1568 - This contains Moose specific test functions
1569 - added tests for these
1571 0.24 Tues. July 3, 2007
1572 ~ Some doc updates/cleanup ~
1574 * Moose::Meta::Attribute
1575 - added support for roles to be given as parameters
1576 to the 'handles' option.
1577 - added tests and docs for this
1578 - the has '+foo' attribute form now accepts changes to
1579 the lazy option, and the addition of a handles option
1580 (but not changing the handles option)
1581 - added tests and docs for this
1584 - required methods are now fetched using find_method_by_name
1585 so that required methods can come from superclasses
1586 - adjusted tests for this
1588 0.23 Mon. June 18, 2007
1589 * Moose::Meta::Method::Constructor
1590 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1591 * Moose::Meta::Class
1592 - Modify make_immutable to work with the new Class::MOP immutable
1593 mechanism + POD + very basic test (groditi)
1594 * Moose::Meta::Attribute
1595 - Fix handles to use goto() so that caller() comes out properly on
1596 the other side (perigrin)
1598 0.22 Thurs. May 31, 2007
1599 * Moose::Util::TypeConstraints
1600 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1601 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1602 prototypes for functions
1603 - added the ClassName type constraint, this checks for strings
1604 which will respond true to ->isa(UNIVERSAL).
1605 - added tests and docs for this
1606 - subtyping just in name now works correctly by making the
1607 default for where be { 1 }
1608 - added test for this
1610 * Moose::Meta::Method::Accessor
1611 - coerce and lazy now work together correctly, thanks to
1612 merlyn for finding this bug
1613 - tests added for this
1614 - fix reader presedence bug in Moose::Meta::Attribute + tests
1617 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1618 a HASH-ref and missed. This produces better error messages then
1619 having it die cause undef is not a HASH.
1620 - added tests for this
1622 0.21 Thursday, May 2nd, 2007
1624 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1625 - modified unimport to remove super and inner along with the rest
1626 - altered unimport tests to handle this
1629 - altered super export to populate SUPER_SLOT
1631 * Moose::Meta::Class
1632 - altered augment and override modifier application to use *_SLOT
1633 - modified tests for these to unimport one test class each to test
1636 - fixed issue where custom attribute metaclasses
1637 where not handled correctly in roles
1638 - added tests for this
1640 * Moose::Meta::Class
1641 - fixed issue where extending metaclasses with
1642 roles would blow up. Thanks to Aankhen`` for
1643 finding this insidious error, and it's solution.
1645 ~~ lots of spelling and grammer fixes in the docs,
1646 many many thanks to rlb3 and Aankhen for these :)
1648 0.20 Friday, April 6th, 2007
1649 >> I messed up the SKIP logic in one test
1650 so this release is just to fix that.
1653 - 'has' now also accepts an ARRAY ref
1654 to create multiple attrs (see docs)
1655 (thanks to konobi for this)
1656 - added tests and docs
1658 0.19 Thurs. April 5th, 2007
1659 ~~ More documentation updates ~~
1661 * Moose::Util::TypeConstraints
1662 - 'type' now supports messages as well
1663 thanks to phaylon for finding this
1664 - added tests for this
1665 - added &list_all_type_constraints and
1666 &list_all_builtin_type_constraints
1667 functions to facilitate introspection.
1669 * Moose::Meta::Attribute
1670 - fixed regexp 'handles' declarations
1671 to build the list of delegated methods
1672 correctly (and not override important
1673 things like &new) thanks to ashleyb
1675 - added tests and docs for this
1676 - added the 'documentation' attributes
1677 so that you can actually document your
1678 attributes and inspect them through the
1680 - added tests and docs for this
1682 * Moose::Meta::Class
1683 - when loading custom attribute metaclasses
1684 it will first look in for the class in the
1685 Moose::Meta::Attribute::Custom::$name, and
1686 then default to just loading $name.
1687 - added tests and docs for this
1689 * Moose::Meta::TypeConstraint
1690 - type constraints now stringify to their names.
1691 - added test for this
1694 - added tests to assure we work with Module::Refresh
1695 - added stricter test skip logic in the Moose POOP
1696 test, ask Rob Kinyon why.
1697 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1699 0.18 Sat. March 10, 2007
1700 ~~ Many, many documentation updates ~~
1703 - We now use Class::MOP::load_class to
1705 - added tests to show types and subtypes
1706 working with Declare::Constraints::Simple
1707 and Test::Deep as constraint engines.
1710 !! You must have Class::MOP 0.37_001 !!
1711 !! for this developer release to work !!
1713 This release was primarily adding the immutable
1714 feature to Moose. An immutable class is one which
1715 you promise not to alter. When you set the class
1716 as immutable it will perform various bits of
1717 memoization and inline certain part of the code
1718 (constructors, destructors and accessors). This
1719 minimizes (and in some cases totally eliminates)
1720 one of Moose's biggest performance hits. This
1721 feature is not on by default, and is 100% optional.
1722 It has several configurable bits as well, so you
1723 can pick and choose to your specific needs.
1725 The changes involved in this were fairly wide and
1726 highly specific, but 100% backwards compatible, so
1727 I am not going to enumerate them here. If you are
1728 truely interested in what was changed, please do
1731 0.17 Tues. Nov. 14, 2006
1732 * Moose::Meta::Method::Accessor
1733 - bugfix for read-only accessors which
1734 are have a type constraint and lazy.
1735 Thanks to chansen for finding it.
1737 0.16 Tues. Nov. 14, 2006
1739 There are some speed improvements in this release,
1740 but they are only the begining, so stay tuned.
1743 - BUILDALL and DEMOLISHALL no longer get
1744 called unless they actually need to be.
1745 This gave us a signifigant speed boost
1746 for the cases when there is no BUILD or
1747 DEMOLISH method present.
1749 * Moose::Util::TypeConstraints
1750 * Moose::Meta::TypeConstraint
1751 - added an 'optimize_as' option to the
1752 type constraint, which allows for a
1753 hand optimized version of the type
1754 constraint to be used when possible.
1755 - Any internally created type constraints
1756 now provide an optimized version as well.
1758 0.15 Sun. Nov. 5, 2006
1760 This version of Moose *must* have Class::MOP 0.36 in order
1761 to work correctly. A number of small internal tweaks have
1762 been made in order to be compatible with that release.
1764 * Moose::Util::TypeConstraints
1765 - added &unimport so that you can clean out
1766 your class namespace of these exported
1769 * Moose::Meta::Class
1770 - fixed minor issue which occasionally
1771 comes up during global destruction
1773 - moved Moose::Meta::Method::Overriden into
1777 - moved Moose::Meta::Role::Method into
1780 * Moose::Meta::Attribute
1781 - changed how we do type checks so that
1782 we reduce the overall cost, but still
1785 - moved accessor generation methods to
1786 Moose::Meta::Method::Accessor to
1787 conform to the API changes from
1790 * Moose::Meta::TypeConstraint
1791 - changed how constraints are compiled
1792 so that we do less recursion and more
1793 iteration. This makes the type check
1795 - moved Moose::Meta::TypeConstraint::Union
1798 * Moose::Meta::Method::Accessor
1799 - created this from methods formerly found in
1800 Moose::Meta::Attribute
1802 * Moose::Meta::Role::Method
1803 - moved this from Moose::Meta::Role
1805 * Moose::Meta::Method::Overriden
1806 - moved this from Moose::Meta::Class
1808 * Moose::Meta::TypeConstraint::Union
1809 - moved this from Moose::Meta::TypeConstraint
1811 0.14 Mon. Oct. 9, 2006
1813 * Moose::Meta::Attribute
1814 - fixed lazy attributes which were not getting
1815 checked with the type constraint (thanks ashley)
1816 - added tests for this
1817 - removed the over-enthusiastic DWIMery of the
1818 automatic ArrayRef and HashRef defaults, it
1819 broke predicates in an ugly way.
1820 - removed tests for this
1822 0.13 Sat. Sept. 30, 2006
1824 This version of Moose *must* have Class::MOP 0.35 in order
1825 to work correctly. A number of small internal tweaks have
1826 been made in order to be compatible with that release.
1829 - Removed the use of UNIVERSAL::require to be a better
1830 symbol table citizen and remove a dependency
1831 (thanks Adam Kennedy)
1833 **~~ removed experimental & undocumented feature ~~**
1834 - commented out the 'method' and 'self' keywords, see the
1835 comments for more info.
1838 - added a FAQ and WTF files to document frequently
1839 asked questions and common problems
1841 * Moose::Util::TypeConstraints
1842 - added GlobRef and FileHandle type constraint
1843 - added tests for this
1845 * Moose::Meta::Attribute
1846 - if your attribute 'isa' ArrayRef of HashRef, and you have
1847 not explicitly set a default, then make the default DWIM.
1848 This will also work for subtypes of ArrayRef and HashRef
1850 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1851 - new test added for this (thanks to ashley)
1854 - added basic support for runtime role composition
1855 but this is still *highly experimental*, so feedback
1856 is much appreciated :)
1857 - added tests for this
1859 * Moose::Meta::TypeConstraint
1860 - the type constraint now handles the coercion process
1861 through delegation, this is to support the coercion
1864 * Moose::Meta::TypeConstraint::Union
1865 - it is now possible for coercions to be performed
1867 - added tests for this (thanks to konobi)
1869 * Moose::Meta::TypeCoercion
1870 - properly capturing error when type constraint
1874 - Scalar::Util 1.18 is bad on Win32, so temporarily
1875 only require version 1.17 for Win32 and cygwin.
1876 (thanks Adam Kennedy)
1878 0.12 Sat. Sept. 1, 2006
1880 - Recipe5 (subtypes & coercion) has been written
1883 - fixed "bad meta" error message to be more descriptive
1884 - fixed &unimport to not remove the &inner and &super
1885 keywords because we need to localize them.
1886 - fixed number of spelling/grammer issues, thanks Theory :)
1888 **~~ experimental & undocumented feature ~~**
1889 - added the method and self keywords, they are basically
1890 just sugar, and they may not stay around.
1893 - added &dump method to easily Data::Dumper
1896 * Moose::Meta::TypeConstraint
1897 - added the &is_a_type_of method to check both the current
1898 and the subtype of a method (similar to &isa with classes)
1901 - this is now a subclass of Class::MOP::Module, and no longer
1902 creates the _role_meta ugliness of before.
1903 - fixed tests to reflect this change
1905 0.11 Wed. July 12, 2006
1907 - added an &unimport method to remove all the keywords
1908 that Moose will import, simply add 'no Moose' to the
1909 bottom of your class file.
1912 - fixed some test failures caused by a forgotten test
1915 0.10 Thurs. July 6, 2006
1917 - improved error message when loading modules so
1918 it is less confusing when you load a role.
1919 - added &calculate_all_roles method to
1920 Moose::Meta::Class and Moose::Meta::Role
1923 This module has been tested against Class::MOP 0.30
1924 but it does not yet utilize the optimizations
1925 it makes available. Stay tuned for that ;)
1927 0.09_03 Fri. June 23, 2006
1928 ++ DEVELOPER RELEASE ++
1930 - 'use strict' and 'use warnings' are no longer
1931 needed in Moose classes, Moose itself will
1932 turn them on for you.
1933 - added tests for this
1934 - moved code from exported subs to private methods
1935 in Moose::Meta::Class
1938 - as with Moose, strict and warnings are
1939 automatically turned on for you.
1940 - added tests for this
1943 - now handles an edge case for override errors
1944 - added tests for this
1945 - added some more edge case tests
1947 0.09_02 Tues. May 16, 2006
1948 ++ DEVELOPER RELEASE ++
1950 - added prototypes to the exported subs
1954 - added prototypes to the exported subs
1957 * Moose::Util::TypeConstraints
1958 - cleaned up prototypes for the subs
1961 0.09_01 Fri. May 12, 2006
1962 ++ DEVELOPER RELEASE ++
1963 - This release works in combination with
1964 Class::MOP 0.29_01, it is a developer
1965 release because it uses the a new
1966 instance sub-protocol and a fairly
1967 complete Role implementation. It has
1968 not yet been optimized, so it slower
1969 the the previous CPAN version. This
1970 release also lacks good updated docs,
1971 the official release will have updated docs.
1974 - refactored the keyword exports
1975 - 'with' now checks Role validaity and
1976 accepts more than one Role at a time
1977 - 'extends' makes metaclass adjustments as
1978 needed to ensure metaclass compatibility
1981 - refactored the keyword exports
1982 - 'with' now checks Role validaity and
1983 accepts more than one Role at a time
1985 * Moose::Util::TypeConstraints
1986 - added the 'enum' keyword for simple
1987 string enumerations which can be used as
1989 - see example of usage in t/202_example.t
1992 - more careful checking of params to new()
1995 - much work done on the role composition
1996 - many new tests for conflict detection
1997 and composition edge cases
1998 - not enough documentation, I suggest
1999 looking at the tests
2001 * Moose::Meta::Instance
2002 - added new Instance metaclass to support
2003 the new Class::MOP instance protocol
2005 * Moose::Meta::Class
2006 - some small changes to support the new
2008 - some small additions to support Roles
2010 * Moose::Meta::Attribute
2011 - some improvements to the accessor generation code
2013 - some small changes to support the new
2015 - (still somewhat) experimental delegation support
2016 with the 'handles' option
2017 - added several tests for this
2018 - no docs for this yet
2020 0.05 Thurs. April 27, 2006
2022 - keywords are now exported with Sub::Exporter
2023 thanks to chansen for this commit
2024 - has keyword now takes a 'metaclass' option
2025 to support custom attribute meta-classes
2026 on a per-attribute basis
2027 - added tests for this
2028 - the 'has' keyword not accepts inherited slot
2029 specifications (has '+foo'). This is still an
2030 experimental feature and probably not finished
2031 see t/038_attribute_inherited_slot_specs.t for
2032 more details, or ask about it on #moose
2033 - added tests for this
2036 - keywords are now exported with Sub::Exporter
2038 * Moose::Utils::TypeConstraints
2039 - reorganized the type constraint hierarchy, thanks
2040 to nothingmuch and chansen for his help and advice
2042 - added some tests for this
2043 - keywords are now exported with Sub::Exporter
2044 thanks to chansen for this commit
2046 * Moose::Meta::Class
2047 - due to changes in Class::MOP, we had to change
2048 construct_instance (for the better)
2050 * Moose::Meta::Attribute
2051 - due to changes in Class::MOP, we had to add the
2052 initialize_instance_slot method (it's a good thing)
2054 * Moose::Meta::TypeConstraint
2055 - added type constraint unions
2056 - added tests for this
2057 - added the is_subtype_of predicate method
2058 - added tests for this
2060 0.04 Sun. April 16th, 2006
2062 - Roles can now consume other roles
2063 - added tests for this
2064 - Roles can specify required methods now with
2065 the requires() keyword
2066 - added tests for this
2069 - ripped out much of it's guts ,.. much cleaner now
2070 - added required methods and correct handling of
2071 them in apply() for both classes and roles
2072 - added tests for this
2073 - no longer adds a does() method to consuming classes
2074 it relys on the one in Moose::Object
2075 - added roles attribute and some methods to support
2076 roles consuming roles
2078 * Moose::Meta::Attribute
2079 - added support for triggers on attributes
2080 - added tests for this
2081 - added support for does option on an attribute
2082 - added tests for this
2084 * Moose::Meta::Class
2085 - added support for attribute triggers in the
2087 - added tests for this
2090 - Moose no longer creates a subtype for your class
2091 if a subtype of the same name already exists, this
2092 should DWIM in 99.9999% of all cases
2094 * Moose::Util::TypeConstraints
2095 - fixed bug where incorrect subtype conflicts were
2097 - added test for this
2100 - this class can now be extended with 'use base' if
2101 you need it, it properly loads the metaclass class now
2102 - added test for this
2104 0.03_02 Wed. April 12, 2006
2106 - you must now explictly use Moose::Util::TypeConstraints
2107 it no longer gets exported for you automatically
2110 - new() now accepts hash-refs as well as key/value lists
2111 - added does() method to check for Roles
2112 - added tests for this
2114 * Moose::Meta::Class
2115 - added roles attribute along with the add_role() and
2117 - added tests for this
2120 - now adds a does() method to consuming classes
2121 which tests the class's hierarchy for roles
2122 - added tests for this
2124 0.03_01 Mon. April 10, 2006
2126 - added new Role recipe (no content yet, only code)
2129 - added 'with' keyword for Role support
2130 - added test and docs for this
2131 - fixed subtype quoting bug
2132 - added test for this
2136 - added test and docs
2138 * Moose::Util::TypeConstraints
2139 - added the message keyword to add custom
2140 error messages to type constraints
2143 - the meta role to support Moose::Role
2144 - added tests and docs
2146 * Moose::Meta::Class
2147 - moved a number of things from Moose.pm
2148 to here, they should have been here
2151 * Moose::Meta::Attribute
2152 - moved the attribute option macros here
2153 instead of putting them in Moose.pm
2155 * Moose::Meta::TypeConstraint
2156 - added the message attributes and the
2158 - added tests and docs for this
2160 0.03 Thurs. March 30, 2006
2162 - added the Moose::Cookbook with 5 recipes,
2163 describing all the stuff Moose can do.
2166 - fixed an issue with &extends super class loading
2167 it now captures errors and deals with inline
2168 packages correctly (bug found by mst, solution
2170 - added super/override & inner/augment features
2171 - added tests and docs for these
2174 - BUILDALL now takes a reference of the %params
2175 that are passed to &new, and passes that to
2178 * Moose::Util::TypeConstraints
2179 - Type constraints now survive runtime reloading
2180 - added test for this
2182 * Moose::Meta::Class
2183 - fixed the way attribute defaults are handled
2184 during instance construction (bug found by chansen)
2186 * Moose::Meta::Attribute
2187 - read-only attributes now actually enforce their
2188 read-only-ness (this corrected in Class::MOP as
2191 0.02 Tues. March 21, 2006
2193 - many more tests, fixing some bugs and
2195 - &extends now loads the base module with
2197 - added UNIVERSAL::require to the
2200 - each new Moose class will also create
2201 and register a subtype of Object which
2202 correspond to the new Moose class.
2203 - the 'isa' option in &has now only
2204 accepts strings, and will DWIM in
2207 * Moose::Util::TypeConstraints
2208 - added type coercion features
2209 - added tests for this
2210 - added support for this in attributes
2211 and instance construction
2213 - type construction no longer creates a
2214 function, it registers the type instead.
2215 - added several functions to get the
2219 - BUILDALL and DEMOLISHALL were broken
2220 because of a mis-named hash key, Whoops :)
2222 * Moose::Meta::Attribute
2223 - adding support for coercion in the
2224 autogenerated accessors
2226 * Moose::Meta::Class
2227 - adding support for coercion in the
2228 instance construction
2230 * Moose::Meta::TypeConstraint
2231 * Moose::Meta::TypeCoercion
2232 - type constraints and coercions are now
2233 full fledges meta-objects
2235 0.01 Wed. March 15, 2006
2236 - Moooooooooooooooooose!!!