1 Revision history for Perl extension Moose
4 * Moose::Meta::Attribute
5 - Added a delegation_metaclass method to replace a hard-coded
6 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
8 * Moose::Util::TypeConstraints
9 - If you created a subtype and passed a parent that Moose didn't
10 know about, it simply ignored the parent. Now it automatically
11 creates the parent as a class type. This may not be what you
12 want, but is less broken than before. (Dave Rolsky)
14 * Moose::Util::TypeConstraints
15 - This module tried throw errors by calling Moose->throw_error,
16 but it did not ensure that Moose was loaded first. This could
17 cause very unhelpful errors when it tried to throw an error
18 before Moose was loaded. (Dave Rolsky)
20 0.65 Thu, January 22, 2008
21 * Moose and Moose::Meta::Method::Overridden
22 - If an overridden method called super(), and then the
23 superclass's method (not overridden) _also_ called super(),
24 Moose went into an endless recursion loop. Test provided by
25 Chris Prather. (Dave Rolsky)
27 * Moose::Meta::TypeConstraint
28 - All methods are now documented. (gphat)
30 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
31 - Fixed some bogus failures that occurred because we tried to
32 validate filesystem paths in a very ad-hoc and
33 not-quite-correct way. (Dave Rolsky)
35 * Moose::Util::TypeConstraints
36 - Added maybe_type to exports. See docs for details. (rjbs)
39 - Added Moose::Util::TypeConstraints to the SEE ALSO
43 - Methods created via an attribute can now fulfill a "requires"
44 declaration for a role. (nothingmuch)
46 * Moose::Meta::Method::*
47 - Stack traces from inlined code will now report its line and
48 file as being in your class, as opposed to in Moose
51 0.64 Wed, December 31, 2008
52 * Moose::Meta::Method::Accessor
53 - Always inline predicate and clearer methods (Sartak)
55 * Moose::Meta::Attribute
56 - Support for parameterized traits (Sartak)
57 - verify_against_type_constraint method to avoid duplication
58 and enhance extensibility (Sartak)
61 - Tests (but no support yet) for parameterized traits (Sartak)
64 - Require Class::MOP 0.75+, which has the side effect of making
65 sure we work on Win32. (Dave Rolsky)
67 0.63 Mon, December 8, 2008
69 - Some small grammar tweaks and bug fixes in non-Moose example
72 0.62_02 Fri, December 5, 2008
73 * Moose::Meta::Role::Application::ToClass
74 - When a class does not provide all of a role's required
75 methods, the error thrown now mentions all of the missing
76 methods, as opposed to just the first one found. Requested by
77 Curtis Poe (RT #41119). (Dave Rolsky)
79 * Moose::Meta::Method::Constructor
80 - Moose will no longer inline a constructor for your class
81 unless it inherits its constructor from Moose::Object, and
82 will warn when it doesn't inline. If you want to force
83 inlining anyway, pass "replace_constructor => 1" to
84 make_immutable. Addresses RT #40968, reported by Jon
86 - The quoting of default values could be broken if the default
87 contained a single quote ('). Now we use quotemeta to escape
88 anything potentially dangerous in the defaults. (Dave Rolsky)
90 0.62_01 Wed, December 3, 2008
92 - use the method->execute API for BUILDALL
93 and DEMOLISHALL (Sartak)
95 * Moose::Util::TypeConstraints
96 - We now make all the type constraint meta classes immutable
97 before creating the default types provided by Moose. This
98 should make loading Moose a little faster. (Dave Rolsky)
100 0.62 Wed November 26, 2008
101 * Moose::Meta::Role::Application::ToClass
102 Moose::Meta::Role::Application::ToRole
103 - fixed issues where excluding and aliasing the
104 same methods for a single role did not work
105 right (worked just fine with multiple
107 - added test for this (stevan)
109 * Moose::Meta::Role::Application::RoleSummation
110 - fixed the error message when trying to compose
111 a role with a role it excludes (Sartak)
114 - Catch another case where recursion caused the value
115 of $CALLER to be stamped on (t0m)
116 - added test for this (t0m)
119 - Remove the make_immutable keyword, which has been
120 deprecated since April. It breaks metaclasses that
121 use Moose without no Moose (Sartak)
123 * Moose::Meta::Attribute
124 - Removing an attribute from a class now also removes delegation
125 (handles) methods installed for that attribute (t0m)
126 - added test for this (t0m)
128 * Moose::Meta::Method::Constructor
129 - An attribute with a default that looked like a number (but was
130 really a string) would accidentally be treated as a number
131 when the constructor was made immutable (perigrin)
132 - added test for this (perigrin)
135 - create method for constructing a role
137 - added test for this (Sartak)
138 - anonymous roles! (Sartak)
139 - added test for this (Sartak)
142 - more consistent error messages (Sartak)
144 * Moose::Cookbook::Roles::Recipe1
145 - attempt to explain why a role that just requires
146 methods is useful (Sartak)
148 0.61 Fri November 7, 2008
149 * Moose::Meta::Attribute
150 - When passing a role to handles, it will be loaded if necessary
154 - Method objects returned by get_method (and other methods)
155 Could end up being returned without an associated_metaclass
156 attribute. Removing get_method_map, which is provided by
157 Class::MOP::Class, fixed this. The Moose version did nothing
158 different from its parent except introduce a bug. (Dave Rolsky)
159 - added tests for this (jdv79)
162 - Added a $VERSION to all .pm files which didn't have one. Fixes
163 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
165 * Moose::Cookbook::Basics::Recipe4
166 * Moose::Cookbook::Basics::Recipe6
167 - These files had spaces on the first line of the SYNOPSIS, as
168 opposed to a totally empty line. According to RT #40432, this
169 confuses POD parsers. (Dave Rolsky)
171 0.60 Fri October 24, 2008
173 - Passing "-traits" when loading Moose caused the Moose.pm
174 exports to be broken. Reported by t0m. (Dave Rolsky)
175 - Tests for this bug. (t0m)
178 - Change resolve_metaclass alias to use the new
179 load_first_existing_class function. This makes it a lot
180 simpler, and also around 5 times faster. (t0m)
181 - Add caching to resolve_metaclass_alias, which gives an order
182 of magnitude speedup to things which repeatedly call the
183 Moose::Meta::Attribute->does method, notably MooseX::Storage
186 * Moose::Util::TypeConstraint
187 - Put back the changes for parameterized constraints that
188 shouldn't have been removed in 0.59. We still cannot parse
189 them, but MooseX modules can create them in some other
190 way. See the 0.58 changes for more details. (jnapiorkowski)
191 - Changed the way subtypes are created so that the job is
192 delegated to a type constraint parent. This clears up some
193 hardcoded checking and should allow correct subtypes of
194 Moose::Meta::Type::Constraint. Don't rely on this new API too
195 much (create_child_type) because it may go away in the
196 future. (jnapiorkowski)
198 * Moose::Meta::TypeConstraint::Union
199 - Type constraint names are sorted as strings, not numbers.
202 * Moose::Meta::TypeConstraint::Parameterizable
203 - New parameterize method. This can be used as a factory method
204 to make a new type constraint with a given parameterized
205 type. (jnapiorkowski)
206 - added tests (jnapiorkowski)
208 0.59 Tue October 14, 2008
210 - Add abridged documentation for builder/default/initializer/
211 predicate, and link to more details sections in
212 Class::MOP::Attribute. (t0m)
214 * Moose::Util::TypeConstraints
215 - removed prototypes from all but the &-based stuff (mst)
217 * Moose::Util::TypeConstraints
218 - Creating a anonymous subtype with both a constraint and a
219 message failed with a very unhelpful error, but should just
220 work. Reported by t0m. (Dave Rolsky)
223 - Some tests that used Test::Warn if it was available failed
224 with older versions of Test::Warn. Reported by Fayland. (Dave
226 - Test firing behavior of triggers in relation to builder/default/
228 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
229 kinds of supported type. (t0m)
232 - In create(), do not pass "roles" option to the superclass
233 - added related test that creates an anon metaclass with
236 * Moose::Meta::TypeConstraint::Class
237 * Moose::Meta::TypeConstraint::Role
238 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
239 other types (as per change in 0.55_02). (t0m)
241 * Moose::Meta::TypeConstraint::Registry
242 - Fix warning when dealing with unknown type names (t0m)
244 * Moose::Util::TypeConstraints
245 - Reverted changes from 0.58 related to handle parameterized
246 types. This caused random failures on BSD and Win32 systems,
247 apparently related to the regex engine. This means that Moose
248 can no longer parse structured type constraints like
249 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
250 supported in a slightly different way via MooseX::Types some
251 time in the future. (Dave Rolsky)
253 0.58 Sat September 20, 2008
254 !! This release has an incompatible change regarding !!
255 !! how roles add methods to a class !!
257 * Roles and role application
258 ! Roles now add methods by calling add_method, not
259 alias_method. They make sure to always provide a method
260 object, which will be cloned internally. This means that it is
261 now possible to track the source of a method provided by a
262 role, and even follow its history through intermediate roles.
264 This means that methods added by a role now show up when
265 looking at a class's method list/map. (Dave Rolsky)
268 - From this release on, we'll try to maintain a list of
269 conflicting modules, and warn you if you have one
270 installed. For example, this release conflicts with ...
271 - MooseX::Singleton <= 0.11
272 - MooseX::Params::Validate <= 0.05
275 In general, we try to not break backwards compatibility for
276 most Moose users, but MooseX modules and other code which
277 extends Moose's metaclasses is often affected by very small
278 changes in the Moose internals.
280 * Moose::Meta::Method::Delegation
281 * Moose::Meta::Attribute
282 - Delegation methods now have their own method class. (Dave
285 * Moose::Meta::TypeConstraint::Parameterizable
286 - Added a new method 'parameterize' which is basically a factory
287 for the containing constraint. This makes it easier to create
288 new types of parameterized constraints. (jnapiorkowski)
290 * Moose::Meta::TypeConstraint::Union
291 - Changed the way Union types canonicalize their names to follow
292 the normalized TC naming rules, which means we strip all
293 whitespace. (jnapiorkowski)
295 * Moose::Util::TypeConstraints
296 - Parameter and Union args are now sorted, this makes Int|Str
297 the same constraint as Str|Int. (jnapiorkowski)
298 - Changes to the way Union types are parsed to more correctly
299 stringify their names. (jnapiorkowski)
300 - When creating a parameterized type, we now use the new
301 parameterize method. (jnapiorkowski)
302 - Incoming type constraint strings are now normalized to remove
303 all whitespace differences. (jnapiorkowski)
304 - Changed the way we parse type constraint strings so that we now
305 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
306 constraints. This lays the foundation for more flexible type
307 constraint implementations.
309 * Tests and docs for all the above. (jnapiorkowski)
313 - Moose::Exporter will no longer remove a subroutine that the
314 exporting package re-exports. Moose re-exports the
315 Carp::confess function, among others. The reasoning is that we
316 cannot know whether you have also explicitly imported those
317 functions for your own use, so we err on the safe side and
318 always keep them. (Dave Rolsky)
319 - added tests for this (rafl)
322 - Changes to how we fix metaclass compatibility that are much
323 too complicated to go into. The summary is that Moose is much
324 less likely to complain about metaclass incompatibility
325 now. In particular, if two metaclasses differ because
326 Moose::Util::MetaRole was used on the two corresponding
327 classes, then the difference in roles is reconciled for the
328 subclass's metaclass. (Dave Rolsky)
329 - Squashed an warning in _process_attribute (thepler)
332 - throw exceptions (sooner) for invalid attribute names (thepler)
333 - added tests for this (thepler)
335 * Moose::Util::MetaRole
336 - If you explicitly set a constructor or destructor class for a
337 metaclass object, and then applied roles to the metaclass,
338 that explicitly set class would be lost and replaced with the
342 * Moose::Meta::Attribute
343 * Moose::Meta::Method
346 * Moose::Error::Default
347 * Moose::Error::Croak
348 * Moose::Error::Confess
349 - All instances of confess() changed to use overridable
350 C<throw_error> method. This method ultimately calls a class
351 constructor, and you can change the class being called. In
352 addition, errors now pass more information than just a string.
353 The default C<error_class> behaves like C<Carp::confess>, so
354 the behavior is not visibly different for end users.
356 0.57 Wed September 3, 2008
358 - A new bit of doc intended to introduce folks familiar with
359 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
362 - Shows examples of two classes, each done first with and then
363 without Moose. This makes a nice parallel to
364 Moose::Intro. (Dave Rolsky)
366 * Moose::Util::TypeConstraints
367 - Fixed a bug in find_or_parse_type_constraint so that it
368 accepts a Moose::Meta::TypeConstraint object as the parent
369 type, not just a name (jnapiorkowski)
370 - added tests (jnapiorkowski)
373 - If Sub::Name was not present, unimporting failed to actually
374 remove some sugar subs, causing test failures (Dave Rolsky)
376 0.56 Mon September 1, 2008
377 For those not following the series of dev releases, there are
378 several major changes in this release of Moose.
379 ! Moose::init_meta should now be called as a method. See the
382 - Major performance improvements by nothingmuch.
384 - New modules for extension writers, Moose::Exporter and
385 Moose::Util::MetaRole by Dave Rolsky.
387 - Lots of doc improvements and additions, especially in the
392 * Removed all references to the experimental-but-no-longer-needed
393 Moose::Meta::Role::Application::ToMetaclassInstance.
395 * Require Class::MOP 0.65.
397 0.55_04 Sat August 30, 2008
398 * Moose::Util::MetaRole
399 * Moose::Cookbook::Extending::Recipe2
400 - This simplifies the application of roles to any meta class, as
401 well as the base object class. Reimplemented metaclass traits
402 using this module. (Dave Rolsky)
404 * Moose::Cookbook::Extending::Recipe1
405 - This a new recipe, an overview of various ways to write Moose
406 extensions (Dave Rolsky)
408 * Moose::Cookbook::Extending::Recipe3
409 * Moose::Cookbook::Extending::Recipe4
410 - These used to be Extending::Recipe1 and Extending::Recipe2,
413 0.55_03 Fri August 29, 2008
414 * No changes from 0.55_02 except increasing the Class::MOP
415 dependency to 0.64_07.
417 0.55_02 Fri August 29, 2008
418 * Makefile.PL and Moose.pm
419 - explicitly require Perl 5.8.0+ (Dave Rolsky)
421 * Moose::Util::TypeConstraints
422 - Fix warnings from find_type_constraint if the type is not
425 * Moose::Meta::TypeConstraint
426 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
427 return false if the type you specify cannot be found in the
428 type registry, rather than throwing an unhelpful and
429 coincidental exception. (t0m).
430 - added docs & test for this (t0m)
432 * Moose::Meta::TypeConstraint::Registry
433 - add_type_constraint now throws an exception if a parameter is
435 - added docs & test for this (t0m)
437 * Moose::Cookbook::FAQ
438 - Added a faq entry on the difference between "role" and "trait"
442 - Fixed a bug that caused role composition to not see a required
443 method when that method was provided by another role being
444 composed at the same time. (Dave Rolsky)
445 - test and bug finding (tokuhirom)
447 0.55_01 Wed August 20, 2008
449 !! Calling Moose::init_meta as a function is now !!
450 !! deprecated. Please see the Moose.pm docs for details. !!
452 * Moose::Meta::Method::Constructor
453 - Fix inlined constructor so that values produced by default
454 or builder methods are coerced as required. (t0m)
455 - added test for this (t0m)
457 * Moose::Meta::Attribute
458 - A lazy attribute with a default or builder did not attempt to
459 coerce the default value. The immutable code _did_
461 - added test for this (t0m)
464 - This is a new helper module for writing "Moose-alike"
465 modules. This should make the lives of MooseX module authors
466 much easier. (Dave Rolsky)
469 * Moose::Cookbook::Meta::Recipe5
470 - Implemented metaclass traits (and wrote a recipe for it):
472 use Moose -traits => 'Foo'
474 This should make writing small Moose extensions a little
477 * Moose::Cookbook::Basics::Recipe1
478 - Removed any examples of direct hashref access, and applied an
479 editorial axe to reduce verbosity. (Dave Rolsky)
481 * Moose::Cookbook::Basics::Recipe1
482 - Also applied an editorial axe here. (Dave Rolsky)
485 * Moose::Cookbook::Extending::Recipe1
486 * Moose::Cookbook::Extending::Recipe2
487 - Rewrote extending and embedding moose documentation and
488 recipes to use Moose::Exporter (Dave Rolsky)
492 - These two modules now warn when you load them from the main
493 package "main" package, because we will not export sugar to
494 main. Previously it just did nothing. (Dave Rolsky)
497 - Now provide an init_meta method just like Moose.pm, and you
498 can call this to provide an alternate role metaclass. (Dave
499 Rolsky and nothingmuch)
500 - get_method_map now respects the package cache flag (nothingmuch)
503 - Two new methods - add_method and wrap_method_body
507 - Optimizations including allowing constructors to accept hash
508 refs, making many more classes immutable, and making
509 constructors immutable. (nothingmuch)
511 0.55 Sun August 3, 2008
512 * Moose::Meta::Attribute
513 - breaking down the way 'handles' methods are
514 created so that the process can be more easily
515 overridden by subclasses (stevan)
517 * Moose::Meta::TypeConstraint
518 - fixing what is passed into a ->message with
519 the type constraints (RT #37569)
520 - added tests for this (Charles Alderman)
522 * Moose::Util::TypeConstraints
523 - fix coerce to accept anon types like subtype can (mst)
526 - reorganized the recipes into sections - Basics, Roles, Meta,
527 Extending - and wrote abstracts for each section (Dave Rolsky)
529 * Moose::Cookbook::Basics::Recipe10
530 - A new recipe that demonstrates operator overloading
531 in combination with Moose. (bluefeet)
533 * Moose::Cookbook::Meta::Recipe1
534 - an introduction to what meta is and why you'd want to make
535 your own metaclass extensions (Dave Rolsky)
537 * Moose::Cookbook::Meta::Recipe4
538 - a very simple metaclass example (Dave Rolsky)
540 * Moose::Cookbook::Extending::Recipe1
541 - how to write a Moose-alike module to use your own object base
544 * Moose::Cookbook::Extending::Recipe2
545 - how to write modules with an API just like C<Moose.pm> (Dave
549 - Tons of fixes, both syntactical and grammatical (Dave
550 Rolsky, Paul Fenwick)
552 0.54 Thurs. July 3, 2008
553 ... this is not my day today ...
555 * Moose::Meta::Attribute
556 - fixed legal_options_for_inheritance such that
557 clone_and_inherit options still works for
558 Class::MOP::Attribute objects and therefore
559 does not break MooseX::AttributeHelpers
562 0.53 Thurs. July 3, 2008
563 * Whoops, I guess I should run 'make manifest' before
564 actually releasing the module. No actual changes
565 in this release, except the fact that it includes
566 the changes that I didn't include in the last
569 0.52 Thurs. July 3, 2008
571 - added "FEATURE REQUESTS" section to the Moose docs
572 to properly direct people (stevan) (RT #34333)
573 - making 'extends' croak if it is passed a Role since
574 this is not ever something you want to do
575 (fixed by stevan, found by obra)
576 - added tests for this (stevan)
579 - adding support for DOES (as in UNIVERSAL::DOES)
581 - added test for this
583 * Moose::Meta::Attribute
584 - added legal_options_for_inheritance (wreis)
585 - added tests for this (wreis)
587 * Moose::Cookbook::Snacks::*
588 - removed some of the unfinished snacks that should
589 not have been released yet. Added some more examples
590 to the 'Keywords' snack. (stevan)
592 * Moose::Cookbook::Style
593 - added general Moose "style guide" of sorts to the
594 cookbook (nothingmuch) (RT #34335)
597 - added more BUILDARGS tests (stevan)
599 0.51 Thurs. Jun 26, 2008
601 - add unimport so "no Moose::Role" actually does
604 * Moose::Meta::Role::Application::ToRole
605 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
606 order to provide its own implementation, that method still got
607 added to the list of required methods for consumers of
608 RoleB. Now an aliased method is only added to the list of
609 required methods if the role doing the aliasing does not
610 provide its own implementation. See Recipe 11 for an example
611 of all this. (Dave Rolsky)
612 - added tests for this
614 * Moose::Meta::Method::Constructor
615 - when a single argument that wasn't a hashref was provided to
616 an immutabilized constructor, the error message was very
617 unhelpful, as opposed to the non-immutable error. Reported by
619 - added test for this (Dave Rolsky)
621 * Moose::Meta::Attribute
622 - added support for meta_attr->does("ShortAlias") (sartak)
623 - added tests for this (sartak)
624 - moved the bulk of the `handles` handling to the new
625 install_delegation method (Stevan)
628 - Added BUILDARGS, a new step in new()
630 * Moose::Meta::Role::Application::RoleSummation
631 - fix typos no one ever sees (sartak)
633 * Moose::Util::TypeConstraints
634 * Moose::Meta::TypeConstraint
635 * Moose::Meta::TypeCoercion
636 - Attempt to work around the ??{ } vs. threads issue
638 - Some null_constraint optimizations
640 0.50 Thurs. Jun 11, 2008
641 - Fixed a version number issue by bumping all modules
644 0.49 Thurs. Jun 11, 2008
645 !! This version now approx. 20-25% !!
646 !! faster with new Class::MOP 0.59 !!
648 * Moose::Meta::Attribute
649 - fixed how the is => (ro|rw) works with
650 custom defined reader, writer and accessor
652 - added docs for this (TODO).
653 - added tests for this (Thanks to Penfold)
654 - added the custom attribute alias for regular
655 Moose attributes which is "Moose"
656 - fix builder and default both being used
661 Moose::Meta::Attribute
663 Moose::Meta::Role::Composite
664 Moose::Util::TypeConstraints
665 - switched usage of reftype to ref because
669 - changing add_package_symbol to use the new
673 - fixed how DEMOLISHALL is called so that it
674 can be overrided in subclasses (thanks to Sartak)
675 - added test for this (thanks to Sartak)
677 * Moose::Util::TypeConstraints
678 - move the ClassName type check code to
679 Class::MOP::is_class_loaded (thanks to Sartak)
681 * Moose::Cookbook::Recipe11
682 - add tests for this (thanks to tokuhirom)
684 0.48 Thurs. May 29, 2008
685 (early morning release engineering)--
687 - fixing the version in Moose::Meta::Method::Destructor
688 which was causing the indexer to choke
690 0.47 Thurs. May 29, 2008
691 (late night release engineering)--
693 - fixing the version is META.yml, no functional
694 changes in this release
696 0.46 Wed. May 28, 2008
697 !! This version now approx. 20-25% !!
698 !! faster with new Class::MOP 0.57 !!
701 - some optimizations of the &initialize method
702 since it is called so often by &meta
706 - now use the get_all_package_symbols from the
707 updated Class::MOP, test suite is now 10 seconds
710 * Moose::Meta::Method::Destructor
711 - is_needed can now also be called as a class
712 method for immutablization to check if the
713 destructor object even needs to be created
716 * Moose::Meta::Method::Destructor
717 Moose::Meta::Method::Constructor
718 - added more descriptive error message to help
719 keep people from wasting time tracking an error
720 that is easily fixed by upgrading.
722 0.45 Saturday, May 24, 2008
724 - Because of work in Class::MOP 0.57, all
725 XS based functionality is now optional
726 and a Pure Perl version is supplied
727 - the CLASS_MOP_NO_XS environment variable
728 can now be used to force non-XS versions
730 - several of the packages have been tweaked
731 to take care of this, mostly we added
732 support for the package_name and name
733 variables in all the Method metaclasses
734 - before/around/after method modifiers now
735 support regexp matching of names
736 (thanks to Takatoshi Kitano)
737 - tests added for this
738 - NOTE: this only works for classes, it
739 is currently not supported in roles,
740 but, ... patches welcome
741 - All usage of Carp::confess have been replaced
742 by Carp::croak in the "keyword" functions since
743 the stack trace is usually not helpful
746 - All usage of Carp::confess have been replaced
747 by Carp::croak in the "keyword" functions since
748 the stack trace is usually not helpful
749 - The 'has' keyword for roles now accepts the
750 same array ref form that Moose.pm does
751 (has [qw/foo bar/] => (is => 'rw', ...))
752 - added test for this
754 * Moose::Meta::Attribute
755 - trigger on a ro-attribute is no longer an
756 error, as it's useful to trigger off of the
760 - added same 'add_package_symbol' fix as in
764 - does_role now handles non-Moose classes
766 - added tests for this
767 - added the 'add_method_modifier' function
768 (thanks to Takatoshi Kitano)
770 * Moose::Util::TypeConstraints
771 - subtypes of parameterizable types now are
772 themselves parameterizable types
774 * Moose::Meta::Method::Constructor
775 - fixed bug where trigger was not being
776 called by the inlined immutable
778 - added test for this (thanks to Caelum)
780 * Moose::Meta::Role::Application::ToInstance
781 - now uses the metaclass of the instance
782 (if possible) to create the anon-class
783 (thanks Jonathan Rockway)
785 * Moose::Cookbook::Recipe22
786 - added the meta-attribute trait recipe
790 - fixed hash-ordering test bug that was
791 causing occasional cpantester failures
792 - renamed the t/000_recipe/*.t tests to be
793 more descriptive (thanks to Sartak)
795 0.44 Sat. May 10, 2008
797 - made make_immutable warning cluck to
798 show where the error is (thanks mst)
801 - BUILDALL and DEMOLISHALL now call
802 ->body when looping through the
803 methods, to avoid the overloaded
805 - fixed issue where DEMOLISHALL was
806 eating the $@ values, and so not
807 working correctly, it still kind of
808 eats them, but so does vanilla perl
809 - added tests for this
811 * Moose::Cookbook::Recipe7
812 - added new recipe for immutable
813 functionality (thanks Dave Rolsky)
815 * Moose::Cookbook::Recipe9
816 - added new recipe for builder and
817 lazy_build (thanks Dave Rolsky)
819 * Moose::Cookbook::Recipe11
820 - added new recipe for method aliasing
821 and exclusion with Roles (thanks Dave Rolsky)
824 - fixed Win32 test failure (thanks spicyjack)
826 ~ removed Build.PL and Module::Build compat
827 since Module::Install has done that.
829 0.43 Wed. April, 30, 2008
831 drink more coffee before
832 doing release engineering
834 - whoops, forgot to do the smolder tests,
835 and we broke some of the custom meta-attr
836 modules. This fixes that.
838 0.42 Mon. April 28, 2008
839 - some bad tests slipped by, nothing else
840 changed in this release (cpantesters++)
842 - upped the Class::MOP dependency to 0.55
843 since we have tests which need the C3
846 0.41 Mon. April 28, 2008
847 ~~ numerous documentation updates ~~
849 - Changed all usage of die to Carp::croak for better
850 error reporting (initial patch by Tod Hagan)
853 - the make_immutable keyword is now deprecated, don't
854 use it in any new code and please fix your old code
855 as well. There will be 2 releases, and then it will
861 - refactored the way inner and super work to avoid
862 any method/@ISA cache penalty (nothingmuch)
865 - fixing &new_object to make sure trigger gets the
866 coerced value (spotted by Charles Alderman on the
868 - added test for this
870 * Moose::Meta::Method::Constructor
871 - immutable classes which had non-lazy attributes were calling
872 the default generating sub twice in the constructor. (bug
873 found by Jesse Luehrs, fixed by Dave Rolsky)
874 - added tests for this (Dave Rolsky)
875 - fix typo in initialize_body method (nothingmuch)
877 * Moose::Meta::Method::Destructor
878 - fix typo in initialize_body method (nothingmuch)
880 * Moose::Meta::Method::Overriden
881 Moose::Meta::Method::Augmented
882 - moved the logic for these into their own
883 classes (nothingmuch)
885 * Moose::Meta::Attribute
886 - inherited attributes may now be extended without
887 restriction on the type ('isa', 'does') (Sartak)
888 - added tests for this (Sartak)
889 - when an attribute property is malformed (such as lazy without
890 a default), give the name of the attribute in the error
892 - added the &applied_traits and &has_applied_traits methods
893 to allow introspection of traits
894 - added tests for this
895 - moved 'trait' and 'metaclass' argument handling to here from
897 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
898 '+foo' syntax) (nothingmuch)
899 - added tests for this (t0m)
902 - localize $@ inside DEMOLISHALL to avoid it
903 eating $@ (found by Ernesto)
904 - added test for this (thanks to Ernesto)
906 * Moose::Util::TypeConstraints
907 - &find_type_constraint now DWIMs when given an
908 type constraint object or name (nothingmuch)
909 - &find_or_create_type_constraint superseded with a number of more
911 - find_or_create_{isa,does}_type_constraint
912 - find_or_parse_type_constraint
914 * Moose::Meta::TypeConstraint
915 Moose::Meta::TypeConstraint::Class
916 Moose::Meta::TypeConstraint::Role
917 Moose::Meta::TypeConstraint::Enum
918 Moose::Meta::TypeConstraint::Union
919 Moose::Meta::TypeConstraint::Parameterized
920 - added the &equals method for comparing two type
921 constraints (nothingmuch)
922 - added tests for this (nothingmuch)
924 * Moose::Meta::TypeConstraint
925 - add the &parents method, which is just an alias to &parent.
926 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
928 * Moose::Meta::TypeConstraint::Class
929 - added the class attribute for introspection purposes
931 - added tests for this
933 * Moose::Meta::TypeConstraint::Enum
934 Moose::Meta::TypeConstraint::Role
935 - broke these out into their own classes (nothingmuch)
937 * Moose::Cookbook::Recipe*
938 - fixed references to test file locations in the POD
939 and updated up some text for new Moose features
943 - Added &resolve_metaclass_alias, a helper function for finding an actual
944 class for a short name (e.g. in the traits list)
946 0.40 Fri. March 14, 2008
947 - I hate Pod::Coverage
949 0.39 Fri. March 14, 2008
951 - documenting the use of '+name' with attributes
952 that come from recently composed roles. It makes
953 sense, people are using it, and so why not just
954 officially support it.
955 - fixing the 'extends' keyword so that it will not
956 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
959 - added the perl -Moose=+Class::Name feature to allow
960 monkeypatching of classes in one liners
963 - fixing the 'apply_all_roles' keyword so that it will not
964 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
967 - added ->create method which now supports roles (thanks to jrockway)
968 - added tests for this
969 - added ->create_anon_class which now supports roles and caching of
970 the results (thanks to jrockway)
971 - added tests for this
972 - made ->does_role a little more forgiving when it is
973 checking a Class::MOP era metaclasses.
975 * Moose::Meta::Role::Application::ToInstance
976 - it is now possible to pass extra params to be used when
977 a role is applied to an the instance (rebless_params)
978 - added tests for this
980 * Moose::Util::TypeConstraints
981 - class_type now accepts an optional second argument for a
982 custom message. POD anotated accordingly (groditi)
983 - added tests for this
984 - it is now possible to make anon-enums by passing 'enum' an
985 ARRAY ref instead of the $name => @values. Everything else
987 - added tests for this
990 - making test for using '+name' on attributes consumed
991 from a role, it works and makes sense too.
993 * Moose::Meta::Attribute
994 - fix handles so that it doesn't return nothing
995 when the method cannot be found, not sure why
996 it ever did this originally, this means we now
997 have slightly better support for AUTOLOADed
999 - added more delegation tests
1000 - adding ->does method to this so as to better
1001 support traits and their introspection.
1002 - added tests for this
1005 - localizing the Data::Dumper configurations so
1006 that it does not pollute others (RT #33509)
1007 - made ->does a little more forgiving when it is
1008 passed Class::MOP era metaclasses.
1010 0.38 Fri. Feb. 15, 2008
1011 * Moose::Meta::Attribute
1012 - fixed initializer to correctly do
1013 type checking and coercion in the
1015 - added tests for this
1018 - fixed some finicky tests (thanks to konobi)
1020 0.37 Thurs. Feb. 14, 2008
1022 - fixed some details in Moose::init_meta
1023 and its superclass handling (thanks thepler)
1024 - added tests for this (thanks thepler)
1025 - 'has' now dies if you don't pass in name
1027 - added the 'make_immutable' keyword as a shortcut
1030 * Moose::Meta::Class
1031 Moose::Meta::Method::Constructor
1032 Moose::Meta::Attribute
1033 - making (init_arg => undef) work here too
1034 (thanks to nothingmuch)
1036 * Moose::Meta::Attribute
1037 Moose::Meta::Method::Constructor
1038 Moose::Meta::Method::Accessor
1039 - make lazy attributes respect attr initializers (rjbs)
1040 - added tests for this
1042 * Moose::Util::TypeConstraints
1043 Moose::Util::TypeConstraints::OptimizedConstraints
1044 Moose::Meta::TypeConstraints
1045 Moose::Meta::Attribute
1046 Moose::Meta::Method::Constructor
1047 Moose::Meta::Method::Accessor
1048 - making type errors use the
1049 assigned message (thanks to Sartak)
1050 - added tests for this
1052 * Moose::Meta::Method::Destructor
1053 - making sure DESTROY gets inlined properly
1054 with successive DEMOLISH calls (thanks to manito)
1056 * Moose::Meta::Attribute
1057 Moose::Meta::Method::Accessor
1058 - fixed handling of undef with type constraints
1060 - added tests for this
1063 - added &get_all_init_args and &get_all_attribute_values
1064 (thanks to Sartak and nothingmuch)
1066 0.36 Sat. Jan. 26, 2008
1068 Moose::Meta::Attribute
1069 - role type tests now support when roles are
1070 applied to non-Moose classes (found by ash)
1071 - added tests for this (thanks to ash)
1072 - couple extra tests to boost code coverage
1074 * Moose::Meta::Method::Constructor
1075 - improved fix for handling Class::MOP attributes
1076 - added test for this
1078 * Moose::Meta::Class
1079 - handled the add_attribute($attribute_meta_object)
1081 - added test for this
1083 0.35 Tues. Jan. 22, 2008
1084 * Moose::Meta::Method::Constructor
1085 - fix to make sure even Class::MOP attributes
1086 are handled correctly (Thanks to Dave Rolsky)
1087 - added test for this (also Dave Rolsky)
1089 * Moose::Meta::Class
1090 - improved error message on _apply_all_roles,
1091 you should now use Moose::Util::apply_all_roles
1092 and you shouldnt have been using a _ prefixed
1093 method in the first place ;)
1095 0.34 Mon. Jan. 21, 2008
1096 ~~~ more misc. doc. fixes ~~~
1097 ~~ updated copyright dates ~~
1099 Moose is now a postmodern object system :)
1100 - (see the POD for details)
1102 * <<Role System Refactoring>>
1103 - this release contains a major reworking and
1104 cleanup of the role system
1105 - 100% backwards compat.
1106 - Role application now restructured into seperate
1107 classes based on type of applicants
1108 - Role summation (combining of more than one role)
1109 is much cleaner and anon-classes are no longer
1110 used in this process
1111 - new Composite role metaclass
1112 - runtime application of roles to instances
1113 is now more efficient and re-uses generated
1114 classes when applicable
1116 * <<New Role composition features>>
1117 - methods can now be excluded from a given role
1119 - methods can now be aliased to another name (and
1120 still retain the original as well)
1122 * Moose::Util::TypeConstraints::OptimizedConstraints
1123 - added this module (see above)
1125 * Moose::Meta::Class
1126 - fixed the &_process_attribute method to be called
1127 by &add_attribute, so that the API is now correct
1129 * Moose::Meta::Method::Accessor
1130 - fixed bug when passing a list of values to
1131 an accessor would get (incorrectly) ignored.
1132 Thanks to Sartak for finding this ;)
1133 - added tests for this (Sartak again)
1135 * Moose::Meta::Method::Accessor
1136 Moose::Meta::Method::Constructor
1137 Moose::Meta::Attribute
1138 Moose::Meta::TypeConstraint
1139 Moose::Meta::TypeCoercion
1140 - lots of cleanup of such things as:
1142 - type constraint handling
1143 - error handling/messages
1144 (thanks to nothingmuch)
1146 * Moose::Meta::TypeConstraint::Parameterizable
1147 - added this module to support the refactor
1148 in Moose::Meta::TypeConstraint::Parameterized
1150 * Moose::Meta::TypeConstraint::Parameterized
1151 - refactored how these types are handled so they
1152 are more generic and not confined to ArrayRef
1156 - shortened some file names for better VMS support (RT #32381)
1158 0.33 Fri. Dec. 14, 2007
1159 !! Moose now loads 2 x faster !!
1160 !! with new Class::MOP 0.49 !!
1162 ++ new oose.pm module to make command line
1163 Moose-ness easier (see POD docs for more)
1165 * Moose::Meta::Class
1167 - several tweaks to take advantage of the
1168 new method map caching in Class::MOP
1170 * Moose::Meta::TypeConstraint::Parameterized
1171 - allow subtypes of ArrayRef and HashRef to
1172 be used as a container (sartak)
1173 - added tests for this
1174 - basic support for coercion to ArrayRef and
1175 HashRef for containers (sartak)
1176 - added tests for this
1178 * Moose::Meta::TypeCoercion
1179 - coercions will now create subtypes as needed
1180 so you can now add coercions to parameterized
1181 types without having to explictly define them
1182 - added tests for this
1184 * Moose::Meta::Method::Accessor
1185 - allow subclasses to decide whether we need
1186 to copy the value into a new variable (sartak)
1188 0.32 Tues. Dec. 4, 2007
1189 * Moose::Util::TypeConstraints
1190 - fixing how subtype aliases of unions work
1191 they should inherit the parent's coercion
1192 - added tests for this
1193 - you can now define multiple coercions on
1194 a single type at different times instead of
1195 having to do it all in one place
1196 - added tests for this
1198 * Moose::Meta::TypeConstraint
1199 - there is now a default constraint of sub { 1 }
1200 instead of Moose::Util::TypeConstraints setting
1203 * Moose::Meta::TypeCoercion
1204 * Moose::Meta::TypeCoercion::Union
1205 - added the &has_coercion_for_type and
1206 &add_type_coercions methods to support the
1207 new features above (although you cannot add
1208 more type coercions for Union types)
1210 0.31 Mon. Nov. 26, 2007
1211 * Moose::Meta::Attribute
1212 - made the +attr syntax handle extending types with
1213 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1214 now works if the original foo is an ArrayRef.
1215 - added tests for this.
1216 - delegation now works even if the attribute does not
1217 have a reader method using the get_read_method_ref
1218 method from Class::MOP::Attribute.
1219 - added tests for this
1220 - added docs for this
1222 * Moose::Util::TypeConstraints
1223 - passing no "additional attribute info" to
1224 &find_or_create_type_constraint will no longer
1225 attempt to create an __ANON__ type for you,
1226 instead it will just return undef.
1227 - added docs for this
1229 0.30 Fri. Nov. 23, 2007
1230 * Moose::Meta::Method::Constructor
1231 -builder related bug in inlined constructor. (groditi)
1233 * Moose::Meta::Method::Accessor
1234 - genereate unnecessary calls to predicates and refactor
1235 code generation for runtime speed (groditi)
1237 * Moose::Util::TypeConstraints
1238 - fix ClassName constraint to introspect symbol table (mst)
1239 - added more tests for this (mst)
1240 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1241 with work correctly.
1242 - added tests for this
1245 - adding the link to Recipie 11 (written by Sartak)
1246 - adding test for SYNOPSIS code
1249 - New tests for builder bug. Upon instantiation, if an
1250 attribute had a builder, no value and was not lazy the
1251 builder default was not getting run, oops. (groditi)
1253 0.29 Tues. Nov. 13, 2007
1254 * Moose::Meta::Attribute
1255 - Fix error message on missing builder method (groditi)
1257 * Moose::Meta::Method::Accessor
1258 - Fix error message on missing builder method (groditi)
1261 - Add test to check for the correct error message when
1262 builder method is missing (groditi)
1264 0.28 Tues. Nov. 13, 2007
1265 - 0.27 packaged incorrectly (groditi)
1267 0.27 Tues. Nov. 13, 2007
1268 * Moose::Meta::Attribute
1269 - Added support for the new builder option (groditi)
1270 - Added support for lazy_build option (groditi)
1271 - Changed slot initialization for predicate changes (groditi)
1273 * Moose::Meta::Method::Accessor
1274 - Added support for lazy_build option (groditi)
1275 - Fix inline methods to work with corrected predicate
1278 * Moose::Meta::Method::Constructor
1279 - Added support for lazy_build option (groditi)
1282 - tests for builder and lazy_build (groditi)
1284 * fixing some misc. bits in the docs that
1285 got mentioned on CPAN Forum & perlmonks
1288 - fixed how required methods are handled
1289 when they encounter overriden or modified
1290 methods from a class (thanks to confound).
1291 - added tests for this
1293 * Moose::Util::TypeConstraint
1294 - fixed the type notation parser so that
1295 the | always creates a union and so is
1296 no longer a valid type char (thanks to
1297 konobi, mugwump and #moose for working
1299 - added more tests for this
1301 0.26 Thurs. Sept. 27, 2007
1304 * Parameterized Types
1305 We now support parameterized collection types, such as:
1306 ArrayRef[Int] # array or integers
1307 HashRef[Object] # a hash with object values
1308 They can also be nested:
1309 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1310 And work with the type unions as well:
1311 ArrayRef[Int | Str] # array of integers of strings
1313 * Better Framework Extendability
1314 Moose.pm is now "extendable" such that it is now much
1315 easier to extend the framework and add your own keywords
1316 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1317 section of the Moose.pm docs.
1320 In an effort to begin documenting some of the various
1321 details of Moose as well as some common idioms, we have
1322 created Moose::Cookbook::Snacks as a place to find
1323 small (easily digestable) nuggets of Moose code.
1326 ~ Several doc updates/cleanup thanks to castaway ~
1328 - converted build system to use Module::Install instead of
1329 Module::Build (thanks to jrockway)
1332 - added all the meta classes to the immutable list and
1333 set it to inline the accessors
1334 - fix import to allow Sub::Exporter like { into => }
1335 and { into_level => } (perigrin)
1336 - exposed and documented init_meta() to allow better
1337 embedding and extending of Moose (perigrin)
1340 - complete re-organization of the test suite
1341 - added some new tests as well
1342 - finally re-enabled the Moose::POOP test since
1343 the new version of DBM::Deep now works again
1346 * Moose::Meta::Class
1347 - fixed very odd and very nasty recursion bug with
1349 - added tests for this (eilara)
1351 * Moose::Meta::Attribute
1352 Moose::Meta::Method::Constructor
1353 Moose::Meta::Method::Accessor
1354 - fixed issue with overload::Overloaded getting called
1355 on non-blessed items. (RT #29269)
1356 - added tests for this
1358 * Moose::Meta::Method::Accessor
1359 - fixed issue with generated accessor code making
1360 assumptions about hash based classes (thanks to dexter)
1362 * Moose::Coookbook::Snacks
1363 - these are bits of documentation, not quite as big as
1364 Recipes but which have no clear place in the module docs.
1365 So they are Snacks! (horray for castaway++)
1367 * Moose::Cookbook::Recipe4
1368 - updated it to use the new ArrayRef[MyType] construct
1369 - updated the accompanying test as well
1371 +++ Major Refactor of the Type Constraint system +++
1372 +++ with new features added as well +++
1374 * Moose::Util::TypeConstraint
1375 - no longer uses package variable to keep track of
1376 the type constraints, now uses the an instance of
1377 Moose::Meta::TypeConstraint::Registry to do it
1378 - added more sophisticated type notation parsing
1380 - added tests for this
1382 * Moose::Meta::TypeConstraint
1383 - some minor adjustments to make subclassing easier
1384 - added the package_defined_in attribute so that we
1385 can track where the type constraints are created
1387 * Moose::Meta::TypeConstraint::Union
1388 - this is now been refactored to be a subclass of
1389 Moose::Meta::TypeConstraint
1391 * Moose::Meta::TypeCoercion::Union
1392 - this has been added to service the newly refactored
1393 Moose::Meta::TypeConstraint::Union and is itself
1394 a subclass of Moose::Meta::TypeCoercion
1396 * Moose::Meta::TypeConstraint::Parameterized
1397 - added this module (taken from MooseX::AttributeHelpers)
1398 to help construct nested collection types
1399 - added tests for this
1401 * Moose::Meta::TypeConstraint::Registry
1402 - added this class to keep track of type constraints
1404 0.25 Mon. Aug. 13, 2007
1406 - Documentation update to reference Moose::Util::TypeConstraints
1407 under 'isa' in 'has' for how to define a new type
1408 (thanks to shlomif).
1410 * Moose::Meta::Attribute
1411 - required attributes now will no longer accept undef
1412 from the constructor, even if there is a default and lazy
1413 - added tests for this
1414 - default subroutines must return a value which passes the
1416 - added tests for this
1418 * Moose::Meta::Attribute
1419 * Moose::Meta::Method::Constructor
1420 * Moose::Meta::Method::Accessor
1421 - type-constraint tests now handle overloaded objects correctly
1422 in the error message
1423 - added tests for this (thanks to EvanCarroll)
1425 * Moose::Meta::TypeConstraint::Union
1426 - added (has_)hand_optimized_constraint to this class so that
1427 it behaves as the regular Moose::Meta::TypeConstraint does.
1430 - large refactoring of this code
1431 - added several more tests
1432 - tests for subtle conflict resolition issues
1433 added, but not currently running
1436 * Moose::Cookbook::Recipe7
1437 - added new recipe for augment/inner functionality
1439 - added test for this
1442 - a formal definition of roles (still in progress)
1445 - utilities for easier working with Moose classes
1446 - added tests for these
1449 - This contains Moose specific test functions
1450 - added tests for these
1452 0.24 Tues. July 3, 2007
1453 ~ Some doc updates/cleanup ~
1455 * Moose::Meta::Attribute
1456 - added support for roles to be given as parameters
1457 to the 'handles' option.
1458 - added tests and docs for this
1459 - the has '+foo' attribute form now accepts changes to
1460 the lazy option, and the addition of a handles option
1461 (but not changing the handles option)
1462 - added tests and docs for this
1465 - required methods are now fetched using find_method_by_name
1466 so that required methods can come from superclasses
1467 - adjusted tests for this
1469 0.23 Mon. June 18, 2007
1470 * Moose::Meta::Method::Constructor
1471 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1472 * Moose::Meta::Class
1473 - Modify make_immutable to work with the new Class::MOP immutable
1474 mechanism + POD + very basic test (groditi)
1475 * Moose::Meta::Attribute
1476 - Fix handles to use goto() so that caller() comes out properly on
1477 the other side (perigrin)
1479 0.22 Thurs. May 31, 2007
1480 * Moose::Util::TypeConstraints
1481 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1482 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1483 prototypes for functions
1484 - added the ClassName type constraint, this checks for strings
1485 which will respond true to ->isa(UNIVERSAL).
1486 - added tests and docs for this
1487 - subtyping just in name now works correctly by making the
1488 default for where be { 1 }
1489 - added test for this
1491 * Moose::Meta::Method::Accessor
1492 - coerce and lazy now work together correctly, thanks to
1493 merlyn for finding this bug
1494 - tests added for this
1495 - fix reader presedence bug in Moose::Meta::Attribute + tests
1498 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1499 a HASH-ref and missed. This produces better error messages then
1500 having it die cause undef is not a HASH.
1501 - added tests for this
1503 0.21 Thursday, May 2nd, 2007
1505 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1506 - modified unimport to remove super and inner along with the rest
1507 - altered unimport tests to handle this
1510 - altered super export to populate SUPER_SLOT
1512 * Moose::Meta::Class
1513 - altered augment and override modifier application to use *_SLOT
1514 - modified tests for these to unimport one test class each to test
1517 - fixed issue where custom attribute metaclasses
1518 where not handled correctly in roles
1519 - added tests for this
1521 * Moose::Meta::Class
1522 - fixed issue where extending metaclasses with
1523 roles would blow up. Thanks to Aankhen`` for
1524 finding this insidious error, and it's solution.
1526 ~~ lots of spelling and grammer fixes in the docs,
1527 many many thanks to rlb3 and Aankhen for these :)
1529 0.20 Friday, April 6th, 2007
1530 >> I messed up the SKIP logic in one test
1531 so this release is just to fix that.
1534 - 'has' now also accepts an ARRAY ref
1535 to create multiple attrs (see docs)
1536 (thanks to konobi for this)
1537 - added tests and docs
1539 0.19 Thurs. April 5th, 2007
1540 ~~ More documentation updates ~~
1542 * Moose::Util::TypeConstraints
1543 - 'type' now supports messages as well
1544 thanks to phaylon for finding this
1545 - added tests for this
1546 - added &list_all_type_constraints and
1547 &list_all_builtin_type_constraints
1548 functions to facilitate introspection.
1550 * Moose::Meta::Attribute
1551 - fixed regexp 'handles' declarations
1552 to build the list of delegated methods
1553 correctly (and not override important
1554 things like &new) thanks to ashleyb
1556 - added tests and docs for this
1557 - added the 'documentation' attributes
1558 so that you can actually document your
1559 attributes and inspect them through the
1561 - added tests and docs for this
1563 * Moose::Meta::Class
1564 - when loading custom attribute metaclasses
1565 it will first look in for the class in the
1566 Moose::Meta::Attribute::Custom::$name, and
1567 then default to just loading $name.
1568 - added tests and docs for this
1570 * Moose::Meta::TypeConstraint
1571 - type constraints now stringify to their names.
1572 - added test for this
1575 - added tests to assure we work with Module::Refresh
1576 - added stricter test skip logic in the Moose POOP
1577 test, ask Rob Kinyon why.
1578 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1580 0.18 Sat. March 10, 2007
1581 ~~ Many, many documentation updates ~~
1584 - We now use Class::MOP::load_class to
1586 - added tests to show types and subtypes
1587 working with Declare::Constraints::Simple
1588 and Test::Deep as constraint engines.
1591 !! You must have Class::MOP 0.37_001 !!
1592 !! for this developer release to work !!
1594 This release was primarily adding the immutable
1595 feature to Moose. An immutable class is one which
1596 you promise not to alter. When you set the class
1597 as immutable it will perform various bits of
1598 memoization and inline certain part of the code
1599 (constructors, destructors and accessors). This
1600 minimizes (and in some cases totally eliminates)
1601 one of Moose's biggest performance hits. This
1602 feature is not on by default, and is 100% optional.
1603 It has several configurable bits as well, so you
1604 can pick and choose to your specific needs.
1606 The changes involved in this were fairly wide and
1607 highly specific, but 100% backwards compatible, so
1608 I am not going to enumerate them here. If you are
1609 truely interested in what was changed, please do
1612 0.17 Tues. Nov. 14, 2006
1613 * Moose::Meta::Method::Accessor
1614 - bugfix for read-only accessors which
1615 are have a type constraint and lazy.
1616 Thanks to chansen for finding it.
1618 0.16 Tues. Nov. 14, 2006
1620 There are some speed improvements in this release,
1621 but they are only the begining, so stay tuned.
1624 - BUILDALL and DEMOLISHALL no longer get
1625 called unless they actually need to be.
1626 This gave us a signifigant speed boost
1627 for the cases when there is no BUILD or
1628 DEMOLISH method present.
1630 * Moose::Util::TypeConstraints
1631 * Moose::Meta::TypeConstraint
1632 - added an 'optimize_as' option to the
1633 type constraint, which allows for a
1634 hand optimized version of the type
1635 constraint to be used when possible.
1636 - Any internally created type constraints
1637 now provide an optimized version as well.
1639 0.15 Sun. Nov. 5, 2006
1641 This version of Moose *must* have Class::MOP 0.36 in order
1642 to work correctly. A number of small internal tweaks have
1643 been made in order to be compatible with that release.
1645 * Moose::Util::TypeConstraints
1646 - added &unimport so that you can clean out
1647 your class namespace of these exported
1650 * Moose::Meta::Class
1651 - fixed minor issue which occasionally
1652 comes up during global destruction
1654 - moved Moose::Meta::Method::Overriden into
1658 - moved Moose::Meta::Role::Method into
1661 * Moose::Meta::Attribute
1662 - changed how we do type checks so that
1663 we reduce the overall cost, but still
1666 - moved accessor generation methods to
1667 Moose::Meta::Method::Accessor to
1668 conform to the API changes from
1671 * Moose::Meta::TypeConstraint
1672 - changed how constraints are compiled
1673 so that we do less recursion and more
1674 iteration. This makes the type check
1676 - moved Moose::Meta::TypeConstraint::Union
1679 * Moose::Meta::Method::Accessor
1680 - created this from methods formerly found in
1681 Moose::Meta::Attribute
1683 * Moose::Meta::Role::Method
1684 - moved this from Moose::Meta::Role
1686 * Moose::Meta::Method::Overriden
1687 - moved this from Moose::Meta::Class
1689 * Moose::Meta::TypeConstraint::Union
1690 - moved this from Moose::Meta::TypeConstraint
1692 0.14 Mon. Oct. 9, 2006
1694 * Moose::Meta::Attribute
1695 - fixed lazy attributes which were not getting
1696 checked with the type constraint (thanks ashley)
1697 - added tests for this
1698 - removed the over-enthusiastic DWIMery of the
1699 automatic ArrayRef and HashRef defaults, it
1700 broke predicates in an ugly way.
1701 - removed tests for this
1703 0.13 Sat. Sept. 30, 2006
1705 This version of Moose *must* have Class::MOP 0.35 in order
1706 to work correctly. A number of small internal tweaks have
1707 been made in order to be compatible with that release.
1710 - Removed the use of UNIVERSAL::require to be a better
1711 symbol table citizen and remove a dependency
1712 (thanks Adam Kennedy)
1714 **~~ removed experimental & undocumented feature ~~**
1715 - commented out the 'method' and 'self' keywords, see the
1716 comments for more info.
1719 - added a FAQ and WTF files to document frequently
1720 asked questions and common problems
1722 * Moose::Util::TypeConstraints
1723 - added GlobRef and FileHandle type constraint
1724 - added tests for this
1726 * Moose::Meta::Attribute
1727 - if your attribute 'isa' ArrayRef of HashRef, and you have
1728 not explicitly set a default, then make the default DWIM.
1729 This will also work for subtypes of ArrayRef and HashRef
1731 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1732 - new test added for this (thanks to ashley)
1735 - added basic support for runtime role composition
1736 but this is still *highly experimental*, so feedback
1737 is much appreciated :)
1738 - added tests for this
1740 * Moose::Meta::TypeConstraint
1741 - the type constraint now handles the coercion process
1742 through delegation, this is to support the coercion
1745 * Moose::Meta::TypeConstraint::Union
1746 - it is now possible for coercions to be performed
1748 - added tests for this (thanks to konobi)
1750 * Moose::Meta::TypeCoercion
1751 - properly capturing error when type constraint
1755 - Scalar::Util 1.18 is bad on Win32, so temporarily
1756 only require version 1.17 for Win32 and cygwin.
1757 (thanks Adam Kennedy)
1759 0.12 Sat. Sept. 1, 2006
1761 - Recipe5 (subtypes & coercion) has been written
1764 - fixed "bad meta" error message to be more descriptive
1765 - fixed &unimport to not remove the &inner and &super
1766 keywords because we need to localize them.
1767 - fixed number of spelling/grammer issues, thanks Theory :)
1769 **~~ experimental & undocumented feature ~~**
1770 - added the method and self keywords, they are basically
1771 just sugar, and they may not stay around.
1774 - added &dump method to easily Data::Dumper
1777 * Moose::Meta::TypeConstraint
1778 - added the &is_a_type_of method to check both the current
1779 and the subtype of a method (similar to &isa with classes)
1782 - this is now a subclass of Class::MOP::Module, and no longer
1783 creates the _role_meta ugliness of before.
1784 - fixed tests to reflect this change
1786 0.11 Wed. July 12, 2006
1788 - added an &unimport method to remove all the keywords
1789 that Moose will import, simply add 'no Moose' to the
1790 bottom of your class file.
1793 - fixed some test failures caused by a forgotten test
1796 0.10 Thurs. July 6, 2006
1798 - improved error message when loading modules so
1799 it is less confusing when you load a role.
1800 - added &calculate_all_roles method to
1801 Moose::Meta::Class and Moose::Meta::Role
1804 This module has been tested against Class::MOP 0.30
1805 but it does not yet utilize the optimizations
1806 it makes available. Stay tuned for that ;)
1808 0.09_03 Fri. June 23, 2006
1809 ++ DEVELOPER RELEASE ++
1811 - 'use strict' and 'use warnings' are no longer
1812 needed in Moose classes, Moose itself will
1813 turn them on for you.
1814 - added tests for this
1815 - moved code from exported subs to private methods
1816 in Moose::Meta::Class
1819 - as with Moose, strict and warnings are
1820 automatically turned on for you.
1821 - added tests for this
1824 - now handles an edge case for override errors
1825 - added tests for this
1826 - added some more edge case tests
1828 0.09_02 Tues. May 16, 2006
1829 ++ DEVELOPER RELEASE ++
1831 - added prototypes to the exported subs
1835 - added prototypes to the exported subs
1838 * Moose::Util::TypeConstraints
1839 - cleaned up prototypes for the subs
1842 0.09_01 Fri. May 12, 2006
1843 ++ DEVELOPER RELEASE ++
1844 - This release works in combination with
1845 Class::MOP 0.29_01, it is a developer
1846 release because it uses the a new
1847 instance sub-protocol and a fairly
1848 complete Role implementation. It has
1849 not yet been optimized, so it slower
1850 the the previous CPAN version. This
1851 release also lacks good updated docs,
1852 the official release will have updated docs.
1855 - refactored the keyword exports
1856 - 'with' now checks Role validaity and
1857 accepts more than one Role at a time
1858 - 'extends' makes metaclass adjustments as
1859 needed to ensure metaclass compatibility
1862 - refactored the keyword exports
1863 - 'with' now checks Role validaity and
1864 accepts more than one Role at a time
1866 * Moose::Util::TypeConstraints
1867 - added the 'enum' keyword for simple
1868 string enumerations which can be used as
1870 - see example of usage in t/202_example.t
1873 - more careful checking of params to new()
1876 - much work done on the role composition
1877 - many new tests for conflict detection
1878 and composition edge cases
1879 - not enough documentation, I suggest
1880 looking at the tests
1882 * Moose::Meta::Instance
1883 - added new Instance metaclass to support
1884 the new Class::MOP instance protocol
1886 * Moose::Meta::Class
1887 - some small changes to support the new
1889 - some small additions to support Roles
1891 * Moose::Meta::Attribute
1892 - some improvements to the accessor generation code
1894 - some small changes to support the new
1896 - (still somewhat) experimental delegation support
1897 with the 'handles' option
1898 - added several tests for this
1899 - no docs for this yet
1901 0.05 Thurs. April 27, 2006
1903 - keywords are now exported with Sub::Exporter
1904 thanks to chansen for this commit
1905 - has keyword now takes a 'metaclass' option
1906 to support custom attribute meta-classes
1907 on a per-attribute basis
1908 - added tests for this
1909 - the 'has' keyword not accepts inherited slot
1910 specifications (has '+foo'). This is still an
1911 experimental feature and probably not finished
1912 see t/038_attribute_inherited_slot_specs.t for
1913 more details, or ask about it on #moose
1914 - added tests for this
1917 - keywords are now exported with Sub::Exporter
1919 * Moose::Utils::TypeConstraints
1920 - reorganized the type constraint hierarchy, thanks
1921 to nothingmuch and chansen for his help and advice
1923 - added some tests for this
1924 - keywords are now exported with Sub::Exporter
1925 thanks to chansen for this commit
1927 * Moose::Meta::Class
1928 - due to changes in Class::MOP, we had to change
1929 construct_instance (for the better)
1931 * Moose::Meta::Attribute
1932 - due to changes in Class::MOP, we had to add the
1933 initialize_instance_slot method (it's a good thing)
1935 * Moose::Meta::TypeConstraint
1936 - added type constraint unions
1937 - added tests for this
1938 - added the is_subtype_of predicate method
1939 - added tests for this
1941 0.04 Sun. April 16th, 2006
1943 - Roles can now consume other roles
1944 - added tests for this
1945 - Roles can specify required methods now with
1946 the requires() keyword
1947 - added tests for this
1950 - ripped out much of it's guts ,.. much cleaner now
1951 - added required methods and correct handling of
1952 them in apply() for both classes and roles
1953 - added tests for this
1954 - no longer adds a does() method to consuming classes
1955 it relys on the one in Moose::Object
1956 - added roles attribute and some methods to support
1957 roles consuming roles
1959 * Moose::Meta::Attribute
1960 - added support for triggers on attributes
1961 - added tests for this
1962 - added support for does option on an attribute
1963 - added tests for this
1965 * Moose::Meta::Class
1966 - added support for attribute triggers in the
1968 - added tests for this
1971 - Moose no longer creates a subtype for your class
1972 if a subtype of the same name already exists, this
1973 should DWIM in 99.9999% of all cases
1975 * Moose::Util::TypeConstraints
1976 - fixed bug where incorrect subtype conflicts were
1978 - added test for this
1981 - this class can now be extended with 'use base' if
1982 you need it, it properly loads the metaclass class now
1983 - added test for this
1985 0.03_02 Wed. April 12, 2006
1987 - you must now explictly use Moose::Util::TypeConstraints
1988 it no longer gets exported for you automatically
1991 - new() now accepts hash-refs as well as key/value lists
1992 - added does() method to check for Roles
1993 - added tests for this
1995 * Moose::Meta::Class
1996 - added roles attribute along with the add_role() and
1998 - added tests for this
2001 - now adds a does() method to consuming classes
2002 which tests the class's hierarchy for roles
2003 - added tests for this
2005 0.03_01 Mon. April 10, 2006
2007 - added new Role recipe (no content yet, only code)
2010 - added 'with' keyword for Role support
2011 - added test and docs for this
2012 - fixed subtype quoting bug
2013 - added test for this
2017 - added test and docs
2019 * Moose::Util::TypeConstraints
2020 - added the message keyword to add custom
2021 error messages to type constraints
2024 - the meta role to support Moose::Role
2025 - added tests and docs
2027 * Moose::Meta::Class
2028 - moved a number of things from Moose.pm
2029 to here, they should have been here
2032 * Moose::Meta::Attribute
2033 - moved the attribute option macros here
2034 instead of putting them in Moose.pm
2036 * Moose::Meta::TypeConstraint
2037 - added the message attributes and the
2039 - added tests and docs for this
2041 0.03 Thurs. March 30, 2006
2043 - added the Moose::Cookbook with 5 recipes,
2044 describing all the stuff Moose can do.
2047 - fixed an issue with &extends super class loading
2048 it now captures errors and deals with inline
2049 packages correctly (bug found by mst, solution
2051 - added super/override & inner/augment features
2052 - added tests and docs for these
2055 - BUILDALL now takes a reference of the %params
2056 that are passed to &new, and passes that to
2059 * Moose::Util::TypeConstraints
2060 - Type constraints now survive runtime reloading
2061 - added test for this
2063 * Moose::Meta::Class
2064 - fixed the way attribute defaults are handled
2065 during instance construction (bug found by chansen)
2067 * Moose::Meta::Attribute
2068 - read-only attributes now actually enforce their
2069 read-only-ness (this corrected in Class::MOP as
2072 0.02 Tues. March 21, 2006
2074 - many more tests, fixing some bugs and
2076 - &extends now loads the base module with
2078 - added UNIVERSAL::require to the
2081 - each new Moose class will also create
2082 and register a subtype of Object which
2083 correspond to the new Moose class.
2084 - the 'isa' option in &has now only
2085 accepts strings, and will DWIM in
2088 * Moose::Util::TypeConstraints
2089 - added type coercion features
2090 - added tests for this
2091 - added support for this in attributes
2092 and instance construction
2094 - type construction no longer creates a
2095 function, it registers the type instead.
2096 - added several functions to get the
2100 - BUILDALL and DEMOLISHALL were broken
2101 because of a mis-named hash key, Whoops :)
2103 * Moose::Meta::Attribute
2104 - adding support for coercion in the
2105 autogenerated accessors
2107 * Moose::Meta::Class
2108 - adding support for coercion in the
2109 instance construction
2111 * Moose::Meta::TypeConstraint
2112 * Moose::Meta::TypeCoercion
2113 - type constraints and coercions are now
2114 full fledges meta-objects
2116 0.01 Wed. March 15, 2006
2117 - Moooooooooooooooooose!!!