1 Revision history for Perl extension Moose
4 - Make some keyword errors use throw_error instead of croak
5 since Moose::Exporter wraps keywords now (Sartak)
7 0.68 Wed, February 4, 2009
9 - Many spelling, typo, and formatting fixes by daxim.
11 * Moose::Manual::Attributes
12 - The NAME section in the POD used "Attribute" so search.cpan
13 didn't resolve links from other documents properly.
15 * Moose::Meta::Method::Overriden
16 - Now properly spelled as Overridden. Thanks to daxim for
19 0.67 Tue, February 3, 2009
21 - Lots of little typo fixes and a few clarifications. Several
22 pages didn't have proper titles, and so weren't actually
23 visible on search.cpan.org. Thanks to hanekomu for a variety
24 of fixes and formatting improvements.
26 0.66 Tue, February 3, 2009
28 - This is a brand new, extensive manual for Moose. This aims to
29 provide a complete introduction to all of Moose's
30 features. This work was funded as part of the Moose docs grant
31 from TPF. (Dave Rolsky)
33 * Moose::Meta::Attribute
34 - Added a delegation_metaclass method to replace a hard-coded
35 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
37 * Moose::Util::TypeConstraints
38 - If you created a subtype and passed a parent that Moose didn't
39 know about, it simply ignored the parent. Now it automatically
40 creates the parent as a class type. This may not be what you
41 want, but is less broken than before. (Dave Rolsky)
43 * Moose::Util::TypeConstraints
44 - This module tried throw errors by calling Moose->throw_error,
45 but it did not ensure that Moose was loaded first. This could
46 cause very unhelpful errors when it tried to throw an error
47 before Moose was loaded. (Dave Rolsky)
49 * Moose::Util::TypeConstraints
50 - You could declare a name with subtype such as "Foo!Bar" that
51 would be allowed, but if you used it in a parameterized type
52 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
53 vetting on names created via the sugar functions, so that they
54 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
56 0.65 Thu, January 22, 2008
57 * Moose and Moose::Meta::Method::Overridden
58 - If an overridden method called super(), and then the
59 superclass's method (not overridden) _also_ called super(),
60 Moose went into an endless recursion loop. Test provided by
61 Chris Prather. (Dave Rolsky)
63 * Moose::Meta::TypeConstraint
64 - All methods are now documented. (gphat)
66 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
67 - Fixed some bogus failures that occurred because we tried to
68 validate filesystem paths in a very ad-hoc and
69 not-quite-correct way. (Dave Rolsky)
71 * Moose::Util::TypeConstraints
72 - Added maybe_type to exports. See docs for details. (rjbs)
75 - Added Moose::Util::TypeConstraints to the SEE ALSO
79 - Methods created via an attribute can now fulfill a "requires"
80 declaration for a role. (nothingmuch)
82 * Moose::Meta::Method::*
83 - Stack traces from inlined code will now report its line and
84 file as being in your class, as opposed to in Moose
87 0.64 Wed, December 31, 2008
88 * Moose::Meta::Method::Accessor
89 - Always inline predicate and clearer methods (Sartak)
91 * Moose::Meta::Attribute
92 - Support for parameterized traits (Sartak)
93 - verify_against_type_constraint method to avoid duplication
94 and enhance extensibility (Sartak)
97 - Tests (but no support yet) for parameterized traits (Sartak)
100 - Require Class::MOP 0.75+, which has the side effect of making
101 sure we work on Win32. (Dave Rolsky)
103 0.63 Mon, December 8, 2008
105 - Some small grammar tweaks and bug fixes in non-Moose example
108 0.62_02 Fri, December 5, 2008
109 * Moose::Meta::Role::Application::ToClass
110 - When a class does not provide all of a role's required
111 methods, the error thrown now mentions all of the missing
112 methods, as opposed to just the first one found. Requested by
113 Curtis Poe (RT #41119). (Dave Rolsky)
115 * Moose::Meta::Method::Constructor
116 - Moose will no longer inline a constructor for your class
117 unless it inherits its constructor from Moose::Object, and
118 will warn when it doesn't inline. If you want to force
119 inlining anyway, pass "replace_constructor => 1" to
120 make_immutable. Addresses RT #40968, reported by Jon
121 Swartz. (Dave Rolsky)
122 - The quoting of default values could be broken if the default
123 contained a single quote ('). Now we use quotemeta to escape
124 anything potentially dangerous in the defaults. (Dave Rolsky)
126 0.62_01 Wed, December 3, 2008
128 - use the method->execute API for BUILDALL
129 and DEMOLISHALL (Sartak)
131 * Moose::Util::TypeConstraints
132 - We now make all the type constraint meta classes immutable
133 before creating the default types provided by Moose. This
134 should make loading Moose a little faster. (Dave Rolsky)
136 0.62 Wed November 26, 2008
137 * Moose::Meta::Role::Application::ToClass
138 Moose::Meta::Role::Application::ToRole
139 - fixed issues where excluding and aliasing the
140 same methods for a single role did not work
141 right (worked just fine with multiple
143 - added test for this (stevan)
145 * Moose::Meta::Role::Application::RoleSummation
146 - fixed the error message when trying to compose
147 a role with a role it excludes (Sartak)
150 - Catch another case where recursion caused the value
151 of $CALLER to be stamped on (t0m)
152 - added test for this (t0m)
155 - Remove the make_immutable keyword, which has been
156 deprecated since April. It breaks metaclasses that
157 use Moose without no Moose (Sartak)
159 * Moose::Meta::Attribute
160 - Removing an attribute from a class now also removes delegation
161 (handles) methods installed for that attribute (t0m)
162 - added test for this (t0m)
164 * Moose::Meta::Method::Constructor
165 - An attribute with a default that looked like a number (but was
166 really a string) would accidentally be treated as a number
167 when the constructor was made immutable (perigrin)
168 - added test for this (perigrin)
171 - create method for constructing a role
173 - added test for this (Sartak)
174 - anonymous roles! (Sartak)
175 - added test for this (Sartak)
178 - more consistent error messages (Sartak)
180 * Moose::Cookbook::Roles::Recipe1
181 - attempt to explain why a role that just requires
182 methods is useful (Sartak)
184 0.61 Fri November 7, 2008
185 * Moose::Meta::Attribute
186 - When passing a role to handles, it will be loaded if necessary
190 - Method objects returned by get_method (and other methods)
191 Could end up being returned without an associated_metaclass
192 attribute. Removing get_method_map, which is provided by
193 Class::MOP::Class, fixed this. The Moose version did nothing
194 different from its parent except introduce a bug. (Dave Rolsky)
195 - added tests for this (jdv79)
198 - Added a $VERSION to all .pm files which didn't have one. Fixes
199 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
201 * Moose::Cookbook::Basics::Recipe4
202 * Moose::Cookbook::Basics::Recipe6
203 - These files had spaces on the first line of the SYNOPSIS, as
204 opposed to a totally empty line. According to RT #40432, this
205 confuses POD parsers. (Dave Rolsky)
207 0.60 Fri October 24, 2008
209 - Passing "-traits" when loading Moose caused the Moose.pm
210 exports to be broken. Reported by t0m. (Dave Rolsky)
211 - Tests for this bug. (t0m)
214 - Change resolve_metaclass alias to use the new
215 load_first_existing_class function. This makes it a lot
216 simpler, and also around 5 times faster. (t0m)
217 - Add caching to resolve_metaclass_alias, which gives an order
218 of magnitude speedup to things which repeatedly call the
219 Moose::Meta::Attribute->does method, notably MooseX::Storage
222 * Moose::Util::TypeConstraint
223 - Put back the changes for parameterized constraints that
224 shouldn't have been removed in 0.59. We still cannot parse
225 them, but MooseX modules can create them in some other
226 way. See the 0.58 changes for more details. (jnapiorkowski)
227 - Changed the way subtypes are created so that the job is
228 delegated to a type constraint parent. This clears up some
229 hardcoded checking and should allow correct subtypes of
230 Moose::Meta::Type::Constraint. Don't rely on this new API too
231 much (create_child_type) because it may go away in the
232 future. (jnapiorkowski)
234 * Moose::Meta::TypeConstraint::Union
235 - Type constraint names are sorted as strings, not numbers.
238 * Moose::Meta::TypeConstraint::Parameterizable
239 - New parameterize method. This can be used as a factory method
240 to make a new type constraint with a given parameterized
241 type. (jnapiorkowski)
242 - added tests (jnapiorkowski)
244 0.59 Tue October 14, 2008
246 - Add abridged documentation for builder/default/initializer/
247 predicate, and link to more details sections in
248 Class::MOP::Attribute. (t0m)
250 * Moose::Util::TypeConstraints
251 - removed prototypes from all but the &-based stuff (mst)
253 * Moose::Util::TypeConstraints
254 - Creating a anonymous subtype with both a constraint and a
255 message failed with a very unhelpful error, but should just
256 work. Reported by t0m. (Dave Rolsky)
259 - Some tests that used Test::Warn if it was available failed
260 with older versions of Test::Warn. Reported by Fayland. (Dave
262 - Test firing behavior of triggers in relation to builder/default/
264 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
265 kinds of supported type. (t0m)
268 - In create(), do not pass "roles" option to the superclass
269 - added related test that creates an anon metaclass with
272 * Moose::Meta::TypeConstraint::Class
273 * Moose::Meta::TypeConstraint::Role
274 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
275 other types (as per change in 0.55_02). (t0m)
277 * Moose::Meta::TypeConstraint::Registry
278 - Fix warning when dealing with unknown type names (t0m)
280 * Moose::Util::TypeConstraints
281 - Reverted changes from 0.58 related to handle parameterized
282 types. This caused random failures on BSD and Win32 systems,
283 apparently related to the regex engine. This means that Moose
284 can no longer parse structured type constraints like
285 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
286 supported in a slightly different way via MooseX::Types some
287 time in the future. (Dave Rolsky)
289 0.58 Sat September 20, 2008
290 !! This release has an incompatible change regarding !!
291 !! how roles add methods to a class !!
293 * Roles and role application
294 ! Roles now add methods by calling add_method, not
295 alias_method. They make sure to always provide a method
296 object, which will be cloned internally. This means that it is
297 now possible to track the source of a method provided by a
298 role, and even follow its history through intermediate roles.
300 This means that methods added by a role now show up when
301 looking at a class's method list/map. (Dave Rolsky)
304 - From this release on, we'll try to maintain a list of
305 conflicting modules, and warn you if you have one
306 installed. For example, this release conflicts with ...
307 - MooseX::Singleton <= 0.11
308 - MooseX::Params::Validate <= 0.05
311 In general, we try to not break backwards compatibility for
312 most Moose users, but MooseX modules and other code which
313 extends Moose's metaclasses is often affected by very small
314 changes in the Moose internals.
316 * Moose::Meta::Method::Delegation
317 * Moose::Meta::Attribute
318 - Delegation methods now have their own method class. (Dave
321 * Moose::Meta::TypeConstraint::Parameterizable
322 - Added a new method 'parameterize' which is basically a factory
323 for the containing constraint. This makes it easier to create
324 new types of parameterized constraints. (jnapiorkowski)
326 * Moose::Meta::TypeConstraint::Union
327 - Changed the way Union types canonicalize their names to follow
328 the normalized TC naming rules, which means we strip all
329 whitespace. (jnapiorkowski)
331 * Moose::Util::TypeConstraints
332 - Parameter and Union args are now sorted, this makes Int|Str
333 the same constraint as Str|Int. (jnapiorkowski)
334 - Changes to the way Union types are parsed to more correctly
335 stringify their names. (jnapiorkowski)
336 - When creating a parameterized type, we now use the new
337 parameterize method. (jnapiorkowski)
338 - Incoming type constraint strings are now normalized to remove
339 all whitespace differences. (jnapiorkowski)
340 - Changed the way we parse type constraint strings so that we now
341 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
342 constraints. This lays the foundation for more flexible type
343 constraint implementations.
345 * Tests and docs for all the above. (jnapiorkowski)
349 - Moose::Exporter will no longer remove a subroutine that the
350 exporting package re-exports. Moose re-exports the
351 Carp::confess function, among others. The reasoning is that we
352 cannot know whether you have also explicitly imported those
353 functions for your own use, so we err on the safe side and
354 always keep them. (Dave Rolsky)
355 - added tests for this (rafl)
358 - Changes to how we fix metaclass compatibility that are much
359 too complicated to go into. The summary is that Moose is much
360 less likely to complain about metaclass incompatibility
361 now. In particular, if two metaclasses differ because
362 Moose::Util::MetaRole was used on the two corresponding
363 classes, then the difference in roles is reconciled for the
364 subclass's metaclass. (Dave Rolsky)
365 - Squashed an warning in _process_attribute (thepler)
368 - throw exceptions (sooner) for invalid attribute names (thepler)
369 - added tests for this (thepler)
371 * Moose::Util::MetaRole
372 - If you explicitly set a constructor or destructor class for a
373 metaclass object, and then applied roles to the metaclass,
374 that explicitly set class would be lost and replaced with the
378 * Moose::Meta::Attribute
379 * Moose::Meta::Method
382 * Moose::Error::Default
383 * Moose::Error::Croak
384 * Moose::Error::Confess
385 - All instances of confess() changed to use overridable
386 C<throw_error> method. This method ultimately calls a class
387 constructor, and you can change the class being called. In
388 addition, errors now pass more information than just a string.
389 The default C<error_class> behaves like C<Carp::confess>, so
390 the behavior is not visibly different for end users.
392 0.57 Wed September 3, 2008
394 - A new bit of doc intended to introduce folks familiar with
395 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
398 - Shows examples of two classes, each done first with and then
399 without Moose. This makes a nice parallel to
400 Moose::Intro. (Dave Rolsky)
402 * Moose::Util::TypeConstraints
403 - Fixed a bug in find_or_parse_type_constraint so that it
404 accepts a Moose::Meta::TypeConstraint object as the parent
405 type, not just a name (jnapiorkowski)
406 - added tests (jnapiorkowski)
409 - If Sub::Name was not present, unimporting failed to actually
410 remove some sugar subs, causing test failures (Dave Rolsky)
412 0.56 Mon September 1, 2008
413 For those not following the series of dev releases, there are
414 several major changes in this release of Moose.
415 ! Moose::init_meta should now be called as a method. See the
418 - Major performance improvements by nothingmuch.
420 - New modules for extension writers, Moose::Exporter and
421 Moose::Util::MetaRole by Dave Rolsky.
423 - Lots of doc improvements and additions, especially in the
428 * Removed all references to the experimental-but-no-longer-needed
429 Moose::Meta::Role::Application::ToMetaclassInstance.
431 * Require Class::MOP 0.65.
433 0.55_04 Sat August 30, 2008
434 * Moose::Util::MetaRole
435 * Moose::Cookbook::Extending::Recipe2
436 - This simplifies the application of roles to any meta class, as
437 well as the base object class. Reimplemented metaclass traits
438 using this module. (Dave Rolsky)
440 * Moose::Cookbook::Extending::Recipe1
441 - This a new recipe, an overview of various ways to write Moose
442 extensions (Dave Rolsky)
444 * Moose::Cookbook::Extending::Recipe3
445 * Moose::Cookbook::Extending::Recipe4
446 - These used to be Extending::Recipe1 and Extending::Recipe2,
449 0.55_03 Fri August 29, 2008
450 * No changes from 0.55_02 except increasing the Class::MOP
451 dependency to 0.64_07.
453 0.55_02 Fri August 29, 2008
454 * Makefile.PL and Moose.pm
455 - explicitly require Perl 5.8.0+ (Dave Rolsky)
457 * Moose::Util::TypeConstraints
458 - Fix warnings from find_type_constraint if the type is not
461 * Moose::Meta::TypeConstraint
462 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
463 return false if the type you specify cannot be found in the
464 type registry, rather than throwing an unhelpful and
465 coincidental exception. (t0m).
466 - added docs & test for this (t0m)
468 * Moose::Meta::TypeConstraint::Registry
469 - add_type_constraint now throws an exception if a parameter is
471 - added docs & test for this (t0m)
473 * Moose::Cookbook::FAQ
474 - Added a faq entry on the difference between "role" and "trait"
478 - Fixed a bug that caused role composition to not see a required
479 method when that method was provided by another role being
480 composed at the same time. (Dave Rolsky)
481 - test and bug finding (tokuhirom)
483 0.55_01 Wed August 20, 2008
485 !! Calling Moose::init_meta as a function is now !!
486 !! deprecated. Please see the Moose.pm docs for details. !!
488 * Moose::Meta::Method::Constructor
489 - Fix inlined constructor so that values produced by default
490 or builder methods are coerced as required. (t0m)
491 - added test for this (t0m)
493 * Moose::Meta::Attribute
494 - A lazy attribute with a default or builder did not attempt to
495 coerce the default value. The immutable code _did_
497 - added test for this (t0m)
500 - This is a new helper module for writing "Moose-alike"
501 modules. This should make the lives of MooseX module authors
502 much easier. (Dave Rolsky)
505 * Moose::Cookbook::Meta::Recipe5
506 - Implemented metaclass traits (and wrote a recipe for it):
508 use Moose -traits => 'Foo'
510 This should make writing small Moose extensions a little
513 * Moose::Cookbook::Basics::Recipe1
514 - Removed any examples of direct hashref access, and applied an
515 editorial axe to reduce verbosity. (Dave Rolsky)
517 * Moose::Cookbook::Basics::Recipe1
518 - Also applied an editorial axe here. (Dave Rolsky)
521 * Moose::Cookbook::Extending::Recipe1
522 * Moose::Cookbook::Extending::Recipe2
523 - Rewrote extending and embedding moose documentation and
524 recipes to use Moose::Exporter (Dave Rolsky)
528 - These two modules now warn when you load them from the main
529 package "main" package, because we will not export sugar to
530 main. Previously it just did nothing. (Dave Rolsky)
533 - Now provide an init_meta method just like Moose.pm, and you
534 can call this to provide an alternate role metaclass. (Dave
535 Rolsky and nothingmuch)
536 - get_method_map now respects the package cache flag (nothingmuch)
539 - Two new methods - add_method and wrap_method_body
543 - Optimizations including allowing constructors to accept hash
544 refs, making many more classes immutable, and making
545 constructors immutable. (nothingmuch)
547 0.55 Sun August 3, 2008
548 * Moose::Meta::Attribute
549 - breaking down the way 'handles' methods are
550 created so that the process can be more easily
551 overridden by subclasses (stevan)
553 * Moose::Meta::TypeConstraint
554 - fixing what is passed into a ->message with
555 the type constraints (RT #37569)
556 - added tests for this (Charles Alderman)
558 * Moose::Util::TypeConstraints
559 - fix coerce to accept anon types like subtype can (mst)
562 - reorganized the recipes into sections - Basics, Roles, Meta,
563 Extending - and wrote abstracts for each section (Dave Rolsky)
565 * Moose::Cookbook::Basics::Recipe10
566 - A new recipe that demonstrates operator overloading
567 in combination with Moose. (bluefeet)
569 * Moose::Cookbook::Meta::Recipe1
570 - an introduction to what meta is and why you'd want to make
571 your own metaclass extensions (Dave Rolsky)
573 * Moose::Cookbook::Meta::Recipe4
574 - a very simple metaclass example (Dave Rolsky)
576 * Moose::Cookbook::Extending::Recipe1
577 - how to write a Moose-alike module to use your own object base
580 * Moose::Cookbook::Extending::Recipe2
581 - how to write modules with an API just like C<Moose.pm> (Dave
585 - Tons of fixes, both syntactical and grammatical (Dave
586 Rolsky, Paul Fenwick)
588 0.54 Thurs. July 3, 2008
589 ... this is not my day today ...
591 * Moose::Meta::Attribute
592 - fixed legal_options_for_inheritance such that
593 clone_and_inherit options still works for
594 Class::MOP::Attribute objects and therefore
595 does not break MooseX::AttributeHelpers
598 0.53 Thurs. July 3, 2008
599 * Whoops, I guess I should run 'make manifest' before
600 actually releasing the module. No actual changes
601 in this release, except the fact that it includes
602 the changes that I didn't include in the last
605 0.52 Thurs. July 3, 2008
607 - added "FEATURE REQUESTS" section to the Moose docs
608 to properly direct people (stevan) (RT #34333)
609 - making 'extends' croak if it is passed a Role since
610 this is not ever something you want to do
611 (fixed by stevan, found by obra)
612 - added tests for this (stevan)
615 - adding support for DOES (as in UNIVERSAL::DOES)
617 - added test for this
619 * Moose::Meta::Attribute
620 - added legal_options_for_inheritance (wreis)
621 - added tests for this (wreis)
623 * Moose::Cookbook::Snacks::*
624 - removed some of the unfinished snacks that should
625 not have been released yet. Added some more examples
626 to the 'Keywords' snack. (stevan)
628 * Moose::Cookbook::Style
629 - added general Moose "style guide" of sorts to the
630 cookbook (nothingmuch) (RT #34335)
633 - added more BUILDARGS tests (stevan)
635 0.51 Thurs. Jun 26, 2008
637 - add unimport so "no Moose::Role" actually does
640 * Moose::Meta::Role::Application::ToRole
641 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
642 order to provide its own implementation, that method still got
643 added to the list of required methods for consumers of
644 RoleB. Now an aliased method is only added to the list of
645 required methods if the role doing the aliasing does not
646 provide its own implementation. See Recipe 11 for an example
647 of all this. (Dave Rolsky)
648 - added tests for this
650 * Moose::Meta::Method::Constructor
651 - when a single argument that wasn't a hashref was provided to
652 an immutabilized constructor, the error message was very
653 unhelpful, as opposed to the non-immutable error. Reported by
655 - added test for this (Dave Rolsky)
657 * Moose::Meta::Attribute
658 - added support for meta_attr->does("ShortAlias") (sartak)
659 - added tests for this (sartak)
660 - moved the bulk of the `handles` handling to the new
661 install_delegation method (Stevan)
664 - Added BUILDARGS, a new step in new()
666 * Moose::Meta::Role::Application::RoleSummation
667 - fix typos no one ever sees (sartak)
669 * Moose::Util::TypeConstraints
670 * Moose::Meta::TypeConstraint
671 * Moose::Meta::TypeCoercion
672 - Attempt to work around the ??{ } vs. threads issue
674 - Some null_constraint optimizations
676 0.50 Thurs. Jun 11, 2008
677 - Fixed a version number issue by bumping all modules
680 0.49 Thurs. Jun 11, 2008
681 !! This version now approx. 20-25% !!
682 !! faster with new Class::MOP 0.59 !!
684 * Moose::Meta::Attribute
685 - fixed how the is => (ro|rw) works with
686 custom defined reader, writer and accessor
688 - added docs for this (TODO).
689 - added tests for this (Thanks to Penfold)
690 - added the custom attribute alias for regular
691 Moose attributes which is "Moose"
692 - fix builder and default both being used
697 Moose::Meta::Attribute
699 Moose::Meta::Role::Composite
700 Moose::Util::TypeConstraints
701 - switched usage of reftype to ref because
705 - changing add_package_symbol to use the new
709 - fixed how DEMOLISHALL is called so that it
710 can be overrided in subclasses (thanks to Sartak)
711 - added test for this (thanks to Sartak)
713 * Moose::Util::TypeConstraints
714 - move the ClassName type check code to
715 Class::MOP::is_class_loaded (thanks to Sartak)
717 * Moose::Cookbook::Recipe11
718 - add tests for this (thanks to tokuhirom)
720 0.48 Thurs. May 29, 2008
721 (early morning release engineering)--
723 - fixing the version in Moose::Meta::Method::Destructor
724 which was causing the indexer to choke
726 0.47 Thurs. May 29, 2008
727 (late night release engineering)--
729 - fixing the version is META.yml, no functional
730 changes in this release
732 0.46 Wed. May 28, 2008
733 !! This version now approx. 20-25% !!
734 !! faster with new Class::MOP 0.57 !!
737 - some optimizations of the &initialize method
738 since it is called so often by &meta
742 - now use the get_all_package_symbols from the
743 updated Class::MOP, test suite is now 10 seconds
746 * Moose::Meta::Method::Destructor
747 - is_needed can now also be called as a class
748 method for immutablization to check if the
749 destructor object even needs to be created
752 * Moose::Meta::Method::Destructor
753 Moose::Meta::Method::Constructor
754 - added more descriptive error message to help
755 keep people from wasting time tracking an error
756 that is easily fixed by upgrading.
758 0.45 Saturday, May 24, 2008
760 - Because of work in Class::MOP 0.57, all
761 XS based functionality is now optional
762 and a Pure Perl version is supplied
763 - the CLASS_MOP_NO_XS environment variable
764 can now be used to force non-XS versions
766 - several of the packages have been tweaked
767 to take care of this, mostly we added
768 support for the package_name and name
769 variables in all the Method metaclasses
770 - before/around/after method modifiers now
771 support regexp matching of names
772 (thanks to Takatoshi Kitano)
773 - tests added for this
774 - NOTE: this only works for classes, it
775 is currently not supported in roles,
776 but, ... patches welcome
777 - All usage of Carp::confess have been replaced
778 by Carp::croak in the "keyword" functions since
779 the stack trace is usually not helpful
782 - All usage of Carp::confess have been replaced
783 by Carp::croak in the "keyword" functions since
784 the stack trace is usually not helpful
785 - The 'has' keyword for roles now accepts the
786 same array ref form that Moose.pm does
787 (has [qw/foo bar/] => (is => 'rw', ...))
788 - added test for this
790 * Moose::Meta::Attribute
791 - trigger on a ro-attribute is no longer an
792 error, as it's useful to trigger off of the
796 - added same 'add_package_symbol' fix as in
800 - does_role now handles non-Moose classes
802 - added tests for this
803 - added the 'add_method_modifier' function
804 (thanks to Takatoshi Kitano)
806 * Moose::Util::TypeConstraints
807 - subtypes of parameterizable types now are
808 themselves parameterizable types
810 * Moose::Meta::Method::Constructor
811 - fixed bug where trigger was not being
812 called by the inlined immutable
814 - added test for this (thanks to Caelum)
816 * Moose::Meta::Role::Application::ToInstance
817 - now uses the metaclass of the instance
818 (if possible) to create the anon-class
819 (thanks Jonathan Rockway)
821 * Moose::Cookbook::Recipe22
822 - added the meta-attribute trait recipe
826 - fixed hash-ordering test bug that was
827 causing occasional cpantester failures
828 - renamed the t/000_recipe/*.t tests to be
829 more descriptive (thanks to Sartak)
831 0.44 Sat. May 10, 2008
833 - made make_immutable warning cluck to
834 show where the error is (thanks mst)
837 - BUILDALL and DEMOLISHALL now call
838 ->body when looping through the
839 methods, to avoid the overloaded
841 - fixed issue where DEMOLISHALL was
842 eating the $@ values, and so not
843 working correctly, it still kind of
844 eats them, but so does vanilla perl
845 - added tests for this
847 * Moose::Cookbook::Recipe7
848 - added new recipe for immutable
849 functionality (thanks Dave Rolsky)
851 * Moose::Cookbook::Recipe9
852 - added new recipe for builder and
853 lazy_build (thanks Dave Rolsky)
855 * Moose::Cookbook::Recipe11
856 - added new recipe for method aliasing
857 and exclusion with Roles (thanks Dave Rolsky)
860 - fixed Win32 test failure (thanks spicyjack)
862 ~ removed Build.PL and Module::Build compat
863 since Module::Install has done that.
865 0.43 Wed. April, 30, 2008
867 drink more coffee before
868 doing release engineering
870 - whoops, forgot to do the smolder tests,
871 and we broke some of the custom meta-attr
872 modules. This fixes that.
874 0.42 Mon. April 28, 2008
875 - some bad tests slipped by, nothing else
876 changed in this release (cpantesters++)
878 - upped the Class::MOP dependency to 0.55
879 since we have tests which need the C3
882 0.41 Mon. April 28, 2008
883 ~~ numerous documentation updates ~~
885 - Changed all usage of die to Carp::croak for better
886 error reporting (initial patch by Tod Hagan)
889 - the make_immutable keyword is now deprecated, don't
890 use it in any new code and please fix your old code
891 as well. There will be 2 releases, and then it will
897 - refactored the way inner and super work to avoid
898 any method/@ISA cache penalty (nothingmuch)
901 - fixing &new_object to make sure trigger gets the
902 coerced value (spotted by Charles Alderman on the
904 - added test for this
906 * Moose::Meta::Method::Constructor
907 - immutable classes which had non-lazy attributes were calling
908 the default generating sub twice in the constructor. (bug
909 found by Jesse Luehrs, fixed by Dave Rolsky)
910 - added tests for this (Dave Rolsky)
911 - fix typo in initialize_body method (nothingmuch)
913 * Moose::Meta::Method::Destructor
914 - fix typo in initialize_body method (nothingmuch)
916 * Moose::Meta::Method::Overriden
917 Moose::Meta::Method::Augmented
918 - moved the logic for these into their own
919 classes (nothingmuch)
921 * Moose::Meta::Attribute
922 - inherited attributes may now be extended without
923 restriction on the type ('isa', 'does') (Sartak)
924 - added tests for this (Sartak)
925 - when an attribute property is malformed (such as lazy without
926 a default), give the name of the attribute in the error
928 - added the &applied_traits and &has_applied_traits methods
929 to allow introspection of traits
930 - added tests for this
931 - moved 'trait' and 'metaclass' argument handling to here from
933 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
934 '+foo' syntax) (nothingmuch)
935 - added tests for this (t0m)
938 - localize $@ inside DEMOLISHALL to avoid it
939 eating $@ (found by Ernesto)
940 - added test for this (thanks to Ernesto)
942 * Moose::Util::TypeConstraints
943 - &find_type_constraint now DWIMs when given an
944 type constraint object or name (nothingmuch)
945 - &find_or_create_type_constraint superseded with a number of more
947 - find_or_create_{isa,does}_type_constraint
948 - find_or_parse_type_constraint
950 * Moose::Meta::TypeConstraint
951 Moose::Meta::TypeConstraint::Class
952 Moose::Meta::TypeConstraint::Role
953 Moose::Meta::TypeConstraint::Enum
954 Moose::Meta::TypeConstraint::Union
955 Moose::Meta::TypeConstraint::Parameterized
956 - added the &equals method for comparing two type
957 constraints (nothingmuch)
958 - added tests for this (nothingmuch)
960 * Moose::Meta::TypeConstraint
961 - add the &parents method, which is just an alias to &parent.
962 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
964 * Moose::Meta::TypeConstraint::Class
965 - added the class attribute for introspection purposes
967 - added tests for this
969 * Moose::Meta::TypeConstraint::Enum
970 Moose::Meta::TypeConstraint::Role
971 - broke these out into their own classes (nothingmuch)
973 * Moose::Cookbook::Recipe*
974 - fixed references to test file locations in the POD
975 and updated up some text for new Moose features
979 - Added &resolve_metaclass_alias, a helper function for finding an actual
980 class for a short name (e.g. in the traits list)
982 0.40 Fri. March 14, 2008
983 - I hate Pod::Coverage
985 0.39 Fri. March 14, 2008
987 - documenting the use of '+name' with attributes
988 that come from recently composed roles. It makes
989 sense, people are using it, and so why not just
990 officially support it.
991 - fixing the 'extends' keyword so that it will not
992 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
995 - added the perl -Moose=+Class::Name feature to allow
996 monkeypatching of classes in one liners
999 - fixing the 'apply_all_roles' keyword so that it will not
1000 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1002 * Moose::Meta::Class
1003 - added ->create method which now supports roles (thanks to jrockway)
1004 - added tests for this
1005 - added ->create_anon_class which now supports roles and caching of
1006 the results (thanks to jrockway)
1007 - added tests for this
1008 - made ->does_role a little more forgiving when it is
1009 checking a Class::MOP era metaclasses.
1011 * Moose::Meta::Role::Application::ToInstance
1012 - it is now possible to pass extra params to be used when
1013 a role is applied to an the instance (rebless_params)
1014 - added tests for this
1016 * Moose::Util::TypeConstraints
1017 - class_type now accepts an optional second argument for a
1018 custom message. POD anotated accordingly (groditi)
1019 - added tests for this
1020 - it is now possible to make anon-enums by passing 'enum' an
1021 ARRAY ref instead of the $name => @values. Everything else
1023 - added tests for this
1026 - making test for using '+name' on attributes consumed
1027 from a role, it works and makes sense too.
1029 * Moose::Meta::Attribute
1030 - fix handles so that it doesn't return nothing
1031 when the method cannot be found, not sure why
1032 it ever did this originally, this means we now
1033 have slightly better support for AUTOLOADed
1035 - added more delegation tests
1036 - adding ->does method to this so as to better
1037 support traits and their introspection.
1038 - added tests for this
1041 - localizing the Data::Dumper configurations so
1042 that it does not pollute others (RT #33509)
1043 - made ->does a little more forgiving when it is
1044 passed Class::MOP era metaclasses.
1046 0.38 Fri. Feb. 15, 2008
1047 * Moose::Meta::Attribute
1048 - fixed initializer to correctly do
1049 type checking and coercion in the
1051 - added tests for this
1054 - fixed some finicky tests (thanks to konobi)
1056 0.37 Thurs. Feb. 14, 2008
1058 - fixed some details in Moose::init_meta
1059 and its superclass handling (thanks thepler)
1060 - added tests for this (thanks thepler)
1061 - 'has' now dies if you don't pass in name
1063 - added the 'make_immutable' keyword as a shortcut
1066 * Moose::Meta::Class
1067 Moose::Meta::Method::Constructor
1068 Moose::Meta::Attribute
1069 - making (init_arg => undef) work here too
1070 (thanks to nothingmuch)
1072 * Moose::Meta::Attribute
1073 Moose::Meta::Method::Constructor
1074 Moose::Meta::Method::Accessor
1075 - make lazy attributes respect attr initializers (rjbs)
1076 - added tests for this
1078 * Moose::Util::TypeConstraints
1079 Moose::Util::TypeConstraints::OptimizedConstraints
1080 Moose::Meta::TypeConstraints
1081 Moose::Meta::Attribute
1082 Moose::Meta::Method::Constructor
1083 Moose::Meta::Method::Accessor
1084 - making type errors use the
1085 assigned message (thanks to Sartak)
1086 - added tests for this
1088 * Moose::Meta::Method::Destructor
1089 - making sure DESTROY gets inlined properly
1090 with successive DEMOLISH calls (thanks to manito)
1092 * Moose::Meta::Attribute
1093 Moose::Meta::Method::Accessor
1094 - fixed handling of undef with type constraints
1096 - added tests for this
1099 - added &get_all_init_args and &get_all_attribute_values
1100 (thanks to Sartak and nothingmuch)
1102 0.36 Sat. Jan. 26, 2008
1104 Moose::Meta::Attribute
1105 - role type tests now support when roles are
1106 applied to non-Moose classes (found by ash)
1107 - added tests for this (thanks to ash)
1108 - couple extra tests to boost code coverage
1110 * Moose::Meta::Method::Constructor
1111 - improved fix for handling Class::MOP attributes
1112 - added test for this
1114 * Moose::Meta::Class
1115 - handled the add_attribute($attribute_meta_object)
1117 - added test for this
1119 0.35 Tues. Jan. 22, 2008
1120 * Moose::Meta::Method::Constructor
1121 - fix to make sure even Class::MOP attributes
1122 are handled correctly (Thanks to Dave Rolsky)
1123 - added test for this (also Dave Rolsky)
1125 * Moose::Meta::Class
1126 - improved error message on _apply_all_roles,
1127 you should now use Moose::Util::apply_all_roles
1128 and you shouldnt have been using a _ prefixed
1129 method in the first place ;)
1131 0.34 Mon. Jan. 21, 2008
1132 ~~~ more misc. doc. fixes ~~~
1133 ~~ updated copyright dates ~~
1135 Moose is now a postmodern object system :)
1136 - (see the POD for details)
1138 * <<Role System Refactoring>>
1139 - this release contains a major reworking and
1140 cleanup of the role system
1141 - 100% backwards compat.
1142 - Role application now restructured into seperate
1143 classes based on type of applicants
1144 - Role summation (combining of more than one role)
1145 is much cleaner and anon-classes are no longer
1146 used in this process
1147 - new Composite role metaclass
1148 - runtime application of roles to instances
1149 is now more efficient and re-uses generated
1150 classes when applicable
1152 * <<New Role composition features>>
1153 - methods can now be excluded from a given role
1155 - methods can now be aliased to another name (and
1156 still retain the original as well)
1158 * Moose::Util::TypeConstraints::OptimizedConstraints
1159 - added this module (see above)
1161 * Moose::Meta::Class
1162 - fixed the &_process_attribute method to be called
1163 by &add_attribute, so that the API is now correct
1165 * Moose::Meta::Method::Accessor
1166 - fixed bug when passing a list of values to
1167 an accessor would get (incorrectly) ignored.
1168 Thanks to Sartak for finding this ;)
1169 - added tests for this (Sartak again)
1171 * Moose::Meta::Method::Accessor
1172 Moose::Meta::Method::Constructor
1173 Moose::Meta::Attribute
1174 Moose::Meta::TypeConstraint
1175 Moose::Meta::TypeCoercion
1176 - lots of cleanup of such things as:
1178 - type constraint handling
1179 - error handling/messages
1180 (thanks to nothingmuch)
1182 * Moose::Meta::TypeConstraint::Parameterizable
1183 - added this module to support the refactor
1184 in Moose::Meta::TypeConstraint::Parameterized
1186 * Moose::Meta::TypeConstraint::Parameterized
1187 - refactored how these types are handled so they
1188 are more generic and not confined to ArrayRef
1192 - shortened some file names for better VMS support (RT #32381)
1194 0.33 Fri. Dec. 14, 2007
1195 !! Moose now loads 2 x faster !!
1196 !! with new Class::MOP 0.49 !!
1198 ++ new oose.pm module to make command line
1199 Moose-ness easier (see POD docs for more)
1201 * Moose::Meta::Class
1203 - several tweaks to take advantage of the
1204 new method map caching in Class::MOP
1206 * Moose::Meta::TypeConstraint::Parameterized
1207 - allow subtypes of ArrayRef and HashRef to
1208 be used as a container (sartak)
1209 - added tests for this
1210 - basic support for coercion to ArrayRef and
1211 HashRef for containers (sartak)
1212 - added tests for this
1214 * Moose::Meta::TypeCoercion
1215 - coercions will now create subtypes as needed
1216 so you can now add coercions to parameterized
1217 types without having to explictly define them
1218 - added tests for this
1220 * Moose::Meta::Method::Accessor
1221 - allow subclasses to decide whether we need
1222 to copy the value into a new variable (sartak)
1224 0.32 Tues. Dec. 4, 2007
1225 * Moose::Util::TypeConstraints
1226 - fixing how subtype aliases of unions work
1227 they should inherit the parent's coercion
1228 - added tests for this
1229 - you can now define multiple coercions on
1230 a single type at different times instead of
1231 having to do it all in one place
1232 - added tests for this
1234 * Moose::Meta::TypeConstraint
1235 - there is now a default constraint of sub { 1 }
1236 instead of Moose::Util::TypeConstraints setting
1239 * Moose::Meta::TypeCoercion
1240 * Moose::Meta::TypeCoercion::Union
1241 - added the &has_coercion_for_type and
1242 &add_type_coercions methods to support the
1243 new features above (although you cannot add
1244 more type coercions for Union types)
1246 0.31 Mon. Nov. 26, 2007
1247 * Moose::Meta::Attribute
1248 - made the +attr syntax handle extending types with
1249 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1250 now works if the original foo is an ArrayRef.
1251 - added tests for this.
1252 - delegation now works even if the attribute does not
1253 have a reader method using the get_read_method_ref
1254 method from Class::MOP::Attribute.
1255 - added tests for this
1256 - added docs for this
1258 * Moose::Util::TypeConstraints
1259 - passing no "additional attribute info" to
1260 &find_or_create_type_constraint will no longer
1261 attempt to create an __ANON__ type for you,
1262 instead it will just return undef.
1263 - added docs for this
1265 0.30 Fri. Nov. 23, 2007
1266 * Moose::Meta::Method::Constructor
1267 -builder related bug in inlined constructor. (groditi)
1269 * Moose::Meta::Method::Accessor
1270 - genereate unnecessary calls to predicates and refactor
1271 code generation for runtime speed (groditi)
1273 * Moose::Util::TypeConstraints
1274 - fix ClassName constraint to introspect symbol table (mst)
1275 - added more tests for this (mst)
1276 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1277 with work correctly.
1278 - added tests for this
1281 - adding the link to Recipie 11 (written by Sartak)
1282 - adding test for SYNOPSIS code
1285 - New tests for builder bug. Upon instantiation, if an
1286 attribute had a builder, no value and was not lazy the
1287 builder default was not getting run, oops. (groditi)
1289 0.29 Tues. Nov. 13, 2007
1290 * Moose::Meta::Attribute
1291 - Fix error message on missing builder method (groditi)
1293 * Moose::Meta::Method::Accessor
1294 - Fix error message on missing builder method (groditi)
1297 - Add test to check for the correct error message when
1298 builder method is missing (groditi)
1300 0.28 Tues. Nov. 13, 2007
1301 - 0.27 packaged incorrectly (groditi)
1303 0.27 Tues. Nov. 13, 2007
1304 * Moose::Meta::Attribute
1305 - Added support for the new builder option (groditi)
1306 - Added support for lazy_build option (groditi)
1307 - Changed slot initialization for predicate changes (groditi)
1309 * Moose::Meta::Method::Accessor
1310 - Added support for lazy_build option (groditi)
1311 - Fix inline methods to work with corrected predicate
1314 * Moose::Meta::Method::Constructor
1315 - Added support for lazy_build option (groditi)
1318 - tests for builder and lazy_build (groditi)
1320 * fixing some misc. bits in the docs that
1321 got mentioned on CPAN Forum & perlmonks
1324 - fixed how required methods are handled
1325 when they encounter overriden or modified
1326 methods from a class (thanks to confound).
1327 - added tests for this
1329 * Moose::Util::TypeConstraint
1330 - fixed the type notation parser so that
1331 the | always creates a union and so is
1332 no longer a valid type char (thanks to
1333 konobi, mugwump and #moose for working
1335 - added more tests for this
1337 0.26 Thurs. Sept. 27, 2007
1340 * Parameterized Types
1341 We now support parameterized collection types, such as:
1342 ArrayRef[Int] # array or integers
1343 HashRef[Object] # a hash with object values
1344 They can also be nested:
1345 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1346 And work with the type unions as well:
1347 ArrayRef[Int | Str] # array of integers of strings
1349 * Better Framework Extendability
1350 Moose.pm is now "extendable" such that it is now much
1351 easier to extend the framework and add your own keywords
1352 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1353 section of the Moose.pm docs.
1356 In an effort to begin documenting some of the various
1357 details of Moose as well as some common idioms, we have
1358 created Moose::Cookbook::Snacks as a place to find
1359 small (easily digestable) nuggets of Moose code.
1362 ~ Several doc updates/cleanup thanks to castaway ~
1364 - converted build system to use Module::Install instead of
1365 Module::Build (thanks to jrockway)
1368 - added all the meta classes to the immutable list and
1369 set it to inline the accessors
1370 - fix import to allow Sub::Exporter like { into => }
1371 and { into_level => } (perigrin)
1372 - exposed and documented init_meta() to allow better
1373 embedding and extending of Moose (perigrin)
1376 - complete re-organization of the test suite
1377 - added some new tests as well
1378 - finally re-enabled the Moose::POOP test since
1379 the new version of DBM::Deep now works again
1382 * Moose::Meta::Class
1383 - fixed very odd and very nasty recursion bug with
1385 - added tests for this (eilara)
1387 * Moose::Meta::Attribute
1388 Moose::Meta::Method::Constructor
1389 Moose::Meta::Method::Accessor
1390 - fixed issue with overload::Overloaded getting called
1391 on non-blessed items. (RT #29269)
1392 - added tests for this
1394 * Moose::Meta::Method::Accessor
1395 - fixed issue with generated accessor code making
1396 assumptions about hash based classes (thanks to dexter)
1398 * Moose::Coookbook::Snacks
1399 - these are bits of documentation, not quite as big as
1400 Recipes but which have no clear place in the module docs.
1401 So they are Snacks! (horray for castaway++)
1403 * Moose::Cookbook::Recipe4
1404 - updated it to use the new ArrayRef[MyType] construct
1405 - updated the accompanying test as well
1407 +++ Major Refactor of the Type Constraint system +++
1408 +++ with new features added as well +++
1410 * Moose::Util::TypeConstraint
1411 - no longer uses package variable to keep track of
1412 the type constraints, now uses the an instance of
1413 Moose::Meta::TypeConstraint::Registry to do it
1414 - added more sophisticated type notation parsing
1416 - added tests for this
1418 * Moose::Meta::TypeConstraint
1419 - some minor adjustments to make subclassing easier
1420 - added the package_defined_in attribute so that we
1421 can track where the type constraints are created
1423 * Moose::Meta::TypeConstraint::Union
1424 - this is now been refactored to be a subclass of
1425 Moose::Meta::TypeConstraint
1427 * Moose::Meta::TypeCoercion::Union
1428 - this has been added to service the newly refactored
1429 Moose::Meta::TypeConstraint::Union and is itself
1430 a subclass of Moose::Meta::TypeCoercion
1432 * Moose::Meta::TypeConstraint::Parameterized
1433 - added this module (taken from MooseX::AttributeHelpers)
1434 to help construct nested collection types
1435 - added tests for this
1437 * Moose::Meta::TypeConstraint::Registry
1438 - added this class to keep track of type constraints
1440 0.25 Mon. Aug. 13, 2007
1442 - Documentation update to reference Moose::Util::TypeConstraints
1443 under 'isa' in 'has' for how to define a new type
1444 (thanks to shlomif).
1446 * Moose::Meta::Attribute
1447 - required attributes now will no longer accept undef
1448 from the constructor, even if there is a default and lazy
1449 - added tests for this
1450 - default subroutines must return a value which passes the
1452 - added tests for this
1454 * Moose::Meta::Attribute
1455 * Moose::Meta::Method::Constructor
1456 * Moose::Meta::Method::Accessor
1457 - type-constraint tests now handle overloaded objects correctly
1458 in the error message
1459 - added tests for this (thanks to EvanCarroll)
1461 * Moose::Meta::TypeConstraint::Union
1462 - added (has_)hand_optimized_constraint to this class so that
1463 it behaves as the regular Moose::Meta::TypeConstraint does.
1466 - large refactoring of this code
1467 - added several more tests
1468 - tests for subtle conflict resolition issues
1469 added, but not currently running
1472 * Moose::Cookbook::Recipe7
1473 - added new recipe for augment/inner functionality
1475 - added test for this
1478 - a formal definition of roles (still in progress)
1481 - utilities for easier working with Moose classes
1482 - added tests for these
1485 - This contains Moose specific test functions
1486 - added tests for these
1488 0.24 Tues. July 3, 2007
1489 ~ Some doc updates/cleanup ~
1491 * Moose::Meta::Attribute
1492 - added support for roles to be given as parameters
1493 to the 'handles' option.
1494 - added tests and docs for this
1495 - the has '+foo' attribute form now accepts changes to
1496 the lazy option, and the addition of a handles option
1497 (but not changing the handles option)
1498 - added tests and docs for this
1501 - required methods are now fetched using find_method_by_name
1502 so that required methods can come from superclasses
1503 - adjusted tests for this
1505 0.23 Mon. June 18, 2007
1506 * Moose::Meta::Method::Constructor
1507 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1508 * Moose::Meta::Class
1509 - Modify make_immutable to work with the new Class::MOP immutable
1510 mechanism + POD + very basic test (groditi)
1511 * Moose::Meta::Attribute
1512 - Fix handles to use goto() so that caller() comes out properly on
1513 the other side (perigrin)
1515 0.22 Thurs. May 31, 2007
1516 * Moose::Util::TypeConstraints
1517 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1518 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1519 prototypes for functions
1520 - added the ClassName type constraint, this checks for strings
1521 which will respond true to ->isa(UNIVERSAL).
1522 - added tests and docs for this
1523 - subtyping just in name now works correctly by making the
1524 default for where be { 1 }
1525 - added test for this
1527 * Moose::Meta::Method::Accessor
1528 - coerce and lazy now work together correctly, thanks to
1529 merlyn for finding this bug
1530 - tests added for this
1531 - fix reader presedence bug in Moose::Meta::Attribute + tests
1534 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1535 a HASH-ref and missed. This produces better error messages then
1536 having it die cause undef is not a HASH.
1537 - added tests for this
1539 0.21 Thursday, May 2nd, 2007
1541 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1542 - modified unimport to remove super and inner along with the rest
1543 - altered unimport tests to handle this
1546 - altered super export to populate SUPER_SLOT
1548 * Moose::Meta::Class
1549 - altered augment and override modifier application to use *_SLOT
1550 - modified tests for these to unimport one test class each to test
1553 - fixed issue where custom attribute metaclasses
1554 where not handled correctly in roles
1555 - added tests for this
1557 * Moose::Meta::Class
1558 - fixed issue where extending metaclasses with
1559 roles would blow up. Thanks to Aankhen`` for
1560 finding this insidious error, and it's solution.
1562 ~~ lots of spelling and grammer fixes in the docs,
1563 many many thanks to rlb3 and Aankhen for these :)
1565 0.20 Friday, April 6th, 2007
1566 >> I messed up the SKIP logic in one test
1567 so this release is just to fix that.
1570 - 'has' now also accepts an ARRAY ref
1571 to create multiple attrs (see docs)
1572 (thanks to konobi for this)
1573 - added tests and docs
1575 0.19 Thurs. April 5th, 2007
1576 ~~ More documentation updates ~~
1578 * Moose::Util::TypeConstraints
1579 - 'type' now supports messages as well
1580 thanks to phaylon for finding this
1581 - added tests for this
1582 - added &list_all_type_constraints and
1583 &list_all_builtin_type_constraints
1584 functions to facilitate introspection.
1586 * Moose::Meta::Attribute
1587 - fixed regexp 'handles' declarations
1588 to build the list of delegated methods
1589 correctly (and not override important
1590 things like &new) thanks to ashleyb
1592 - added tests and docs for this
1593 - added the 'documentation' attributes
1594 so that you can actually document your
1595 attributes and inspect them through the
1597 - added tests and docs for this
1599 * Moose::Meta::Class
1600 - when loading custom attribute metaclasses
1601 it will first look in for the class in the
1602 Moose::Meta::Attribute::Custom::$name, and
1603 then default to just loading $name.
1604 - added tests and docs for this
1606 * Moose::Meta::TypeConstraint
1607 - type constraints now stringify to their names.
1608 - added test for this
1611 - added tests to assure we work with Module::Refresh
1612 - added stricter test skip logic in the Moose POOP
1613 test, ask Rob Kinyon why.
1614 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1616 0.18 Sat. March 10, 2007
1617 ~~ Many, many documentation updates ~~
1620 - We now use Class::MOP::load_class to
1622 - added tests to show types and subtypes
1623 working with Declare::Constraints::Simple
1624 and Test::Deep as constraint engines.
1627 !! You must have Class::MOP 0.37_001 !!
1628 !! for this developer release to work !!
1630 This release was primarily adding the immutable
1631 feature to Moose. An immutable class is one which
1632 you promise not to alter. When you set the class
1633 as immutable it will perform various bits of
1634 memoization and inline certain part of the code
1635 (constructors, destructors and accessors). This
1636 minimizes (and in some cases totally eliminates)
1637 one of Moose's biggest performance hits. This
1638 feature is not on by default, and is 100% optional.
1639 It has several configurable bits as well, so you
1640 can pick and choose to your specific needs.
1642 The changes involved in this were fairly wide and
1643 highly specific, but 100% backwards compatible, so
1644 I am not going to enumerate them here. If you are
1645 truely interested in what was changed, please do
1648 0.17 Tues. Nov. 14, 2006
1649 * Moose::Meta::Method::Accessor
1650 - bugfix for read-only accessors which
1651 are have a type constraint and lazy.
1652 Thanks to chansen for finding it.
1654 0.16 Tues. Nov. 14, 2006
1656 There are some speed improvements in this release,
1657 but they are only the begining, so stay tuned.
1660 - BUILDALL and DEMOLISHALL no longer get
1661 called unless they actually need to be.
1662 This gave us a signifigant speed boost
1663 for the cases when there is no BUILD or
1664 DEMOLISH method present.
1666 * Moose::Util::TypeConstraints
1667 * Moose::Meta::TypeConstraint
1668 - added an 'optimize_as' option to the
1669 type constraint, which allows for a
1670 hand optimized version of the type
1671 constraint to be used when possible.
1672 - Any internally created type constraints
1673 now provide an optimized version as well.
1675 0.15 Sun. Nov. 5, 2006
1677 This version of Moose *must* have Class::MOP 0.36 in order
1678 to work correctly. A number of small internal tweaks have
1679 been made in order to be compatible with that release.
1681 * Moose::Util::TypeConstraints
1682 - added &unimport so that you can clean out
1683 your class namespace of these exported
1686 * Moose::Meta::Class
1687 - fixed minor issue which occasionally
1688 comes up during global destruction
1690 - moved Moose::Meta::Method::Overriden into
1694 - moved Moose::Meta::Role::Method into
1697 * Moose::Meta::Attribute
1698 - changed how we do type checks so that
1699 we reduce the overall cost, but still
1702 - moved accessor generation methods to
1703 Moose::Meta::Method::Accessor to
1704 conform to the API changes from
1707 * Moose::Meta::TypeConstraint
1708 - changed how constraints are compiled
1709 so that we do less recursion and more
1710 iteration. This makes the type check
1712 - moved Moose::Meta::TypeConstraint::Union
1715 * Moose::Meta::Method::Accessor
1716 - created this from methods formerly found in
1717 Moose::Meta::Attribute
1719 * Moose::Meta::Role::Method
1720 - moved this from Moose::Meta::Role
1722 * Moose::Meta::Method::Overriden
1723 - moved this from Moose::Meta::Class
1725 * Moose::Meta::TypeConstraint::Union
1726 - moved this from Moose::Meta::TypeConstraint
1728 0.14 Mon. Oct. 9, 2006
1730 * Moose::Meta::Attribute
1731 - fixed lazy attributes which were not getting
1732 checked with the type constraint (thanks ashley)
1733 - added tests for this
1734 - removed the over-enthusiastic DWIMery of the
1735 automatic ArrayRef and HashRef defaults, it
1736 broke predicates in an ugly way.
1737 - removed tests for this
1739 0.13 Sat. Sept. 30, 2006
1741 This version of Moose *must* have Class::MOP 0.35 in order
1742 to work correctly. A number of small internal tweaks have
1743 been made in order to be compatible with that release.
1746 - Removed the use of UNIVERSAL::require to be a better
1747 symbol table citizen and remove a dependency
1748 (thanks Adam Kennedy)
1750 **~~ removed experimental & undocumented feature ~~**
1751 - commented out the 'method' and 'self' keywords, see the
1752 comments for more info.
1755 - added a FAQ and WTF files to document frequently
1756 asked questions and common problems
1758 * Moose::Util::TypeConstraints
1759 - added GlobRef and FileHandle type constraint
1760 - added tests for this
1762 * Moose::Meta::Attribute
1763 - if your attribute 'isa' ArrayRef of HashRef, and you have
1764 not explicitly set a default, then make the default DWIM.
1765 This will also work for subtypes of ArrayRef and HashRef
1767 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1768 - new test added for this (thanks to ashley)
1771 - added basic support for runtime role composition
1772 but this is still *highly experimental*, so feedback
1773 is much appreciated :)
1774 - added tests for this
1776 * Moose::Meta::TypeConstraint
1777 - the type constraint now handles the coercion process
1778 through delegation, this is to support the coercion
1781 * Moose::Meta::TypeConstraint::Union
1782 - it is now possible for coercions to be performed
1784 - added tests for this (thanks to konobi)
1786 * Moose::Meta::TypeCoercion
1787 - properly capturing error when type constraint
1791 - Scalar::Util 1.18 is bad on Win32, so temporarily
1792 only require version 1.17 for Win32 and cygwin.
1793 (thanks Adam Kennedy)
1795 0.12 Sat. Sept. 1, 2006
1797 - Recipe5 (subtypes & coercion) has been written
1800 - fixed "bad meta" error message to be more descriptive
1801 - fixed &unimport to not remove the &inner and &super
1802 keywords because we need to localize them.
1803 - fixed number of spelling/grammer issues, thanks Theory :)
1805 **~~ experimental & undocumented feature ~~**
1806 - added the method and self keywords, they are basically
1807 just sugar, and they may not stay around.
1810 - added &dump method to easily Data::Dumper
1813 * Moose::Meta::TypeConstraint
1814 - added the &is_a_type_of method to check both the current
1815 and the subtype of a method (similar to &isa with classes)
1818 - this is now a subclass of Class::MOP::Module, and no longer
1819 creates the _role_meta ugliness of before.
1820 - fixed tests to reflect this change
1822 0.11 Wed. July 12, 2006
1824 - added an &unimport method to remove all the keywords
1825 that Moose will import, simply add 'no Moose' to the
1826 bottom of your class file.
1829 - fixed some test failures caused by a forgotten test
1832 0.10 Thurs. July 6, 2006
1834 - improved error message when loading modules so
1835 it is less confusing when you load a role.
1836 - added &calculate_all_roles method to
1837 Moose::Meta::Class and Moose::Meta::Role
1840 This module has been tested against Class::MOP 0.30
1841 but it does not yet utilize the optimizations
1842 it makes available. Stay tuned for that ;)
1844 0.09_03 Fri. June 23, 2006
1845 ++ DEVELOPER RELEASE ++
1847 - 'use strict' and 'use warnings' are no longer
1848 needed in Moose classes, Moose itself will
1849 turn them on for you.
1850 - added tests for this
1851 - moved code from exported subs to private methods
1852 in Moose::Meta::Class
1855 - as with Moose, strict and warnings are
1856 automatically turned on for you.
1857 - added tests for this
1860 - now handles an edge case for override errors
1861 - added tests for this
1862 - added some more edge case tests
1864 0.09_02 Tues. May 16, 2006
1865 ++ DEVELOPER RELEASE ++
1867 - added prototypes to the exported subs
1871 - added prototypes to the exported subs
1874 * Moose::Util::TypeConstraints
1875 - cleaned up prototypes for the subs
1878 0.09_01 Fri. May 12, 2006
1879 ++ DEVELOPER RELEASE ++
1880 - This release works in combination with
1881 Class::MOP 0.29_01, it is a developer
1882 release because it uses the a new
1883 instance sub-protocol and a fairly
1884 complete Role implementation. It has
1885 not yet been optimized, so it slower
1886 the the previous CPAN version. This
1887 release also lacks good updated docs,
1888 the official release will have updated docs.
1891 - refactored the keyword exports
1892 - 'with' now checks Role validaity and
1893 accepts more than one Role at a time
1894 - 'extends' makes metaclass adjustments as
1895 needed to ensure metaclass compatibility
1898 - refactored the keyword exports
1899 - 'with' now checks Role validaity and
1900 accepts more than one Role at a time
1902 * Moose::Util::TypeConstraints
1903 - added the 'enum' keyword for simple
1904 string enumerations which can be used as
1906 - see example of usage in t/202_example.t
1909 - more careful checking of params to new()
1912 - much work done on the role composition
1913 - many new tests for conflict detection
1914 and composition edge cases
1915 - not enough documentation, I suggest
1916 looking at the tests
1918 * Moose::Meta::Instance
1919 - added new Instance metaclass to support
1920 the new Class::MOP instance protocol
1922 * Moose::Meta::Class
1923 - some small changes to support the new
1925 - some small additions to support Roles
1927 * Moose::Meta::Attribute
1928 - some improvements to the accessor generation code
1930 - some small changes to support the new
1932 - (still somewhat) experimental delegation support
1933 with the 'handles' option
1934 - added several tests for this
1935 - no docs for this yet
1937 0.05 Thurs. April 27, 2006
1939 - keywords are now exported with Sub::Exporter
1940 thanks to chansen for this commit
1941 - has keyword now takes a 'metaclass' option
1942 to support custom attribute meta-classes
1943 on a per-attribute basis
1944 - added tests for this
1945 - the 'has' keyword not accepts inherited slot
1946 specifications (has '+foo'). This is still an
1947 experimental feature and probably not finished
1948 see t/038_attribute_inherited_slot_specs.t for
1949 more details, or ask about it on #moose
1950 - added tests for this
1953 - keywords are now exported with Sub::Exporter
1955 * Moose::Utils::TypeConstraints
1956 - reorganized the type constraint hierarchy, thanks
1957 to nothingmuch and chansen for his help and advice
1959 - added some tests for this
1960 - keywords are now exported with Sub::Exporter
1961 thanks to chansen for this commit
1963 * Moose::Meta::Class
1964 - due to changes in Class::MOP, we had to change
1965 construct_instance (for the better)
1967 * Moose::Meta::Attribute
1968 - due to changes in Class::MOP, we had to add the
1969 initialize_instance_slot method (it's a good thing)
1971 * Moose::Meta::TypeConstraint
1972 - added type constraint unions
1973 - added tests for this
1974 - added the is_subtype_of predicate method
1975 - added tests for this
1977 0.04 Sun. April 16th, 2006
1979 - Roles can now consume other roles
1980 - added tests for this
1981 - Roles can specify required methods now with
1982 the requires() keyword
1983 - added tests for this
1986 - ripped out much of it's guts ,.. much cleaner now
1987 - added required methods and correct handling of
1988 them in apply() for both classes and roles
1989 - added tests for this
1990 - no longer adds a does() method to consuming classes
1991 it relys on the one in Moose::Object
1992 - added roles attribute and some methods to support
1993 roles consuming roles
1995 * Moose::Meta::Attribute
1996 - added support for triggers on attributes
1997 - added tests for this
1998 - added support for does option on an attribute
1999 - added tests for this
2001 * Moose::Meta::Class
2002 - added support for attribute triggers in the
2004 - added tests for this
2007 - Moose no longer creates a subtype for your class
2008 if a subtype of the same name already exists, this
2009 should DWIM in 99.9999% of all cases
2011 * Moose::Util::TypeConstraints
2012 - fixed bug where incorrect subtype conflicts were
2014 - added test for this
2017 - this class can now be extended with 'use base' if
2018 you need it, it properly loads the metaclass class now
2019 - added test for this
2021 0.03_02 Wed. April 12, 2006
2023 - you must now explictly use Moose::Util::TypeConstraints
2024 it no longer gets exported for you automatically
2027 - new() now accepts hash-refs as well as key/value lists
2028 - added does() method to check for Roles
2029 - added tests for this
2031 * Moose::Meta::Class
2032 - added roles attribute along with the add_role() and
2034 - added tests for this
2037 - now adds a does() method to consuming classes
2038 which tests the class's hierarchy for roles
2039 - added tests for this
2041 0.03_01 Mon. April 10, 2006
2043 - added new Role recipe (no content yet, only code)
2046 - added 'with' keyword for Role support
2047 - added test and docs for this
2048 - fixed subtype quoting bug
2049 - added test for this
2053 - added test and docs
2055 * Moose::Util::TypeConstraints
2056 - added the message keyword to add custom
2057 error messages to type constraints
2060 - the meta role to support Moose::Role
2061 - added tests and docs
2063 * Moose::Meta::Class
2064 - moved a number of things from Moose.pm
2065 to here, they should have been here
2068 * Moose::Meta::Attribute
2069 - moved the attribute option macros here
2070 instead of putting them in Moose.pm
2072 * Moose::Meta::TypeConstraint
2073 - added the message attributes and the
2075 - added tests and docs for this
2077 0.03 Thurs. March 30, 2006
2079 - added the Moose::Cookbook with 5 recipes,
2080 describing all the stuff Moose can do.
2083 - fixed an issue with &extends super class loading
2084 it now captures errors and deals with inline
2085 packages correctly (bug found by mst, solution
2087 - added super/override & inner/augment features
2088 - added tests and docs for these
2091 - BUILDALL now takes a reference of the %params
2092 that are passed to &new, and passes that to
2095 * Moose::Util::TypeConstraints
2096 - Type constraints now survive runtime reloading
2097 - added test for this
2099 * Moose::Meta::Class
2100 - fixed the way attribute defaults are handled
2101 during instance construction (bug found by chansen)
2103 * Moose::Meta::Attribute
2104 - read-only attributes now actually enforce their
2105 read-only-ness (this corrected in Class::MOP as
2108 0.02 Tues. March 21, 2006
2110 - many more tests, fixing some bugs and
2112 - &extends now loads the base module with
2114 - added UNIVERSAL::require to the
2117 - each new Moose class will also create
2118 and register a subtype of Object which
2119 correspond to the new Moose class.
2120 - the 'isa' option in &has now only
2121 accepts strings, and will DWIM in
2124 * Moose::Util::TypeConstraints
2125 - added type coercion features
2126 - added tests for this
2127 - added support for this in attributes
2128 and instance construction
2130 - type construction no longer creates a
2131 function, it registers the type instead.
2132 - added several functions to get the
2136 - BUILDALL and DEMOLISHALL were broken
2137 because of a mis-named hash key, Whoops :)
2139 * Moose::Meta::Attribute
2140 - adding support for coercion in the
2141 autogenerated accessors
2143 * Moose::Meta::Class
2144 - adding support for coercion in the
2145 instance construction
2147 * Moose::Meta::TypeConstraint
2148 * Moose::Meta::TypeCoercion
2149 - type constraints and coercions are now
2150 full fledges meta-objects
2152 0.01 Wed. March 15, 2006
2153 - Moooooooooooooooooose!!!