1 Revision history for Perl extension Moose
3 0.68 Wed, February 4, 2009
4 * Moose::Manual::Attributes
5 - The NAME section in the POD used "Attribute" so search.cpan
6 didn't resolve links from other documents properly.
8 * Moose::Meta::Method::Overriden
9 - Now properly spelled as Overridden. Thanks to daxim for
12 0.67 Tue, February 3, 2009
14 - Lots of little typo fixes and a few clarifications. Several
15 pages didn't have proper titles, and so weren't actually
16 visible on search.cpan.org. Thanks to hanekomu for a variety
17 of fixes and formatting improvements.
19 0.66 Tue, February 3, 2009
21 - This is a brand new, extensive manual for Moose. This aims to
22 provide a complete introduction to all of Moose's
23 features. This work was funded as part of the Moose docs grant
24 from TPF. (Dave Rolsky)
26 * Moose::Meta::Attribute
27 - Added a delegation_metaclass method to replace a hard-coded
28 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
30 * Moose::Util::TypeConstraints
31 - If you created a subtype and passed a parent that Moose didn't
32 know about, it simply ignored the parent. Now it automatically
33 creates the parent as a class type. This may not be what you
34 want, but is less broken than before. (Dave Rolsky)
36 * Moose::Util::TypeConstraints
37 - This module tried throw errors by calling Moose->throw_error,
38 but it did not ensure that Moose was loaded first. This could
39 cause very unhelpful errors when it tried to throw an error
40 before Moose was loaded. (Dave Rolsky)
42 * Moose::Util::TypeConstraints
43 - You could declare a name with subtype such as "Foo!Bar" that
44 would be allowed, but if you used it in a parameterized type
45 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
46 vetting on names created via the sugar functions, so that they
47 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
49 0.65 Thu, January 22, 2008
50 * Moose and Moose::Meta::Method::Overridden
51 - If an overridden method called super(), and then the
52 superclass's method (not overridden) _also_ called super(),
53 Moose went into an endless recursion loop. Test provided by
54 Chris Prather. (Dave Rolsky)
56 * Moose::Meta::TypeConstraint
57 - All methods are now documented. (gphat)
59 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
60 - Fixed some bogus failures that occurred because we tried to
61 validate filesystem paths in a very ad-hoc and
62 not-quite-correct way. (Dave Rolsky)
64 * Moose::Util::TypeConstraints
65 - Added maybe_type to exports. See docs for details. (rjbs)
68 - Added Moose::Util::TypeConstraints to the SEE ALSO
72 - Methods created via an attribute can now fulfill a "requires"
73 declaration for a role. (nothingmuch)
75 * Moose::Meta::Method::*
76 - Stack traces from inlined code will now report its line and
77 file as being in your class, as opposed to in Moose
80 0.64 Wed, December 31, 2008
81 * Moose::Meta::Method::Accessor
82 - Always inline predicate and clearer methods (Sartak)
84 * Moose::Meta::Attribute
85 - Support for parameterized traits (Sartak)
86 - verify_against_type_constraint method to avoid duplication
87 and enhance extensibility (Sartak)
90 - Tests (but no support yet) for parameterized traits (Sartak)
93 - Require Class::MOP 0.75+, which has the side effect of making
94 sure we work on Win32. (Dave Rolsky)
96 0.63 Mon, December 8, 2008
98 - Some small grammar tweaks and bug fixes in non-Moose example
101 0.62_02 Fri, December 5, 2008
102 * Moose::Meta::Role::Application::ToClass
103 - When a class does not provide all of a role's required
104 methods, the error thrown now mentions all of the missing
105 methods, as opposed to just the first one found. Requested by
106 Curtis Poe (RT #41119). (Dave Rolsky)
108 * Moose::Meta::Method::Constructor
109 - Moose will no longer inline a constructor for your class
110 unless it inherits its constructor from Moose::Object, and
111 will warn when it doesn't inline. If you want to force
112 inlining anyway, pass "replace_constructor => 1" to
113 make_immutable. Addresses RT #40968, reported by Jon
114 Swartz. (Dave Rolsky)
115 - The quoting of default values could be broken if the default
116 contained a single quote ('). Now we use quotemeta to escape
117 anything potentially dangerous in the defaults. (Dave Rolsky)
119 0.62_01 Wed, December 3, 2008
121 - use the method->execute API for BUILDALL
122 and DEMOLISHALL (Sartak)
124 * Moose::Util::TypeConstraints
125 - We now make all the type constraint meta classes immutable
126 before creating the default types provided by Moose. This
127 should make loading Moose a little faster. (Dave Rolsky)
129 0.62 Wed November 26, 2008
130 * Moose::Meta::Role::Application::ToClass
131 Moose::Meta::Role::Application::ToRole
132 - fixed issues where excluding and aliasing the
133 same methods for a single role did not work
134 right (worked just fine with multiple
136 - added test for this (stevan)
138 * Moose::Meta::Role::Application::RoleSummation
139 - fixed the error message when trying to compose
140 a role with a role it excludes (Sartak)
143 - Catch another case where recursion caused the value
144 of $CALLER to be stamped on (t0m)
145 - added test for this (t0m)
148 - Remove the make_immutable keyword, which has been
149 deprecated since April. It breaks metaclasses that
150 use Moose without no Moose (Sartak)
152 * Moose::Meta::Attribute
153 - Removing an attribute from a class now also removes delegation
154 (handles) methods installed for that attribute (t0m)
155 - added test for this (t0m)
157 * Moose::Meta::Method::Constructor
158 - An attribute with a default that looked like a number (but was
159 really a string) would accidentally be treated as a number
160 when the constructor was made immutable (perigrin)
161 - added test for this (perigrin)
164 - create method for constructing a role
166 - added test for this (Sartak)
167 - anonymous roles! (Sartak)
168 - added test for this (Sartak)
171 - more consistent error messages (Sartak)
173 * Moose::Cookbook::Roles::Recipe1
174 - attempt to explain why a role that just requires
175 methods is useful (Sartak)
177 0.61 Fri November 7, 2008
178 * Moose::Meta::Attribute
179 - When passing a role to handles, it will be loaded if necessary
183 - Method objects returned by get_method (and other methods)
184 Could end up being returned without an associated_metaclass
185 attribute. Removing get_method_map, which is provided by
186 Class::MOP::Class, fixed this. The Moose version did nothing
187 different from its parent except introduce a bug. (Dave Rolsky)
188 - added tests for this (jdv79)
191 - Added a $VERSION to all .pm files which didn't have one. Fixes
192 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
194 * Moose::Cookbook::Basics::Recipe4
195 * Moose::Cookbook::Basics::Recipe6
196 - These files had spaces on the first line of the SYNOPSIS, as
197 opposed to a totally empty line. According to RT #40432, this
198 confuses POD parsers. (Dave Rolsky)
200 0.60 Fri October 24, 2008
202 - Passing "-traits" when loading Moose caused the Moose.pm
203 exports to be broken. Reported by t0m. (Dave Rolsky)
204 - Tests for this bug. (t0m)
207 - Change resolve_metaclass alias to use the new
208 load_first_existing_class function. This makes it a lot
209 simpler, and also around 5 times faster. (t0m)
210 - Add caching to resolve_metaclass_alias, which gives an order
211 of magnitude speedup to things which repeatedly call the
212 Moose::Meta::Attribute->does method, notably MooseX::Storage
215 * Moose::Util::TypeConstraint
216 - Put back the changes for parameterized constraints that
217 shouldn't have been removed in 0.59. We still cannot parse
218 them, but MooseX modules can create them in some other
219 way. See the 0.58 changes for more details. (jnapiorkowski)
220 - Changed the way subtypes are created so that the job is
221 delegated to a type constraint parent. This clears up some
222 hardcoded checking and should allow correct subtypes of
223 Moose::Meta::Type::Constraint. Don't rely on this new API too
224 much (create_child_type) because it may go away in the
225 future. (jnapiorkowski)
227 * Moose::Meta::TypeConstraint::Union
228 - Type constraint names are sorted as strings, not numbers.
231 * Moose::Meta::TypeConstraint::Parameterizable
232 - New parameterize method. This can be used as a factory method
233 to make a new type constraint with a given parameterized
234 type. (jnapiorkowski)
235 - added tests (jnapiorkowski)
237 0.59 Tue October 14, 2008
239 - Add abridged documentation for builder/default/initializer/
240 predicate, and link to more details sections in
241 Class::MOP::Attribute. (t0m)
243 * Moose::Util::TypeConstraints
244 - removed prototypes from all but the &-based stuff (mst)
246 * Moose::Util::TypeConstraints
247 - Creating a anonymous subtype with both a constraint and a
248 message failed with a very unhelpful error, but should just
249 work. Reported by t0m. (Dave Rolsky)
252 - Some tests that used Test::Warn if it was available failed
253 with older versions of Test::Warn. Reported by Fayland. (Dave
255 - Test firing behavior of triggers in relation to builder/default/
257 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
258 kinds of supported type. (t0m)
261 - In create(), do not pass "roles" option to the superclass
262 - added related test that creates an anon metaclass with
265 * Moose::Meta::TypeConstraint::Class
266 * Moose::Meta::TypeConstraint::Role
267 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
268 other types (as per change in 0.55_02). (t0m)
270 * Moose::Meta::TypeConstraint::Registry
271 - Fix warning when dealing with unknown type names (t0m)
273 * Moose::Util::TypeConstraints
274 - Reverted changes from 0.58 related to handle parameterized
275 types. This caused random failures on BSD and Win32 systems,
276 apparently related to the regex engine. This means that Moose
277 can no longer parse structured type constraints like
278 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
279 supported in a slightly different way via MooseX::Types some
280 time in the future. (Dave Rolsky)
282 0.58 Sat September 20, 2008
283 !! This release has an incompatible change regarding !!
284 !! how roles add methods to a class !!
286 * Roles and role application
287 ! Roles now add methods by calling add_method, not
288 alias_method. They make sure to always provide a method
289 object, which will be cloned internally. This means that it is
290 now possible to track the source of a method provided by a
291 role, and even follow its history through intermediate roles.
293 This means that methods added by a role now show up when
294 looking at a class's method list/map. (Dave Rolsky)
297 - From this release on, we'll try to maintain a list of
298 conflicting modules, and warn you if you have one
299 installed. For example, this release conflicts with ...
300 - MooseX::Singleton <= 0.11
301 - MooseX::Params::Validate <= 0.05
304 In general, we try to not break backwards compatibility for
305 most Moose users, but MooseX modules and other code which
306 extends Moose's metaclasses is often affected by very small
307 changes in the Moose internals.
309 * Moose::Meta::Method::Delegation
310 * Moose::Meta::Attribute
311 - Delegation methods now have their own method class. (Dave
314 * Moose::Meta::TypeConstraint::Parameterizable
315 - Added a new method 'parameterize' which is basically a factory
316 for the containing constraint. This makes it easier to create
317 new types of parameterized constraints. (jnapiorkowski)
319 * Moose::Meta::TypeConstraint::Union
320 - Changed the way Union types canonicalize their names to follow
321 the normalized TC naming rules, which means we strip all
322 whitespace. (jnapiorkowski)
324 * Moose::Util::TypeConstraints
325 - Parameter and Union args are now sorted, this makes Int|Str
326 the same constraint as Str|Int. (jnapiorkowski)
327 - Changes to the way Union types are parsed to more correctly
328 stringify their names. (jnapiorkowski)
329 - When creating a parameterized type, we now use the new
330 parameterize method. (jnapiorkowski)
331 - Incoming type constraint strings are now normalized to remove
332 all whitespace differences. (jnapiorkowski)
333 - Changed the way we parse type constraint strings so that we now
334 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
335 constraints. This lays the foundation for more flexible type
336 constraint implementations.
338 * Tests and docs for all the above. (jnapiorkowski)
342 - Moose::Exporter will no longer remove a subroutine that the
343 exporting package re-exports. Moose re-exports the
344 Carp::confess function, among others. The reasoning is that we
345 cannot know whether you have also explicitly imported those
346 functions for your own use, so we err on the safe side and
347 always keep them. (Dave Rolsky)
348 - added tests for this (rafl)
351 - Changes to how we fix metaclass compatibility that are much
352 too complicated to go into. The summary is that Moose is much
353 less likely to complain about metaclass incompatibility
354 now. In particular, if two metaclasses differ because
355 Moose::Util::MetaRole was used on the two corresponding
356 classes, then the difference in roles is reconciled for the
357 subclass's metaclass. (Dave Rolsky)
358 - Squashed an warning in _process_attribute (thepler)
361 - throw exceptions (sooner) for invalid attribute names (thepler)
362 - added tests for this (thepler)
364 * Moose::Util::MetaRole
365 - If you explicitly set a constructor or destructor class for a
366 metaclass object, and then applied roles to the metaclass,
367 that explicitly set class would be lost and replaced with the
371 * Moose::Meta::Attribute
372 * Moose::Meta::Method
375 * Moose::Error::Default
376 * Moose::Error::Croak
377 * Moose::Error::Confess
378 - All instances of confess() changed to use overridable
379 C<throw_error> method. This method ultimately calls a class
380 constructor, and you can change the class being called. In
381 addition, errors now pass more information than just a string.
382 The default C<error_class> behaves like C<Carp::confess>, so
383 the behavior is not visibly different for end users.
385 0.57 Wed September 3, 2008
387 - A new bit of doc intended to introduce folks familiar with
388 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
391 - Shows examples of two classes, each done first with and then
392 without Moose. This makes a nice parallel to
393 Moose::Intro. (Dave Rolsky)
395 * Moose::Util::TypeConstraints
396 - Fixed a bug in find_or_parse_type_constraint so that it
397 accepts a Moose::Meta::TypeConstraint object as the parent
398 type, not just a name (jnapiorkowski)
399 - added tests (jnapiorkowski)
402 - If Sub::Name was not present, unimporting failed to actually
403 remove some sugar subs, causing test failures (Dave Rolsky)
405 0.56 Mon September 1, 2008
406 For those not following the series of dev releases, there are
407 several major changes in this release of Moose.
408 ! Moose::init_meta should now be called as a method. See the
411 - Major performance improvements by nothingmuch.
413 - New modules for extension writers, Moose::Exporter and
414 Moose::Util::MetaRole by Dave Rolsky.
416 - Lots of doc improvements and additions, especially in the
421 * Removed all references to the experimental-but-no-longer-needed
422 Moose::Meta::Role::Application::ToMetaclassInstance.
424 * Require Class::MOP 0.65.
426 0.55_04 Sat August 30, 2008
427 * Moose::Util::MetaRole
428 * Moose::Cookbook::Extending::Recipe2
429 - This simplifies the application of roles to any meta class, as
430 well as the base object class. Reimplemented metaclass traits
431 using this module. (Dave Rolsky)
433 * Moose::Cookbook::Extending::Recipe1
434 - This a new recipe, an overview of various ways to write Moose
435 extensions (Dave Rolsky)
437 * Moose::Cookbook::Extending::Recipe3
438 * Moose::Cookbook::Extending::Recipe4
439 - These used to be Extending::Recipe1 and Extending::Recipe2,
442 0.55_03 Fri August 29, 2008
443 * No changes from 0.55_02 except increasing the Class::MOP
444 dependency to 0.64_07.
446 0.55_02 Fri August 29, 2008
447 * Makefile.PL and Moose.pm
448 - explicitly require Perl 5.8.0+ (Dave Rolsky)
450 * Moose::Util::TypeConstraints
451 - Fix warnings from find_type_constraint if the type is not
454 * Moose::Meta::TypeConstraint
455 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
456 return false if the type you specify cannot be found in the
457 type registry, rather than throwing an unhelpful and
458 coincidental exception. (t0m).
459 - added docs & test for this (t0m)
461 * Moose::Meta::TypeConstraint::Registry
462 - add_type_constraint now throws an exception if a parameter is
464 - added docs & test for this (t0m)
466 * Moose::Cookbook::FAQ
467 - Added a faq entry on the difference between "role" and "trait"
471 - Fixed a bug that caused role composition to not see a required
472 method when that method was provided by another role being
473 composed at the same time. (Dave Rolsky)
474 - test and bug finding (tokuhirom)
476 0.55_01 Wed August 20, 2008
478 !! Calling Moose::init_meta as a function is now !!
479 !! deprecated. Please see the Moose.pm docs for details. !!
481 * Moose::Meta::Method::Constructor
482 - Fix inlined constructor so that values produced by default
483 or builder methods are coerced as required. (t0m)
484 - added test for this (t0m)
486 * Moose::Meta::Attribute
487 - A lazy attribute with a default or builder did not attempt to
488 coerce the default value. The immutable code _did_
490 - added test for this (t0m)
493 - This is a new helper module for writing "Moose-alike"
494 modules. This should make the lives of MooseX module authors
495 much easier. (Dave Rolsky)
498 * Moose::Cookbook::Meta::Recipe5
499 - Implemented metaclass traits (and wrote a recipe for it):
501 use Moose -traits => 'Foo'
503 This should make writing small Moose extensions a little
506 * Moose::Cookbook::Basics::Recipe1
507 - Removed any examples of direct hashref access, and applied an
508 editorial axe to reduce verbosity. (Dave Rolsky)
510 * Moose::Cookbook::Basics::Recipe1
511 - Also applied an editorial axe here. (Dave Rolsky)
514 * Moose::Cookbook::Extending::Recipe1
515 * Moose::Cookbook::Extending::Recipe2
516 - Rewrote extending and embedding moose documentation and
517 recipes to use Moose::Exporter (Dave Rolsky)
521 - These two modules now warn when you load them from the main
522 package "main" package, because we will not export sugar to
523 main. Previously it just did nothing. (Dave Rolsky)
526 - Now provide an init_meta method just like Moose.pm, and you
527 can call this to provide an alternate role metaclass. (Dave
528 Rolsky and nothingmuch)
529 - get_method_map now respects the package cache flag (nothingmuch)
532 - Two new methods - add_method and wrap_method_body
536 - Optimizations including allowing constructors to accept hash
537 refs, making many more classes immutable, and making
538 constructors immutable. (nothingmuch)
540 0.55 Sun August 3, 2008
541 * Moose::Meta::Attribute
542 - breaking down the way 'handles' methods are
543 created so that the process can be more easily
544 overridden by subclasses (stevan)
546 * Moose::Meta::TypeConstraint
547 - fixing what is passed into a ->message with
548 the type constraints (RT #37569)
549 - added tests for this (Charles Alderman)
551 * Moose::Util::TypeConstraints
552 - fix coerce to accept anon types like subtype can (mst)
555 - reorganized the recipes into sections - Basics, Roles, Meta,
556 Extending - and wrote abstracts for each section (Dave Rolsky)
558 * Moose::Cookbook::Basics::Recipe10
559 - A new recipe that demonstrates operator overloading
560 in combination with Moose. (bluefeet)
562 * Moose::Cookbook::Meta::Recipe1
563 - an introduction to what meta is and why you'd want to make
564 your own metaclass extensions (Dave Rolsky)
566 * Moose::Cookbook::Meta::Recipe4
567 - a very simple metaclass example (Dave Rolsky)
569 * Moose::Cookbook::Extending::Recipe1
570 - how to write a Moose-alike module to use your own object base
573 * Moose::Cookbook::Extending::Recipe2
574 - how to write modules with an API just like C<Moose.pm> (Dave
578 - Tons of fixes, both syntactical and grammatical (Dave
579 Rolsky, Paul Fenwick)
581 0.54 Thurs. July 3, 2008
582 ... this is not my day today ...
584 * Moose::Meta::Attribute
585 - fixed legal_options_for_inheritance such that
586 clone_and_inherit options still works for
587 Class::MOP::Attribute objects and therefore
588 does not break MooseX::AttributeHelpers
591 0.53 Thurs. July 3, 2008
592 * Whoops, I guess I should run 'make manifest' before
593 actually releasing the module. No actual changes
594 in this release, except the fact that it includes
595 the changes that I didn't include in the last
598 0.52 Thurs. July 3, 2008
600 - added "FEATURE REQUESTS" section to the Moose docs
601 to properly direct people (stevan) (RT #34333)
602 - making 'extends' croak if it is passed a Role since
603 this is not ever something you want to do
604 (fixed by stevan, found by obra)
605 - added tests for this (stevan)
608 - adding support for DOES (as in UNIVERSAL::DOES)
610 - added test for this
612 * Moose::Meta::Attribute
613 - added legal_options_for_inheritance (wreis)
614 - added tests for this (wreis)
616 * Moose::Cookbook::Snacks::*
617 - removed some of the unfinished snacks that should
618 not have been released yet. Added some more examples
619 to the 'Keywords' snack. (stevan)
621 * Moose::Cookbook::Style
622 - added general Moose "style guide" of sorts to the
623 cookbook (nothingmuch) (RT #34335)
626 - added more BUILDARGS tests (stevan)
628 0.51 Thurs. Jun 26, 2008
630 - add unimport so "no Moose::Role" actually does
633 * Moose::Meta::Role::Application::ToRole
634 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
635 order to provide its own implementation, that method still got
636 added to the list of required methods for consumers of
637 RoleB. Now an aliased method is only added to the list of
638 required methods if the role doing the aliasing does not
639 provide its own implementation. See Recipe 11 for an example
640 of all this. (Dave Rolsky)
641 - added tests for this
643 * Moose::Meta::Method::Constructor
644 - when a single argument that wasn't a hashref was provided to
645 an immutabilized constructor, the error message was very
646 unhelpful, as opposed to the non-immutable error. Reported by
648 - added test for this (Dave Rolsky)
650 * Moose::Meta::Attribute
651 - added support for meta_attr->does("ShortAlias") (sartak)
652 - added tests for this (sartak)
653 - moved the bulk of the `handles` handling to the new
654 install_delegation method (Stevan)
657 - Added BUILDARGS, a new step in new()
659 * Moose::Meta::Role::Application::RoleSummation
660 - fix typos no one ever sees (sartak)
662 * Moose::Util::TypeConstraints
663 * Moose::Meta::TypeConstraint
664 * Moose::Meta::TypeCoercion
665 - Attempt to work around the ??{ } vs. threads issue
667 - Some null_constraint optimizations
669 0.50 Thurs. Jun 11, 2008
670 - Fixed a version number issue by bumping all modules
673 0.49 Thurs. Jun 11, 2008
674 !! This version now approx. 20-25% !!
675 !! faster with new Class::MOP 0.59 !!
677 * Moose::Meta::Attribute
678 - fixed how the is => (ro|rw) works with
679 custom defined reader, writer and accessor
681 - added docs for this (TODO).
682 - added tests for this (Thanks to Penfold)
683 - added the custom attribute alias for regular
684 Moose attributes which is "Moose"
685 - fix builder and default both being used
690 Moose::Meta::Attribute
692 Moose::Meta::Role::Composite
693 Moose::Util::TypeConstraints
694 - switched usage of reftype to ref because
698 - changing add_package_symbol to use the new
702 - fixed how DEMOLISHALL is called so that it
703 can be overrided in subclasses (thanks to Sartak)
704 - added test for this (thanks to Sartak)
706 * Moose::Util::TypeConstraints
707 - move the ClassName type check code to
708 Class::MOP::is_class_loaded (thanks to Sartak)
710 * Moose::Cookbook::Recipe11
711 - add tests for this (thanks to tokuhirom)
713 0.48 Thurs. May 29, 2008
714 (early morning release engineering)--
716 - fixing the version in Moose::Meta::Method::Destructor
717 which was causing the indexer to choke
719 0.47 Thurs. May 29, 2008
720 (late night release engineering)--
722 - fixing the version is META.yml, no functional
723 changes in this release
725 0.46 Wed. May 28, 2008
726 !! This version now approx. 20-25% !!
727 !! faster with new Class::MOP 0.57 !!
730 - some optimizations of the &initialize method
731 since it is called so often by &meta
735 - now use the get_all_package_symbols from the
736 updated Class::MOP, test suite is now 10 seconds
739 * Moose::Meta::Method::Destructor
740 - is_needed can now also be called as a class
741 method for immutablization to check if the
742 destructor object even needs to be created
745 * Moose::Meta::Method::Destructor
746 Moose::Meta::Method::Constructor
747 - added more descriptive error message to help
748 keep people from wasting time tracking an error
749 that is easily fixed by upgrading.
751 0.45 Saturday, May 24, 2008
753 - Because of work in Class::MOP 0.57, all
754 XS based functionality is now optional
755 and a Pure Perl version is supplied
756 - the CLASS_MOP_NO_XS environment variable
757 can now be used to force non-XS versions
759 - several of the packages have been tweaked
760 to take care of this, mostly we added
761 support for the package_name and name
762 variables in all the Method metaclasses
763 - before/around/after method modifiers now
764 support regexp matching of names
765 (thanks to Takatoshi Kitano)
766 - tests added for this
767 - NOTE: this only works for classes, it
768 is currently not supported in roles,
769 but, ... patches welcome
770 - All usage of Carp::confess have been replaced
771 by Carp::croak in the "keyword" functions since
772 the stack trace is usually not helpful
775 - All usage of Carp::confess have been replaced
776 by Carp::croak in the "keyword" functions since
777 the stack trace is usually not helpful
778 - The 'has' keyword for roles now accepts the
779 same array ref form that Moose.pm does
780 (has [qw/foo bar/] => (is => 'rw', ...))
781 - added test for this
783 * Moose::Meta::Attribute
784 - trigger on a ro-attribute is no longer an
785 error, as it's useful to trigger off of the
789 - added same 'add_package_symbol' fix as in
793 - does_role now handles non-Moose classes
795 - added tests for this
796 - added the 'add_method_modifier' function
797 (thanks to Takatoshi Kitano)
799 * Moose::Util::TypeConstraints
800 - subtypes of parameterizable types now are
801 themselves parameterizable types
803 * Moose::Meta::Method::Constructor
804 - fixed bug where trigger was not being
805 called by the inlined immutable
807 - added test for this (thanks to Caelum)
809 * Moose::Meta::Role::Application::ToInstance
810 - now uses the metaclass of the instance
811 (if possible) to create the anon-class
812 (thanks Jonathan Rockway)
814 * Moose::Cookbook::Recipe22
815 - added the meta-attribute trait recipe
819 - fixed hash-ordering test bug that was
820 causing occasional cpantester failures
821 - renamed the t/000_recipe/*.t tests to be
822 more descriptive (thanks to Sartak)
824 0.44 Sat. May 10, 2008
826 - made make_immutable warning cluck to
827 show where the error is (thanks mst)
830 - BUILDALL and DEMOLISHALL now call
831 ->body when looping through the
832 methods, to avoid the overloaded
834 - fixed issue where DEMOLISHALL was
835 eating the $@ values, and so not
836 working correctly, it still kind of
837 eats them, but so does vanilla perl
838 - added tests for this
840 * Moose::Cookbook::Recipe7
841 - added new recipe for immutable
842 functionality (thanks Dave Rolsky)
844 * Moose::Cookbook::Recipe9
845 - added new recipe for builder and
846 lazy_build (thanks Dave Rolsky)
848 * Moose::Cookbook::Recipe11
849 - added new recipe for method aliasing
850 and exclusion with Roles (thanks Dave Rolsky)
853 - fixed Win32 test failure (thanks spicyjack)
855 ~ removed Build.PL and Module::Build compat
856 since Module::Install has done that.
858 0.43 Wed. April, 30, 2008
860 drink more coffee before
861 doing release engineering
863 - whoops, forgot to do the smolder tests,
864 and we broke some of the custom meta-attr
865 modules. This fixes that.
867 0.42 Mon. April 28, 2008
868 - some bad tests slipped by, nothing else
869 changed in this release (cpantesters++)
871 - upped the Class::MOP dependency to 0.55
872 since we have tests which need the C3
875 0.41 Mon. April 28, 2008
876 ~~ numerous documentation updates ~~
878 - Changed all usage of die to Carp::croak for better
879 error reporting (initial patch by Tod Hagan)
882 - the make_immutable keyword is now deprecated, don't
883 use it in any new code and please fix your old code
884 as well. There will be 2 releases, and then it will
890 - refactored the way inner and super work to avoid
891 any method/@ISA cache penalty (nothingmuch)
894 - fixing &new_object to make sure trigger gets the
895 coerced value (spotted by Charles Alderman on the
897 - added test for this
899 * Moose::Meta::Method::Constructor
900 - immutable classes which had non-lazy attributes were calling
901 the default generating sub twice in the constructor. (bug
902 found by Jesse Luehrs, fixed by Dave Rolsky)
903 - added tests for this (Dave Rolsky)
904 - fix typo in initialize_body method (nothingmuch)
906 * Moose::Meta::Method::Destructor
907 - fix typo in initialize_body method (nothingmuch)
909 * Moose::Meta::Method::Overriden
910 Moose::Meta::Method::Augmented
911 - moved the logic for these into their own
912 classes (nothingmuch)
914 * Moose::Meta::Attribute
915 - inherited attributes may now be extended without
916 restriction on the type ('isa', 'does') (Sartak)
917 - added tests for this (Sartak)
918 - when an attribute property is malformed (such as lazy without
919 a default), give the name of the attribute in the error
921 - added the &applied_traits and &has_applied_traits methods
922 to allow introspection of traits
923 - added tests for this
924 - moved 'trait' and 'metaclass' argument handling to here from
926 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
927 '+foo' syntax) (nothingmuch)
928 - added tests for this (t0m)
931 - localize $@ inside DEMOLISHALL to avoid it
932 eating $@ (found by Ernesto)
933 - added test for this (thanks to Ernesto)
935 * Moose::Util::TypeConstraints
936 - &find_type_constraint now DWIMs when given an
937 type constraint object or name (nothingmuch)
938 - &find_or_create_type_constraint superseded with a number of more
940 - find_or_create_{isa,does}_type_constraint
941 - find_or_parse_type_constraint
943 * Moose::Meta::TypeConstraint
944 Moose::Meta::TypeConstraint::Class
945 Moose::Meta::TypeConstraint::Role
946 Moose::Meta::TypeConstraint::Enum
947 Moose::Meta::TypeConstraint::Union
948 Moose::Meta::TypeConstraint::Parameterized
949 - added the &equals method for comparing two type
950 constraints (nothingmuch)
951 - added tests for this (nothingmuch)
953 * Moose::Meta::TypeConstraint
954 - add the &parents method, which is just an alias to &parent.
955 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
957 * Moose::Meta::TypeConstraint::Class
958 - added the class attribute for introspection purposes
960 - added tests for this
962 * Moose::Meta::TypeConstraint::Enum
963 Moose::Meta::TypeConstraint::Role
964 - broke these out into their own classes (nothingmuch)
966 * Moose::Cookbook::Recipe*
967 - fixed references to test file locations in the POD
968 and updated up some text for new Moose features
972 - Added &resolve_metaclass_alias, a helper function for finding an actual
973 class for a short name (e.g. in the traits list)
975 0.40 Fri. March 14, 2008
976 - I hate Pod::Coverage
978 0.39 Fri. March 14, 2008
980 - documenting the use of '+name' with attributes
981 that come from recently composed roles. It makes
982 sense, people are using it, and so why not just
983 officially support it.
984 - fixing the 'extends' keyword so that it will not
985 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
988 - added the perl -Moose=+Class::Name feature to allow
989 monkeypatching of classes in one liners
992 - fixing the 'apply_all_roles' keyword so that it will not
993 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
996 - added ->create method which now supports roles (thanks to jrockway)
997 - added tests for this
998 - added ->create_anon_class which now supports roles and caching of
999 the results (thanks to jrockway)
1000 - added tests for this
1001 - made ->does_role a little more forgiving when it is
1002 checking a Class::MOP era metaclasses.
1004 * Moose::Meta::Role::Application::ToInstance
1005 - it is now possible to pass extra params to be used when
1006 a role is applied to an the instance (rebless_params)
1007 - added tests for this
1009 * Moose::Util::TypeConstraints
1010 - class_type now accepts an optional second argument for a
1011 custom message. POD anotated accordingly (groditi)
1012 - added tests for this
1013 - it is now possible to make anon-enums by passing 'enum' an
1014 ARRAY ref instead of the $name => @values. Everything else
1016 - added tests for this
1019 - making test for using '+name' on attributes consumed
1020 from a role, it works and makes sense too.
1022 * Moose::Meta::Attribute
1023 - fix handles so that it doesn't return nothing
1024 when the method cannot be found, not sure why
1025 it ever did this originally, this means we now
1026 have slightly better support for AUTOLOADed
1028 - added more delegation tests
1029 - adding ->does method to this so as to better
1030 support traits and their introspection.
1031 - added tests for this
1034 - localizing the Data::Dumper configurations so
1035 that it does not pollute others (RT #33509)
1036 - made ->does a little more forgiving when it is
1037 passed Class::MOP era metaclasses.
1039 0.38 Fri. Feb. 15, 2008
1040 * Moose::Meta::Attribute
1041 - fixed initializer to correctly do
1042 type checking and coercion in the
1044 - added tests for this
1047 - fixed some finicky tests (thanks to konobi)
1049 0.37 Thurs. Feb. 14, 2008
1051 - fixed some details in Moose::init_meta
1052 and its superclass handling (thanks thepler)
1053 - added tests for this (thanks thepler)
1054 - 'has' now dies if you don't pass in name
1056 - added the 'make_immutable' keyword as a shortcut
1059 * Moose::Meta::Class
1060 Moose::Meta::Method::Constructor
1061 Moose::Meta::Attribute
1062 - making (init_arg => undef) work here too
1063 (thanks to nothingmuch)
1065 * Moose::Meta::Attribute
1066 Moose::Meta::Method::Constructor
1067 Moose::Meta::Method::Accessor
1068 - make lazy attributes respect attr initializers (rjbs)
1069 - added tests for this
1071 * Moose::Util::TypeConstraints
1072 Moose::Util::TypeConstraints::OptimizedConstraints
1073 Moose::Meta::TypeConstraints
1074 Moose::Meta::Attribute
1075 Moose::Meta::Method::Constructor
1076 Moose::Meta::Method::Accessor
1077 - making type errors use the
1078 assigned message (thanks to Sartak)
1079 - added tests for this
1081 * Moose::Meta::Method::Destructor
1082 - making sure DESTROY gets inlined properly
1083 with successive DEMOLISH calls (thanks to manito)
1085 * Moose::Meta::Attribute
1086 Moose::Meta::Method::Accessor
1087 - fixed handling of undef with type constraints
1089 - added tests for this
1092 - added &get_all_init_args and &get_all_attribute_values
1093 (thanks to Sartak and nothingmuch)
1095 0.36 Sat. Jan. 26, 2008
1097 Moose::Meta::Attribute
1098 - role type tests now support when roles are
1099 applied to non-Moose classes (found by ash)
1100 - added tests for this (thanks to ash)
1101 - couple extra tests to boost code coverage
1103 * Moose::Meta::Method::Constructor
1104 - improved fix for handling Class::MOP attributes
1105 - added test for this
1107 * Moose::Meta::Class
1108 - handled the add_attribute($attribute_meta_object)
1110 - added test for this
1112 0.35 Tues. Jan. 22, 2008
1113 * Moose::Meta::Method::Constructor
1114 - fix to make sure even Class::MOP attributes
1115 are handled correctly (Thanks to Dave Rolsky)
1116 - added test for this (also Dave Rolsky)
1118 * Moose::Meta::Class
1119 - improved error message on _apply_all_roles,
1120 you should now use Moose::Util::apply_all_roles
1121 and you shouldnt have been using a _ prefixed
1122 method in the first place ;)
1124 0.34 Mon. Jan. 21, 2008
1125 ~~~ more misc. doc. fixes ~~~
1126 ~~ updated copyright dates ~~
1128 Moose is now a postmodern object system :)
1129 - (see the POD for details)
1131 * <<Role System Refactoring>>
1132 - this release contains a major reworking and
1133 cleanup of the role system
1134 - 100% backwards compat.
1135 - Role application now restructured into seperate
1136 classes based on type of applicants
1137 - Role summation (combining of more than one role)
1138 is much cleaner and anon-classes are no longer
1139 used in this process
1140 - new Composite role metaclass
1141 - runtime application of roles to instances
1142 is now more efficient and re-uses generated
1143 classes when applicable
1145 * <<New Role composition features>>
1146 - methods can now be excluded from a given role
1148 - methods can now be aliased to another name (and
1149 still retain the original as well)
1151 * Moose::Util::TypeConstraints::OptimizedConstraints
1152 - added this module (see above)
1154 * Moose::Meta::Class
1155 - fixed the &_process_attribute method to be called
1156 by &add_attribute, so that the API is now correct
1158 * Moose::Meta::Method::Accessor
1159 - fixed bug when passing a list of values to
1160 an accessor would get (incorrectly) ignored.
1161 Thanks to Sartak for finding this ;)
1162 - added tests for this (Sartak again)
1164 * Moose::Meta::Method::Accessor
1165 Moose::Meta::Method::Constructor
1166 Moose::Meta::Attribute
1167 Moose::Meta::TypeConstraint
1168 Moose::Meta::TypeCoercion
1169 - lots of cleanup of such things as:
1171 - type constraint handling
1172 - error handling/messages
1173 (thanks to nothingmuch)
1175 * Moose::Meta::TypeConstraint::Parameterizable
1176 - added this module to support the refactor
1177 in Moose::Meta::TypeConstraint::Parameterized
1179 * Moose::Meta::TypeConstraint::Parameterized
1180 - refactored how these types are handled so they
1181 are more generic and not confined to ArrayRef
1185 - shortened some file names for better VMS support (RT #32381)
1187 0.33 Fri. Dec. 14, 2007
1188 !! Moose now loads 2 x faster !!
1189 !! with new Class::MOP 0.49 !!
1191 ++ new oose.pm module to make command line
1192 Moose-ness easier (see POD docs for more)
1194 * Moose::Meta::Class
1196 - several tweaks to take advantage of the
1197 new method map caching in Class::MOP
1199 * Moose::Meta::TypeConstraint::Parameterized
1200 - allow subtypes of ArrayRef and HashRef to
1201 be used as a container (sartak)
1202 - added tests for this
1203 - basic support for coercion to ArrayRef and
1204 HashRef for containers (sartak)
1205 - added tests for this
1207 * Moose::Meta::TypeCoercion
1208 - coercions will now create subtypes as needed
1209 so you can now add coercions to parameterized
1210 types without having to explictly define them
1211 - added tests for this
1213 * Moose::Meta::Method::Accessor
1214 - allow subclasses to decide whether we need
1215 to copy the value into a new variable (sartak)
1217 0.32 Tues. Dec. 4, 2007
1218 * Moose::Util::TypeConstraints
1219 - fixing how subtype aliases of unions work
1220 they should inherit the parent's coercion
1221 - added tests for this
1222 - you can now define multiple coercions on
1223 a single type at different times instead of
1224 having to do it all in one place
1225 - added tests for this
1227 * Moose::Meta::TypeConstraint
1228 - there is now a default constraint of sub { 1 }
1229 instead of Moose::Util::TypeConstraints setting
1232 * Moose::Meta::TypeCoercion
1233 * Moose::Meta::TypeCoercion::Union
1234 - added the &has_coercion_for_type and
1235 &add_type_coercions methods to support the
1236 new features above (although you cannot add
1237 more type coercions for Union types)
1239 0.31 Mon. Nov. 26, 2007
1240 * Moose::Meta::Attribute
1241 - made the +attr syntax handle extending types with
1242 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1243 now works if the original foo is an ArrayRef.
1244 - added tests for this.
1245 - delegation now works even if the attribute does not
1246 have a reader method using the get_read_method_ref
1247 method from Class::MOP::Attribute.
1248 - added tests for this
1249 - added docs for this
1251 * Moose::Util::TypeConstraints
1252 - passing no "additional attribute info" to
1253 &find_or_create_type_constraint will no longer
1254 attempt to create an __ANON__ type for you,
1255 instead it will just return undef.
1256 - added docs for this
1258 0.30 Fri. Nov. 23, 2007
1259 * Moose::Meta::Method::Constructor
1260 -builder related bug in inlined constructor. (groditi)
1262 * Moose::Meta::Method::Accessor
1263 - genereate unnecessary calls to predicates and refactor
1264 code generation for runtime speed (groditi)
1266 * Moose::Util::TypeConstraints
1267 - fix ClassName constraint to introspect symbol table (mst)
1268 - added more tests for this (mst)
1269 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1270 with work correctly.
1271 - added tests for this
1274 - adding the link to Recipie 11 (written by Sartak)
1275 - adding test for SYNOPSIS code
1278 - New tests for builder bug. Upon instantiation, if an
1279 attribute had a builder, no value and was not lazy the
1280 builder default was not getting run, oops. (groditi)
1282 0.29 Tues. Nov. 13, 2007
1283 * Moose::Meta::Attribute
1284 - Fix error message on missing builder method (groditi)
1286 * Moose::Meta::Method::Accessor
1287 - Fix error message on missing builder method (groditi)
1290 - Add test to check for the correct error message when
1291 builder method is missing (groditi)
1293 0.28 Tues. Nov. 13, 2007
1294 - 0.27 packaged incorrectly (groditi)
1296 0.27 Tues. Nov. 13, 2007
1297 * Moose::Meta::Attribute
1298 - Added support for the new builder option (groditi)
1299 - Added support for lazy_build option (groditi)
1300 - Changed slot initialization for predicate changes (groditi)
1302 * Moose::Meta::Method::Accessor
1303 - Added support for lazy_build option (groditi)
1304 - Fix inline methods to work with corrected predicate
1307 * Moose::Meta::Method::Constructor
1308 - Added support for lazy_build option (groditi)
1311 - tests for builder and lazy_build (groditi)
1313 * fixing some misc. bits in the docs that
1314 got mentioned on CPAN Forum & perlmonks
1317 - fixed how required methods are handled
1318 when they encounter overriden or modified
1319 methods from a class (thanks to confound).
1320 - added tests for this
1322 * Moose::Util::TypeConstraint
1323 - fixed the type notation parser so that
1324 the | always creates a union and so is
1325 no longer a valid type char (thanks to
1326 konobi, mugwump and #moose for working
1328 - added more tests for this
1330 0.26 Thurs. Sept. 27, 2007
1333 * Parameterized Types
1334 We now support parameterized collection types, such as:
1335 ArrayRef[Int] # array or integers
1336 HashRef[Object] # a hash with object values
1337 They can also be nested:
1338 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1339 And work with the type unions as well:
1340 ArrayRef[Int | Str] # array of integers of strings
1342 * Better Framework Extendability
1343 Moose.pm is now "extendable" such that it is now much
1344 easier to extend the framework and add your own keywords
1345 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1346 section of the Moose.pm docs.
1349 In an effort to begin documenting some of the various
1350 details of Moose as well as some common idioms, we have
1351 created Moose::Cookbook::Snacks as a place to find
1352 small (easily digestable) nuggets of Moose code.
1355 ~ Several doc updates/cleanup thanks to castaway ~
1357 - converted build system to use Module::Install instead of
1358 Module::Build (thanks to jrockway)
1361 - added all the meta classes to the immutable list and
1362 set it to inline the accessors
1363 - fix import to allow Sub::Exporter like { into => }
1364 and { into_level => } (perigrin)
1365 - exposed and documented init_meta() to allow better
1366 embedding and extending of Moose (perigrin)
1369 - complete re-organization of the test suite
1370 - added some new tests as well
1371 - finally re-enabled the Moose::POOP test since
1372 the new version of DBM::Deep now works again
1375 * Moose::Meta::Class
1376 - fixed very odd and very nasty recursion bug with
1378 - added tests for this (eilara)
1380 * Moose::Meta::Attribute
1381 Moose::Meta::Method::Constructor
1382 Moose::Meta::Method::Accessor
1383 - fixed issue with overload::Overloaded getting called
1384 on non-blessed items. (RT #29269)
1385 - added tests for this
1387 * Moose::Meta::Method::Accessor
1388 - fixed issue with generated accessor code making
1389 assumptions about hash based classes (thanks to dexter)
1391 * Moose::Coookbook::Snacks
1392 - these are bits of documentation, not quite as big as
1393 Recipes but which have no clear place in the module docs.
1394 So they are Snacks! (horray for castaway++)
1396 * Moose::Cookbook::Recipe4
1397 - updated it to use the new ArrayRef[MyType] construct
1398 - updated the accompanying test as well
1400 +++ Major Refactor of the Type Constraint system +++
1401 +++ with new features added as well +++
1403 * Moose::Util::TypeConstraint
1404 - no longer uses package variable to keep track of
1405 the type constraints, now uses the an instance of
1406 Moose::Meta::TypeConstraint::Registry to do it
1407 - added more sophisticated type notation parsing
1409 - added tests for this
1411 * Moose::Meta::TypeConstraint
1412 - some minor adjustments to make subclassing easier
1413 - added the package_defined_in attribute so that we
1414 can track where the type constraints are created
1416 * Moose::Meta::TypeConstraint::Union
1417 - this is now been refactored to be a subclass of
1418 Moose::Meta::TypeConstraint
1420 * Moose::Meta::TypeCoercion::Union
1421 - this has been added to service the newly refactored
1422 Moose::Meta::TypeConstraint::Union and is itself
1423 a subclass of Moose::Meta::TypeCoercion
1425 * Moose::Meta::TypeConstraint::Parameterized
1426 - added this module (taken from MooseX::AttributeHelpers)
1427 to help construct nested collection types
1428 - added tests for this
1430 * Moose::Meta::TypeConstraint::Registry
1431 - added this class to keep track of type constraints
1433 0.25 Mon. Aug. 13, 2007
1435 - Documentation update to reference Moose::Util::TypeConstraints
1436 under 'isa' in 'has' for how to define a new type
1437 (thanks to shlomif).
1439 * Moose::Meta::Attribute
1440 - required attributes now will no longer accept undef
1441 from the constructor, even if there is a default and lazy
1442 - added tests for this
1443 - default subroutines must return a value which passes the
1445 - added tests for this
1447 * Moose::Meta::Attribute
1448 * Moose::Meta::Method::Constructor
1449 * Moose::Meta::Method::Accessor
1450 - type-constraint tests now handle overloaded objects correctly
1451 in the error message
1452 - added tests for this (thanks to EvanCarroll)
1454 * Moose::Meta::TypeConstraint::Union
1455 - added (has_)hand_optimized_constraint to this class so that
1456 it behaves as the regular Moose::Meta::TypeConstraint does.
1459 - large refactoring of this code
1460 - added several more tests
1461 - tests for subtle conflict resolition issues
1462 added, but not currently running
1465 * Moose::Cookbook::Recipe7
1466 - added new recipe for augment/inner functionality
1468 - added test for this
1471 - a formal definition of roles (still in progress)
1474 - utilities for easier working with Moose classes
1475 - added tests for these
1478 - This contains Moose specific test functions
1479 - added tests for these
1481 0.24 Tues. July 3, 2007
1482 ~ Some doc updates/cleanup ~
1484 * Moose::Meta::Attribute
1485 - added support for roles to be given as parameters
1486 to the 'handles' option.
1487 - added tests and docs for this
1488 - the has '+foo' attribute form now accepts changes to
1489 the lazy option, and the addition of a handles option
1490 (but not changing the handles option)
1491 - added tests and docs for this
1494 - required methods are now fetched using find_method_by_name
1495 so that required methods can come from superclasses
1496 - adjusted tests for this
1498 0.23 Mon. June 18, 2007
1499 * Moose::Meta::Method::Constructor
1500 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1501 * Moose::Meta::Class
1502 - Modify make_immutable to work with the new Class::MOP immutable
1503 mechanism + POD + very basic test (groditi)
1504 * Moose::Meta::Attribute
1505 - Fix handles to use goto() so that caller() comes out properly on
1506 the other side (perigrin)
1508 0.22 Thurs. May 31, 2007
1509 * Moose::Util::TypeConstraints
1510 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1511 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1512 prototypes for functions
1513 - added the ClassName type constraint, this checks for strings
1514 which will respond true to ->isa(UNIVERSAL).
1515 - added tests and docs for this
1516 - subtyping just in name now works correctly by making the
1517 default for where be { 1 }
1518 - added test for this
1520 * Moose::Meta::Method::Accessor
1521 - coerce and lazy now work together correctly, thanks to
1522 merlyn for finding this bug
1523 - tests added for this
1524 - fix reader presedence bug in Moose::Meta::Attribute + tests
1527 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1528 a HASH-ref and missed. This produces better error messages then
1529 having it die cause undef is not a HASH.
1530 - added tests for this
1532 0.21 Thursday, May 2nd, 2007
1534 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1535 - modified unimport to remove super and inner along with the rest
1536 - altered unimport tests to handle this
1539 - altered super export to populate SUPER_SLOT
1541 * Moose::Meta::Class
1542 - altered augment and override modifier application to use *_SLOT
1543 - modified tests for these to unimport one test class each to test
1546 - fixed issue where custom attribute metaclasses
1547 where not handled correctly in roles
1548 - added tests for this
1550 * Moose::Meta::Class
1551 - fixed issue where extending metaclasses with
1552 roles would blow up. Thanks to Aankhen`` for
1553 finding this insidious error, and it's solution.
1555 ~~ lots of spelling and grammer fixes in the docs,
1556 many many thanks to rlb3 and Aankhen for these :)
1558 0.20 Friday, April 6th, 2007
1559 >> I messed up the SKIP logic in one test
1560 so this release is just to fix that.
1563 - 'has' now also accepts an ARRAY ref
1564 to create multiple attrs (see docs)
1565 (thanks to konobi for this)
1566 - added tests and docs
1568 0.19 Thurs. April 5th, 2007
1569 ~~ More documentation updates ~~
1571 * Moose::Util::TypeConstraints
1572 - 'type' now supports messages as well
1573 thanks to phaylon for finding this
1574 - added tests for this
1575 - added &list_all_type_constraints and
1576 &list_all_builtin_type_constraints
1577 functions to facilitate introspection.
1579 * Moose::Meta::Attribute
1580 - fixed regexp 'handles' declarations
1581 to build the list of delegated methods
1582 correctly (and not override important
1583 things like &new) thanks to ashleyb
1585 - added tests and docs for this
1586 - added the 'documentation' attributes
1587 so that you can actually document your
1588 attributes and inspect them through the
1590 - added tests and docs for this
1592 * Moose::Meta::Class
1593 - when loading custom attribute metaclasses
1594 it will first look in for the class in the
1595 Moose::Meta::Attribute::Custom::$name, and
1596 then default to just loading $name.
1597 - added tests and docs for this
1599 * Moose::Meta::TypeConstraint
1600 - type constraints now stringify to their names.
1601 - added test for this
1604 - added tests to assure we work with Module::Refresh
1605 - added stricter test skip logic in the Moose POOP
1606 test, ask Rob Kinyon why.
1607 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1609 0.18 Sat. March 10, 2007
1610 ~~ Many, many documentation updates ~~
1613 - We now use Class::MOP::load_class to
1615 - added tests to show types and subtypes
1616 working with Declare::Constraints::Simple
1617 and Test::Deep as constraint engines.
1620 !! You must have Class::MOP 0.37_001 !!
1621 !! for this developer release to work !!
1623 This release was primarily adding the immutable
1624 feature to Moose. An immutable class is one which
1625 you promise not to alter. When you set the class
1626 as immutable it will perform various bits of
1627 memoization and inline certain part of the code
1628 (constructors, destructors and accessors). This
1629 minimizes (and in some cases totally eliminates)
1630 one of Moose's biggest performance hits. This
1631 feature is not on by default, and is 100% optional.
1632 It has several configurable bits as well, so you
1633 can pick and choose to your specific needs.
1635 The changes involved in this were fairly wide and
1636 highly specific, but 100% backwards compatible, so
1637 I am not going to enumerate them here. If you are
1638 truely interested in what was changed, please do
1641 0.17 Tues. Nov. 14, 2006
1642 * Moose::Meta::Method::Accessor
1643 - bugfix for read-only accessors which
1644 are have a type constraint and lazy.
1645 Thanks to chansen for finding it.
1647 0.16 Tues. Nov. 14, 2006
1649 There are some speed improvements in this release,
1650 but they are only the begining, so stay tuned.
1653 - BUILDALL and DEMOLISHALL no longer get
1654 called unless they actually need to be.
1655 This gave us a signifigant speed boost
1656 for the cases when there is no BUILD or
1657 DEMOLISH method present.
1659 * Moose::Util::TypeConstraints
1660 * Moose::Meta::TypeConstraint
1661 - added an 'optimize_as' option to the
1662 type constraint, which allows for a
1663 hand optimized version of the type
1664 constraint to be used when possible.
1665 - Any internally created type constraints
1666 now provide an optimized version as well.
1668 0.15 Sun. Nov. 5, 2006
1670 This version of Moose *must* have Class::MOP 0.36 in order
1671 to work correctly. A number of small internal tweaks have
1672 been made in order to be compatible with that release.
1674 * Moose::Util::TypeConstraints
1675 - added &unimport so that you can clean out
1676 your class namespace of these exported
1679 * Moose::Meta::Class
1680 - fixed minor issue which occasionally
1681 comes up during global destruction
1683 - moved Moose::Meta::Method::Overriden into
1687 - moved Moose::Meta::Role::Method into
1690 * Moose::Meta::Attribute
1691 - changed how we do type checks so that
1692 we reduce the overall cost, but still
1695 - moved accessor generation methods to
1696 Moose::Meta::Method::Accessor to
1697 conform to the API changes from
1700 * Moose::Meta::TypeConstraint
1701 - changed how constraints are compiled
1702 so that we do less recursion and more
1703 iteration. This makes the type check
1705 - moved Moose::Meta::TypeConstraint::Union
1708 * Moose::Meta::Method::Accessor
1709 - created this from methods formerly found in
1710 Moose::Meta::Attribute
1712 * Moose::Meta::Role::Method
1713 - moved this from Moose::Meta::Role
1715 * Moose::Meta::Method::Overriden
1716 - moved this from Moose::Meta::Class
1718 * Moose::Meta::TypeConstraint::Union
1719 - moved this from Moose::Meta::TypeConstraint
1721 0.14 Mon. Oct. 9, 2006
1723 * Moose::Meta::Attribute
1724 - fixed lazy attributes which were not getting
1725 checked with the type constraint (thanks ashley)
1726 - added tests for this
1727 - removed the over-enthusiastic DWIMery of the
1728 automatic ArrayRef and HashRef defaults, it
1729 broke predicates in an ugly way.
1730 - removed tests for this
1732 0.13 Sat. Sept. 30, 2006
1734 This version of Moose *must* have Class::MOP 0.35 in order
1735 to work correctly. A number of small internal tweaks have
1736 been made in order to be compatible with that release.
1739 - Removed the use of UNIVERSAL::require to be a better
1740 symbol table citizen and remove a dependency
1741 (thanks Adam Kennedy)
1743 **~~ removed experimental & undocumented feature ~~**
1744 - commented out the 'method' and 'self' keywords, see the
1745 comments for more info.
1748 - added a FAQ and WTF files to document frequently
1749 asked questions and common problems
1751 * Moose::Util::TypeConstraints
1752 - added GlobRef and FileHandle type constraint
1753 - added tests for this
1755 * Moose::Meta::Attribute
1756 - if your attribute 'isa' ArrayRef of HashRef, and you have
1757 not explicitly set a default, then make the default DWIM.
1758 This will also work for subtypes of ArrayRef and HashRef
1760 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1761 - new test added for this (thanks to ashley)
1764 - added basic support for runtime role composition
1765 but this is still *highly experimental*, so feedback
1766 is much appreciated :)
1767 - added tests for this
1769 * Moose::Meta::TypeConstraint
1770 - the type constraint now handles the coercion process
1771 through delegation, this is to support the coercion
1774 * Moose::Meta::TypeConstraint::Union
1775 - it is now possible for coercions to be performed
1777 - added tests for this (thanks to konobi)
1779 * Moose::Meta::TypeCoercion
1780 - properly capturing error when type constraint
1784 - Scalar::Util 1.18 is bad on Win32, so temporarily
1785 only require version 1.17 for Win32 and cygwin.
1786 (thanks Adam Kennedy)
1788 0.12 Sat. Sept. 1, 2006
1790 - Recipe5 (subtypes & coercion) has been written
1793 - fixed "bad meta" error message to be more descriptive
1794 - fixed &unimport to not remove the &inner and &super
1795 keywords because we need to localize them.
1796 - fixed number of spelling/grammer issues, thanks Theory :)
1798 **~~ experimental & undocumented feature ~~**
1799 - added the method and self keywords, they are basically
1800 just sugar, and they may not stay around.
1803 - added &dump method to easily Data::Dumper
1806 * Moose::Meta::TypeConstraint
1807 - added the &is_a_type_of method to check both the current
1808 and the subtype of a method (similar to &isa with classes)
1811 - this is now a subclass of Class::MOP::Module, and no longer
1812 creates the _role_meta ugliness of before.
1813 - fixed tests to reflect this change
1815 0.11 Wed. July 12, 2006
1817 - added an &unimport method to remove all the keywords
1818 that Moose will import, simply add 'no Moose' to the
1819 bottom of your class file.
1822 - fixed some test failures caused by a forgotten test
1825 0.10 Thurs. July 6, 2006
1827 - improved error message when loading modules so
1828 it is less confusing when you load a role.
1829 - added &calculate_all_roles method to
1830 Moose::Meta::Class and Moose::Meta::Role
1833 This module has been tested against Class::MOP 0.30
1834 but it does not yet utilize the optimizations
1835 it makes available. Stay tuned for that ;)
1837 0.09_03 Fri. June 23, 2006
1838 ++ DEVELOPER RELEASE ++
1840 - 'use strict' and 'use warnings' are no longer
1841 needed in Moose classes, Moose itself will
1842 turn them on for you.
1843 - added tests for this
1844 - moved code from exported subs to private methods
1845 in Moose::Meta::Class
1848 - as with Moose, strict and warnings are
1849 automatically turned on for you.
1850 - added tests for this
1853 - now handles an edge case for override errors
1854 - added tests for this
1855 - added some more edge case tests
1857 0.09_02 Tues. May 16, 2006
1858 ++ DEVELOPER RELEASE ++
1860 - added prototypes to the exported subs
1864 - added prototypes to the exported subs
1867 * Moose::Util::TypeConstraints
1868 - cleaned up prototypes for the subs
1871 0.09_01 Fri. May 12, 2006
1872 ++ DEVELOPER RELEASE ++
1873 - This release works in combination with
1874 Class::MOP 0.29_01, it is a developer
1875 release because it uses the a new
1876 instance sub-protocol and a fairly
1877 complete Role implementation. It has
1878 not yet been optimized, so it slower
1879 the the previous CPAN version. This
1880 release also lacks good updated docs,
1881 the official release will have updated docs.
1884 - refactored the keyword exports
1885 - 'with' now checks Role validaity and
1886 accepts more than one Role at a time
1887 - 'extends' makes metaclass adjustments as
1888 needed to ensure metaclass compatibility
1891 - refactored the keyword exports
1892 - 'with' now checks Role validaity and
1893 accepts more than one Role at a time
1895 * Moose::Util::TypeConstraints
1896 - added the 'enum' keyword for simple
1897 string enumerations which can be used as
1899 - see example of usage in t/202_example.t
1902 - more careful checking of params to new()
1905 - much work done on the role composition
1906 - many new tests for conflict detection
1907 and composition edge cases
1908 - not enough documentation, I suggest
1909 looking at the tests
1911 * Moose::Meta::Instance
1912 - added new Instance metaclass to support
1913 the new Class::MOP instance protocol
1915 * Moose::Meta::Class
1916 - some small changes to support the new
1918 - some small additions to support Roles
1920 * Moose::Meta::Attribute
1921 - some improvements to the accessor generation code
1923 - some small changes to support the new
1925 - (still somewhat) experimental delegation support
1926 with the 'handles' option
1927 - added several tests for this
1928 - no docs for this yet
1930 0.05 Thurs. April 27, 2006
1932 - keywords are now exported with Sub::Exporter
1933 thanks to chansen for this commit
1934 - has keyword now takes a 'metaclass' option
1935 to support custom attribute meta-classes
1936 on a per-attribute basis
1937 - added tests for this
1938 - the 'has' keyword not accepts inherited slot
1939 specifications (has '+foo'). This is still an
1940 experimental feature and probably not finished
1941 see t/038_attribute_inherited_slot_specs.t for
1942 more details, or ask about it on #moose
1943 - added tests for this
1946 - keywords are now exported with Sub::Exporter
1948 * Moose::Utils::TypeConstraints
1949 - reorganized the type constraint hierarchy, thanks
1950 to nothingmuch and chansen for his help and advice
1952 - added some tests for this
1953 - keywords are now exported with Sub::Exporter
1954 thanks to chansen for this commit
1956 * Moose::Meta::Class
1957 - due to changes in Class::MOP, we had to change
1958 construct_instance (for the better)
1960 * Moose::Meta::Attribute
1961 - due to changes in Class::MOP, we had to add the
1962 initialize_instance_slot method (it's a good thing)
1964 * Moose::Meta::TypeConstraint
1965 - added type constraint unions
1966 - added tests for this
1967 - added the is_subtype_of predicate method
1968 - added tests for this
1970 0.04 Sun. April 16th, 2006
1972 - Roles can now consume other roles
1973 - added tests for this
1974 - Roles can specify required methods now with
1975 the requires() keyword
1976 - added tests for this
1979 - ripped out much of it's guts ,.. much cleaner now
1980 - added required methods and correct handling of
1981 them in apply() for both classes and roles
1982 - added tests for this
1983 - no longer adds a does() method to consuming classes
1984 it relys on the one in Moose::Object
1985 - added roles attribute and some methods to support
1986 roles consuming roles
1988 * Moose::Meta::Attribute
1989 - added support for triggers on attributes
1990 - added tests for this
1991 - added support for does option on an attribute
1992 - added tests for this
1994 * Moose::Meta::Class
1995 - added support for attribute triggers in the
1997 - added tests for this
2000 - Moose no longer creates a subtype for your class
2001 if a subtype of the same name already exists, this
2002 should DWIM in 99.9999% of all cases
2004 * Moose::Util::TypeConstraints
2005 - fixed bug where incorrect subtype conflicts were
2007 - added test for this
2010 - this class can now be extended with 'use base' if
2011 you need it, it properly loads the metaclass class now
2012 - added test for this
2014 0.03_02 Wed. April 12, 2006
2016 - you must now explictly use Moose::Util::TypeConstraints
2017 it no longer gets exported for you automatically
2020 - new() now accepts hash-refs as well as key/value lists
2021 - added does() method to check for Roles
2022 - added tests for this
2024 * Moose::Meta::Class
2025 - added roles attribute along with the add_role() and
2027 - added tests for this
2030 - now adds a does() method to consuming classes
2031 which tests the class's hierarchy for roles
2032 - added tests for this
2034 0.03_01 Mon. April 10, 2006
2036 - added new Role recipe (no content yet, only code)
2039 - added 'with' keyword for Role support
2040 - added test and docs for this
2041 - fixed subtype quoting bug
2042 - added test for this
2046 - added test and docs
2048 * Moose::Util::TypeConstraints
2049 - added the message keyword to add custom
2050 error messages to type constraints
2053 - the meta role to support Moose::Role
2054 - added tests and docs
2056 * Moose::Meta::Class
2057 - moved a number of things from Moose.pm
2058 to here, they should have been here
2061 * Moose::Meta::Attribute
2062 - moved the attribute option macros here
2063 instead of putting them in Moose.pm
2065 * Moose::Meta::TypeConstraint
2066 - added the message attributes and the
2068 - added tests and docs for this
2070 0.03 Thurs. March 30, 2006
2072 - added the Moose::Cookbook with 5 recipes,
2073 describing all the stuff Moose can do.
2076 - fixed an issue with &extends super class loading
2077 it now captures errors and deals with inline
2078 packages correctly (bug found by mst, solution
2080 - added super/override & inner/augment features
2081 - added tests and docs for these
2084 - BUILDALL now takes a reference of the %params
2085 that are passed to &new, and passes that to
2088 * Moose::Util::TypeConstraints
2089 - Type constraints now survive runtime reloading
2090 - added test for this
2092 * Moose::Meta::Class
2093 - fixed the way attribute defaults are handled
2094 during instance construction (bug found by chansen)
2096 * Moose::Meta::Attribute
2097 - read-only attributes now actually enforce their
2098 read-only-ness (this corrected in Class::MOP as
2101 0.02 Tues. March 21, 2006
2103 - many more tests, fixing some bugs and
2105 - &extends now loads the base module with
2107 - added UNIVERSAL::require to the
2110 - each new Moose class will also create
2111 and register a subtype of Object which
2112 correspond to the new Moose class.
2113 - the 'isa' option in &has now only
2114 accepts strings, and will DWIM in
2117 * Moose::Util::TypeConstraints
2118 - added type coercion features
2119 - added tests for this
2120 - added support for this in attributes
2121 and instance construction
2123 - type construction no longer creates a
2124 function, it registers the type instead.
2125 - added several functions to get the
2129 - BUILDALL and DEMOLISHALL were broken
2130 because of a mis-named hash key, Whoops :)
2132 * Moose::Meta::Attribute
2133 - adding support for coercion in the
2134 autogenerated accessors
2136 * Moose::Meta::Class
2137 - adding support for coercion in the
2138 instance construction
2140 * Moose::Meta::TypeConstraint
2141 * Moose::Meta::TypeCoercion
2142 - type constraints and coercions are now
2143 full fledges meta-objects
2145 0.01 Wed. March 15, 2006
2146 - Moooooooooooooooooose!!!