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 0.65 Thu, January 22, 2008
15 * Moose and Moose::Meta::Method::Overridden
16 - If an overridden method called super(), and then the
17 superclass's method (not overridden) _also_ called super(),
18 Moose went into an endless recursion loop. Test provided by
19 Chris Prather. (Dave Rolsky)
21 * Moose::Meta::TypeConstraint
22 - All methods are now documented. (gphat)
24 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
25 - Fixed some bogus failures that occurred because we tried to
26 validate filesystem paths in a very ad-hoc and
27 not-quite-correct way. (Dave Rolsky)
29 * Moose::Util::TypeConstraints
30 - Added maybe_type to exports. See docs for details. (rjbs)
33 - Added Moose::Util::TypeConstraints to the SEE ALSO
37 - Methods created via an attribute can now fulfill a "requires"
38 declaration for a role. (nothingmuch)
40 * Moose::Meta::Method::*
41 - Stack traces from inlined code will now report its line and
42 file as being in your class, as opposed to in Moose
45 0.64 Wed, December 31, 2008
46 * Moose::Meta::Method::Accessor
47 - Always inline predicate and clearer methods (Sartak)
49 * Moose::Meta::Attribute
50 - Support for parameterized traits (Sartak)
51 - verify_against_type_constraint method to avoid duplication
52 and enhance extensibility (Sartak)
55 - Tests (but no support yet) for parameterized traits (Sartak)
58 - Require Class::MOP 0.75+, which has the side effect of making
59 sure we work on Win32. (Dave Rolsky)
61 0.63 Mon, December 8, 2008
63 - Some small grammar tweaks and bug fixes in non-Moose example
66 0.62_02 Fri, December 5, 2008
67 * Moose::Meta::Role::Application::ToClass
68 - When a class does not provide all of a role's required
69 methods, the error thrown now mentions all of the missing
70 methods, as opposed to just the first one found. Requested by
71 Curtis Poe (RT #41119). (Dave Rolsky)
73 * Moose::Meta::Method::Constructor
74 - Moose will no longer inline a constructor for your class
75 unless it inherits its constructor from Moose::Object, and
76 will warn when it doesn't inline. If you want to force
77 inlining anyway, pass "replace_constructor => 1" to
78 make_immutable. Addresses RT #40968, reported by Jon
80 - The quoting of default values could be broken if the default
81 contained a single quote ('). Now we use quotemeta to escape
82 anything potentially dangerous in the defaults. (Dave Rolsky)
84 0.62_01 Wed, December 3, 2008
86 - use the method->execute API for BUILDALL
87 and DEMOLISHALL (Sartak)
89 * Moose::Util::TypeConstraints
90 - We now make all the type constraint meta classes immutable
91 before creating the default types provided by Moose. This
92 should make loading Moose a little faster. (Dave Rolsky)
94 0.62 Wed November 26, 2008
95 * Moose::Meta::Role::Application::ToClass
96 Moose::Meta::Role::Application::ToRole
97 - fixed issues where excluding and aliasing the
98 same methods for a single role did not work
99 right (worked just fine with multiple
101 - added test for this (stevan)
103 * Moose::Meta::Role::Application::RoleSummation
104 - fixed the error message when trying to compose
105 a role with a role it excludes (Sartak)
108 - Catch another case where recursion caused the value
109 of $CALLER to be stamped on (t0m)
110 - added test for this (t0m)
113 - Remove the make_immutable keyword, which has been
114 deprecated since April. It breaks metaclasses that
115 use Moose without no Moose (Sartak)
117 * Moose::Meta::Attribute
118 - Removing an attribute from a class now also removes delegation
119 (handles) methods installed for that attribute (t0m)
120 - added test for this (t0m)
122 * Moose::Meta::Method::Constructor
123 - An attribute with a default that looked like a number (but was
124 really a string) would accidentally be treated as a number
125 when the constructor was made immutable (perigrin)
126 - added test for this (perigrin)
129 - create method for constructing a role
131 - added test for this (Sartak)
132 - anonymous roles! (Sartak)
133 - added test for this (Sartak)
136 - more consistent error messages (Sartak)
138 * Moose::Cookbook::Roles::Recipe1
139 - attempt to explain why a role that just requires
140 methods is useful (Sartak)
142 0.61 Fri November 7, 2008
143 * Moose::Meta::Attribute
144 - When passing a role to handles, it will be loaded if necessary
148 - Method objects returned by get_method (and other methods)
149 Could end up being returned without an associated_metaclass
150 attribute. Removing get_method_map, which is provided by
151 Class::MOP::Class, fixed this. The Moose version did nothing
152 different from its parent except introduce a bug. (Dave Rolsky)
153 - added tests for this (jdv79)
156 - Added a $VERSION to all .pm files which didn't have one. Fixes
157 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
159 * Moose::Cookbook::Basics::Recipe4
160 * Moose::Cookbook::Basics::Recipe6
161 - These files had spaces on the first line of the SYNOPSIS, as
162 opposed to a totally empty line. According to RT #40432, this
163 confuses POD parsers. (Dave Rolsky)
165 0.60 Fri October 24, 2008
167 - Passing "-traits" when loading Moose caused the Moose.pm
168 exports to be broken. Reported by t0m. (Dave Rolsky)
169 - Tests for this bug. (t0m)
172 - Change resolve_metaclass alias to use the new
173 load_first_existing_class function. This makes it a lot
174 simpler, and also around 5 times faster. (t0m)
175 - Add caching to resolve_metaclass_alias, which gives an order
176 of magnitude speedup to things which repeatedly call the
177 Moose::Meta::Attribute->does method, notably MooseX::Storage
180 * Moose::Util::TypeConstraint
181 - Put back the changes for parameterized constraints that
182 shouldn't have been removed in 0.59. We still cannot parse
183 them, but MooseX modules can create them in some other
184 way. See the 0.58 changes for more details. (jnapiorkowski)
185 - Changed the way subtypes are created so that the job is
186 delegated to a type constraint parent. This clears up some
187 hardcoded checking and should allow correct subtypes of
188 Moose::Meta::Type::Constraint. Don't rely on this new API too
189 much (create_child_type) because it may go away in the
190 future. (jnapiorkowski)
192 * Moose::Meta::TypeConstraint::Union
193 - Type constraint names are sorted as strings, not numbers.
196 * Moose::Meta::TypeConstraint::Parameterizable
197 - New parameterize method. This can be used as a factory method
198 to make a new type constraint with a given parameterized
199 type. (jnapiorkowski)
200 - added tests (jnapiorkowski)
202 0.59 Tue October 14, 2008
204 - Add abridged documentation for builder/default/initializer/
205 predicate, and link to more details sections in
206 Class::MOP::Attribute. (t0m)
208 * Moose::Util::TypeConstraints
209 - removed prototypes from all but the &-based stuff (mst)
211 * Moose::Util::TypeConstraints
212 - Creating a anonymous subtype with both a constraint and a
213 message failed with a very unhelpful error, but should just
214 work. Reported by t0m. (Dave Rolsky)
217 - Some tests that used Test::Warn if it was available failed
218 with older versions of Test::Warn. Reported by Fayland. (Dave
220 - Test firing behavior of triggers in relation to builder/default/
222 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
223 kinds of supported type. (t0m)
226 - In create(), do not pass "roles" option to the superclass
227 - added related test that creates an anon metaclass with
230 * Moose::Meta::TypeConstraint::Class
231 * Moose::Meta::TypeConstraint::Role
232 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
233 other types (as per change in 0.55_02). (t0m)
235 * Moose::Meta::TypeConstraint::Registry
236 - Fix warning when dealing with unknown type names (t0m)
238 * Moose::Util::TypeConstraints
239 - Reverted changes from 0.58 related to handle parameterized
240 types. This caused random failures on BSD and Win32 systems,
241 apparently related to the regex engine. This means that Moose
242 can no longer parse structured type constraints like
243 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
244 supported in a slightly different way via MooseX::Types some
245 time in the future. (Dave Rolsky)
247 0.58 Sat September 20, 2008
248 !! This release has an incompatible change regarding !!
249 !! how roles add methods to a class !!
251 * Roles and role application
252 ! Roles now add methods by calling add_method, not
253 alias_method. They make sure to always provide a method
254 object, which will be cloned internally. This means that it is
255 now possible to track the source of a method provided by a
256 role, and even follow its history through intermediate roles.
258 This means that methods added by a role now show up when
259 looking at a class's method list/map. (Dave Rolsky)
262 - From this release on, we'll try to maintain a list of
263 conflicting modules, and warn you if you have one
264 installed. For example, this release conflicts with ...
265 - MooseX::Singleton <= 0.11
266 - MooseX::Params::Validate <= 0.05
269 In general, we try to not break backwards compatibility for
270 most Moose users, but MooseX modules and other code which
271 extends Moose's metaclasses is often affected by very small
272 changes in the Moose internals.
274 * Moose::Meta::Method::Delegation
275 * Moose::Meta::Attribute
276 - Delegation methods now have their own method class. (Dave
279 * Moose::Meta::TypeConstraint::Parameterizable
280 - Added a new method 'parameterize' which is basically a factory
281 for the containing constraint. This makes it easier to create
282 new types of parameterized constraints. (jnapiorkowski)
284 * Moose::Meta::TypeConstraint::Union
285 - Changed the way Union types canonicalize their names to follow
286 the normalized TC naming rules, which means we strip all
287 whitespace. (jnapiorkowski)
289 * Moose::Util::TypeConstraints
290 - Parameter and Union args are now sorted, this makes Int|Str
291 the same constraint as Str|Int. (jnapiorkowski)
292 - Changes to the way Union types are parsed to more correctly
293 stringify their names. (jnapiorkowski)
294 - When creating a parameterized type, we now use the new
295 parameterize method. (jnapiorkowski)
296 - Incoming type constraint strings are now normalized to remove
297 all whitespace differences. (jnapiorkowski)
298 - Changed the way we parse type constraint strings so that we now
299 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
300 constraints. This lays the foundation for more flexible type
301 constraint implementations.
303 * Tests and docs for all the above. (jnapiorkowski)
307 - Moose::Exporter will no longer remove a subroutine that the
308 exporting package re-exports. Moose re-exports the
309 Carp::confess function, among others. The reasoning is that we
310 cannot know whether you have also explicitly imported those
311 functions for your own use, so we err on the safe side and
312 always keep them. (Dave Rolsky)
313 - added tests for this (rafl)
316 - Changes to how we fix metaclass compatibility that are much
317 too complicated to go into. The summary is that Moose is much
318 less likely to complain about metaclass incompatibility
319 now. In particular, if two metaclasses differ because
320 Moose::Util::MetaRole was used on the two corresponding
321 classes, then the difference in roles is reconciled for the
322 subclass's metaclass. (Dave Rolsky)
323 - Squashed an warning in _process_attribute (thepler)
326 - throw exceptions (sooner) for invalid attribute names (thepler)
327 - added tests for this (thepler)
329 * Moose::Util::MetaRole
330 - If you explicitly set a constructor or destructor class for a
331 metaclass object, and then applied roles to the metaclass,
332 that explicitly set class would be lost and replaced with the
336 * Moose::Meta::Attribute
337 * Moose::Meta::Method
340 * Moose::Error::Default
341 * Moose::Error::Croak
342 * Moose::Error::Confess
343 - All instances of confess() changed to use overridable
344 C<throw_error> method. This method ultimately calls a class
345 constructor, and you can change the class being called. In
346 addition, errors now pass more information than just a string.
347 The default C<error_class> behaves like C<Carp::confess>, so
348 the behavior is not visibly different for end users.
350 0.57 Wed September 3, 2008
352 - A new bit of doc intended to introduce folks familiar with
353 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
356 - Shows examples of two classes, each done first with and then
357 without Moose. This makes a nice parallel to
358 Moose::Intro. (Dave Rolsky)
360 * Moose::Util::TypeConstraints
361 - Fixed a bug in find_or_parse_type_constraint so that it
362 accepts a Moose::Meta::TypeConstraint object as the parent
363 type, not just a name (jnapiorkowski)
364 - added tests (jnapiorkowski)
367 - If Sub::Name was not present, unimporting failed to actually
368 remove some sugar subs, causing test failures (Dave Rolsky)
370 0.56 Mon September 1, 2008
371 For those not following the series of dev releases, there are
372 several major changes in this release of Moose.
373 ! Moose::init_meta should now be called as a method. See the
376 - Major performance improvements by nothingmuch.
378 - New modules for extension writers, Moose::Exporter and
379 Moose::Util::MetaRole by Dave Rolsky.
381 - Lots of doc improvements and additions, especially in the
386 * Removed all references to the experimental-but-no-longer-needed
387 Moose::Meta::Role::Application::ToMetaclassInstance.
389 * Require Class::MOP 0.65.
391 0.55_04 Sat August 30, 2008
392 * Moose::Util::MetaRole
393 * Moose::Cookbook::Extending::Recipe2
394 - This simplifies the application of roles to any meta class, as
395 well as the base object class. Reimplemented metaclass traits
396 using this module. (Dave Rolsky)
398 * Moose::Cookbook::Extending::Recipe1
399 - This a new recipe, an overview of various ways to write Moose
400 extensions (Dave Rolsky)
402 * Moose::Cookbook::Extending::Recipe3
403 * Moose::Cookbook::Extending::Recipe4
404 - These used to be Extending::Recipe1 and Extending::Recipe2,
407 0.55_03 Fri August 29, 2008
408 * No changes from 0.55_02 except increasing the Class::MOP
409 dependency to 0.64_07.
411 0.55_02 Fri August 29, 2008
412 * Makefile.PL and Moose.pm
413 - explicitly require Perl 5.8.0+ (Dave Rolsky)
415 * Moose::Util::TypeConstraints
416 - Fix warnings from find_type_constraint if the type is not
419 * Moose::Meta::TypeConstraint
420 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
421 return false if the type you specify cannot be found in the
422 type registry, rather than throwing an unhelpful and
423 coincidental exception. (t0m).
424 - added docs & test for this (t0m)
426 * Moose::Meta::TypeConstraint::Registry
427 - add_type_constraint now throws an exception if a parameter is
429 - added docs & test for this (t0m)
431 * Moose::Cookbook::FAQ
432 - Added a faq entry on the difference between "role" and "trait"
436 - Fixed a bug that caused role composition to not see a required
437 method when that method was provided by another role being
438 composed at the same time. (Dave Rolsky)
439 - test and bug finding (tokuhirom)
441 0.55_01 Wed August 20, 2008
443 !! Calling Moose::init_meta as a function is now !!
444 !! deprecated. Please see the Moose.pm docs for details. !!
446 * Moose::Meta::Method::Constructor
447 - Fix inlined constructor so that values produced by default
448 or builder methods are coerced as required. (t0m)
449 - added test for this (t0m)
451 * Moose::Meta::Attribute
452 - A lazy attribute with a default or builder did not attempt to
453 coerce the default value. The immutable code _did_
455 - added test for this (t0m)
458 - This is a new helper module for writing "Moose-alike"
459 modules. This should make the lives of MooseX module authors
460 much easier. (Dave Rolsky)
463 * Moose::Cookbook::Meta::Recipe5
464 - Implemented metaclass traits (and wrote a recipe for it):
466 use Moose -traits => 'Foo'
468 This should make writing small Moose extensions a little
471 * Moose::Cookbook::Basics::Recipe1
472 - Removed any examples of direct hashref access, and applied an
473 editorial axe to reduce verbosity. (Dave Rolsky)
475 * Moose::Cookbook::Basics::Recipe1
476 - Also applied an editorial axe here. (Dave Rolsky)
479 * Moose::Cookbook::Extending::Recipe1
480 * Moose::Cookbook::Extending::Recipe2
481 - Rewrote extending and embedding moose documentation and
482 recipes to use Moose::Exporter (Dave Rolsky)
486 - These two modules now warn when you load them from the main
487 package "main" package, because we will not export sugar to
488 main. Previously it just did nothing. (Dave Rolsky)
491 - Now provide an init_meta method just like Moose.pm, and you
492 can call this to provide an alternate role metaclass. (Dave
493 Rolsky and nothingmuch)
494 - get_method_map now respects the package cache flag (nothingmuch)
497 - Two new methods - add_method and wrap_method_body
501 - Optimizations including allowing constructors to accept hash
502 refs, making many more classes immutable, and making
503 constructors immutable. (nothingmuch)
505 0.55 Sun August 3, 2008
506 * Moose::Meta::Attribute
507 - breaking down the way 'handles' methods are
508 created so that the process can be more easily
509 overridden by subclasses (stevan)
511 * Moose::Meta::TypeConstraint
512 - fixing what is passed into a ->message with
513 the type constraints (RT #37569)
514 - added tests for this (Charles Alderman)
516 * Moose::Util::TypeConstraints
517 - fix coerce to accept anon types like subtype can (mst)
520 - reorganized the recipes into sections - Basics, Roles, Meta,
521 Extending - and wrote abstracts for each section (Dave Rolsky)
523 * Moose::Cookbook::Basics::Recipe10
524 - A new recipe that demonstrates operator overloading
525 in combination with Moose. (bluefeet)
527 * Moose::Cookbook::Meta::Recipe1
528 - an introduction to what meta is and why you'd want to make
529 your own metaclass extensions (Dave Rolsky)
531 * Moose::Cookbook::Meta::Recipe4
532 - a very simple metaclass example (Dave Rolsky)
534 * Moose::Cookbook::Extending::Recipe1
535 - how to write a Moose-alike module to use your own object base
538 * Moose::Cookbook::Extending::Recipe2
539 - how to write modules with an API just like C<Moose.pm> (Dave
543 - Tons of fixes, both syntactical and grammatical (Dave
544 Rolsky, Paul Fenwick)
546 0.54 Thurs. July 3, 2008
547 ... this is not my day today ...
549 * Moose::Meta::Attribute
550 - fixed legal_options_for_inheritance such that
551 clone_and_inherit options still works for
552 Class::MOP::Attribute objects and therefore
553 does not break MooseX::AttributeHelpers
556 0.53 Thurs. July 3, 2008
557 * Whoops, I guess I should run 'make manifest' before
558 actually releasing the module. No actual changes
559 in this release, except the fact that it includes
560 the changes that I didn't include in the last
563 0.52 Thurs. July 3, 2008
565 - added "FEATURE REQUESTS" section to the Moose docs
566 to properly direct people (stevan) (RT #34333)
567 - making 'extends' croak if it is passed a Role since
568 this is not ever something you want to do
569 (fixed by stevan, found by obra)
570 - added tests for this (stevan)
573 - adding support for DOES (as in UNIVERSAL::DOES)
575 - added test for this
577 * Moose::Meta::Attribute
578 - added legal_options_for_inheritance (wreis)
579 - added tests for this (wreis)
581 * Moose::Cookbook::Snacks::*
582 - removed some of the unfinished snacks that should
583 not have been released yet. Added some more examples
584 to the 'Keywords' snack. (stevan)
586 * Moose::Cookbook::Style
587 - added general Moose "style guide" of sorts to the
588 cookbook (nothingmuch) (RT #34335)
591 - added more BUILDARGS tests (stevan)
593 0.51 Thurs. Jun 26, 2008
595 - add unimport so "no Moose::Role" actually does
598 * Moose::Meta::Role::Application::ToRole
599 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
600 order to provide its own implementation, that method still got
601 added to the list of required methods for consumers of
602 RoleB. Now an aliased method is only added to the list of
603 required methods if the role doing the aliasing does not
604 provide its own implementation. See Recipe 11 for an example
605 of all this. (Dave Rolsky)
606 - added tests for this
608 * Moose::Meta::Method::Constructor
609 - when a single argument that wasn't a hashref was provided to
610 an immutabilized constructor, the error message was very
611 unhelpful, as opposed to the non-immutable error. Reported by
613 - added test for this (Dave Rolsky)
615 * Moose::Meta::Attribute
616 - added support for meta_attr->does("ShortAlias") (sartak)
617 - added tests for this (sartak)
618 - moved the bulk of the `handles` handling to the new
619 install_delegation method (Stevan)
622 - Added BUILDARGS, a new step in new()
624 * Moose::Meta::Role::Application::RoleSummation
625 - fix typos no one ever sees (sartak)
627 * Moose::Util::TypeConstraints
628 * Moose::Meta::TypeConstraint
629 * Moose::Meta::TypeCoercion
630 - Attempt to work around the ??{ } vs. threads issue
632 - Some null_constraint optimizations
634 0.50 Thurs. Jun 11, 2008
635 - Fixed a version number issue by bumping all modules
638 0.49 Thurs. Jun 11, 2008
639 !! This version now approx. 20-25% !!
640 !! faster with new Class::MOP 0.59 !!
642 * Moose::Meta::Attribute
643 - fixed how the is => (ro|rw) works with
644 custom defined reader, writer and accessor
646 - added docs for this (TODO).
647 - added tests for this (Thanks to Penfold)
648 - added the custom attribute alias for regular
649 Moose attributes which is "Moose"
650 - fix builder and default both being used
655 Moose::Meta::Attribute
657 Moose::Meta::Role::Composite
658 Moose::Util::TypeConstraints
659 - switched usage of reftype to ref because
663 - changing add_package_symbol to use the new
667 - fixed how DEMOLISHALL is called so that it
668 can be overrided in subclasses (thanks to Sartak)
669 - added test for this (thanks to Sartak)
671 * Moose::Util::TypeConstraints
672 - move the ClassName type check code to
673 Class::MOP::is_class_loaded (thanks to Sartak)
675 * Moose::Cookbook::Recipe11
676 - add tests for this (thanks to tokuhirom)
678 0.48 Thurs. May 29, 2008
679 (early morning release engineering)--
681 - fixing the version in Moose::Meta::Method::Destructor
682 which was causing the indexer to choke
684 0.47 Thurs. May 29, 2008
685 (late night release engineering)--
687 - fixing the version is META.yml, no functional
688 changes in this release
690 0.46 Wed. May 28, 2008
691 !! This version now approx. 20-25% !!
692 !! faster with new Class::MOP 0.57 !!
695 - some optimizations of the &initialize method
696 since it is called so often by &meta
700 - now use the get_all_package_symbols from the
701 updated Class::MOP, test suite is now 10 seconds
704 * Moose::Meta::Method::Destructor
705 - is_needed can now also be called as a class
706 method for immutablization to check if the
707 destructor object even needs to be created
710 * Moose::Meta::Method::Destructor
711 Moose::Meta::Method::Constructor
712 - added more descriptive error message to help
713 keep people from wasting time tracking an error
714 that is easily fixed by upgrading.
716 0.45 Saturday, May 24, 2008
718 - Because of work in Class::MOP 0.57, all
719 XS based functionality is now optional
720 and a Pure Perl version is supplied
721 - the CLASS_MOP_NO_XS environment variable
722 can now be used to force non-XS versions
724 - several of the packages have been tweaked
725 to take care of this, mostly we added
726 support for the package_name and name
727 variables in all the Method metaclasses
728 - before/around/after method modifiers now
729 support regexp matching of names
730 (thanks to Takatoshi Kitano)
731 - tests added for this
732 - NOTE: this only works for classes, it
733 is currently not supported in roles,
734 but, ... patches welcome
735 - All usage of Carp::confess have been replaced
736 by Carp::croak in the "keyword" functions since
737 the stack trace is usually not helpful
740 - All usage of Carp::confess have been replaced
741 by Carp::croak in the "keyword" functions since
742 the stack trace is usually not helpful
743 - The 'has' keyword for roles now accepts the
744 same array ref form that Moose.pm does
745 (has [qw/foo bar/] => (is => 'rw', ...))
746 - added test for this
748 * Moose::Meta::Attribute
749 - trigger on a ro-attribute is no longer an
750 error, as it's useful to trigger off of the
754 - added same 'add_package_symbol' fix as in
758 - does_role now handles non-Moose classes
760 - added tests for this
761 - added the 'add_method_modifier' function
762 (thanks to Takatoshi Kitano)
764 * Moose::Util::TypeConstraints
765 - subtypes of parameterizable types now are
766 themselves parameterizable types
768 * Moose::Meta::Method::Constructor
769 - fixed bug where trigger was not being
770 called by the inlined immutable
772 - added test for this (thanks to Caelum)
774 * Moose::Meta::Role::Application::ToInstance
775 - now uses the metaclass of the instance
776 (if possible) to create the anon-class
777 (thanks Jonathan Rockway)
779 * Moose::Cookbook::Recipe22
780 - added the meta-attribute trait recipe
784 - fixed hash-ordering test bug that was
785 causing occasional cpantester failures
786 - renamed the t/000_recipe/*.t tests to be
787 more descriptive (thanks to Sartak)
789 0.44 Sat. May 10, 2008
791 - made make_immutable warning cluck to
792 show where the error is (thanks mst)
795 - BUILDALL and DEMOLISHALL now call
796 ->body when looping through the
797 methods, to avoid the overloaded
799 - fixed issue where DEMOLISHALL was
800 eating the $@ values, and so not
801 working correctly, it still kind of
802 eats them, but so does vanilla perl
803 - added tests for this
805 * Moose::Cookbook::Recipe7
806 - added new recipe for immutable
807 functionality (thanks Dave Rolsky)
809 * Moose::Cookbook::Recipe9
810 - added new recipe for builder and
811 lazy_build (thanks Dave Rolsky)
813 * Moose::Cookbook::Recipe11
814 - added new recipe for method aliasing
815 and exclusion with Roles (thanks Dave Rolsky)
818 - fixed Win32 test failure (thanks spicyjack)
820 ~ removed Build.PL and Module::Build compat
821 since Module::Install has done that.
823 0.43 Wed. April, 30, 2008
825 drink more coffee before
826 doing release engineering
828 - whoops, forgot to do the smolder tests,
829 and we broke some of the custom meta-attr
830 modules. This fixes that.
832 0.42 Mon. April 28, 2008
833 - some bad tests slipped by, nothing else
834 changed in this release (cpantesters++)
836 - upped the Class::MOP dependency to 0.55
837 since we have tests which need the C3
840 0.41 Mon. April 28, 2008
841 ~~ numerous documentation updates ~~
843 - Changed all usage of die to Carp::croak for better
844 error reporting (initial patch by Tod Hagan)
847 - the make_immutable keyword is now deprecated, don't
848 use it in any new code and please fix your old code
849 as well. There will be 2 releases, and then it will
855 - refactored the way inner and super work to avoid
856 any method/@ISA cache penalty (nothingmuch)
859 - fixing &new_object to make sure trigger gets the
860 coerced value (spotted by Charles Alderman on the
862 - added test for this
864 * Moose::Meta::Method::Constructor
865 - immutable classes which had non-lazy attributes were calling
866 the default generating sub twice in the constructor. (bug
867 found by Jesse Luehrs, fixed by Dave Rolsky)
868 - added tests for this (Dave Rolsky)
869 - fix typo in initialize_body method (nothingmuch)
871 * Moose::Meta::Method::Destructor
872 - fix typo in initialize_body method (nothingmuch)
874 * Moose::Meta::Method::Overriden
875 Moose::Meta::Method::Augmented
876 - moved the logic for these into their own
877 classes (nothingmuch)
879 * Moose::Meta::Attribute
880 - inherited attributes may now be extended without
881 restriction on the type ('isa', 'does') (Sartak)
882 - added tests for this (Sartak)
883 - when an attribute property is malformed (such as lazy without
884 a default), give the name of the attribute in the error
886 - added the &applied_traits and &has_applied_traits methods
887 to allow introspection of traits
888 - added tests for this
889 - moved 'trait' and 'metaclass' argument handling to here from
891 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
892 '+foo' syntax) (nothingmuch)
893 - added tests for this (t0m)
896 - localize $@ inside DEMOLISHALL to avoid it
897 eating $@ (found by Ernesto)
898 - added test for this (thanks to Ernesto)
900 * Moose::Util::TypeConstraints
901 - &find_type_constraint now DWIMs when given an
902 type constraint object or name (nothingmuch)
903 - &find_or_create_type_constraint superseded with a number of more
905 - find_or_create_{isa,does}_type_constraint
906 - find_or_parse_type_constraint
908 * Moose::Meta::TypeConstraint
909 Moose::Meta::TypeConstraint::Class
910 Moose::Meta::TypeConstraint::Role
911 Moose::Meta::TypeConstraint::Enum
912 Moose::Meta::TypeConstraint::Union
913 Moose::Meta::TypeConstraint::Parameterized
914 - added the &equals method for comparing two type
915 constraints (nothingmuch)
916 - added tests for this (nothingmuch)
918 * Moose::Meta::TypeConstraint
919 - add the &parents method, which is just an alias to &parent.
920 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
922 * Moose::Meta::TypeConstraint::Class
923 - added the class attribute for introspection purposes
925 - added tests for this
927 * Moose::Meta::TypeConstraint::Enum
928 Moose::Meta::TypeConstraint::Role
929 - broke these out into their own classes (nothingmuch)
931 * Moose::Cookbook::Recipe*
932 - fixed references to test file locations in the POD
933 and updated up some text for new Moose features
937 - Added &resolve_metaclass_alias, a helper function for finding an actual
938 class for a short name (e.g. in the traits list)
940 0.40 Fri. March 14, 2008
941 - I hate Pod::Coverage
943 0.39 Fri. March 14, 2008
945 - documenting the use of '+name' with attributes
946 that come from recently composed roles. It makes
947 sense, people are using it, and so why not just
948 officially support it.
949 - fixing the 'extends' keyword so that it will not
950 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
953 - added the perl -Moose=+Class::Name feature to allow
954 monkeypatching of classes in one liners
957 - fixing the 'apply_all_roles' keyword so that it will not
958 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
961 - added ->create method which now supports roles (thanks to jrockway)
962 - added tests for this
963 - added ->create_anon_class which now supports roles and caching of
964 the results (thanks to jrockway)
965 - added tests for this
966 - made ->does_role a little more forgiving when it is
967 checking a Class::MOP era metaclasses.
969 * Moose::Meta::Role::Application::ToInstance
970 - it is now possible to pass extra params to be used when
971 a role is applied to an the instance (rebless_params)
972 - added tests for this
974 * Moose::Util::TypeConstraints
975 - class_type now accepts an optional second argument for a
976 custom message. POD anotated accordingly (groditi)
977 - added tests for this
978 - it is now possible to make anon-enums by passing 'enum' an
979 ARRAY ref instead of the $name => @values. Everything else
981 - added tests for this
984 - making test for using '+name' on attributes consumed
985 from a role, it works and makes sense too.
987 * Moose::Meta::Attribute
988 - fix handles so that it doesn't return nothing
989 when the method cannot be found, not sure why
990 it ever did this originally, this means we now
991 have slightly better support for AUTOLOADed
993 - added more delegation tests
994 - adding ->does method to this so as to better
995 support traits and their introspection.
996 - added tests for this
999 - localizing the Data::Dumper configurations so
1000 that it does not pollute others (RT #33509)
1001 - made ->does a little more forgiving when it is
1002 passed Class::MOP era metaclasses.
1004 0.38 Fri. Feb. 15, 2008
1005 * Moose::Meta::Attribute
1006 - fixed initializer to correctly do
1007 type checking and coercion in the
1009 - added tests for this
1012 - fixed some finicky tests (thanks to konobi)
1014 0.37 Thurs. Feb. 14, 2008
1016 - fixed some details in Moose::init_meta
1017 and its superclass handling (thanks thepler)
1018 - added tests for this (thanks thepler)
1019 - 'has' now dies if you don't pass in name
1021 - added the 'make_immutable' keyword as a shortcut
1024 * Moose::Meta::Class
1025 Moose::Meta::Method::Constructor
1026 Moose::Meta::Attribute
1027 - making (init_arg => undef) work here too
1028 (thanks to nothingmuch)
1030 * Moose::Meta::Attribute
1031 Moose::Meta::Method::Constructor
1032 Moose::Meta::Method::Accessor
1033 - make lazy attributes respect attr initializers (rjbs)
1034 - added tests for this
1036 * Moose::Util::TypeConstraints
1037 Moose::Util::TypeConstraints::OptimizedConstraints
1038 Moose::Meta::TypeConstraints
1039 Moose::Meta::Attribute
1040 Moose::Meta::Method::Constructor
1041 Moose::Meta::Method::Accessor
1042 - making type errors use the
1043 assigned message (thanks to Sartak)
1044 - added tests for this
1046 * Moose::Meta::Method::Destructor
1047 - making sure DESTROY gets inlined properly
1048 with successive DEMOLISH calls (thanks to manito)
1050 * Moose::Meta::Attribute
1051 Moose::Meta::Method::Accessor
1052 - fixed handling of undef with type constraints
1054 - added tests for this
1057 - added &get_all_init_args and &get_all_attribute_values
1058 (thanks to Sartak and nothingmuch)
1060 0.36 Sat. Jan. 26, 2008
1062 Moose::Meta::Attribute
1063 - role type tests now support when roles are
1064 applied to non-Moose classes (found by ash)
1065 - added tests for this (thanks to ash)
1066 - couple extra tests to boost code coverage
1068 * Moose::Meta::Method::Constructor
1069 - improved fix for handling Class::MOP attributes
1070 - added test for this
1072 * Moose::Meta::Class
1073 - handled the add_attribute($attribute_meta_object)
1075 - added test for this
1077 0.35 Tues. Jan. 22, 2008
1078 * Moose::Meta::Method::Constructor
1079 - fix to make sure even Class::MOP attributes
1080 are handled correctly (Thanks to Dave Rolsky)
1081 - added test for this (also Dave Rolsky)
1083 * Moose::Meta::Class
1084 - improved error message on _apply_all_roles,
1085 you should now use Moose::Util::apply_all_roles
1086 and you shouldnt have been using a _ prefixed
1087 method in the first place ;)
1089 0.34 Mon. Jan. 21, 2008
1090 ~~~ more misc. doc. fixes ~~~
1091 ~~ updated copyright dates ~~
1093 Moose is now a postmodern object system :)
1094 - (see the POD for details)
1096 * <<Role System Refactoring>>
1097 - this release contains a major reworking and
1098 cleanup of the role system
1099 - 100% backwards compat.
1100 - Role application now restructured into seperate
1101 classes based on type of applicants
1102 - Role summation (combining of more than one role)
1103 is much cleaner and anon-classes are no longer
1104 used in this process
1105 - new Composite role metaclass
1106 - runtime application of roles to instances
1107 is now more efficient and re-uses generated
1108 classes when applicable
1110 * <<New Role composition features>>
1111 - methods can now be excluded from a given role
1113 - methods can now be aliased to another name (and
1114 still retain the original as well)
1116 * Moose::Util::TypeConstraints::OptimizedConstraints
1117 - added this module (see above)
1119 * Moose::Meta::Class
1120 - fixed the &_process_attribute method to be called
1121 by &add_attribute, so that the API is now correct
1123 * Moose::Meta::Method::Accessor
1124 - fixed bug when passing a list of values to
1125 an accessor would get (incorrectly) ignored.
1126 Thanks to Sartak for finding this ;)
1127 - added tests for this (Sartak again)
1129 * Moose::Meta::Method::Accessor
1130 Moose::Meta::Method::Constructor
1131 Moose::Meta::Attribute
1132 Moose::Meta::TypeConstraint
1133 Moose::Meta::TypeCoercion
1134 - lots of cleanup of such things as:
1136 - type constraint handling
1137 - error handling/messages
1138 (thanks to nothingmuch)
1140 * Moose::Meta::TypeConstraint::Parameterizable
1141 - added this module to support the refactor
1142 in Moose::Meta::TypeConstraint::Parameterized
1144 * Moose::Meta::TypeConstraint::Parameterized
1145 - refactored how these types are handled so they
1146 are more generic and not confined to ArrayRef
1150 - shortened some file names for better VMS support (RT #32381)
1152 0.33 Fri. Dec. 14, 2007
1153 !! Moose now loads 2 x faster !!
1154 !! with new Class::MOP 0.49 !!
1156 ++ new oose.pm module to make command line
1157 Moose-ness easier (see POD docs for more)
1159 * Moose::Meta::Class
1161 - several tweaks to take advantage of the
1162 new method map caching in Class::MOP
1164 * Moose::Meta::TypeConstraint::Parameterized
1165 - allow subtypes of ArrayRef and HashRef to
1166 be used as a container (sartak)
1167 - added tests for this
1168 - basic support for coercion to ArrayRef and
1169 HashRef for containers (sartak)
1170 - added tests for this
1172 * Moose::Meta::TypeCoercion
1173 - coercions will now create subtypes as needed
1174 so you can now add coercions to parameterized
1175 types without having to explictly define them
1176 - added tests for this
1178 * Moose::Meta::Method::Accessor
1179 - allow subclasses to decide whether we need
1180 to copy the value into a new variable (sartak)
1182 0.32 Tues. Dec. 4, 2007
1183 * Moose::Util::TypeConstraints
1184 - fixing how subtype aliases of unions work
1185 they should inherit the parent's coercion
1186 - added tests for this
1187 - you can now define multiple coercions on
1188 a single type at different times instead of
1189 having to do it all in one place
1190 - added tests for this
1192 * Moose::Meta::TypeConstraint
1193 - there is now a default constraint of sub { 1 }
1194 instead of Moose::Util::TypeConstraints setting
1197 * Moose::Meta::TypeCoercion
1198 * Moose::Meta::TypeCoercion::Union
1199 - added the &has_coercion_for_type and
1200 &add_type_coercions methods to support the
1201 new features above (although you cannot add
1202 more type coercions for Union types)
1204 0.31 Mon. Nov. 26, 2007
1205 * Moose::Meta::Attribute
1206 - made the +attr syntax handle extending types with
1207 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1208 now works if the original foo is an ArrayRef.
1209 - added tests for this.
1210 - delegation now works even if the attribute does not
1211 have a reader method using the get_read_method_ref
1212 method from Class::MOP::Attribute.
1213 - added tests for this
1214 - added docs for this
1216 * Moose::Util::TypeConstraints
1217 - passing no "additional attribute info" to
1218 &find_or_create_type_constraint will no longer
1219 attempt to create an __ANON__ type for you,
1220 instead it will just return undef.
1221 - added docs for this
1223 0.30 Fri. Nov. 23, 2007
1224 * Moose::Meta::Method::Constructor
1225 -builder related bug in inlined constructor. (groditi)
1227 * Moose::Meta::Method::Accessor
1228 - genereate unnecessary calls to predicates and refactor
1229 code generation for runtime speed (groditi)
1231 * Moose::Util::TypeConstraints
1232 - fix ClassName constraint to introspect symbol table (mst)
1233 - added more tests for this (mst)
1234 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1235 with work correctly.
1236 - added tests for this
1239 - adding the link to Recipie 11 (written by Sartak)
1240 - adding test for SYNOPSIS code
1243 - New tests for builder bug. Upon instantiation, if an
1244 attribute had a builder, no value and was not lazy the
1245 builder default was not getting run, oops. (groditi)
1247 0.29 Tues. Nov. 13, 2007
1248 * Moose::Meta::Attribute
1249 - Fix error message on missing builder method (groditi)
1251 * Moose::Meta::Method::Accessor
1252 - Fix error message on missing builder method (groditi)
1255 - Add test to check for the correct error message when
1256 builder method is missing (groditi)
1258 0.28 Tues. Nov. 13, 2007
1259 - 0.27 packaged incorrectly (groditi)
1261 0.27 Tues. Nov. 13, 2007
1262 * Moose::Meta::Attribute
1263 - Added support for the new builder option (groditi)
1264 - Added support for lazy_build option (groditi)
1265 - Changed slot initialization for predicate changes (groditi)
1267 * Moose::Meta::Method::Accessor
1268 - Added support for lazy_build option (groditi)
1269 - Fix inline methods to work with corrected predicate
1272 * Moose::Meta::Method::Constructor
1273 - Added support for lazy_build option (groditi)
1276 - tests for builder and lazy_build (groditi)
1278 * fixing some misc. bits in the docs that
1279 got mentioned on CPAN Forum & perlmonks
1282 - fixed how required methods are handled
1283 when they encounter overriden or modified
1284 methods from a class (thanks to confound).
1285 - added tests for this
1287 * Moose::Util::TypeConstraint
1288 - fixed the type notation parser so that
1289 the | always creates a union and so is
1290 no longer a valid type char (thanks to
1291 konobi, mugwump and #moose for working
1293 - added more tests for this
1295 0.26 Thurs. Sept. 27, 2007
1298 * Parameterized Types
1299 We now support parameterized collection types, such as:
1300 ArrayRef[Int] # array or integers
1301 HashRef[Object] # a hash with object values
1302 They can also be nested:
1303 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1304 And work with the type unions as well:
1305 ArrayRef[Int | Str] # array of integers of strings
1307 * Better Framework Extendability
1308 Moose.pm is now "extendable" such that it is now much
1309 easier to extend the framework and add your own keywords
1310 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1311 section of the Moose.pm docs.
1314 In an effort to begin documenting some of the various
1315 details of Moose as well as some common idioms, we have
1316 created Moose::Cookbook::Snacks as a place to find
1317 small (easily digestable) nuggets of Moose code.
1320 ~ Several doc updates/cleanup thanks to castaway ~
1322 - converted build system to use Module::Install instead of
1323 Module::Build (thanks to jrockway)
1326 - added all the meta classes to the immutable list and
1327 set it to inline the accessors
1328 - fix import to allow Sub::Exporter like { into => }
1329 and { into_level => } (perigrin)
1330 - exposed and documented init_meta() to allow better
1331 embedding and extending of Moose (perigrin)
1334 - complete re-organization of the test suite
1335 - added some new tests as well
1336 - finally re-enabled the Moose::POOP test since
1337 the new version of DBM::Deep now works again
1340 * Moose::Meta::Class
1341 - fixed very odd and very nasty recursion bug with
1343 - added tests for this (eilara)
1345 * Moose::Meta::Attribute
1346 Moose::Meta::Method::Constructor
1347 Moose::Meta::Method::Accessor
1348 - fixed issue with overload::Overloaded getting called
1349 on non-blessed items. (RT #29269)
1350 - added tests for this
1352 * Moose::Meta::Method::Accessor
1353 - fixed issue with generated accessor code making
1354 assumptions about hash based classes (thanks to dexter)
1356 * Moose::Coookbook::Snacks
1357 - these are bits of documentation, not quite as big as
1358 Recipes but which have no clear place in the module docs.
1359 So they are Snacks! (horray for castaway++)
1361 * Moose::Cookbook::Recipe4
1362 - updated it to use the new ArrayRef[MyType] construct
1363 - updated the accompanying test as well
1365 +++ Major Refactor of the Type Constraint system +++
1366 +++ with new features added as well +++
1368 * Moose::Util::TypeConstraint
1369 - no longer uses package variable to keep track of
1370 the type constraints, now uses the an instance of
1371 Moose::Meta::TypeConstraint::Registry to do it
1372 - added more sophisticated type notation parsing
1374 - added tests for this
1376 * Moose::Meta::TypeConstraint
1377 - some minor adjustments to make subclassing easier
1378 - added the package_defined_in attribute so that we
1379 can track where the type constraints are created
1381 * Moose::Meta::TypeConstraint::Union
1382 - this is now been refactored to be a subclass of
1383 Moose::Meta::TypeConstraint
1385 * Moose::Meta::TypeCoercion::Union
1386 - this has been added to service the newly refactored
1387 Moose::Meta::TypeConstraint::Union and is itself
1388 a subclass of Moose::Meta::TypeCoercion
1390 * Moose::Meta::TypeConstraint::Parameterized
1391 - added this module (taken from MooseX::AttributeHelpers)
1392 to help construct nested collection types
1393 - added tests for this
1395 * Moose::Meta::TypeConstraint::Registry
1396 - added this class to keep track of type constraints
1398 0.25 Mon. Aug. 13, 2007
1400 - Documentation update to reference Moose::Util::TypeConstraints
1401 under 'isa' in 'has' for how to define a new type
1402 (thanks to shlomif).
1404 * Moose::Meta::Attribute
1405 - required attributes now will no longer accept undef
1406 from the constructor, even if there is a default and lazy
1407 - added tests for this
1408 - default subroutines must return a value which passes the
1410 - added tests for this
1412 * Moose::Meta::Attribute
1413 * Moose::Meta::Method::Constructor
1414 * Moose::Meta::Method::Accessor
1415 - type-constraint tests now handle overloaded objects correctly
1416 in the error message
1417 - added tests for this (thanks to EvanCarroll)
1419 * Moose::Meta::TypeConstraint::Union
1420 - added (has_)hand_optimized_constraint to this class so that
1421 it behaves as the regular Moose::Meta::TypeConstraint does.
1424 - large refactoring of this code
1425 - added several more tests
1426 - tests for subtle conflict resolition issues
1427 added, but not currently running
1430 * Moose::Cookbook::Recipe7
1431 - added new recipe for augment/inner functionality
1433 - added test for this
1436 - a formal definition of roles (still in progress)
1439 - utilities for easier working with Moose classes
1440 - added tests for these
1443 - This contains Moose specific test functions
1444 - added tests for these
1446 0.24 Tues. July 3, 2007
1447 ~ Some doc updates/cleanup ~
1449 * Moose::Meta::Attribute
1450 - added support for roles to be given as parameters
1451 to the 'handles' option.
1452 - added tests and docs for this
1453 - the has '+foo' attribute form now accepts changes to
1454 the lazy option, and the addition of a handles option
1455 (but not changing the handles option)
1456 - added tests and docs for this
1459 - required methods are now fetched using find_method_by_name
1460 so that required methods can come from superclasses
1461 - adjusted tests for this
1463 0.23 Mon. June 18, 2007
1464 * Moose::Meta::Method::Constructor
1465 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1466 * Moose::Meta::Class
1467 - Modify make_immutable to work with the new Class::MOP immutable
1468 mechanism + POD + very basic test (groditi)
1469 * Moose::Meta::Attribute
1470 - Fix handles to use goto() so that caller() comes out properly on
1471 the other side (perigrin)
1473 0.22 Thurs. May 31, 2007
1474 * Moose::Util::TypeConstraints
1475 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1476 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1477 prototypes for functions
1478 - added the ClassName type constraint, this checks for strings
1479 which will respond true to ->isa(UNIVERSAL).
1480 - added tests and docs for this
1481 - subtyping just in name now works correctly by making the
1482 default for where be { 1 }
1483 - added test for this
1485 * Moose::Meta::Method::Accessor
1486 - coerce and lazy now work together correctly, thanks to
1487 merlyn for finding this bug
1488 - tests added for this
1489 - fix reader presedence bug in Moose::Meta::Attribute + tests
1492 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1493 a HASH-ref and missed. This produces better error messages then
1494 having it die cause undef is not a HASH.
1495 - added tests for this
1497 0.21 Thursday, May 2nd, 2007
1499 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1500 - modified unimport to remove super and inner along with the rest
1501 - altered unimport tests to handle this
1504 - altered super export to populate SUPER_SLOT
1506 * Moose::Meta::Class
1507 - altered augment and override modifier application to use *_SLOT
1508 - modified tests for these to unimport one test class each to test
1511 - fixed issue where custom attribute metaclasses
1512 where not handled correctly in roles
1513 - added tests for this
1515 * Moose::Meta::Class
1516 - fixed issue where extending metaclasses with
1517 roles would blow up. Thanks to Aankhen`` for
1518 finding this insidious error, and it's solution.
1520 ~~ lots of spelling and grammer fixes in the docs,
1521 many many thanks to rlb3 and Aankhen for these :)
1523 0.20 Friday, April 6th, 2007
1524 >> I messed up the SKIP logic in one test
1525 so this release is just to fix that.
1528 - 'has' now also accepts an ARRAY ref
1529 to create multiple attrs (see docs)
1530 (thanks to konobi for this)
1531 - added tests and docs
1533 0.19 Thurs. April 5th, 2007
1534 ~~ More documentation updates ~~
1536 * Moose::Util::TypeConstraints
1537 - 'type' now supports messages as well
1538 thanks to phaylon for finding this
1539 - added tests for this
1540 - added &list_all_type_constraints and
1541 &list_all_builtin_type_constraints
1542 functions to facilitate introspection.
1544 * Moose::Meta::Attribute
1545 - fixed regexp 'handles' declarations
1546 to build the list of delegated methods
1547 correctly (and not override important
1548 things like &new) thanks to ashleyb
1550 - added tests and docs for this
1551 - added the 'documentation' attributes
1552 so that you can actually document your
1553 attributes and inspect them through the
1555 - added tests and docs for this
1557 * Moose::Meta::Class
1558 - when loading custom attribute metaclasses
1559 it will first look in for the class in the
1560 Moose::Meta::Attribute::Custom::$name, and
1561 then default to just loading $name.
1562 - added tests and docs for this
1564 * Moose::Meta::TypeConstraint
1565 - type constraints now stringify to their names.
1566 - added test for this
1569 - added tests to assure we work with Module::Refresh
1570 - added stricter test skip logic in the Moose POOP
1571 test, ask Rob Kinyon why.
1572 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1574 0.18 Sat. March 10, 2007
1575 ~~ Many, many documentation updates ~~
1578 - We now use Class::MOP::load_class to
1580 - added tests to show types and subtypes
1581 working with Declare::Constraints::Simple
1582 and Test::Deep as constraint engines.
1585 !! You must have Class::MOP 0.37_001 !!
1586 !! for this developer release to work !!
1588 This release was primarily adding the immutable
1589 feature to Moose. An immutable class is one which
1590 you promise not to alter. When you set the class
1591 as immutable it will perform various bits of
1592 memoization and inline certain part of the code
1593 (constructors, destructors and accessors). This
1594 minimizes (and in some cases totally eliminates)
1595 one of Moose's biggest performance hits. This
1596 feature is not on by default, and is 100% optional.
1597 It has several configurable bits as well, so you
1598 can pick and choose to your specific needs.
1600 The changes involved in this were fairly wide and
1601 highly specific, but 100% backwards compatible, so
1602 I am not going to enumerate them here. If you are
1603 truely interested in what was changed, please do
1606 0.17 Tues. Nov. 14, 2006
1607 * Moose::Meta::Method::Accessor
1608 - bugfix for read-only accessors which
1609 are have a type constraint and lazy.
1610 Thanks to chansen for finding it.
1612 0.16 Tues. Nov. 14, 2006
1614 There are some speed improvements in this release,
1615 but they are only the begining, so stay tuned.
1618 - BUILDALL and DEMOLISHALL no longer get
1619 called unless they actually need to be.
1620 This gave us a signifigant speed boost
1621 for the cases when there is no BUILD or
1622 DEMOLISH method present.
1624 * Moose::Util::TypeConstraints
1625 * Moose::Meta::TypeConstraint
1626 - added an 'optimize_as' option to the
1627 type constraint, which allows for a
1628 hand optimized version of the type
1629 constraint to be used when possible.
1630 - Any internally created type constraints
1631 now provide an optimized version as well.
1633 0.15 Sun. Nov. 5, 2006
1635 This version of Moose *must* have Class::MOP 0.36 in order
1636 to work correctly. A number of small internal tweaks have
1637 been made in order to be compatible with that release.
1639 * Moose::Util::TypeConstraints
1640 - added &unimport so that you can clean out
1641 your class namespace of these exported
1644 * Moose::Meta::Class
1645 - fixed minor issue which occasionally
1646 comes up during global destruction
1648 - moved Moose::Meta::Method::Overriden into
1652 - moved Moose::Meta::Role::Method into
1655 * Moose::Meta::Attribute
1656 - changed how we do type checks so that
1657 we reduce the overall cost, but still
1660 - moved accessor generation methods to
1661 Moose::Meta::Method::Accessor to
1662 conform to the API changes from
1665 * Moose::Meta::TypeConstraint
1666 - changed how constraints are compiled
1667 so that we do less recursion and more
1668 iteration. This makes the type check
1670 - moved Moose::Meta::TypeConstraint::Union
1673 * Moose::Meta::Method::Accessor
1674 - created this from methods formerly found in
1675 Moose::Meta::Attribute
1677 * Moose::Meta::Role::Method
1678 - moved this from Moose::Meta::Role
1680 * Moose::Meta::Method::Overriden
1681 - moved this from Moose::Meta::Class
1683 * Moose::Meta::TypeConstraint::Union
1684 - moved this from Moose::Meta::TypeConstraint
1686 0.14 Mon. Oct. 9, 2006
1688 * Moose::Meta::Attribute
1689 - fixed lazy attributes which were not getting
1690 checked with the type constraint (thanks ashley)
1691 - added tests for this
1692 - removed the over-enthusiastic DWIMery of the
1693 automatic ArrayRef and HashRef defaults, it
1694 broke predicates in an ugly way.
1695 - removed tests for this
1697 0.13 Sat. Sept. 30, 2006
1699 This version of Moose *must* have Class::MOP 0.35 in order
1700 to work correctly. A number of small internal tweaks have
1701 been made in order to be compatible with that release.
1704 - Removed the use of UNIVERSAL::require to be a better
1705 symbol table citizen and remove a dependency
1706 (thanks Adam Kennedy)
1708 **~~ removed experimental & undocumented feature ~~**
1709 - commented out the 'method' and 'self' keywords, see the
1710 comments for more info.
1713 - added a FAQ and WTF files to document frequently
1714 asked questions and common problems
1716 * Moose::Util::TypeConstraints
1717 - added GlobRef and FileHandle type constraint
1718 - added tests for this
1720 * Moose::Meta::Attribute
1721 - if your attribute 'isa' ArrayRef of HashRef, and you have
1722 not explicitly set a default, then make the default DWIM.
1723 This will also work for subtypes of ArrayRef and HashRef
1725 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1726 - new test added for this (thanks to ashley)
1729 - added basic support for runtime role composition
1730 but this is still *highly experimental*, so feedback
1731 is much appreciated :)
1732 - added tests for this
1734 * Moose::Meta::TypeConstraint
1735 - the type constraint now handles the coercion process
1736 through delegation, this is to support the coercion
1739 * Moose::Meta::TypeConstraint::Union
1740 - it is now possible for coercions to be performed
1742 - added tests for this (thanks to konobi)
1744 * Moose::Meta::TypeCoercion
1745 - properly capturing error when type constraint
1749 - Scalar::Util 1.18 is bad on Win32, so temporarily
1750 only require version 1.17 for Win32 and cygwin.
1751 (thanks Adam Kennedy)
1753 0.12 Sat. Sept. 1, 2006
1755 - Recipe5 (subtypes & coercion) has been written
1758 - fixed "bad meta" error message to be more descriptive
1759 - fixed &unimport to not remove the &inner and &super
1760 keywords because we need to localize them.
1761 - fixed number of spelling/grammer issues, thanks Theory :)
1763 **~~ experimental & undocumented feature ~~**
1764 - added the method and self keywords, they are basically
1765 just sugar, and they may not stay around.
1768 - added &dump method to easily Data::Dumper
1771 * Moose::Meta::TypeConstraint
1772 - added the &is_a_type_of method to check both the current
1773 and the subtype of a method (similar to &isa with classes)
1776 - this is now a subclass of Class::MOP::Module, and no longer
1777 creates the _role_meta ugliness of before.
1778 - fixed tests to reflect this change
1780 0.11 Wed. July 12, 2006
1782 - added an &unimport method to remove all the keywords
1783 that Moose will import, simply add 'no Moose' to the
1784 bottom of your class file.
1787 - fixed some test failures caused by a forgotten test
1790 0.10 Thurs. July 6, 2006
1792 - improved error message when loading modules so
1793 it is less confusing when you load a role.
1794 - added &calculate_all_roles method to
1795 Moose::Meta::Class and Moose::Meta::Role
1798 This module has been tested against Class::MOP 0.30
1799 but it does not yet utilize the optimizations
1800 it makes available. Stay tuned for that ;)
1802 0.09_03 Fri. June 23, 2006
1803 ++ DEVELOPER RELEASE ++
1805 - 'use strict' and 'use warnings' are no longer
1806 needed in Moose classes, Moose itself will
1807 turn them on for you.
1808 - added tests for this
1809 - moved code from exported subs to private methods
1810 in Moose::Meta::Class
1813 - as with Moose, strict and warnings are
1814 automatically turned on for you.
1815 - added tests for this
1818 - now handles an edge case for override errors
1819 - added tests for this
1820 - added some more edge case tests
1822 0.09_02 Tues. May 16, 2006
1823 ++ DEVELOPER RELEASE ++
1825 - added prototypes to the exported subs
1829 - added prototypes to the exported subs
1832 * Moose::Util::TypeConstraints
1833 - cleaned up prototypes for the subs
1836 0.09_01 Fri. May 12, 2006
1837 ++ DEVELOPER RELEASE ++
1838 - This release works in combination with
1839 Class::MOP 0.29_01, it is a developer
1840 release because it uses the a new
1841 instance sub-protocol and a fairly
1842 complete Role implementation. It has
1843 not yet been optimized, so it slower
1844 the the previous CPAN version. This
1845 release also lacks good updated docs,
1846 the official release will have updated docs.
1849 - refactored the keyword exports
1850 - 'with' now checks Role validaity and
1851 accepts more than one Role at a time
1852 - 'extends' makes metaclass adjustments as
1853 needed to ensure metaclass compatibility
1856 - refactored the keyword exports
1857 - 'with' now checks Role validaity and
1858 accepts more than one Role at a time
1860 * Moose::Util::TypeConstraints
1861 - added the 'enum' keyword for simple
1862 string enumerations which can be used as
1864 - see example of usage in t/202_example.t
1867 - more careful checking of params to new()
1870 - much work done on the role composition
1871 - many new tests for conflict detection
1872 and composition edge cases
1873 - not enough documentation, I suggest
1874 looking at the tests
1876 * Moose::Meta::Instance
1877 - added new Instance metaclass to support
1878 the new Class::MOP instance protocol
1880 * Moose::Meta::Class
1881 - some small changes to support the new
1883 - some small additions to support Roles
1885 * Moose::Meta::Attribute
1886 - some improvements to the accessor generation code
1888 - some small changes to support the new
1890 - (still somewhat) experimental delegation support
1891 with the 'handles' option
1892 - added several tests for this
1893 - no docs for this yet
1895 0.05 Thurs. April 27, 2006
1897 - keywords are now exported with Sub::Exporter
1898 thanks to chansen for this commit
1899 - has keyword now takes a 'metaclass' option
1900 to support custom attribute meta-classes
1901 on a per-attribute basis
1902 - added tests for this
1903 - the 'has' keyword not accepts inherited slot
1904 specifications (has '+foo'). This is still an
1905 experimental feature and probably not finished
1906 see t/038_attribute_inherited_slot_specs.t for
1907 more details, or ask about it on #moose
1908 - added tests for this
1911 - keywords are now exported with Sub::Exporter
1913 * Moose::Utils::TypeConstraints
1914 - reorganized the type constraint hierarchy, thanks
1915 to nothingmuch and chansen for his help and advice
1917 - added some tests for this
1918 - keywords are now exported with Sub::Exporter
1919 thanks to chansen for this commit
1921 * Moose::Meta::Class
1922 - due to changes in Class::MOP, we had to change
1923 construct_instance (for the better)
1925 * Moose::Meta::Attribute
1926 - due to changes in Class::MOP, we had to add the
1927 initialize_instance_slot method (it's a good thing)
1929 * Moose::Meta::TypeConstraint
1930 - added type constraint unions
1931 - added tests for this
1932 - added the is_subtype_of predicate method
1933 - added tests for this
1935 0.04 Sun. April 16th, 2006
1937 - Roles can now consume other roles
1938 - added tests for this
1939 - Roles can specify required methods now with
1940 the requires() keyword
1941 - added tests for this
1944 - ripped out much of it's guts ,.. much cleaner now
1945 - added required methods and correct handling of
1946 them in apply() for both classes and roles
1947 - added tests for this
1948 - no longer adds a does() method to consuming classes
1949 it relys on the one in Moose::Object
1950 - added roles attribute and some methods to support
1951 roles consuming roles
1953 * Moose::Meta::Attribute
1954 - added support for triggers on attributes
1955 - added tests for this
1956 - added support for does option on an attribute
1957 - added tests for this
1959 * Moose::Meta::Class
1960 - added support for attribute triggers in the
1962 - added tests for this
1965 - Moose no longer creates a subtype for your class
1966 if a subtype of the same name already exists, this
1967 should DWIM in 99.9999% of all cases
1969 * Moose::Util::TypeConstraints
1970 - fixed bug where incorrect subtype conflicts were
1972 - added test for this
1975 - this class can now be extended with 'use base' if
1976 you need it, it properly loads the metaclass class now
1977 - added test for this
1979 0.03_02 Wed. April 12, 2006
1981 - you must now explictly use Moose::Util::TypeConstraints
1982 it no longer gets exported for you automatically
1985 - new() now accepts hash-refs as well as key/value lists
1986 - added does() method to check for Roles
1987 - added tests for this
1989 * Moose::Meta::Class
1990 - added roles attribute along with the add_role() and
1992 - added tests for this
1995 - now adds a does() method to consuming classes
1996 which tests the class's hierarchy for roles
1997 - added tests for this
1999 0.03_01 Mon. April 10, 2006
2001 - added new Role recipe (no content yet, only code)
2004 - added 'with' keyword for Role support
2005 - added test and docs for this
2006 - fixed subtype quoting bug
2007 - added test for this
2011 - added test and docs
2013 * Moose::Util::TypeConstraints
2014 - added the message keyword to add custom
2015 error messages to type constraints
2018 - the meta role to support Moose::Role
2019 - added tests and docs
2021 * Moose::Meta::Class
2022 - moved a number of things from Moose.pm
2023 to here, they should have been here
2026 * Moose::Meta::Attribute
2027 - moved the attribute option macros here
2028 instead of putting them in Moose.pm
2030 * Moose::Meta::TypeConstraint
2031 - added the message attributes and the
2033 - added tests and docs for this
2035 0.03 Thurs. March 30, 2006
2037 - added the Moose::Cookbook with 5 recipes,
2038 describing all the stuff Moose can do.
2041 - fixed an issue with &extends super class loading
2042 it now captures errors and deals with inline
2043 packages correctly (bug found by mst, solution
2045 - added super/override & inner/augment features
2046 - added tests and docs for these
2049 - BUILDALL now takes a reference of the %params
2050 that are passed to &new, and passes that to
2053 * Moose::Util::TypeConstraints
2054 - Type constraints now survive runtime reloading
2055 - added test for this
2057 * Moose::Meta::Class
2058 - fixed the way attribute defaults are handled
2059 during instance construction (bug found by chansen)
2061 * Moose::Meta::Attribute
2062 - read-only attributes now actually enforce their
2063 read-only-ness (this corrected in Class::MOP as
2066 0.02 Tues. March 21, 2006
2068 - many more tests, fixing some bugs and
2070 - &extends now loads the base module with
2072 - added UNIVERSAL::require to the
2075 - each new Moose class will also create
2076 and register a subtype of Object which
2077 correspond to the new Moose class.
2078 - the 'isa' option in &has now only
2079 accepts strings, and will DWIM in
2082 * Moose::Util::TypeConstraints
2083 - added type coercion features
2084 - added tests for this
2085 - added support for this in attributes
2086 and instance construction
2088 - type construction no longer creates a
2089 function, it registers the type instead.
2090 - added several functions to get the
2094 - BUILDALL and DEMOLISHALL were broken
2095 because of a mis-named hash key, Whoops :)
2097 * Moose::Meta::Attribute
2098 - adding support for coercion in the
2099 autogenerated accessors
2101 * Moose::Meta::Class
2102 - adding support for coercion in the
2103 instance construction
2105 * Moose::Meta::TypeConstraint
2106 * Moose::Meta::TypeCoercion
2107 - type constraints and coercions are now
2108 full fledges meta-objects
2110 0.01 Wed. March 15, 2006
2111 - Moooooooooooooooooose!!!