1 Revision history for Perl extension Moose
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
12 * Moose::Util::TypeConstraints::Optimized
13 - Just use Class::MOP for the optimized ClassName check (Dave
17 - Allow overriding specific keywords from "also" packages (doy)
20 - Replace hardcoded cookbook tests with Test::Inline POD
21 to ensure they don't desync (Dave Rolsky)
22 - Many fixes, small and large (Dave Rolsky)
24 0.70 Sat, February 14, 2009
25 * Moose::Util::TypeConstraints
26 - Added the RoleName type (stevan)
27 - added tests for this (stevan)
29 * Moose::Cookbook::Basics::Recipe3
30 - Updated the before qw[left right] sub to be a little more
31 defensive about what it accepts (stevan)
32 - added more tests to t/000_recipies/basics/003_binary_tree.t
36 - We now always call DEMOLISHALL, even if a class does not
37 define DEMOLISH. This makes sure that method modifiers on
38 DEMOLISHALL work as expected. (doy)
39 - added tests for this (EvanCarroll)
41 * Moose::Util::MetaRole
42 - Accept roles for the wrapped_method_metaclass (rafl)
43 - added tests for this (rafl)
45 * Moose::Meta::Attribute
46 - We no longer pass the meta-attribute object as a final
47 argument to triggers. This actually changed for inlined code a
48 while back, but the non-inlined version and the docs were
52 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
53 they require 0.11. (Dave Rolsky)
56 - Lots of small changes to the manual, cookbook, and
57 elsewhere. These were based on feedback from various
58 users, too many to list here. (Dave Rolsky)
60 0.69 Thu, February 12, 2009
62 - Make some keyword errors use throw_error instead of croak
63 since Moose::Exporter wraps keywords now (Sartak)
66 - Revised every recipe for style and clarity. Also moved some
67 documentation out of cookbook recipes and into Moose::Manual
68 pages. This work was funded as part of the Moose docs grant
69 from TPF. (Dave Rolsky)
71 * Moose::Meta::Method::Delegation
72 - If the attribute doing the delegation was not populated, the
73 error message did not specify the attribute name
76 0.68 Wed, February 4, 2009
78 - Many spelling, typo, and formatting fixes by daxim.
80 * Moose::Manual::Attributes
81 - The NAME section in the POD used "Attribute" so search.cpan
82 didn't resolve links from other documents properly.
84 * Moose::Meta::Method::Overriden
85 - Now properly spelled as Overridden. Thanks to daxim for
88 0.67 Tue, February 3, 2009
90 - Lots of little typo fixes and a few clarifications. Several
91 pages didn't have proper titles, and so weren't actually
92 visible on search.cpan.org. Thanks to hanekomu for a variety
93 of fixes and formatting improvements.
95 0.66 Tue, February 3, 2009
97 - This is a brand new, extensive manual for Moose. This aims to
98 provide a complete introduction to all of Moose's
99 features. This work was funded as part of the Moose docs grant
100 from TPF. (Dave Rolsky)
102 * Moose::Meta::Attribute
103 - Added a delegation_metaclass method to replace a hard-coded
104 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
106 * Moose::Util::TypeConstraints
107 - If you created a subtype and passed a parent that Moose didn't
108 know about, it simply ignored the parent. Now it automatically
109 creates the parent as a class type. This may not be what you
110 want, but is less broken than before. (Dave Rolsky)
112 * Moose::Util::TypeConstraints
113 - This module tried throw errors by calling Moose->throw_error,
114 but it did not ensure that Moose was loaded first. This could
115 cause very unhelpful errors when it tried to throw an error
116 before Moose was loaded. (Dave Rolsky)
118 * Moose::Util::TypeConstraints
119 - You could declare a name with subtype such as "Foo!Bar" that
120 would be allowed, but if you used it in a parameterized type
121 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
122 vetting on names created via the sugar functions, so that they
123 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
125 0.65 Thu, January 22, 2008
126 * Moose and Moose::Meta::Method::Overridden
127 - If an overridden method called super(), and then the
128 superclass's method (not overridden) _also_ called super(),
129 Moose went into an endless recursion loop. Test provided by
130 Chris Prather. (Dave Rolsky)
132 * Moose::Meta::TypeConstraint
133 - All methods are now documented. (gphat)
135 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
136 - Fixed some bogus failures that occurred because we tried to
137 validate filesystem paths in a very ad-hoc and
138 not-quite-correct way. (Dave Rolsky)
140 * Moose::Util::TypeConstraints
141 - Added maybe_type to exports. See docs for details. (rjbs)
144 - Added Moose::Util::TypeConstraints to the SEE ALSO
148 - Methods created via an attribute can now fulfill a "requires"
149 declaration for a role. (nothingmuch)
151 * Moose::Meta::Method::*
152 - Stack traces from inlined code will now report its line and
153 file as being in your class, as opposed to in Moose
156 0.64 Wed, December 31, 2008
157 * Moose::Meta::Method::Accessor
158 - Always inline predicate and clearer methods (Sartak)
160 * Moose::Meta::Attribute
161 - Support for parameterized traits (Sartak)
162 - verify_against_type_constraint method to avoid duplication
163 and enhance extensibility (Sartak)
166 - Tests (but no support yet) for parameterized traits (Sartak)
169 - Require Class::MOP 0.75+, which has the side effect of making
170 sure we work on Win32. (Dave Rolsky)
172 0.63 Mon, December 8, 2008
174 - Some small grammar tweaks and bug fixes in non-Moose example
177 0.62_02 Fri, December 5, 2008
178 * Moose::Meta::Role::Application::ToClass
179 - When a class does not provide all of a role's required
180 methods, the error thrown now mentions all of the missing
181 methods, as opposed to just the first one found. Requested by
182 Curtis Poe (RT #41119). (Dave Rolsky)
184 * Moose::Meta::Method::Constructor
185 - Moose will no longer inline a constructor for your class
186 unless it inherits its constructor from Moose::Object, and
187 will warn when it doesn't inline. If you want to force
188 inlining anyway, pass "replace_constructor => 1" to
189 make_immutable. Addresses RT #40968, reported by Jon
190 Swartz. (Dave Rolsky)
191 - The quoting of default values could be broken if the default
192 contained a single quote ('). Now we use quotemeta to escape
193 anything potentially dangerous in the defaults. (Dave Rolsky)
195 0.62_01 Wed, December 3, 2008
197 - use the method->execute API for BUILDALL
198 and DEMOLISHALL (Sartak)
200 * Moose::Util::TypeConstraints
201 - We now make all the type constraint meta classes immutable
202 before creating the default types provided by Moose. This
203 should make loading Moose a little faster. (Dave Rolsky)
205 0.62 Wed November 26, 2008
206 * Moose::Meta::Role::Application::ToClass
207 Moose::Meta::Role::Application::ToRole
208 - fixed issues where excluding and aliasing the
209 same methods for a single role did not work
210 right (worked just fine with multiple
212 - added test for this (stevan)
214 * Moose::Meta::Role::Application::RoleSummation
215 - fixed the error message when trying to compose
216 a role with a role it excludes (Sartak)
219 - Catch another case where recursion caused the value
220 of $CALLER to be stamped on (t0m)
221 - added test for this (t0m)
224 - Remove the make_immutable keyword, which has been
225 deprecated since April. It breaks metaclasses that
226 use Moose without no Moose (Sartak)
228 * Moose::Meta::Attribute
229 - Removing an attribute from a class now also removes delegation
230 (handles) methods installed for that attribute (t0m)
231 - added test for this (t0m)
233 * Moose::Meta::Method::Constructor
234 - An attribute with a default that looked like a number (but was
235 really a string) would accidentally be treated as a number
236 when the constructor was made immutable (perigrin)
237 - added test for this (perigrin)
240 - create method for constructing a role
242 - added test for this (Sartak)
243 - anonymous roles! (Sartak)
244 - added test for this (Sartak)
247 - more consistent error messages (Sartak)
249 * Moose::Cookbook::Roles::Recipe1
250 - attempt to explain why a role that just requires
251 methods is useful (Sartak)
253 0.61 Fri November 7, 2008
254 * Moose::Meta::Attribute
255 - When passing a role to handles, it will be loaded if necessary
259 - Method objects returned by get_method (and other methods)
260 Could end up being returned without an associated_metaclass
261 attribute. Removing get_method_map, which is provided by
262 Class::MOP::Class, fixed this. The Moose version did nothing
263 different from its parent except introduce a bug. (Dave Rolsky)
264 - added tests for this (jdv79)
267 - Added a $VERSION to all .pm files which didn't have one. Fixes
268 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
270 * Moose::Cookbook::Basics::Recipe4
271 * Moose::Cookbook::Basics::Recipe6
272 - These files had spaces on the first line of the SYNOPSIS, as
273 opposed to a totally empty line. According to RT #40432, this
274 confuses POD parsers. (Dave Rolsky)
276 0.60 Fri October 24, 2008
278 - Passing "-traits" when loading Moose caused the Moose.pm
279 exports to be broken. Reported by t0m. (Dave Rolsky)
280 - Tests for this bug. (t0m)
283 - Change resolve_metaclass alias to use the new
284 load_first_existing_class function. This makes it a lot
285 simpler, and also around 5 times faster. (t0m)
286 - Add caching to resolve_metaclass_alias, which gives an order
287 of magnitude speedup to things which repeatedly call the
288 Moose::Meta::Attribute->does method, notably MooseX::Storage
291 * Moose::Util::TypeConstraint
292 - Put back the changes for parameterized constraints that
293 shouldn't have been removed in 0.59. We still cannot parse
294 them, but MooseX modules can create them in some other
295 way. See the 0.58 changes for more details. (jnapiorkowski)
296 - Changed the way subtypes are created so that the job is
297 delegated to a type constraint parent. This clears up some
298 hardcoded checking and should allow correct subtypes of
299 Moose::Meta::Type::Constraint. Don't rely on this new API too
300 much (create_child_type) because it may go away in the
301 future. (jnapiorkowski)
303 * Moose::Meta::TypeConstraint::Union
304 - Type constraint names are sorted as strings, not numbers.
307 * Moose::Meta::TypeConstraint::Parameterizable
308 - New parameterize method. This can be used as a factory method
309 to make a new type constraint with a given parameterized
310 type. (jnapiorkowski)
311 - added tests (jnapiorkowski)
313 0.59 Tue October 14, 2008
315 - Add abridged documentation for builder/default/initializer/
316 predicate, and link to more details sections in
317 Class::MOP::Attribute. (t0m)
319 * Moose::Util::TypeConstraints
320 - removed prototypes from all but the &-based stuff (mst)
322 * Moose::Util::TypeConstraints
323 - Creating a anonymous subtype with both a constraint and a
324 message failed with a very unhelpful error, but should just
325 work. Reported by t0m. (Dave Rolsky)
328 - Some tests that used Test::Warn if it was available failed
329 with older versions of Test::Warn. Reported by Fayland. (Dave
331 - Test firing behavior of triggers in relation to builder/default/
333 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
334 kinds of supported type. (t0m)
337 - In create(), do not pass "roles" option to the superclass
338 - added related test that creates an anon metaclass with
341 * Moose::Meta::TypeConstraint::Class
342 * Moose::Meta::TypeConstraint::Role
343 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
344 other types (as per change in 0.55_02). (t0m)
346 * Moose::Meta::TypeConstraint::Registry
347 - Fix warning when dealing with unknown type names (t0m)
349 * Moose::Util::TypeConstraints
350 - Reverted changes from 0.58 related to handle parameterized
351 types. This caused random failures on BSD and Win32 systems,
352 apparently related to the regex engine. This means that Moose
353 can no longer parse structured type constraints like
354 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
355 supported in a slightly different way via MooseX::Types some
356 time in the future. (Dave Rolsky)
358 0.58 Sat September 20, 2008
359 !! This release has an incompatible change regarding !!
360 !! how roles add methods to a class !!
362 * Roles and role application
363 ! Roles now add methods by calling add_method, not
364 alias_method. They make sure to always provide a method
365 object, which will be cloned internally. This means that it is
366 now possible to track the source of a method provided by a
367 role, and even follow its history through intermediate roles.
369 This means that methods added by a role now show up when
370 looking at a class's method list/map. (Dave Rolsky)
373 - From this release on, we'll try to maintain a list of
374 conflicting modules, and warn you if you have one
375 installed. For example, this release conflicts with ...
376 - MooseX::Singleton <= 0.11
377 - MooseX::Params::Validate <= 0.05
380 In general, we try to not break backwards compatibility for
381 most Moose users, but MooseX modules and other code which
382 extends Moose's metaclasses is often affected by very small
383 changes in the Moose internals.
385 * Moose::Meta::Method::Delegation
386 * Moose::Meta::Attribute
387 - Delegation methods now have their own method class. (Dave
390 * Moose::Meta::TypeConstraint::Parameterizable
391 - Added a new method 'parameterize' which is basically a factory
392 for the containing constraint. This makes it easier to create
393 new types of parameterized constraints. (jnapiorkowski)
395 * Moose::Meta::TypeConstraint::Union
396 - Changed the way Union types canonicalize their names to follow
397 the normalized TC naming rules, which means we strip all
398 whitespace. (jnapiorkowski)
400 * Moose::Util::TypeConstraints
401 - Parameter and Union args are now sorted, this makes Int|Str
402 the same constraint as Str|Int. (jnapiorkowski)
403 - Changes to the way Union types are parsed to more correctly
404 stringify their names. (jnapiorkowski)
405 - When creating a parameterized type, we now use the new
406 parameterize method. (jnapiorkowski)
407 - Incoming type constraint strings are now normalized to remove
408 all whitespace differences. (jnapiorkowski)
409 - Changed the way we parse type constraint strings so that we now
410 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
411 constraints. This lays the foundation for more flexible type
412 constraint implementations.
414 * Tests and docs for all the above. (jnapiorkowski)
418 - Moose::Exporter will no longer remove a subroutine that the
419 exporting package re-exports. Moose re-exports the
420 Carp::confess function, among others. The reasoning is that we
421 cannot know whether you have also explicitly imported those
422 functions for your own use, so we err on the safe side and
423 always keep them. (Dave Rolsky)
424 - added tests for this (rafl)
427 - Changes to how we fix metaclass compatibility that are much
428 too complicated to go into. The summary is that Moose is much
429 less likely to complain about metaclass incompatibility
430 now. In particular, if two metaclasses differ because
431 Moose::Util::MetaRole was used on the two corresponding
432 classes, then the difference in roles is reconciled for the
433 subclass's metaclass. (Dave Rolsky)
434 - Squashed an warning in _process_attribute (thepler)
437 - throw exceptions (sooner) for invalid attribute names (thepler)
438 - added tests for this (thepler)
440 * Moose::Util::MetaRole
441 - If you explicitly set a constructor or destructor class for a
442 metaclass object, and then applied roles to the metaclass,
443 that explicitly set class would be lost and replaced with the
447 * Moose::Meta::Attribute
448 * Moose::Meta::Method
451 * Moose::Error::Default
452 * Moose::Error::Croak
453 * Moose::Error::Confess
454 - All instances of confess() changed to use overridable
455 C<throw_error> method. This method ultimately calls a class
456 constructor, and you can change the class being called. In
457 addition, errors now pass more information than just a string.
458 The default C<error_class> behaves like C<Carp::confess>, so
459 the behavior is not visibly different for end users.
461 0.57 Wed September 3, 2008
463 - A new bit of doc intended to introduce folks familiar with
464 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
467 - Shows examples of two classes, each done first with and then
468 without Moose. This makes a nice parallel to
469 Moose::Intro. (Dave Rolsky)
471 * Moose::Util::TypeConstraints
472 - Fixed a bug in find_or_parse_type_constraint so that it
473 accepts a Moose::Meta::TypeConstraint object as the parent
474 type, not just a name (jnapiorkowski)
475 - added tests (jnapiorkowski)
478 - If Sub::Name was not present, unimporting failed to actually
479 remove some sugar subs, causing test failures (Dave Rolsky)
481 0.56 Mon September 1, 2008
482 For those not following the series of dev releases, there are
483 several major changes in this release of Moose.
484 ! Moose::init_meta should now be called as a method. See the
487 - Major performance improvements by nothingmuch.
489 - New modules for extension writers, Moose::Exporter and
490 Moose::Util::MetaRole by Dave Rolsky.
492 - Lots of doc improvements and additions, especially in the
497 * Removed all references to the experimental-but-no-longer-needed
498 Moose::Meta::Role::Application::ToMetaclassInstance.
500 * Require Class::MOP 0.65.
502 0.55_04 Sat August 30, 2008
503 * Moose::Util::MetaRole
504 * Moose::Cookbook::Extending::Recipe2
505 - This simplifies the application of roles to any meta class, as
506 well as the base object class. Reimplemented metaclass traits
507 using this module. (Dave Rolsky)
509 * Moose::Cookbook::Extending::Recipe1
510 - This a new recipe, an overview of various ways to write Moose
511 extensions (Dave Rolsky)
513 * Moose::Cookbook::Extending::Recipe3
514 * Moose::Cookbook::Extending::Recipe4
515 - These used to be Extending::Recipe1 and Extending::Recipe2,
518 0.55_03 Fri August 29, 2008
519 * No changes from 0.55_02 except increasing the Class::MOP
520 dependency to 0.64_07.
522 0.55_02 Fri August 29, 2008
523 * Makefile.PL and Moose.pm
524 - explicitly require Perl 5.8.0+ (Dave Rolsky)
526 * Moose::Util::TypeConstraints
527 - Fix warnings from find_type_constraint if the type is not
530 * Moose::Meta::TypeConstraint
531 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
532 return false if the type you specify cannot be found in the
533 type registry, rather than throwing an unhelpful and
534 coincidental exception. (t0m).
535 - added docs & test for this (t0m)
537 * Moose::Meta::TypeConstraint::Registry
538 - add_type_constraint now throws an exception if a parameter is
540 - added docs & test for this (t0m)
542 * Moose::Cookbook::FAQ
543 - Added a faq entry on the difference between "role" and "trait"
547 - Fixed a bug that caused role composition to not see a required
548 method when that method was provided by another role being
549 composed at the same time. (Dave Rolsky)
550 - test and bug finding (tokuhirom)
552 0.55_01 Wed August 20, 2008
554 !! Calling Moose::init_meta as a function is now !!
555 !! deprecated. Please see the Moose.pm docs for details. !!
557 * Moose::Meta::Method::Constructor
558 - Fix inlined constructor so that values produced by default
559 or builder methods are coerced as required. (t0m)
560 - added test for this (t0m)
562 * Moose::Meta::Attribute
563 - A lazy attribute with a default or builder did not attempt to
564 coerce the default value. The immutable code _did_
566 - added test for this (t0m)
569 - This is a new helper module for writing "Moose-alike"
570 modules. This should make the lives of MooseX module authors
571 much easier. (Dave Rolsky)
574 * Moose::Cookbook::Meta::Recipe5
575 - Implemented metaclass traits (and wrote a recipe for it):
577 use Moose -traits => 'Foo'
579 This should make writing small Moose extensions a little
582 * Moose::Cookbook::Basics::Recipe1
583 - Removed any examples of direct hashref access, and applied an
584 editorial axe to reduce verbosity. (Dave Rolsky)
586 * Moose::Cookbook::Basics::Recipe1
587 - Also applied an editorial axe here. (Dave Rolsky)
590 * Moose::Cookbook::Extending::Recipe1
591 * Moose::Cookbook::Extending::Recipe2
592 - Rewrote extending and embedding moose documentation and
593 recipes to use Moose::Exporter (Dave Rolsky)
597 - These two modules now warn when you load them from the main
598 package "main" package, because we will not export sugar to
599 main. Previously it just did nothing. (Dave Rolsky)
602 - Now provide an init_meta method just like Moose.pm, and you
603 can call this to provide an alternate role metaclass. (Dave
604 Rolsky and nothingmuch)
605 - get_method_map now respects the package cache flag (nothingmuch)
608 - Two new methods - add_method and wrap_method_body
612 - Optimizations including allowing constructors to accept hash
613 refs, making many more classes immutable, and making
614 constructors immutable. (nothingmuch)
616 0.55 Sun August 3, 2008
617 * Moose::Meta::Attribute
618 - breaking down the way 'handles' methods are
619 created so that the process can be more easily
620 overridden by subclasses (stevan)
622 * Moose::Meta::TypeConstraint
623 - fixing what is passed into a ->message with
624 the type constraints (RT #37569)
625 - added tests for this (Charles Alderman)
627 * Moose::Util::TypeConstraints
628 - fix coerce to accept anon types like subtype can (mst)
631 - reorganized the recipes into sections - Basics, Roles, Meta,
632 Extending - and wrote abstracts for each section (Dave Rolsky)
634 * Moose::Cookbook::Basics::Recipe10
635 - A new recipe that demonstrates operator overloading
636 in combination with Moose. (bluefeet)
638 * Moose::Cookbook::Meta::Recipe1
639 - an introduction to what meta is and why you'd want to make
640 your own metaclass extensions (Dave Rolsky)
642 * Moose::Cookbook::Meta::Recipe4
643 - a very simple metaclass example (Dave Rolsky)
645 * Moose::Cookbook::Extending::Recipe1
646 - how to write a Moose-alike module to use your own object base
649 * Moose::Cookbook::Extending::Recipe2
650 - how to write modules with an API just like C<Moose.pm> (Dave
654 - Tons of fixes, both syntactical and grammatical (Dave
655 Rolsky, Paul Fenwick)
657 0.54 Thurs. July 3, 2008
658 ... this is not my day today ...
660 * Moose::Meta::Attribute
661 - fixed legal_options_for_inheritance such that
662 clone_and_inherit options still works for
663 Class::MOP::Attribute objects and therefore
664 does not break MooseX::AttributeHelpers
667 0.53 Thurs. July 3, 2008
668 * Whoops, I guess I should run 'make manifest' before
669 actually releasing the module. No actual changes
670 in this release, except the fact that it includes
671 the changes that I didn't include in the last
674 0.52 Thurs. July 3, 2008
676 - added "FEATURE REQUESTS" section to the Moose docs
677 to properly direct people (stevan) (RT #34333)
678 - making 'extends' croak if it is passed a Role since
679 this is not ever something you want to do
680 (fixed by stevan, found by obra)
681 - added tests for this (stevan)
684 - adding support for DOES (as in UNIVERSAL::DOES)
686 - added test for this
688 * Moose::Meta::Attribute
689 - added legal_options_for_inheritance (wreis)
690 - added tests for this (wreis)
692 * Moose::Cookbook::Snacks::*
693 - removed some of the unfinished snacks that should
694 not have been released yet. Added some more examples
695 to the 'Keywords' snack. (stevan)
697 * Moose::Cookbook::Style
698 - added general Moose "style guide" of sorts to the
699 cookbook (nothingmuch) (RT #34335)
702 - added more BUILDARGS tests (stevan)
704 0.51 Thurs. Jun 26, 2008
706 - add unimport so "no Moose::Role" actually does
709 * Moose::Meta::Role::Application::ToRole
710 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
711 order to provide its own implementation, that method still got
712 added to the list of required methods for consumers of
713 RoleB. Now an aliased method is only added to the list of
714 required methods if the role doing the aliasing does not
715 provide its own implementation. See Recipe 11 for an example
716 of all this. (Dave Rolsky)
717 - added tests for this
719 * Moose::Meta::Method::Constructor
720 - when a single argument that wasn't a hashref was provided to
721 an immutabilized constructor, the error message was very
722 unhelpful, as opposed to the non-immutable error. Reported by
724 - added test for this (Dave Rolsky)
726 * Moose::Meta::Attribute
727 - added support for meta_attr->does("ShortAlias") (sartak)
728 - added tests for this (sartak)
729 - moved the bulk of the `handles` handling to the new
730 install_delegation method (Stevan)
733 - Added BUILDARGS, a new step in new()
735 * Moose::Meta::Role::Application::RoleSummation
736 - fix typos no one ever sees (sartak)
738 * Moose::Util::TypeConstraints
739 * Moose::Meta::TypeConstraint
740 * Moose::Meta::TypeCoercion
741 - Attempt to work around the ??{ } vs. threads issue
743 - Some null_constraint optimizations
745 0.50 Thurs. Jun 11, 2008
746 - Fixed a version number issue by bumping all modules
749 0.49 Thurs. Jun 11, 2008
750 !! This version now approx. 20-25% !!
751 !! faster with new Class::MOP 0.59 !!
753 * Moose::Meta::Attribute
754 - fixed how the is => (ro|rw) works with
755 custom defined reader, writer and accessor
757 - added docs for this (TODO).
758 - added tests for this (Thanks to Penfold)
759 - added the custom attribute alias for regular
760 Moose attributes which is "Moose"
761 - fix builder and default both being used
766 Moose::Meta::Attribute
768 Moose::Meta::Role::Composite
769 Moose::Util::TypeConstraints
770 - switched usage of reftype to ref because
774 - changing add_package_symbol to use the new
778 - fixed how DEMOLISHALL is called so that it
779 can be overrided in subclasses (thanks to Sartak)
780 - added test for this (thanks to Sartak)
782 * Moose::Util::TypeConstraints
783 - move the ClassName type check code to
784 Class::MOP::is_class_loaded (thanks to Sartak)
786 * Moose::Cookbook::Recipe11
787 - add tests for this (thanks to tokuhirom)
789 0.48 Thurs. May 29, 2008
790 (early morning release engineering)--
792 - fixing the version in Moose::Meta::Method::Destructor
793 which was causing the indexer to choke
795 0.47 Thurs. May 29, 2008
796 (late night release engineering)--
798 - fixing the version is META.yml, no functional
799 changes in this release
801 0.46 Wed. May 28, 2008
802 !! This version now approx. 20-25% !!
803 !! faster with new Class::MOP 0.57 !!
806 - some optimizations of the &initialize method
807 since it is called so often by &meta
811 - now use the get_all_package_symbols from the
812 updated Class::MOP, test suite is now 10 seconds
815 * Moose::Meta::Method::Destructor
816 - is_needed can now also be called as a class
817 method for immutablization to check if the
818 destructor object even needs to be created
821 * Moose::Meta::Method::Destructor
822 Moose::Meta::Method::Constructor
823 - added more descriptive error message to help
824 keep people from wasting time tracking an error
825 that is easily fixed by upgrading.
827 0.45 Saturday, May 24, 2008
829 - Because of work in Class::MOP 0.57, all
830 XS based functionality is now optional
831 and a Pure Perl version is supplied
832 - the CLASS_MOP_NO_XS environment variable
833 can now be used to force non-XS versions
835 - several of the packages have been tweaked
836 to take care of this, mostly we added
837 support for the package_name and name
838 variables in all the Method metaclasses
839 - before/around/after method modifiers now
840 support regexp matching of names
841 (thanks to Takatoshi Kitano)
842 - tests added for this
843 - NOTE: this only works for classes, it
844 is currently not supported in roles,
845 but, ... patches welcome
846 - All usage of Carp::confess have been replaced
847 by Carp::croak in the "keyword" functions since
848 the stack trace is usually not helpful
851 - All usage of Carp::confess have been replaced
852 by Carp::croak in the "keyword" functions since
853 the stack trace is usually not helpful
854 - The 'has' keyword for roles now accepts the
855 same array ref form that Moose.pm does
856 (has [qw/foo bar/] => (is => 'rw', ...))
857 - added test for this
859 * Moose::Meta::Attribute
860 - trigger on a ro-attribute is no longer an
861 error, as it's useful to trigger off of the
865 - added same 'add_package_symbol' fix as in
869 - does_role now handles non-Moose classes
871 - added tests for this
872 - added the 'add_method_modifier' function
873 (thanks to Takatoshi Kitano)
875 * Moose::Util::TypeConstraints
876 - subtypes of parameterizable types now are
877 themselves parameterizable types
879 * Moose::Meta::Method::Constructor
880 - fixed bug where trigger was not being
881 called by the inlined immutable
883 - added test for this (thanks to Caelum)
885 * Moose::Meta::Role::Application::ToInstance
886 - now uses the metaclass of the instance
887 (if possible) to create the anon-class
888 (thanks Jonathan Rockway)
890 * Moose::Cookbook::Recipe22
891 - added the meta-attribute trait recipe
895 - fixed hash-ordering test bug that was
896 causing occasional cpantester failures
897 - renamed the t/000_recipe/*.t tests to be
898 more descriptive (thanks to Sartak)
900 0.44 Sat. May 10, 2008
902 - made make_immutable warning cluck to
903 show where the error is (thanks mst)
906 - BUILDALL and DEMOLISHALL now call
907 ->body when looping through the
908 methods, to avoid the overloaded
910 - fixed issue where DEMOLISHALL was
911 eating the $@ values, and so not
912 working correctly, it still kind of
913 eats them, but so does vanilla perl
914 - added tests for this
916 * Moose::Cookbook::Recipe7
917 - added new recipe for immutable
918 functionality (thanks Dave Rolsky)
920 * Moose::Cookbook::Recipe9
921 - added new recipe for builder and
922 lazy_build (thanks Dave Rolsky)
924 * Moose::Cookbook::Recipe11
925 - added new recipe for method aliasing
926 and exclusion with Roles (thanks Dave Rolsky)
929 - fixed Win32 test failure (thanks spicyjack)
931 ~ removed Build.PL and Module::Build compat
932 since Module::Install has done that.
934 0.43 Wed. April, 30, 2008
936 drink more coffee before
937 doing release engineering
939 - whoops, forgot to do the smolder tests,
940 and we broke some of the custom meta-attr
941 modules. This fixes that.
943 0.42 Mon. April 28, 2008
944 - some bad tests slipped by, nothing else
945 changed in this release (cpantesters++)
947 - upped the Class::MOP dependency to 0.55
948 since we have tests which need the C3
951 0.41 Mon. April 28, 2008
952 ~~ numerous documentation updates ~~
954 - Changed all usage of die to Carp::croak for better
955 error reporting (initial patch by Tod Hagan)
958 - the make_immutable keyword is now deprecated, don't
959 use it in any new code and please fix your old code
960 as well. There will be 2 releases, and then it will
966 - refactored the way inner and super work to avoid
967 any method/@ISA cache penalty (nothingmuch)
970 - fixing &new_object to make sure trigger gets the
971 coerced value (spotted by Charles Alderman on the
973 - added test for this
975 * Moose::Meta::Method::Constructor
976 - immutable classes which had non-lazy attributes were calling
977 the default generating sub twice in the constructor. (bug
978 found by Jesse Luehrs, fixed by Dave Rolsky)
979 - added tests for this (Dave Rolsky)
980 - fix typo in initialize_body method (nothingmuch)
982 * Moose::Meta::Method::Destructor
983 - fix typo in initialize_body method (nothingmuch)
985 * Moose::Meta::Method::Overriden
986 Moose::Meta::Method::Augmented
987 - moved the logic for these into their own
988 classes (nothingmuch)
990 * Moose::Meta::Attribute
991 - inherited attributes may now be extended without
992 restriction on the type ('isa', 'does') (Sartak)
993 - added tests for this (Sartak)
994 - when an attribute property is malformed (such as lazy without
995 a default), give the name of the attribute in the error
997 - added the &applied_traits and &has_applied_traits methods
998 to allow introspection of traits
999 - added tests for this
1000 - moved 'trait' and 'metaclass' argument handling to here from
1002 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1003 '+foo' syntax) (nothingmuch)
1004 - added tests for this (t0m)
1007 - localize $@ inside DEMOLISHALL to avoid it
1008 eating $@ (found by Ernesto)
1009 - added test for this (thanks to Ernesto)
1011 * Moose::Util::TypeConstraints
1012 - &find_type_constraint now DWIMs when given an
1013 type constraint object or name (nothingmuch)
1014 - &find_or_create_type_constraint superseded with a number of more
1016 - find_or_create_{isa,does}_type_constraint
1017 - find_or_parse_type_constraint
1019 * Moose::Meta::TypeConstraint
1020 Moose::Meta::TypeConstraint::Class
1021 Moose::Meta::TypeConstraint::Role
1022 Moose::Meta::TypeConstraint::Enum
1023 Moose::Meta::TypeConstraint::Union
1024 Moose::Meta::TypeConstraint::Parameterized
1025 - added the &equals method for comparing two type
1026 constraints (nothingmuch)
1027 - added tests for this (nothingmuch)
1029 * Moose::Meta::TypeConstraint
1030 - add the &parents method, which is just an alias to &parent.
1031 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1033 * Moose::Meta::TypeConstraint::Class
1034 - added the class attribute for introspection purposes
1036 - added tests for this
1038 * Moose::Meta::TypeConstraint::Enum
1039 Moose::Meta::TypeConstraint::Role
1040 - broke these out into their own classes (nothingmuch)
1042 * Moose::Cookbook::Recipe*
1043 - fixed references to test file locations in the POD
1044 and updated up some text for new Moose features
1048 - Added &resolve_metaclass_alias, a helper function for finding an actual
1049 class for a short name (e.g. in the traits list)
1051 0.40 Fri. March 14, 2008
1052 - I hate Pod::Coverage
1054 0.39 Fri. March 14, 2008
1056 - documenting the use of '+name' with attributes
1057 that come from recently composed roles. It makes
1058 sense, people are using it, and so why not just
1059 officially support it.
1060 - fixing the 'extends' keyword so that it will not
1061 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1064 - added the perl -Moose=+Class::Name feature to allow
1065 monkeypatching of classes in one liners
1068 - fixing the 'apply_all_roles' keyword so that it will not
1069 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1071 * Moose::Meta::Class
1072 - added ->create method which now supports roles (thanks to jrockway)
1073 - added tests for this
1074 - added ->create_anon_class which now supports roles and caching of
1075 the results (thanks to jrockway)
1076 - added tests for this
1077 - made ->does_role a little more forgiving when it is
1078 checking a Class::MOP era metaclasses.
1080 * Moose::Meta::Role::Application::ToInstance
1081 - it is now possible to pass extra params to be used when
1082 a role is applied to an the instance (rebless_params)
1083 - added tests for this
1085 * Moose::Util::TypeConstraints
1086 - class_type now accepts an optional second argument for a
1087 custom message. POD anotated accordingly (groditi)
1088 - added tests for this
1089 - it is now possible to make anon-enums by passing 'enum' an
1090 ARRAY ref instead of the $name => @values. Everything else
1092 - added tests for this
1095 - making test for using '+name' on attributes consumed
1096 from a role, it works and makes sense too.
1098 * Moose::Meta::Attribute
1099 - fix handles so that it doesn't return nothing
1100 when the method cannot be found, not sure why
1101 it ever did this originally, this means we now
1102 have slightly better support for AUTOLOADed
1104 - added more delegation tests
1105 - adding ->does method to this so as to better
1106 support traits and their introspection.
1107 - added tests for this
1110 - localizing the Data::Dumper configurations so
1111 that it does not pollute others (RT #33509)
1112 - made ->does a little more forgiving when it is
1113 passed Class::MOP era metaclasses.
1115 0.38 Fri. Feb. 15, 2008
1116 * Moose::Meta::Attribute
1117 - fixed initializer to correctly do
1118 type checking and coercion in the
1120 - added tests for this
1123 - fixed some finicky tests (thanks to konobi)
1125 0.37 Thurs. Feb. 14, 2008
1127 - fixed some details in Moose::init_meta
1128 and its superclass handling (thanks thepler)
1129 - added tests for this (thanks thepler)
1130 - 'has' now dies if you don't pass in name
1132 - added the 'make_immutable' keyword as a shortcut
1135 * Moose::Meta::Class
1136 Moose::Meta::Method::Constructor
1137 Moose::Meta::Attribute
1138 - making (init_arg => undef) work here too
1139 (thanks to nothingmuch)
1141 * Moose::Meta::Attribute
1142 Moose::Meta::Method::Constructor
1143 Moose::Meta::Method::Accessor
1144 - make lazy attributes respect attr initializers (rjbs)
1145 - added tests for this
1147 * Moose::Util::TypeConstraints
1148 Moose::Util::TypeConstraints::OptimizedConstraints
1149 Moose::Meta::TypeConstraints
1150 Moose::Meta::Attribute
1151 Moose::Meta::Method::Constructor
1152 Moose::Meta::Method::Accessor
1153 - making type errors use the
1154 assigned message (thanks to Sartak)
1155 - added tests for this
1157 * Moose::Meta::Method::Destructor
1158 - making sure DESTROY gets inlined properly
1159 with successive DEMOLISH calls (thanks to manito)
1161 * Moose::Meta::Attribute
1162 Moose::Meta::Method::Accessor
1163 - fixed handling of undef with type constraints
1165 - added tests for this
1168 - added &get_all_init_args and &get_all_attribute_values
1169 (thanks to Sartak and nothingmuch)
1171 0.36 Sat. Jan. 26, 2008
1173 Moose::Meta::Attribute
1174 - role type tests now support when roles are
1175 applied to non-Moose classes (found by ash)
1176 - added tests for this (thanks to ash)
1177 - couple extra tests to boost code coverage
1179 * Moose::Meta::Method::Constructor
1180 - improved fix for handling Class::MOP attributes
1181 - added test for this
1183 * Moose::Meta::Class
1184 - handled the add_attribute($attribute_meta_object)
1186 - added test for this
1188 0.35 Tues. Jan. 22, 2008
1189 * Moose::Meta::Method::Constructor
1190 - fix to make sure even Class::MOP attributes
1191 are handled correctly (Thanks to Dave Rolsky)
1192 - added test for this (also Dave Rolsky)
1194 * Moose::Meta::Class
1195 - improved error message on _apply_all_roles,
1196 you should now use Moose::Util::apply_all_roles
1197 and you shouldnt have been using a _ prefixed
1198 method in the first place ;)
1200 0.34 Mon. Jan. 21, 2008
1201 ~~~ more misc. doc. fixes ~~~
1202 ~~ updated copyright dates ~~
1204 Moose is now a postmodern object system :)
1205 - (see the POD for details)
1207 * <<Role System Refactoring>>
1208 - this release contains a major reworking and
1209 cleanup of the role system
1210 - 100% backwards compat.
1211 - Role application now restructured into seperate
1212 classes based on type of applicants
1213 - Role summation (combining of more than one role)
1214 is much cleaner and anon-classes are no longer
1215 used in this process
1216 - new Composite role metaclass
1217 - runtime application of roles to instances
1218 is now more efficient and re-uses generated
1219 classes when applicable
1221 * <<New Role composition features>>
1222 - methods can now be excluded from a given role
1224 - methods can now be aliased to another name (and
1225 still retain the original as well)
1227 * Moose::Util::TypeConstraints::OptimizedConstraints
1228 - added this module (see above)
1230 * Moose::Meta::Class
1231 - fixed the &_process_attribute method to be called
1232 by &add_attribute, so that the API is now correct
1234 * Moose::Meta::Method::Accessor
1235 - fixed bug when passing a list of values to
1236 an accessor would get (incorrectly) ignored.
1237 Thanks to Sartak for finding this ;)
1238 - added tests for this (Sartak again)
1240 * Moose::Meta::Method::Accessor
1241 Moose::Meta::Method::Constructor
1242 Moose::Meta::Attribute
1243 Moose::Meta::TypeConstraint
1244 Moose::Meta::TypeCoercion
1245 - lots of cleanup of such things as:
1247 - type constraint handling
1248 - error handling/messages
1249 (thanks to nothingmuch)
1251 * Moose::Meta::TypeConstraint::Parameterizable
1252 - added this module to support the refactor
1253 in Moose::Meta::TypeConstraint::Parameterized
1255 * Moose::Meta::TypeConstraint::Parameterized
1256 - refactored how these types are handled so they
1257 are more generic and not confined to ArrayRef
1261 - shortened some file names for better VMS support (RT #32381)
1263 0.33 Fri. Dec. 14, 2007
1264 !! Moose now loads 2 x faster !!
1265 !! with new Class::MOP 0.49 !!
1267 ++ new oose.pm module to make command line
1268 Moose-ness easier (see POD docs for more)
1270 * Moose::Meta::Class
1272 - several tweaks to take advantage of the
1273 new method map caching in Class::MOP
1275 * Moose::Meta::TypeConstraint::Parameterized
1276 - allow subtypes of ArrayRef and HashRef to
1277 be used as a container (sartak)
1278 - added tests for this
1279 - basic support for coercion to ArrayRef and
1280 HashRef for containers (sartak)
1281 - added tests for this
1283 * Moose::Meta::TypeCoercion
1284 - coercions will now create subtypes as needed
1285 so you can now add coercions to parameterized
1286 types without having to explictly define them
1287 - added tests for this
1289 * Moose::Meta::Method::Accessor
1290 - allow subclasses to decide whether we need
1291 to copy the value into a new variable (sartak)
1293 0.32 Tues. Dec. 4, 2007
1294 * Moose::Util::TypeConstraints
1295 - fixing how subtype aliases of unions work
1296 they should inherit the parent's coercion
1297 - added tests for this
1298 - you can now define multiple coercions on
1299 a single type at different times instead of
1300 having to do it all in one place
1301 - added tests for this
1303 * Moose::Meta::TypeConstraint
1304 - there is now a default constraint of sub { 1 }
1305 instead of Moose::Util::TypeConstraints setting
1308 * Moose::Meta::TypeCoercion
1309 * Moose::Meta::TypeCoercion::Union
1310 - added the &has_coercion_for_type and
1311 &add_type_coercions methods to support the
1312 new features above (although you cannot add
1313 more type coercions for Union types)
1315 0.31 Mon. Nov. 26, 2007
1316 * Moose::Meta::Attribute
1317 - made the +attr syntax handle extending types with
1318 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1319 now works if the original foo is an ArrayRef.
1320 - added tests for this.
1321 - delegation now works even if the attribute does not
1322 have a reader method using the get_read_method_ref
1323 method from Class::MOP::Attribute.
1324 - added tests for this
1325 - added docs for this
1327 * Moose::Util::TypeConstraints
1328 - passing no "additional attribute info" to
1329 &find_or_create_type_constraint will no longer
1330 attempt to create an __ANON__ type for you,
1331 instead it will just return undef.
1332 - added docs for this
1334 0.30 Fri. Nov. 23, 2007
1335 * Moose::Meta::Method::Constructor
1336 -builder related bug in inlined constructor. (groditi)
1338 * Moose::Meta::Method::Accessor
1339 - genereate unnecessary calls to predicates and refactor
1340 code generation for runtime speed (groditi)
1342 * Moose::Util::TypeConstraints
1343 - fix ClassName constraint to introspect symbol table (mst)
1344 - added more tests for this (mst)
1345 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1346 with work correctly.
1347 - added tests for this
1350 - adding the link to Recipie 11 (written by Sartak)
1351 - adding test for SYNOPSIS code
1354 - New tests for builder bug. Upon instantiation, if an
1355 attribute had a builder, no value and was not lazy the
1356 builder default was not getting run, oops. (groditi)
1358 0.29 Tues. Nov. 13, 2007
1359 * Moose::Meta::Attribute
1360 - Fix error message on missing builder method (groditi)
1362 * Moose::Meta::Method::Accessor
1363 - Fix error message on missing builder method (groditi)
1366 - Add test to check for the correct error message when
1367 builder method is missing (groditi)
1369 0.28 Tues. Nov. 13, 2007
1370 - 0.27 packaged incorrectly (groditi)
1372 0.27 Tues. Nov. 13, 2007
1373 * Moose::Meta::Attribute
1374 - Added support for the new builder option (groditi)
1375 - Added support for lazy_build option (groditi)
1376 - Changed slot initialization for predicate changes (groditi)
1378 * Moose::Meta::Method::Accessor
1379 - Added support for lazy_build option (groditi)
1380 - Fix inline methods to work with corrected predicate
1383 * Moose::Meta::Method::Constructor
1384 - Added support for lazy_build option (groditi)
1387 - tests for builder and lazy_build (groditi)
1389 * fixing some misc. bits in the docs that
1390 got mentioned on CPAN Forum & perlmonks
1393 - fixed how required methods are handled
1394 when they encounter overriden or modified
1395 methods from a class (thanks to confound).
1396 - added tests for this
1398 * Moose::Util::TypeConstraint
1399 - fixed the type notation parser so that
1400 the | always creates a union and so is
1401 no longer a valid type char (thanks to
1402 konobi, mugwump and #moose for working
1404 - added more tests for this
1406 0.26 Thurs. Sept. 27, 2007
1409 * Parameterized Types
1410 We now support parameterized collection types, such as:
1411 ArrayRef[Int] # array or integers
1412 HashRef[Object] # a hash with object values
1413 They can also be nested:
1414 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1415 And work with the type unions as well:
1416 ArrayRef[Int | Str] # array of integers of strings
1418 * Better Framework Extendability
1419 Moose.pm is now "extendable" such that it is now much
1420 easier to extend the framework and add your own keywords
1421 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1422 section of the Moose.pm docs.
1425 In an effort to begin documenting some of the various
1426 details of Moose as well as some common idioms, we have
1427 created Moose::Cookbook::Snacks as a place to find
1428 small (easily digestable) nuggets of Moose code.
1431 ~ Several doc updates/cleanup thanks to castaway ~
1433 - converted build system to use Module::Install instead of
1434 Module::Build (thanks to jrockway)
1437 - added all the meta classes to the immutable list and
1438 set it to inline the accessors
1439 - fix import to allow Sub::Exporter like { into => }
1440 and { into_level => } (perigrin)
1441 - exposed and documented init_meta() to allow better
1442 embedding and extending of Moose (perigrin)
1445 - complete re-organization of the test suite
1446 - added some new tests as well
1447 - finally re-enabled the Moose::POOP test since
1448 the new version of DBM::Deep now works again
1451 * Moose::Meta::Class
1452 - fixed very odd and very nasty recursion bug with
1454 - added tests for this (eilara)
1456 * Moose::Meta::Attribute
1457 Moose::Meta::Method::Constructor
1458 Moose::Meta::Method::Accessor
1459 - fixed issue with overload::Overloaded getting called
1460 on non-blessed items. (RT #29269)
1461 - added tests for this
1463 * Moose::Meta::Method::Accessor
1464 - fixed issue with generated accessor code making
1465 assumptions about hash based classes (thanks to dexter)
1467 * Moose::Coookbook::Snacks
1468 - these are bits of documentation, not quite as big as
1469 Recipes but which have no clear place in the module docs.
1470 So they are Snacks! (horray for castaway++)
1472 * Moose::Cookbook::Recipe4
1473 - updated it to use the new ArrayRef[MyType] construct
1474 - updated the accompanying test as well
1476 +++ Major Refactor of the Type Constraint system +++
1477 +++ with new features added as well +++
1479 * Moose::Util::TypeConstraint
1480 - no longer uses package variable to keep track of
1481 the type constraints, now uses the an instance of
1482 Moose::Meta::TypeConstraint::Registry to do it
1483 - added more sophisticated type notation parsing
1485 - added tests for this
1487 * Moose::Meta::TypeConstraint
1488 - some minor adjustments to make subclassing easier
1489 - added the package_defined_in attribute so that we
1490 can track where the type constraints are created
1492 * Moose::Meta::TypeConstraint::Union
1493 - this is now been refactored to be a subclass of
1494 Moose::Meta::TypeConstraint
1496 * Moose::Meta::TypeCoercion::Union
1497 - this has been added to service the newly refactored
1498 Moose::Meta::TypeConstraint::Union and is itself
1499 a subclass of Moose::Meta::TypeCoercion
1501 * Moose::Meta::TypeConstraint::Parameterized
1502 - added this module (taken from MooseX::AttributeHelpers)
1503 to help construct nested collection types
1504 - added tests for this
1506 * Moose::Meta::TypeConstraint::Registry
1507 - added this class to keep track of type constraints
1509 0.25 Mon. Aug. 13, 2007
1511 - Documentation update to reference Moose::Util::TypeConstraints
1512 under 'isa' in 'has' for how to define a new type
1513 (thanks to shlomif).
1515 * Moose::Meta::Attribute
1516 - required attributes now will no longer accept undef
1517 from the constructor, even if there is a default and lazy
1518 - added tests for this
1519 - default subroutines must return a value which passes the
1521 - added tests for this
1523 * Moose::Meta::Attribute
1524 * Moose::Meta::Method::Constructor
1525 * Moose::Meta::Method::Accessor
1526 - type-constraint tests now handle overloaded objects correctly
1527 in the error message
1528 - added tests for this (thanks to EvanCarroll)
1530 * Moose::Meta::TypeConstraint::Union
1531 - added (has_)hand_optimized_constraint to this class so that
1532 it behaves as the regular Moose::Meta::TypeConstraint does.
1535 - large refactoring of this code
1536 - added several more tests
1537 - tests for subtle conflict resolition issues
1538 added, but not currently running
1541 * Moose::Cookbook::Recipe7
1542 - added new recipe for augment/inner functionality
1544 - added test for this
1547 - a formal definition of roles (still in progress)
1550 - utilities for easier working with Moose classes
1551 - added tests for these
1554 - This contains Moose specific test functions
1555 - added tests for these
1557 0.24 Tues. July 3, 2007
1558 ~ Some doc updates/cleanup ~
1560 * Moose::Meta::Attribute
1561 - added support for roles to be given as parameters
1562 to the 'handles' option.
1563 - added tests and docs for this
1564 - the has '+foo' attribute form now accepts changes to
1565 the lazy option, and the addition of a handles option
1566 (but not changing the handles option)
1567 - added tests and docs for this
1570 - required methods are now fetched using find_method_by_name
1571 so that required methods can come from superclasses
1572 - adjusted tests for this
1574 0.23 Mon. June 18, 2007
1575 * Moose::Meta::Method::Constructor
1576 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1577 * Moose::Meta::Class
1578 - Modify make_immutable to work with the new Class::MOP immutable
1579 mechanism + POD + very basic test (groditi)
1580 * Moose::Meta::Attribute
1581 - Fix handles to use goto() so that caller() comes out properly on
1582 the other side (perigrin)
1584 0.22 Thurs. May 31, 2007
1585 * Moose::Util::TypeConstraints
1586 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1587 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1588 prototypes for functions
1589 - added the ClassName type constraint, this checks for strings
1590 which will respond true to ->isa(UNIVERSAL).
1591 - added tests and docs for this
1592 - subtyping just in name now works correctly by making the
1593 default for where be { 1 }
1594 - added test for this
1596 * Moose::Meta::Method::Accessor
1597 - coerce and lazy now work together correctly, thanks to
1598 merlyn for finding this bug
1599 - tests added for this
1600 - fix reader presedence bug in Moose::Meta::Attribute + tests
1603 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1604 a HASH-ref and missed. This produces better error messages then
1605 having it die cause undef is not a HASH.
1606 - added tests for this
1608 0.21 Thursday, May 2nd, 2007
1610 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1611 - modified unimport to remove super and inner along with the rest
1612 - altered unimport tests to handle this
1615 - altered super export to populate SUPER_SLOT
1617 * Moose::Meta::Class
1618 - altered augment and override modifier application to use *_SLOT
1619 - modified tests for these to unimport one test class each to test
1622 - fixed issue where custom attribute metaclasses
1623 where not handled correctly in roles
1624 - added tests for this
1626 * Moose::Meta::Class
1627 - fixed issue where extending metaclasses with
1628 roles would blow up. Thanks to Aankhen`` for
1629 finding this insidious error, and it's solution.
1631 ~~ lots of spelling and grammer fixes in the docs,
1632 many many thanks to rlb3 and Aankhen for these :)
1634 0.20 Friday, April 6th, 2007
1635 >> I messed up the SKIP logic in one test
1636 so this release is just to fix that.
1639 - 'has' now also accepts an ARRAY ref
1640 to create multiple attrs (see docs)
1641 (thanks to konobi for this)
1642 - added tests and docs
1644 0.19 Thurs. April 5th, 2007
1645 ~~ More documentation updates ~~
1647 * Moose::Util::TypeConstraints
1648 - 'type' now supports messages as well
1649 thanks to phaylon for finding this
1650 - added tests for this
1651 - added &list_all_type_constraints and
1652 &list_all_builtin_type_constraints
1653 functions to facilitate introspection.
1655 * Moose::Meta::Attribute
1656 - fixed regexp 'handles' declarations
1657 to build the list of delegated methods
1658 correctly (and not override important
1659 things like &new) thanks to ashleyb
1661 - added tests and docs for this
1662 - added the 'documentation' attributes
1663 so that you can actually document your
1664 attributes and inspect them through the
1666 - added tests and docs for this
1668 * Moose::Meta::Class
1669 - when loading custom attribute metaclasses
1670 it will first look in for the class in the
1671 Moose::Meta::Attribute::Custom::$name, and
1672 then default to just loading $name.
1673 - added tests and docs for this
1675 * Moose::Meta::TypeConstraint
1676 - type constraints now stringify to their names.
1677 - added test for this
1680 - added tests to assure we work with Module::Refresh
1681 - added stricter test skip logic in the Moose POOP
1682 test, ask Rob Kinyon why.
1683 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1685 0.18 Sat. March 10, 2007
1686 ~~ Many, many documentation updates ~~
1689 - We now use Class::MOP::load_class to
1691 - added tests to show types and subtypes
1692 working with Declare::Constraints::Simple
1693 and Test::Deep as constraint engines.
1696 !! You must have Class::MOP 0.37_001 !!
1697 !! for this developer release to work !!
1699 This release was primarily adding the immutable
1700 feature to Moose. An immutable class is one which
1701 you promise not to alter. When you set the class
1702 as immutable it will perform various bits of
1703 memoization and inline certain part of the code
1704 (constructors, destructors and accessors). This
1705 minimizes (and in some cases totally eliminates)
1706 one of Moose's biggest performance hits. This
1707 feature is not on by default, and is 100% optional.
1708 It has several configurable bits as well, so you
1709 can pick and choose to your specific needs.
1711 The changes involved in this were fairly wide and
1712 highly specific, but 100% backwards compatible, so
1713 I am not going to enumerate them here. If you are
1714 truely interested in what was changed, please do
1717 0.17 Tues. Nov. 14, 2006
1718 * Moose::Meta::Method::Accessor
1719 - bugfix for read-only accessors which
1720 are have a type constraint and lazy.
1721 Thanks to chansen for finding it.
1723 0.16 Tues. Nov. 14, 2006
1725 There are some speed improvements in this release,
1726 but they are only the begining, so stay tuned.
1729 - BUILDALL and DEMOLISHALL no longer get
1730 called unless they actually need to be.
1731 This gave us a signifigant speed boost
1732 for the cases when there is no BUILD or
1733 DEMOLISH method present.
1735 * Moose::Util::TypeConstraints
1736 * Moose::Meta::TypeConstraint
1737 - added an 'optimize_as' option to the
1738 type constraint, which allows for a
1739 hand optimized version of the type
1740 constraint to be used when possible.
1741 - Any internally created type constraints
1742 now provide an optimized version as well.
1744 0.15 Sun. Nov. 5, 2006
1746 This version of Moose *must* have Class::MOP 0.36 in order
1747 to work correctly. A number of small internal tweaks have
1748 been made in order to be compatible with that release.
1750 * Moose::Util::TypeConstraints
1751 - added &unimport so that you can clean out
1752 your class namespace of these exported
1755 * Moose::Meta::Class
1756 - fixed minor issue which occasionally
1757 comes up during global destruction
1759 - moved Moose::Meta::Method::Overriden into
1763 - moved Moose::Meta::Role::Method into
1766 * Moose::Meta::Attribute
1767 - changed how we do type checks so that
1768 we reduce the overall cost, but still
1771 - moved accessor generation methods to
1772 Moose::Meta::Method::Accessor to
1773 conform to the API changes from
1776 * Moose::Meta::TypeConstraint
1777 - changed how constraints are compiled
1778 so that we do less recursion and more
1779 iteration. This makes the type check
1781 - moved Moose::Meta::TypeConstraint::Union
1784 * Moose::Meta::Method::Accessor
1785 - created this from methods formerly found in
1786 Moose::Meta::Attribute
1788 * Moose::Meta::Role::Method
1789 - moved this from Moose::Meta::Role
1791 * Moose::Meta::Method::Overriden
1792 - moved this from Moose::Meta::Class
1794 * Moose::Meta::TypeConstraint::Union
1795 - moved this from Moose::Meta::TypeConstraint
1797 0.14 Mon. Oct. 9, 2006
1799 * Moose::Meta::Attribute
1800 - fixed lazy attributes which were not getting
1801 checked with the type constraint (thanks ashley)
1802 - added tests for this
1803 - removed the over-enthusiastic DWIMery of the
1804 automatic ArrayRef and HashRef defaults, it
1805 broke predicates in an ugly way.
1806 - removed tests for this
1808 0.13 Sat. Sept. 30, 2006
1810 This version of Moose *must* have Class::MOP 0.35 in order
1811 to work correctly. A number of small internal tweaks have
1812 been made in order to be compatible with that release.
1815 - Removed the use of UNIVERSAL::require to be a better
1816 symbol table citizen and remove a dependency
1817 (thanks Adam Kennedy)
1819 **~~ removed experimental & undocumented feature ~~**
1820 - commented out the 'method' and 'self' keywords, see the
1821 comments for more info.
1824 - added a FAQ and WTF files to document frequently
1825 asked questions and common problems
1827 * Moose::Util::TypeConstraints
1828 - added GlobRef and FileHandle type constraint
1829 - added tests for this
1831 * Moose::Meta::Attribute
1832 - if your attribute 'isa' ArrayRef of HashRef, and you have
1833 not explicitly set a default, then make the default DWIM.
1834 This will also work for subtypes of ArrayRef and HashRef
1836 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1837 - new test added for this (thanks to ashley)
1840 - added basic support for runtime role composition
1841 but this is still *highly experimental*, so feedback
1842 is much appreciated :)
1843 - added tests for this
1845 * Moose::Meta::TypeConstraint
1846 - the type constraint now handles the coercion process
1847 through delegation, this is to support the coercion
1850 * Moose::Meta::TypeConstraint::Union
1851 - it is now possible for coercions to be performed
1853 - added tests for this (thanks to konobi)
1855 * Moose::Meta::TypeCoercion
1856 - properly capturing error when type constraint
1860 - Scalar::Util 1.18 is bad on Win32, so temporarily
1861 only require version 1.17 for Win32 and cygwin.
1862 (thanks Adam Kennedy)
1864 0.12 Sat. Sept. 1, 2006
1866 - Recipe5 (subtypes & coercion) has been written
1869 - fixed "bad meta" error message to be more descriptive
1870 - fixed &unimport to not remove the &inner and &super
1871 keywords because we need to localize them.
1872 - fixed number of spelling/grammer issues, thanks Theory :)
1874 **~~ experimental & undocumented feature ~~**
1875 - added the method and self keywords, they are basically
1876 just sugar, and they may not stay around.
1879 - added &dump method to easily Data::Dumper
1882 * Moose::Meta::TypeConstraint
1883 - added the &is_a_type_of method to check both the current
1884 and the subtype of a method (similar to &isa with classes)
1887 - this is now a subclass of Class::MOP::Module, and no longer
1888 creates the _role_meta ugliness of before.
1889 - fixed tests to reflect this change
1891 0.11 Wed. July 12, 2006
1893 - added an &unimport method to remove all the keywords
1894 that Moose will import, simply add 'no Moose' to the
1895 bottom of your class file.
1898 - fixed some test failures caused by a forgotten test
1901 0.10 Thurs. July 6, 2006
1903 - improved error message when loading modules so
1904 it is less confusing when you load a role.
1905 - added &calculate_all_roles method to
1906 Moose::Meta::Class and Moose::Meta::Role
1909 This module has been tested against Class::MOP 0.30
1910 but it does not yet utilize the optimizations
1911 it makes available. Stay tuned for that ;)
1913 0.09_03 Fri. June 23, 2006
1914 ++ DEVELOPER RELEASE ++
1916 - 'use strict' and 'use warnings' are no longer
1917 needed in Moose classes, Moose itself will
1918 turn them on for you.
1919 - added tests for this
1920 - moved code from exported subs to private methods
1921 in Moose::Meta::Class
1924 - as with Moose, strict and warnings are
1925 automatically turned on for you.
1926 - added tests for this
1929 - now handles an edge case for override errors
1930 - added tests for this
1931 - added some more edge case tests
1933 0.09_02 Tues. May 16, 2006
1934 ++ DEVELOPER RELEASE ++
1936 - added prototypes to the exported subs
1940 - added prototypes to the exported subs
1943 * Moose::Util::TypeConstraints
1944 - cleaned up prototypes for the subs
1947 0.09_01 Fri. May 12, 2006
1948 ++ DEVELOPER RELEASE ++
1949 - This release works in combination with
1950 Class::MOP 0.29_01, it is a developer
1951 release because it uses the a new
1952 instance sub-protocol and a fairly
1953 complete Role implementation. It has
1954 not yet been optimized, so it slower
1955 the the previous CPAN version. This
1956 release also lacks good updated docs,
1957 the official release will have updated docs.
1960 - refactored the keyword exports
1961 - 'with' now checks Role validaity and
1962 accepts more than one Role at a time
1963 - 'extends' makes metaclass adjustments as
1964 needed to ensure metaclass compatibility
1967 - refactored the keyword exports
1968 - 'with' now checks Role validaity and
1969 accepts more than one Role at a time
1971 * Moose::Util::TypeConstraints
1972 - added the 'enum' keyword for simple
1973 string enumerations which can be used as
1975 - see example of usage in t/202_example.t
1978 - more careful checking of params to new()
1981 - much work done on the role composition
1982 - many new tests for conflict detection
1983 and composition edge cases
1984 - not enough documentation, I suggest
1985 looking at the tests
1987 * Moose::Meta::Instance
1988 - added new Instance metaclass to support
1989 the new Class::MOP instance protocol
1991 * Moose::Meta::Class
1992 - some small changes to support the new
1994 - some small additions to support Roles
1996 * Moose::Meta::Attribute
1997 - some improvements to the accessor generation code
1999 - some small changes to support the new
2001 - (still somewhat) experimental delegation support
2002 with the 'handles' option
2003 - added several tests for this
2004 - no docs for this yet
2006 0.05 Thurs. April 27, 2006
2008 - keywords are now exported with Sub::Exporter
2009 thanks to chansen for this commit
2010 - has keyword now takes a 'metaclass' option
2011 to support custom attribute meta-classes
2012 on a per-attribute basis
2013 - added tests for this
2014 - the 'has' keyword not accepts inherited slot
2015 specifications (has '+foo'). This is still an
2016 experimental feature and probably not finished
2017 see t/038_attribute_inherited_slot_specs.t for
2018 more details, or ask about it on #moose
2019 - added tests for this
2022 - keywords are now exported with Sub::Exporter
2024 * Moose::Utils::TypeConstraints
2025 - reorganized the type constraint hierarchy, thanks
2026 to nothingmuch and chansen for his help and advice
2028 - added some tests for this
2029 - keywords are now exported with Sub::Exporter
2030 thanks to chansen for this commit
2032 * Moose::Meta::Class
2033 - due to changes in Class::MOP, we had to change
2034 construct_instance (for the better)
2036 * Moose::Meta::Attribute
2037 - due to changes in Class::MOP, we had to add the
2038 initialize_instance_slot method (it's a good thing)
2040 * Moose::Meta::TypeConstraint
2041 - added type constraint unions
2042 - added tests for this
2043 - added the is_subtype_of predicate method
2044 - added tests for this
2046 0.04 Sun. April 16th, 2006
2048 - Roles can now consume other roles
2049 - added tests for this
2050 - Roles can specify required methods now with
2051 the requires() keyword
2052 - added tests for this
2055 - ripped out much of it's guts ,.. much cleaner now
2056 - added required methods and correct handling of
2057 them in apply() for both classes and roles
2058 - added tests for this
2059 - no longer adds a does() method to consuming classes
2060 it relys on the one in Moose::Object
2061 - added roles attribute and some methods to support
2062 roles consuming roles
2064 * Moose::Meta::Attribute
2065 - added support for triggers on attributes
2066 - added tests for this
2067 - added support for does option on an attribute
2068 - added tests for this
2070 * Moose::Meta::Class
2071 - added support for attribute triggers in the
2073 - added tests for this
2076 - Moose no longer creates a subtype for your class
2077 if a subtype of the same name already exists, this
2078 should DWIM in 99.9999% of all cases
2080 * Moose::Util::TypeConstraints
2081 - fixed bug where incorrect subtype conflicts were
2083 - added test for this
2086 - this class can now be extended with 'use base' if
2087 you need it, it properly loads the metaclass class now
2088 - added test for this
2090 0.03_02 Wed. April 12, 2006
2092 - you must now explictly use Moose::Util::TypeConstraints
2093 it no longer gets exported for you automatically
2096 - new() now accepts hash-refs as well as key/value lists
2097 - added does() method to check for Roles
2098 - added tests for this
2100 * Moose::Meta::Class
2101 - added roles attribute along with the add_role() and
2103 - added tests for this
2106 - now adds a does() method to consuming classes
2107 which tests the class's hierarchy for roles
2108 - added tests for this
2110 0.03_01 Mon. April 10, 2006
2112 - added new Role recipe (no content yet, only code)
2115 - added 'with' keyword for Role support
2116 - added test and docs for this
2117 - fixed subtype quoting bug
2118 - added test for this
2122 - added test and docs
2124 * Moose::Util::TypeConstraints
2125 - added the message keyword to add custom
2126 error messages to type constraints
2129 - the meta role to support Moose::Role
2130 - added tests and docs
2132 * Moose::Meta::Class
2133 - moved a number of things from Moose.pm
2134 to here, they should have been here
2137 * Moose::Meta::Attribute
2138 - moved the attribute option macros here
2139 instead of putting them in Moose.pm
2141 * Moose::Meta::TypeConstraint
2142 - added the message attributes and the
2144 - added tests and docs for this
2146 0.03 Thurs. March 30, 2006
2148 - added the Moose::Cookbook with 5 recipes,
2149 describing all the stuff Moose can do.
2152 - fixed an issue with &extends super class loading
2153 it now captures errors and deals with inline
2154 packages correctly (bug found by mst, solution
2156 - added super/override & inner/augment features
2157 - added tests and docs for these
2160 - BUILDALL now takes a reference of the %params
2161 that are passed to &new, and passes that to
2164 * Moose::Util::TypeConstraints
2165 - Type constraints now survive runtime reloading
2166 - added test for this
2168 * Moose::Meta::Class
2169 - fixed the way attribute defaults are handled
2170 during instance construction (bug found by chansen)
2172 * Moose::Meta::Attribute
2173 - read-only attributes now actually enforce their
2174 read-only-ness (this corrected in Class::MOP as
2177 0.02 Tues. March 21, 2006
2179 - many more tests, fixing some bugs and
2181 - &extends now loads the base module with
2183 - added UNIVERSAL::require to the
2186 - each new Moose class will also create
2187 and register a subtype of Object which
2188 correspond to the new Moose class.
2189 - the 'isa' option in &has now only
2190 accepts strings, and will DWIM in
2193 * Moose::Util::TypeConstraints
2194 - added type coercion features
2195 - added tests for this
2196 - added support for this in attributes
2197 and instance construction
2199 - type construction no longer creates a
2200 function, it registers the type instead.
2201 - added several functions to get the
2205 - BUILDALL and DEMOLISHALL were broken
2206 because of a mis-named hash key, Whoops :)
2208 * Moose::Meta::Attribute
2209 - adding support for coercion in the
2210 autogenerated accessors
2212 * Moose::Meta::Class
2213 - adding support for coercion in the
2214 instance construction
2216 * Moose::Meta::TypeConstraint
2217 * Moose::Meta::TypeCoercion
2218 - type constraints and coercions are now
2219 full fledges meta-objects
2221 0.01 Wed. March 15, 2006
2222 - Moooooooooooooooooose!!!