1 Revision history for Perl extension Moose
4 * Moose::Util::TypeConstraints
5 - Added the RoleName type (stevan)
6 - added tests for this (stevan)
8 * Moose::Cookbook::Basics::Recipe3
9 - Updated the before qw[left right] sub to be a little more
10 defensive about what it accepts (stevan)
11 - added more tests to t/000_recipies/basics/003_binary_tree.t (stevan)
13 0.69 Thu, February 12, 2009
15 - Make some keyword errors use throw_error instead of croak
16 since Moose::Exporter wraps keywords now (Sartak)
19 - Revised every recipe for style and clarity. Also moved some
20 documentation out of cookbook recipes and into Moose::Manual
21 pages. This work was funded as part of the Moose docs grant
22 from TPF. (Dave Rolsky)
24 * Moose::Meta::Method::Delegation
25 - If the attribute doing the delegation was not populated, the
26 error message did not specify the attribute name
29 0.68 Wed, February 4, 2009
31 - Many spelling, typo, and formatting fixes by daxim.
33 * Moose::Manual::Attributes
34 - The NAME section in the POD used "Attribute" so search.cpan
35 didn't resolve links from other documents properly.
37 * Moose::Meta::Method::Overriden
38 - Now properly spelled as Overridden. Thanks to daxim for
41 0.67 Tue, February 3, 2009
43 - Lots of little typo fixes and a few clarifications. Several
44 pages didn't have proper titles, and so weren't actually
45 visible on search.cpan.org. Thanks to hanekomu for a variety
46 of fixes and formatting improvements.
48 0.66 Tue, February 3, 2009
50 - This is a brand new, extensive manual for Moose. This aims to
51 provide a complete introduction to all of Moose's
52 features. This work was funded as part of the Moose docs grant
53 from TPF. (Dave Rolsky)
55 * Moose::Meta::Attribute
56 - Added a delegation_metaclass method to replace a hard-coded
57 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
59 * Moose::Util::TypeConstraints
60 - If you created a subtype and passed a parent that Moose didn't
61 know about, it simply ignored the parent. Now it automatically
62 creates the parent as a class type. This may not be what you
63 want, but is less broken than before. (Dave Rolsky)
65 * Moose::Util::TypeConstraints
66 - This module tried throw errors by calling Moose->throw_error,
67 but it did not ensure that Moose was loaded first. This could
68 cause very unhelpful errors when it tried to throw an error
69 before Moose was loaded. (Dave Rolsky)
71 * Moose::Util::TypeConstraints
72 - You could declare a name with subtype such as "Foo!Bar" that
73 would be allowed, but if you used it in a parameterized type
74 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
75 vetting on names created via the sugar functions, so that they
76 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
78 0.65 Thu, January 22, 2008
79 * Moose and Moose::Meta::Method::Overridden
80 - If an overridden method called super(), and then the
81 superclass's method (not overridden) _also_ called super(),
82 Moose went into an endless recursion loop. Test provided by
83 Chris Prather. (Dave Rolsky)
85 * Moose::Meta::TypeConstraint
86 - All methods are now documented. (gphat)
88 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
89 - Fixed some bogus failures that occurred because we tried to
90 validate filesystem paths in a very ad-hoc and
91 not-quite-correct way. (Dave Rolsky)
93 * Moose::Util::TypeConstraints
94 - Added maybe_type to exports. See docs for details. (rjbs)
97 - Added Moose::Util::TypeConstraints to the SEE ALSO
101 - Methods created via an attribute can now fulfill a "requires"
102 declaration for a role. (nothingmuch)
104 * Moose::Meta::Method::*
105 - Stack traces from inlined code will now report its line and
106 file as being in your class, as opposed to in Moose
109 0.64 Wed, December 31, 2008
110 * Moose::Meta::Method::Accessor
111 - Always inline predicate and clearer methods (Sartak)
113 * Moose::Meta::Attribute
114 - Support for parameterized traits (Sartak)
115 - verify_against_type_constraint method to avoid duplication
116 and enhance extensibility (Sartak)
119 - Tests (but no support yet) for parameterized traits (Sartak)
122 - Require Class::MOP 0.75+, which has the side effect of making
123 sure we work on Win32. (Dave Rolsky)
125 0.63 Mon, December 8, 2008
127 - Some small grammar tweaks and bug fixes in non-Moose example
130 0.62_02 Fri, December 5, 2008
131 * Moose::Meta::Role::Application::ToClass
132 - When a class does not provide all of a role's required
133 methods, the error thrown now mentions all of the missing
134 methods, as opposed to just the first one found. Requested by
135 Curtis Poe (RT #41119). (Dave Rolsky)
137 * Moose::Meta::Method::Constructor
138 - Moose will no longer inline a constructor for your class
139 unless it inherits its constructor from Moose::Object, and
140 will warn when it doesn't inline. If you want to force
141 inlining anyway, pass "replace_constructor => 1" to
142 make_immutable. Addresses RT #40968, reported by Jon
143 Swartz. (Dave Rolsky)
144 - The quoting of default values could be broken if the default
145 contained a single quote ('). Now we use quotemeta to escape
146 anything potentially dangerous in the defaults. (Dave Rolsky)
148 0.62_01 Wed, December 3, 2008
150 - use the method->execute API for BUILDALL
151 and DEMOLISHALL (Sartak)
153 * Moose::Util::TypeConstraints
154 - We now make all the type constraint meta classes immutable
155 before creating the default types provided by Moose. This
156 should make loading Moose a little faster. (Dave Rolsky)
158 0.62 Wed November 26, 2008
159 * Moose::Meta::Role::Application::ToClass
160 Moose::Meta::Role::Application::ToRole
161 - fixed issues where excluding and aliasing the
162 same methods for a single role did not work
163 right (worked just fine with multiple
165 - added test for this (stevan)
167 * Moose::Meta::Role::Application::RoleSummation
168 - fixed the error message when trying to compose
169 a role with a role it excludes (Sartak)
172 - Catch another case where recursion caused the value
173 of $CALLER to be stamped on (t0m)
174 - added test for this (t0m)
177 - Remove the make_immutable keyword, which has been
178 deprecated since April. It breaks metaclasses that
179 use Moose without no Moose (Sartak)
181 * Moose::Meta::Attribute
182 - Removing an attribute from a class now also removes delegation
183 (handles) methods installed for that attribute (t0m)
184 - added test for this (t0m)
186 * Moose::Meta::Method::Constructor
187 - An attribute with a default that looked like a number (but was
188 really a string) would accidentally be treated as a number
189 when the constructor was made immutable (perigrin)
190 - added test for this (perigrin)
193 - create method for constructing a role
195 - added test for this (Sartak)
196 - anonymous roles! (Sartak)
197 - added test for this (Sartak)
200 - more consistent error messages (Sartak)
202 * Moose::Cookbook::Roles::Recipe1
203 - attempt to explain why a role that just requires
204 methods is useful (Sartak)
206 0.61 Fri November 7, 2008
207 * Moose::Meta::Attribute
208 - When passing a role to handles, it will be loaded if necessary
212 - Method objects returned by get_method (and other methods)
213 Could end up being returned without an associated_metaclass
214 attribute. Removing get_method_map, which is provided by
215 Class::MOP::Class, fixed this. The Moose version did nothing
216 different from its parent except introduce a bug. (Dave Rolsky)
217 - added tests for this (jdv79)
220 - Added a $VERSION to all .pm files which didn't have one. Fixes
221 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
223 * Moose::Cookbook::Basics::Recipe4
224 * Moose::Cookbook::Basics::Recipe6
225 - These files had spaces on the first line of the SYNOPSIS, as
226 opposed to a totally empty line. According to RT #40432, this
227 confuses POD parsers. (Dave Rolsky)
229 0.60 Fri October 24, 2008
231 - Passing "-traits" when loading Moose caused the Moose.pm
232 exports to be broken. Reported by t0m. (Dave Rolsky)
233 - Tests for this bug. (t0m)
236 - Change resolve_metaclass alias to use the new
237 load_first_existing_class function. This makes it a lot
238 simpler, and also around 5 times faster. (t0m)
239 - Add caching to resolve_metaclass_alias, which gives an order
240 of magnitude speedup to things which repeatedly call the
241 Moose::Meta::Attribute->does method, notably MooseX::Storage
244 * Moose::Util::TypeConstraint
245 - Put back the changes for parameterized constraints that
246 shouldn't have been removed in 0.59. We still cannot parse
247 them, but MooseX modules can create them in some other
248 way. See the 0.58 changes for more details. (jnapiorkowski)
249 - Changed the way subtypes are created so that the job is
250 delegated to a type constraint parent. This clears up some
251 hardcoded checking and should allow correct subtypes of
252 Moose::Meta::Type::Constraint. Don't rely on this new API too
253 much (create_child_type) because it may go away in the
254 future. (jnapiorkowski)
256 * Moose::Meta::TypeConstraint::Union
257 - Type constraint names are sorted as strings, not numbers.
260 * Moose::Meta::TypeConstraint::Parameterizable
261 - New parameterize method. This can be used as a factory method
262 to make a new type constraint with a given parameterized
263 type. (jnapiorkowski)
264 - added tests (jnapiorkowski)
266 0.59 Tue October 14, 2008
268 - Add abridged documentation for builder/default/initializer/
269 predicate, and link to more details sections in
270 Class::MOP::Attribute. (t0m)
272 * Moose::Util::TypeConstraints
273 - removed prototypes from all but the &-based stuff (mst)
275 * Moose::Util::TypeConstraints
276 - Creating a anonymous subtype with both a constraint and a
277 message failed with a very unhelpful error, but should just
278 work. Reported by t0m. (Dave Rolsky)
281 - Some tests that used Test::Warn if it was available failed
282 with older versions of Test::Warn. Reported by Fayland. (Dave
284 - Test firing behavior of triggers in relation to builder/default/
286 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
287 kinds of supported type. (t0m)
290 - In create(), do not pass "roles" option to the superclass
291 - added related test that creates an anon metaclass with
294 * Moose::Meta::TypeConstraint::Class
295 * Moose::Meta::TypeConstraint::Role
296 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
297 other types (as per change in 0.55_02). (t0m)
299 * Moose::Meta::TypeConstraint::Registry
300 - Fix warning when dealing with unknown type names (t0m)
302 * Moose::Util::TypeConstraints
303 - Reverted changes from 0.58 related to handle parameterized
304 types. This caused random failures on BSD and Win32 systems,
305 apparently related to the regex engine. This means that Moose
306 can no longer parse structured type constraints like
307 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
308 supported in a slightly different way via MooseX::Types some
309 time in the future. (Dave Rolsky)
311 0.58 Sat September 20, 2008
312 !! This release has an incompatible change regarding !!
313 !! how roles add methods to a class !!
315 * Roles and role application
316 ! Roles now add methods by calling add_method, not
317 alias_method. They make sure to always provide a method
318 object, which will be cloned internally. This means that it is
319 now possible to track the source of a method provided by a
320 role, and even follow its history through intermediate roles.
322 This means that methods added by a role now show up when
323 looking at a class's method list/map. (Dave Rolsky)
326 - From this release on, we'll try to maintain a list of
327 conflicting modules, and warn you if you have one
328 installed. For example, this release conflicts with ...
329 - MooseX::Singleton <= 0.11
330 - MooseX::Params::Validate <= 0.05
333 In general, we try to not break backwards compatibility for
334 most Moose users, but MooseX modules and other code which
335 extends Moose's metaclasses is often affected by very small
336 changes in the Moose internals.
338 * Moose::Meta::Method::Delegation
339 * Moose::Meta::Attribute
340 - Delegation methods now have their own method class. (Dave
343 * Moose::Meta::TypeConstraint::Parameterizable
344 - Added a new method 'parameterize' which is basically a factory
345 for the containing constraint. This makes it easier to create
346 new types of parameterized constraints. (jnapiorkowski)
348 * Moose::Meta::TypeConstraint::Union
349 - Changed the way Union types canonicalize their names to follow
350 the normalized TC naming rules, which means we strip all
351 whitespace. (jnapiorkowski)
353 * Moose::Util::TypeConstraints
354 - Parameter and Union args are now sorted, this makes Int|Str
355 the same constraint as Str|Int. (jnapiorkowski)
356 - Changes to the way Union types are parsed to more correctly
357 stringify their names. (jnapiorkowski)
358 - When creating a parameterized type, we now use the new
359 parameterize method. (jnapiorkowski)
360 - Incoming type constraint strings are now normalized to remove
361 all whitespace differences. (jnapiorkowski)
362 - Changed the way we parse type constraint strings so that we now
363 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
364 constraints. This lays the foundation for more flexible type
365 constraint implementations.
367 * Tests and docs for all the above. (jnapiorkowski)
371 - Moose::Exporter will no longer remove a subroutine that the
372 exporting package re-exports. Moose re-exports the
373 Carp::confess function, among others. The reasoning is that we
374 cannot know whether you have also explicitly imported those
375 functions for your own use, so we err on the safe side and
376 always keep them. (Dave Rolsky)
377 - added tests for this (rafl)
380 - Changes to how we fix metaclass compatibility that are much
381 too complicated to go into. The summary is that Moose is much
382 less likely to complain about metaclass incompatibility
383 now. In particular, if two metaclasses differ because
384 Moose::Util::MetaRole was used on the two corresponding
385 classes, then the difference in roles is reconciled for the
386 subclass's metaclass. (Dave Rolsky)
387 - Squashed an warning in _process_attribute (thepler)
390 - throw exceptions (sooner) for invalid attribute names (thepler)
391 - added tests for this (thepler)
393 * Moose::Util::MetaRole
394 - If you explicitly set a constructor or destructor class for a
395 metaclass object, and then applied roles to the metaclass,
396 that explicitly set class would be lost and replaced with the
400 * Moose::Meta::Attribute
401 * Moose::Meta::Method
404 * Moose::Error::Default
405 * Moose::Error::Croak
406 * Moose::Error::Confess
407 - All instances of confess() changed to use overridable
408 C<throw_error> method. This method ultimately calls a class
409 constructor, and you can change the class being called. In
410 addition, errors now pass more information than just a string.
411 The default C<error_class> behaves like C<Carp::confess>, so
412 the behavior is not visibly different for end users.
414 0.57 Wed September 3, 2008
416 - A new bit of doc intended to introduce folks familiar with
417 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
420 - Shows examples of two classes, each done first with and then
421 without Moose. This makes a nice parallel to
422 Moose::Intro. (Dave Rolsky)
424 * Moose::Util::TypeConstraints
425 - Fixed a bug in find_or_parse_type_constraint so that it
426 accepts a Moose::Meta::TypeConstraint object as the parent
427 type, not just a name (jnapiorkowski)
428 - added tests (jnapiorkowski)
431 - If Sub::Name was not present, unimporting failed to actually
432 remove some sugar subs, causing test failures (Dave Rolsky)
434 0.56 Mon September 1, 2008
435 For those not following the series of dev releases, there are
436 several major changes in this release of Moose.
437 ! Moose::init_meta should now be called as a method. See the
440 - Major performance improvements by nothingmuch.
442 - New modules for extension writers, Moose::Exporter and
443 Moose::Util::MetaRole by Dave Rolsky.
445 - Lots of doc improvements and additions, especially in the
450 * Removed all references to the experimental-but-no-longer-needed
451 Moose::Meta::Role::Application::ToMetaclassInstance.
453 * Require Class::MOP 0.65.
455 0.55_04 Sat August 30, 2008
456 * Moose::Util::MetaRole
457 * Moose::Cookbook::Extending::Recipe2
458 - This simplifies the application of roles to any meta class, as
459 well as the base object class. Reimplemented metaclass traits
460 using this module. (Dave Rolsky)
462 * Moose::Cookbook::Extending::Recipe1
463 - This a new recipe, an overview of various ways to write Moose
464 extensions (Dave Rolsky)
466 * Moose::Cookbook::Extending::Recipe3
467 * Moose::Cookbook::Extending::Recipe4
468 - These used to be Extending::Recipe1 and Extending::Recipe2,
471 0.55_03 Fri August 29, 2008
472 * No changes from 0.55_02 except increasing the Class::MOP
473 dependency to 0.64_07.
475 0.55_02 Fri August 29, 2008
476 * Makefile.PL and Moose.pm
477 - explicitly require Perl 5.8.0+ (Dave Rolsky)
479 * Moose::Util::TypeConstraints
480 - Fix warnings from find_type_constraint if the type is not
483 * Moose::Meta::TypeConstraint
484 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
485 return false if the type you specify cannot be found in the
486 type registry, rather than throwing an unhelpful and
487 coincidental exception. (t0m).
488 - added docs & test for this (t0m)
490 * Moose::Meta::TypeConstraint::Registry
491 - add_type_constraint now throws an exception if a parameter is
493 - added docs & test for this (t0m)
495 * Moose::Cookbook::FAQ
496 - Added a faq entry on the difference between "role" and "trait"
500 - Fixed a bug that caused role composition to not see a required
501 method when that method was provided by another role being
502 composed at the same time. (Dave Rolsky)
503 - test and bug finding (tokuhirom)
505 0.55_01 Wed August 20, 2008
507 !! Calling Moose::init_meta as a function is now !!
508 !! deprecated. Please see the Moose.pm docs for details. !!
510 * Moose::Meta::Method::Constructor
511 - Fix inlined constructor so that values produced by default
512 or builder methods are coerced as required. (t0m)
513 - added test for this (t0m)
515 * Moose::Meta::Attribute
516 - A lazy attribute with a default or builder did not attempt to
517 coerce the default value. The immutable code _did_
519 - added test for this (t0m)
522 - This is a new helper module for writing "Moose-alike"
523 modules. This should make the lives of MooseX module authors
524 much easier. (Dave Rolsky)
527 * Moose::Cookbook::Meta::Recipe5
528 - Implemented metaclass traits (and wrote a recipe for it):
530 use Moose -traits => 'Foo'
532 This should make writing small Moose extensions a little
535 * Moose::Cookbook::Basics::Recipe1
536 - Removed any examples of direct hashref access, and applied an
537 editorial axe to reduce verbosity. (Dave Rolsky)
539 * Moose::Cookbook::Basics::Recipe1
540 - Also applied an editorial axe here. (Dave Rolsky)
543 * Moose::Cookbook::Extending::Recipe1
544 * Moose::Cookbook::Extending::Recipe2
545 - Rewrote extending and embedding moose documentation and
546 recipes to use Moose::Exporter (Dave Rolsky)
550 - These two modules now warn when you load them from the main
551 package "main" package, because we will not export sugar to
552 main. Previously it just did nothing. (Dave Rolsky)
555 - Now provide an init_meta method just like Moose.pm, and you
556 can call this to provide an alternate role metaclass. (Dave
557 Rolsky and nothingmuch)
558 - get_method_map now respects the package cache flag (nothingmuch)
561 - Two new methods - add_method and wrap_method_body
565 - Optimizations including allowing constructors to accept hash
566 refs, making many more classes immutable, and making
567 constructors immutable. (nothingmuch)
569 0.55 Sun August 3, 2008
570 * Moose::Meta::Attribute
571 - breaking down the way 'handles' methods are
572 created so that the process can be more easily
573 overridden by subclasses (stevan)
575 * Moose::Meta::TypeConstraint
576 - fixing what is passed into a ->message with
577 the type constraints (RT #37569)
578 - added tests for this (Charles Alderman)
580 * Moose::Util::TypeConstraints
581 - fix coerce to accept anon types like subtype can (mst)
584 - reorganized the recipes into sections - Basics, Roles, Meta,
585 Extending - and wrote abstracts for each section (Dave Rolsky)
587 * Moose::Cookbook::Basics::Recipe10
588 - A new recipe that demonstrates operator overloading
589 in combination with Moose. (bluefeet)
591 * Moose::Cookbook::Meta::Recipe1
592 - an introduction to what meta is and why you'd want to make
593 your own metaclass extensions (Dave Rolsky)
595 * Moose::Cookbook::Meta::Recipe4
596 - a very simple metaclass example (Dave Rolsky)
598 * Moose::Cookbook::Extending::Recipe1
599 - how to write a Moose-alike module to use your own object base
602 * Moose::Cookbook::Extending::Recipe2
603 - how to write modules with an API just like C<Moose.pm> (Dave
607 - Tons of fixes, both syntactical and grammatical (Dave
608 Rolsky, Paul Fenwick)
610 0.54 Thurs. July 3, 2008
611 ... this is not my day today ...
613 * Moose::Meta::Attribute
614 - fixed legal_options_for_inheritance such that
615 clone_and_inherit options still works for
616 Class::MOP::Attribute objects and therefore
617 does not break MooseX::AttributeHelpers
620 0.53 Thurs. July 3, 2008
621 * Whoops, I guess I should run 'make manifest' before
622 actually releasing the module. No actual changes
623 in this release, except the fact that it includes
624 the changes that I didn't include in the last
627 0.52 Thurs. July 3, 2008
629 - added "FEATURE REQUESTS" section to the Moose docs
630 to properly direct people (stevan) (RT #34333)
631 - making 'extends' croak if it is passed a Role since
632 this is not ever something you want to do
633 (fixed by stevan, found by obra)
634 - added tests for this (stevan)
637 - adding support for DOES (as in UNIVERSAL::DOES)
639 - added test for this
641 * Moose::Meta::Attribute
642 - added legal_options_for_inheritance (wreis)
643 - added tests for this (wreis)
645 * Moose::Cookbook::Snacks::*
646 - removed some of the unfinished snacks that should
647 not have been released yet. Added some more examples
648 to the 'Keywords' snack. (stevan)
650 * Moose::Cookbook::Style
651 - added general Moose "style guide" of sorts to the
652 cookbook (nothingmuch) (RT #34335)
655 - added more BUILDARGS tests (stevan)
657 0.51 Thurs. Jun 26, 2008
659 - add unimport so "no Moose::Role" actually does
662 * Moose::Meta::Role::Application::ToRole
663 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
664 order to provide its own implementation, that method still got
665 added to the list of required methods for consumers of
666 RoleB. Now an aliased method is only added to the list of
667 required methods if the role doing the aliasing does not
668 provide its own implementation. See Recipe 11 for an example
669 of all this. (Dave Rolsky)
670 - added tests for this
672 * Moose::Meta::Method::Constructor
673 - when a single argument that wasn't a hashref was provided to
674 an immutabilized constructor, the error message was very
675 unhelpful, as opposed to the non-immutable error. Reported by
677 - added test for this (Dave Rolsky)
679 * Moose::Meta::Attribute
680 - added support for meta_attr->does("ShortAlias") (sartak)
681 - added tests for this (sartak)
682 - moved the bulk of the `handles` handling to the new
683 install_delegation method (Stevan)
686 - Added BUILDARGS, a new step in new()
688 * Moose::Meta::Role::Application::RoleSummation
689 - fix typos no one ever sees (sartak)
691 * Moose::Util::TypeConstraints
692 * Moose::Meta::TypeConstraint
693 * Moose::Meta::TypeCoercion
694 - Attempt to work around the ??{ } vs. threads issue
696 - Some null_constraint optimizations
698 0.50 Thurs. Jun 11, 2008
699 - Fixed a version number issue by bumping all modules
702 0.49 Thurs. Jun 11, 2008
703 !! This version now approx. 20-25% !!
704 !! faster with new Class::MOP 0.59 !!
706 * Moose::Meta::Attribute
707 - fixed how the is => (ro|rw) works with
708 custom defined reader, writer and accessor
710 - added docs for this (TODO).
711 - added tests for this (Thanks to Penfold)
712 - added the custom attribute alias for regular
713 Moose attributes which is "Moose"
714 - fix builder and default both being used
719 Moose::Meta::Attribute
721 Moose::Meta::Role::Composite
722 Moose::Util::TypeConstraints
723 - switched usage of reftype to ref because
727 - changing add_package_symbol to use the new
731 - fixed how DEMOLISHALL is called so that it
732 can be overrided in subclasses (thanks to Sartak)
733 - added test for this (thanks to Sartak)
735 * Moose::Util::TypeConstraints
736 - move the ClassName type check code to
737 Class::MOP::is_class_loaded (thanks to Sartak)
739 * Moose::Cookbook::Recipe11
740 - add tests for this (thanks to tokuhirom)
742 0.48 Thurs. May 29, 2008
743 (early morning release engineering)--
745 - fixing the version in Moose::Meta::Method::Destructor
746 which was causing the indexer to choke
748 0.47 Thurs. May 29, 2008
749 (late night release engineering)--
751 - fixing the version is META.yml, no functional
752 changes in this release
754 0.46 Wed. May 28, 2008
755 !! This version now approx. 20-25% !!
756 !! faster with new Class::MOP 0.57 !!
759 - some optimizations of the &initialize method
760 since it is called so often by &meta
764 - now use the get_all_package_symbols from the
765 updated Class::MOP, test suite is now 10 seconds
768 * Moose::Meta::Method::Destructor
769 - is_needed can now also be called as a class
770 method for immutablization to check if the
771 destructor object even needs to be created
774 * Moose::Meta::Method::Destructor
775 Moose::Meta::Method::Constructor
776 - added more descriptive error message to help
777 keep people from wasting time tracking an error
778 that is easily fixed by upgrading.
780 0.45 Saturday, May 24, 2008
782 - Because of work in Class::MOP 0.57, all
783 XS based functionality is now optional
784 and a Pure Perl version is supplied
785 - the CLASS_MOP_NO_XS environment variable
786 can now be used to force non-XS versions
788 - several of the packages have been tweaked
789 to take care of this, mostly we added
790 support for the package_name and name
791 variables in all the Method metaclasses
792 - before/around/after method modifiers now
793 support regexp matching of names
794 (thanks to Takatoshi Kitano)
795 - tests added for this
796 - NOTE: this only works for classes, it
797 is currently not supported in roles,
798 but, ... patches welcome
799 - All usage of Carp::confess have been replaced
800 by Carp::croak in the "keyword" functions since
801 the stack trace is usually not helpful
804 - All usage of Carp::confess have been replaced
805 by Carp::croak in the "keyword" functions since
806 the stack trace is usually not helpful
807 - The 'has' keyword for roles now accepts the
808 same array ref form that Moose.pm does
809 (has [qw/foo bar/] => (is => 'rw', ...))
810 - added test for this
812 * Moose::Meta::Attribute
813 - trigger on a ro-attribute is no longer an
814 error, as it's useful to trigger off of the
818 - added same 'add_package_symbol' fix as in
822 - does_role now handles non-Moose classes
824 - added tests for this
825 - added the 'add_method_modifier' function
826 (thanks to Takatoshi Kitano)
828 * Moose::Util::TypeConstraints
829 - subtypes of parameterizable types now are
830 themselves parameterizable types
832 * Moose::Meta::Method::Constructor
833 - fixed bug where trigger was not being
834 called by the inlined immutable
836 - added test for this (thanks to Caelum)
838 * Moose::Meta::Role::Application::ToInstance
839 - now uses the metaclass of the instance
840 (if possible) to create the anon-class
841 (thanks Jonathan Rockway)
843 * Moose::Cookbook::Recipe22
844 - added the meta-attribute trait recipe
848 - fixed hash-ordering test bug that was
849 causing occasional cpantester failures
850 - renamed the t/000_recipe/*.t tests to be
851 more descriptive (thanks to Sartak)
853 0.44 Sat. May 10, 2008
855 - made make_immutable warning cluck to
856 show where the error is (thanks mst)
859 - BUILDALL and DEMOLISHALL now call
860 ->body when looping through the
861 methods, to avoid the overloaded
863 - fixed issue where DEMOLISHALL was
864 eating the $@ values, and so not
865 working correctly, it still kind of
866 eats them, but so does vanilla perl
867 - added tests for this
869 * Moose::Cookbook::Recipe7
870 - added new recipe for immutable
871 functionality (thanks Dave Rolsky)
873 * Moose::Cookbook::Recipe9
874 - added new recipe for builder and
875 lazy_build (thanks Dave Rolsky)
877 * Moose::Cookbook::Recipe11
878 - added new recipe for method aliasing
879 and exclusion with Roles (thanks Dave Rolsky)
882 - fixed Win32 test failure (thanks spicyjack)
884 ~ removed Build.PL and Module::Build compat
885 since Module::Install has done that.
887 0.43 Wed. April, 30, 2008
889 drink more coffee before
890 doing release engineering
892 - whoops, forgot to do the smolder tests,
893 and we broke some of the custom meta-attr
894 modules. This fixes that.
896 0.42 Mon. April 28, 2008
897 - some bad tests slipped by, nothing else
898 changed in this release (cpantesters++)
900 - upped the Class::MOP dependency to 0.55
901 since we have tests which need the C3
904 0.41 Mon. April 28, 2008
905 ~~ numerous documentation updates ~~
907 - Changed all usage of die to Carp::croak for better
908 error reporting (initial patch by Tod Hagan)
911 - the make_immutable keyword is now deprecated, don't
912 use it in any new code and please fix your old code
913 as well. There will be 2 releases, and then it will
919 - refactored the way inner and super work to avoid
920 any method/@ISA cache penalty (nothingmuch)
923 - fixing &new_object to make sure trigger gets the
924 coerced value (spotted by Charles Alderman on the
926 - added test for this
928 * Moose::Meta::Method::Constructor
929 - immutable classes which had non-lazy attributes were calling
930 the default generating sub twice in the constructor. (bug
931 found by Jesse Luehrs, fixed by Dave Rolsky)
932 - added tests for this (Dave Rolsky)
933 - fix typo in initialize_body method (nothingmuch)
935 * Moose::Meta::Method::Destructor
936 - fix typo in initialize_body method (nothingmuch)
938 * Moose::Meta::Method::Overriden
939 Moose::Meta::Method::Augmented
940 - moved the logic for these into their own
941 classes (nothingmuch)
943 * Moose::Meta::Attribute
944 - inherited attributes may now be extended without
945 restriction on the type ('isa', 'does') (Sartak)
946 - added tests for this (Sartak)
947 - when an attribute property is malformed (such as lazy without
948 a default), give the name of the attribute in the error
950 - added the &applied_traits and &has_applied_traits methods
951 to allow introspection of traits
952 - added tests for this
953 - moved 'trait' and 'metaclass' argument handling to here from
955 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
956 '+foo' syntax) (nothingmuch)
957 - added tests for this (t0m)
960 - localize $@ inside DEMOLISHALL to avoid it
961 eating $@ (found by Ernesto)
962 - added test for this (thanks to Ernesto)
964 * Moose::Util::TypeConstraints
965 - &find_type_constraint now DWIMs when given an
966 type constraint object or name (nothingmuch)
967 - &find_or_create_type_constraint superseded with a number of more
969 - find_or_create_{isa,does}_type_constraint
970 - find_or_parse_type_constraint
972 * Moose::Meta::TypeConstraint
973 Moose::Meta::TypeConstraint::Class
974 Moose::Meta::TypeConstraint::Role
975 Moose::Meta::TypeConstraint::Enum
976 Moose::Meta::TypeConstraint::Union
977 Moose::Meta::TypeConstraint::Parameterized
978 - added the &equals method for comparing two type
979 constraints (nothingmuch)
980 - added tests for this (nothingmuch)
982 * Moose::Meta::TypeConstraint
983 - add the &parents method, which is just an alias to &parent.
984 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
986 * Moose::Meta::TypeConstraint::Class
987 - added the class attribute for introspection purposes
989 - added tests for this
991 * Moose::Meta::TypeConstraint::Enum
992 Moose::Meta::TypeConstraint::Role
993 - broke these out into their own classes (nothingmuch)
995 * Moose::Cookbook::Recipe*
996 - fixed references to test file locations in the POD
997 and updated up some text for new Moose features
1001 - Added &resolve_metaclass_alias, a helper function for finding an actual
1002 class for a short name (e.g. in the traits list)
1004 0.40 Fri. March 14, 2008
1005 - I hate Pod::Coverage
1007 0.39 Fri. March 14, 2008
1009 - documenting the use of '+name' with attributes
1010 that come from recently composed roles. It makes
1011 sense, people are using it, and so why not just
1012 officially support it.
1013 - fixing the 'extends' keyword so that it will not
1014 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1017 - added the perl -Moose=+Class::Name feature to allow
1018 monkeypatching of classes in one liners
1021 - fixing the 'apply_all_roles' keyword so that it will not
1022 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1024 * Moose::Meta::Class
1025 - added ->create method which now supports roles (thanks to jrockway)
1026 - added tests for this
1027 - added ->create_anon_class which now supports roles and caching of
1028 the results (thanks to jrockway)
1029 - added tests for this
1030 - made ->does_role a little more forgiving when it is
1031 checking a Class::MOP era metaclasses.
1033 * Moose::Meta::Role::Application::ToInstance
1034 - it is now possible to pass extra params to be used when
1035 a role is applied to an the instance (rebless_params)
1036 - added tests for this
1038 * Moose::Util::TypeConstraints
1039 - class_type now accepts an optional second argument for a
1040 custom message. POD anotated accordingly (groditi)
1041 - added tests for this
1042 - it is now possible to make anon-enums by passing 'enum' an
1043 ARRAY ref instead of the $name => @values. Everything else
1045 - added tests for this
1048 - making test for using '+name' on attributes consumed
1049 from a role, it works and makes sense too.
1051 * Moose::Meta::Attribute
1052 - fix handles so that it doesn't return nothing
1053 when the method cannot be found, not sure why
1054 it ever did this originally, this means we now
1055 have slightly better support for AUTOLOADed
1057 - added more delegation tests
1058 - adding ->does method to this so as to better
1059 support traits and their introspection.
1060 - added tests for this
1063 - localizing the Data::Dumper configurations so
1064 that it does not pollute others (RT #33509)
1065 - made ->does a little more forgiving when it is
1066 passed Class::MOP era metaclasses.
1068 0.38 Fri. Feb. 15, 2008
1069 * Moose::Meta::Attribute
1070 - fixed initializer to correctly do
1071 type checking and coercion in the
1073 - added tests for this
1076 - fixed some finicky tests (thanks to konobi)
1078 0.37 Thurs. Feb. 14, 2008
1080 - fixed some details in Moose::init_meta
1081 and its superclass handling (thanks thepler)
1082 - added tests for this (thanks thepler)
1083 - 'has' now dies if you don't pass in name
1085 - added the 'make_immutable' keyword as a shortcut
1088 * Moose::Meta::Class
1089 Moose::Meta::Method::Constructor
1090 Moose::Meta::Attribute
1091 - making (init_arg => undef) work here too
1092 (thanks to nothingmuch)
1094 * Moose::Meta::Attribute
1095 Moose::Meta::Method::Constructor
1096 Moose::Meta::Method::Accessor
1097 - make lazy attributes respect attr initializers (rjbs)
1098 - added tests for this
1100 * Moose::Util::TypeConstraints
1101 Moose::Util::TypeConstraints::OptimizedConstraints
1102 Moose::Meta::TypeConstraints
1103 Moose::Meta::Attribute
1104 Moose::Meta::Method::Constructor
1105 Moose::Meta::Method::Accessor
1106 - making type errors use the
1107 assigned message (thanks to Sartak)
1108 - added tests for this
1110 * Moose::Meta::Method::Destructor
1111 - making sure DESTROY gets inlined properly
1112 with successive DEMOLISH calls (thanks to manito)
1114 * Moose::Meta::Attribute
1115 Moose::Meta::Method::Accessor
1116 - fixed handling of undef with type constraints
1118 - added tests for this
1121 - added &get_all_init_args and &get_all_attribute_values
1122 (thanks to Sartak and nothingmuch)
1124 0.36 Sat. Jan. 26, 2008
1126 Moose::Meta::Attribute
1127 - role type tests now support when roles are
1128 applied to non-Moose classes (found by ash)
1129 - added tests for this (thanks to ash)
1130 - couple extra tests to boost code coverage
1132 * Moose::Meta::Method::Constructor
1133 - improved fix for handling Class::MOP attributes
1134 - added test for this
1136 * Moose::Meta::Class
1137 - handled the add_attribute($attribute_meta_object)
1139 - added test for this
1141 0.35 Tues. Jan. 22, 2008
1142 * Moose::Meta::Method::Constructor
1143 - fix to make sure even Class::MOP attributes
1144 are handled correctly (Thanks to Dave Rolsky)
1145 - added test for this (also Dave Rolsky)
1147 * Moose::Meta::Class
1148 - improved error message on _apply_all_roles,
1149 you should now use Moose::Util::apply_all_roles
1150 and you shouldnt have been using a _ prefixed
1151 method in the first place ;)
1153 0.34 Mon. Jan. 21, 2008
1154 ~~~ more misc. doc. fixes ~~~
1155 ~~ updated copyright dates ~~
1157 Moose is now a postmodern object system :)
1158 - (see the POD for details)
1160 * <<Role System Refactoring>>
1161 - this release contains a major reworking and
1162 cleanup of the role system
1163 - 100% backwards compat.
1164 - Role application now restructured into seperate
1165 classes based on type of applicants
1166 - Role summation (combining of more than one role)
1167 is much cleaner and anon-classes are no longer
1168 used in this process
1169 - new Composite role metaclass
1170 - runtime application of roles to instances
1171 is now more efficient and re-uses generated
1172 classes when applicable
1174 * <<New Role composition features>>
1175 - methods can now be excluded from a given role
1177 - methods can now be aliased to another name (and
1178 still retain the original as well)
1180 * Moose::Util::TypeConstraints::OptimizedConstraints
1181 - added this module (see above)
1183 * Moose::Meta::Class
1184 - fixed the &_process_attribute method to be called
1185 by &add_attribute, so that the API is now correct
1187 * Moose::Meta::Method::Accessor
1188 - fixed bug when passing a list of values to
1189 an accessor would get (incorrectly) ignored.
1190 Thanks to Sartak for finding this ;)
1191 - added tests for this (Sartak again)
1193 * Moose::Meta::Method::Accessor
1194 Moose::Meta::Method::Constructor
1195 Moose::Meta::Attribute
1196 Moose::Meta::TypeConstraint
1197 Moose::Meta::TypeCoercion
1198 - lots of cleanup of such things as:
1200 - type constraint handling
1201 - error handling/messages
1202 (thanks to nothingmuch)
1204 * Moose::Meta::TypeConstraint::Parameterizable
1205 - added this module to support the refactor
1206 in Moose::Meta::TypeConstraint::Parameterized
1208 * Moose::Meta::TypeConstraint::Parameterized
1209 - refactored how these types are handled so they
1210 are more generic and not confined to ArrayRef
1214 - shortened some file names for better VMS support (RT #32381)
1216 0.33 Fri. Dec. 14, 2007
1217 !! Moose now loads 2 x faster !!
1218 !! with new Class::MOP 0.49 !!
1220 ++ new oose.pm module to make command line
1221 Moose-ness easier (see POD docs for more)
1223 * Moose::Meta::Class
1225 - several tweaks to take advantage of the
1226 new method map caching in Class::MOP
1228 * Moose::Meta::TypeConstraint::Parameterized
1229 - allow subtypes of ArrayRef and HashRef to
1230 be used as a container (sartak)
1231 - added tests for this
1232 - basic support for coercion to ArrayRef and
1233 HashRef for containers (sartak)
1234 - added tests for this
1236 * Moose::Meta::TypeCoercion
1237 - coercions will now create subtypes as needed
1238 so you can now add coercions to parameterized
1239 types without having to explictly define them
1240 - added tests for this
1242 * Moose::Meta::Method::Accessor
1243 - allow subclasses to decide whether we need
1244 to copy the value into a new variable (sartak)
1246 0.32 Tues. Dec. 4, 2007
1247 * Moose::Util::TypeConstraints
1248 - fixing how subtype aliases of unions work
1249 they should inherit the parent's coercion
1250 - added tests for this
1251 - you can now define multiple coercions on
1252 a single type at different times instead of
1253 having to do it all in one place
1254 - added tests for this
1256 * Moose::Meta::TypeConstraint
1257 - there is now a default constraint of sub { 1 }
1258 instead of Moose::Util::TypeConstraints setting
1261 * Moose::Meta::TypeCoercion
1262 * Moose::Meta::TypeCoercion::Union
1263 - added the &has_coercion_for_type and
1264 &add_type_coercions methods to support the
1265 new features above (although you cannot add
1266 more type coercions for Union types)
1268 0.31 Mon. Nov. 26, 2007
1269 * Moose::Meta::Attribute
1270 - made the +attr syntax handle extending types with
1271 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1272 now works if the original foo is an ArrayRef.
1273 - added tests for this.
1274 - delegation now works even if the attribute does not
1275 have a reader method using the get_read_method_ref
1276 method from Class::MOP::Attribute.
1277 - added tests for this
1278 - added docs for this
1280 * Moose::Util::TypeConstraints
1281 - passing no "additional attribute info" to
1282 &find_or_create_type_constraint will no longer
1283 attempt to create an __ANON__ type for you,
1284 instead it will just return undef.
1285 - added docs for this
1287 0.30 Fri. Nov. 23, 2007
1288 * Moose::Meta::Method::Constructor
1289 -builder related bug in inlined constructor. (groditi)
1291 * Moose::Meta::Method::Accessor
1292 - genereate unnecessary calls to predicates and refactor
1293 code generation for runtime speed (groditi)
1295 * Moose::Util::TypeConstraints
1296 - fix ClassName constraint to introspect symbol table (mst)
1297 - added more tests for this (mst)
1298 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1299 with work correctly.
1300 - added tests for this
1303 - adding the link to Recipie 11 (written by Sartak)
1304 - adding test for SYNOPSIS code
1307 - New tests for builder bug. Upon instantiation, if an
1308 attribute had a builder, no value and was not lazy the
1309 builder default was not getting run, oops. (groditi)
1311 0.29 Tues. Nov. 13, 2007
1312 * Moose::Meta::Attribute
1313 - Fix error message on missing builder method (groditi)
1315 * Moose::Meta::Method::Accessor
1316 - Fix error message on missing builder method (groditi)
1319 - Add test to check for the correct error message when
1320 builder method is missing (groditi)
1322 0.28 Tues. Nov. 13, 2007
1323 - 0.27 packaged incorrectly (groditi)
1325 0.27 Tues. Nov. 13, 2007
1326 * Moose::Meta::Attribute
1327 - Added support for the new builder option (groditi)
1328 - Added support for lazy_build option (groditi)
1329 - Changed slot initialization for predicate changes (groditi)
1331 * Moose::Meta::Method::Accessor
1332 - Added support for lazy_build option (groditi)
1333 - Fix inline methods to work with corrected predicate
1336 * Moose::Meta::Method::Constructor
1337 - Added support for lazy_build option (groditi)
1340 - tests for builder and lazy_build (groditi)
1342 * fixing some misc. bits in the docs that
1343 got mentioned on CPAN Forum & perlmonks
1346 - fixed how required methods are handled
1347 when they encounter overriden or modified
1348 methods from a class (thanks to confound).
1349 - added tests for this
1351 * Moose::Util::TypeConstraint
1352 - fixed the type notation parser so that
1353 the | always creates a union and so is
1354 no longer a valid type char (thanks to
1355 konobi, mugwump and #moose for working
1357 - added more tests for this
1359 0.26 Thurs. Sept. 27, 2007
1362 * Parameterized Types
1363 We now support parameterized collection types, such as:
1364 ArrayRef[Int] # array or integers
1365 HashRef[Object] # a hash with object values
1366 They can also be nested:
1367 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1368 And work with the type unions as well:
1369 ArrayRef[Int | Str] # array of integers of strings
1371 * Better Framework Extendability
1372 Moose.pm is now "extendable" such that it is now much
1373 easier to extend the framework and add your own keywords
1374 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1375 section of the Moose.pm docs.
1378 In an effort to begin documenting some of the various
1379 details of Moose as well as some common idioms, we have
1380 created Moose::Cookbook::Snacks as a place to find
1381 small (easily digestable) nuggets of Moose code.
1384 ~ Several doc updates/cleanup thanks to castaway ~
1386 - converted build system to use Module::Install instead of
1387 Module::Build (thanks to jrockway)
1390 - added all the meta classes to the immutable list and
1391 set it to inline the accessors
1392 - fix import to allow Sub::Exporter like { into => }
1393 and { into_level => } (perigrin)
1394 - exposed and documented init_meta() to allow better
1395 embedding and extending of Moose (perigrin)
1398 - complete re-organization of the test suite
1399 - added some new tests as well
1400 - finally re-enabled the Moose::POOP test since
1401 the new version of DBM::Deep now works again
1404 * Moose::Meta::Class
1405 - fixed very odd and very nasty recursion bug with
1407 - added tests for this (eilara)
1409 * Moose::Meta::Attribute
1410 Moose::Meta::Method::Constructor
1411 Moose::Meta::Method::Accessor
1412 - fixed issue with overload::Overloaded getting called
1413 on non-blessed items. (RT #29269)
1414 - added tests for this
1416 * Moose::Meta::Method::Accessor
1417 - fixed issue with generated accessor code making
1418 assumptions about hash based classes (thanks to dexter)
1420 * Moose::Coookbook::Snacks
1421 - these are bits of documentation, not quite as big as
1422 Recipes but which have no clear place in the module docs.
1423 So they are Snacks! (horray for castaway++)
1425 * Moose::Cookbook::Recipe4
1426 - updated it to use the new ArrayRef[MyType] construct
1427 - updated the accompanying test as well
1429 +++ Major Refactor of the Type Constraint system +++
1430 +++ with new features added as well +++
1432 * Moose::Util::TypeConstraint
1433 - no longer uses package variable to keep track of
1434 the type constraints, now uses the an instance of
1435 Moose::Meta::TypeConstraint::Registry to do it
1436 - added more sophisticated type notation parsing
1438 - added tests for this
1440 * Moose::Meta::TypeConstraint
1441 - some minor adjustments to make subclassing easier
1442 - added the package_defined_in attribute so that we
1443 can track where the type constraints are created
1445 * Moose::Meta::TypeConstraint::Union
1446 - this is now been refactored to be a subclass of
1447 Moose::Meta::TypeConstraint
1449 * Moose::Meta::TypeCoercion::Union
1450 - this has been added to service the newly refactored
1451 Moose::Meta::TypeConstraint::Union and is itself
1452 a subclass of Moose::Meta::TypeCoercion
1454 * Moose::Meta::TypeConstraint::Parameterized
1455 - added this module (taken from MooseX::AttributeHelpers)
1456 to help construct nested collection types
1457 - added tests for this
1459 * Moose::Meta::TypeConstraint::Registry
1460 - added this class to keep track of type constraints
1462 0.25 Mon. Aug. 13, 2007
1464 - Documentation update to reference Moose::Util::TypeConstraints
1465 under 'isa' in 'has' for how to define a new type
1466 (thanks to shlomif).
1468 * Moose::Meta::Attribute
1469 - required attributes now will no longer accept undef
1470 from the constructor, even if there is a default and lazy
1471 - added tests for this
1472 - default subroutines must return a value which passes the
1474 - added tests for this
1476 * Moose::Meta::Attribute
1477 * Moose::Meta::Method::Constructor
1478 * Moose::Meta::Method::Accessor
1479 - type-constraint tests now handle overloaded objects correctly
1480 in the error message
1481 - added tests for this (thanks to EvanCarroll)
1483 * Moose::Meta::TypeConstraint::Union
1484 - added (has_)hand_optimized_constraint to this class so that
1485 it behaves as the regular Moose::Meta::TypeConstraint does.
1488 - large refactoring of this code
1489 - added several more tests
1490 - tests for subtle conflict resolition issues
1491 added, but not currently running
1494 * Moose::Cookbook::Recipe7
1495 - added new recipe for augment/inner functionality
1497 - added test for this
1500 - a formal definition of roles (still in progress)
1503 - utilities for easier working with Moose classes
1504 - added tests for these
1507 - This contains Moose specific test functions
1508 - added tests for these
1510 0.24 Tues. July 3, 2007
1511 ~ Some doc updates/cleanup ~
1513 * Moose::Meta::Attribute
1514 - added support for roles to be given as parameters
1515 to the 'handles' option.
1516 - added tests and docs for this
1517 - the has '+foo' attribute form now accepts changes to
1518 the lazy option, and the addition of a handles option
1519 (but not changing the handles option)
1520 - added tests and docs for this
1523 - required methods are now fetched using find_method_by_name
1524 so that required methods can come from superclasses
1525 - adjusted tests for this
1527 0.23 Mon. June 18, 2007
1528 * Moose::Meta::Method::Constructor
1529 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1530 * Moose::Meta::Class
1531 - Modify make_immutable to work with the new Class::MOP immutable
1532 mechanism + POD + very basic test (groditi)
1533 * Moose::Meta::Attribute
1534 - Fix handles to use goto() so that caller() comes out properly on
1535 the other side (perigrin)
1537 0.22 Thurs. May 31, 2007
1538 * Moose::Util::TypeConstraints
1539 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1540 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1541 prototypes for functions
1542 - added the ClassName type constraint, this checks for strings
1543 which will respond true to ->isa(UNIVERSAL).
1544 - added tests and docs for this
1545 - subtyping just in name now works correctly by making the
1546 default for where be { 1 }
1547 - added test for this
1549 * Moose::Meta::Method::Accessor
1550 - coerce and lazy now work together correctly, thanks to
1551 merlyn for finding this bug
1552 - tests added for this
1553 - fix reader presedence bug in Moose::Meta::Attribute + tests
1556 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1557 a HASH-ref and missed. This produces better error messages then
1558 having it die cause undef is not a HASH.
1559 - added tests for this
1561 0.21 Thursday, May 2nd, 2007
1563 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1564 - modified unimport to remove super and inner along with the rest
1565 - altered unimport tests to handle this
1568 - altered super export to populate SUPER_SLOT
1570 * Moose::Meta::Class
1571 - altered augment and override modifier application to use *_SLOT
1572 - modified tests for these to unimport one test class each to test
1575 - fixed issue where custom attribute metaclasses
1576 where not handled correctly in roles
1577 - added tests for this
1579 * Moose::Meta::Class
1580 - fixed issue where extending metaclasses with
1581 roles would blow up. Thanks to Aankhen`` for
1582 finding this insidious error, and it's solution.
1584 ~~ lots of spelling and grammer fixes in the docs,
1585 many many thanks to rlb3 and Aankhen for these :)
1587 0.20 Friday, April 6th, 2007
1588 >> I messed up the SKIP logic in one test
1589 so this release is just to fix that.
1592 - 'has' now also accepts an ARRAY ref
1593 to create multiple attrs (see docs)
1594 (thanks to konobi for this)
1595 - added tests and docs
1597 0.19 Thurs. April 5th, 2007
1598 ~~ More documentation updates ~~
1600 * Moose::Util::TypeConstraints
1601 - 'type' now supports messages as well
1602 thanks to phaylon for finding this
1603 - added tests for this
1604 - added &list_all_type_constraints and
1605 &list_all_builtin_type_constraints
1606 functions to facilitate introspection.
1608 * Moose::Meta::Attribute
1609 - fixed regexp 'handles' declarations
1610 to build the list of delegated methods
1611 correctly (and not override important
1612 things like &new) thanks to ashleyb
1614 - added tests and docs for this
1615 - added the 'documentation' attributes
1616 so that you can actually document your
1617 attributes and inspect them through the
1619 - added tests and docs for this
1621 * Moose::Meta::Class
1622 - when loading custom attribute metaclasses
1623 it will first look in for the class in the
1624 Moose::Meta::Attribute::Custom::$name, and
1625 then default to just loading $name.
1626 - added tests and docs for this
1628 * Moose::Meta::TypeConstraint
1629 - type constraints now stringify to their names.
1630 - added test for this
1633 - added tests to assure we work with Module::Refresh
1634 - added stricter test skip logic in the Moose POOP
1635 test, ask Rob Kinyon why.
1636 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1638 0.18 Sat. March 10, 2007
1639 ~~ Many, many documentation updates ~~
1642 - We now use Class::MOP::load_class to
1644 - added tests to show types and subtypes
1645 working with Declare::Constraints::Simple
1646 and Test::Deep as constraint engines.
1649 !! You must have Class::MOP 0.37_001 !!
1650 !! for this developer release to work !!
1652 This release was primarily adding the immutable
1653 feature to Moose. An immutable class is one which
1654 you promise not to alter. When you set the class
1655 as immutable it will perform various bits of
1656 memoization and inline certain part of the code
1657 (constructors, destructors and accessors). This
1658 minimizes (and in some cases totally eliminates)
1659 one of Moose's biggest performance hits. This
1660 feature is not on by default, and is 100% optional.
1661 It has several configurable bits as well, so you
1662 can pick and choose to your specific needs.
1664 The changes involved in this were fairly wide and
1665 highly specific, but 100% backwards compatible, so
1666 I am not going to enumerate them here. If you are
1667 truely interested in what was changed, please do
1670 0.17 Tues. Nov. 14, 2006
1671 * Moose::Meta::Method::Accessor
1672 - bugfix for read-only accessors which
1673 are have a type constraint and lazy.
1674 Thanks to chansen for finding it.
1676 0.16 Tues. Nov. 14, 2006
1678 There are some speed improvements in this release,
1679 but they are only the begining, so stay tuned.
1682 - BUILDALL and DEMOLISHALL no longer get
1683 called unless they actually need to be.
1684 This gave us a signifigant speed boost
1685 for the cases when there is no BUILD or
1686 DEMOLISH method present.
1688 * Moose::Util::TypeConstraints
1689 * Moose::Meta::TypeConstraint
1690 - added an 'optimize_as' option to the
1691 type constraint, which allows for a
1692 hand optimized version of the type
1693 constraint to be used when possible.
1694 - Any internally created type constraints
1695 now provide an optimized version as well.
1697 0.15 Sun. Nov. 5, 2006
1699 This version of Moose *must* have Class::MOP 0.36 in order
1700 to work correctly. A number of small internal tweaks have
1701 been made in order to be compatible with that release.
1703 * Moose::Util::TypeConstraints
1704 - added &unimport so that you can clean out
1705 your class namespace of these exported
1708 * Moose::Meta::Class
1709 - fixed minor issue which occasionally
1710 comes up during global destruction
1712 - moved Moose::Meta::Method::Overriden into
1716 - moved Moose::Meta::Role::Method into
1719 * Moose::Meta::Attribute
1720 - changed how we do type checks so that
1721 we reduce the overall cost, but still
1724 - moved accessor generation methods to
1725 Moose::Meta::Method::Accessor to
1726 conform to the API changes from
1729 * Moose::Meta::TypeConstraint
1730 - changed how constraints are compiled
1731 so that we do less recursion and more
1732 iteration. This makes the type check
1734 - moved Moose::Meta::TypeConstraint::Union
1737 * Moose::Meta::Method::Accessor
1738 - created this from methods formerly found in
1739 Moose::Meta::Attribute
1741 * Moose::Meta::Role::Method
1742 - moved this from Moose::Meta::Role
1744 * Moose::Meta::Method::Overriden
1745 - moved this from Moose::Meta::Class
1747 * Moose::Meta::TypeConstraint::Union
1748 - moved this from Moose::Meta::TypeConstraint
1750 0.14 Mon. Oct. 9, 2006
1752 * Moose::Meta::Attribute
1753 - fixed lazy attributes which were not getting
1754 checked with the type constraint (thanks ashley)
1755 - added tests for this
1756 - removed the over-enthusiastic DWIMery of the
1757 automatic ArrayRef and HashRef defaults, it
1758 broke predicates in an ugly way.
1759 - removed tests for this
1761 0.13 Sat. Sept. 30, 2006
1763 This version of Moose *must* have Class::MOP 0.35 in order
1764 to work correctly. A number of small internal tweaks have
1765 been made in order to be compatible with that release.
1768 - Removed the use of UNIVERSAL::require to be a better
1769 symbol table citizen and remove a dependency
1770 (thanks Adam Kennedy)
1772 **~~ removed experimental & undocumented feature ~~**
1773 - commented out the 'method' and 'self' keywords, see the
1774 comments for more info.
1777 - added a FAQ and WTF files to document frequently
1778 asked questions and common problems
1780 * Moose::Util::TypeConstraints
1781 - added GlobRef and FileHandle type constraint
1782 - added tests for this
1784 * Moose::Meta::Attribute
1785 - if your attribute 'isa' ArrayRef of HashRef, and you have
1786 not explicitly set a default, then make the default DWIM.
1787 This will also work for subtypes of ArrayRef and HashRef
1789 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1790 - new test added for this (thanks to ashley)
1793 - added basic support for runtime role composition
1794 but this is still *highly experimental*, so feedback
1795 is much appreciated :)
1796 - added tests for this
1798 * Moose::Meta::TypeConstraint
1799 - the type constraint now handles the coercion process
1800 through delegation, this is to support the coercion
1803 * Moose::Meta::TypeConstraint::Union
1804 - it is now possible for coercions to be performed
1806 - added tests for this (thanks to konobi)
1808 * Moose::Meta::TypeCoercion
1809 - properly capturing error when type constraint
1813 - Scalar::Util 1.18 is bad on Win32, so temporarily
1814 only require version 1.17 for Win32 and cygwin.
1815 (thanks Adam Kennedy)
1817 0.12 Sat. Sept. 1, 2006
1819 - Recipe5 (subtypes & coercion) has been written
1822 - fixed "bad meta" error message to be more descriptive
1823 - fixed &unimport to not remove the &inner and &super
1824 keywords because we need to localize them.
1825 - fixed number of spelling/grammer issues, thanks Theory :)
1827 **~~ experimental & undocumented feature ~~**
1828 - added the method and self keywords, they are basically
1829 just sugar, and they may not stay around.
1832 - added &dump method to easily Data::Dumper
1835 * Moose::Meta::TypeConstraint
1836 - added the &is_a_type_of method to check both the current
1837 and the subtype of a method (similar to &isa with classes)
1840 - this is now a subclass of Class::MOP::Module, and no longer
1841 creates the _role_meta ugliness of before.
1842 - fixed tests to reflect this change
1844 0.11 Wed. July 12, 2006
1846 - added an &unimport method to remove all the keywords
1847 that Moose will import, simply add 'no Moose' to the
1848 bottom of your class file.
1851 - fixed some test failures caused by a forgotten test
1854 0.10 Thurs. July 6, 2006
1856 - improved error message when loading modules so
1857 it is less confusing when you load a role.
1858 - added &calculate_all_roles method to
1859 Moose::Meta::Class and Moose::Meta::Role
1862 This module has been tested against Class::MOP 0.30
1863 but it does not yet utilize the optimizations
1864 it makes available. Stay tuned for that ;)
1866 0.09_03 Fri. June 23, 2006
1867 ++ DEVELOPER RELEASE ++
1869 - 'use strict' and 'use warnings' are no longer
1870 needed in Moose classes, Moose itself will
1871 turn them on for you.
1872 - added tests for this
1873 - moved code from exported subs to private methods
1874 in Moose::Meta::Class
1877 - as with Moose, strict and warnings are
1878 automatically turned on for you.
1879 - added tests for this
1882 - now handles an edge case for override errors
1883 - added tests for this
1884 - added some more edge case tests
1886 0.09_02 Tues. May 16, 2006
1887 ++ DEVELOPER RELEASE ++
1889 - added prototypes to the exported subs
1893 - added prototypes to the exported subs
1896 * Moose::Util::TypeConstraints
1897 - cleaned up prototypes for the subs
1900 0.09_01 Fri. May 12, 2006
1901 ++ DEVELOPER RELEASE ++
1902 - This release works in combination with
1903 Class::MOP 0.29_01, it is a developer
1904 release because it uses the a new
1905 instance sub-protocol and a fairly
1906 complete Role implementation. It has
1907 not yet been optimized, so it slower
1908 the the previous CPAN version. This
1909 release also lacks good updated docs,
1910 the official release will have updated docs.
1913 - refactored the keyword exports
1914 - 'with' now checks Role validaity and
1915 accepts more than one Role at a time
1916 - 'extends' makes metaclass adjustments as
1917 needed to ensure metaclass compatibility
1920 - refactored the keyword exports
1921 - 'with' now checks Role validaity and
1922 accepts more than one Role at a time
1924 * Moose::Util::TypeConstraints
1925 - added the 'enum' keyword for simple
1926 string enumerations which can be used as
1928 - see example of usage in t/202_example.t
1931 - more careful checking of params to new()
1934 - much work done on the role composition
1935 - many new tests for conflict detection
1936 and composition edge cases
1937 - not enough documentation, I suggest
1938 looking at the tests
1940 * Moose::Meta::Instance
1941 - added new Instance metaclass to support
1942 the new Class::MOP instance protocol
1944 * Moose::Meta::Class
1945 - some small changes to support the new
1947 - some small additions to support Roles
1949 * Moose::Meta::Attribute
1950 - some improvements to the accessor generation code
1952 - some small changes to support the new
1954 - (still somewhat) experimental delegation support
1955 with the 'handles' option
1956 - added several tests for this
1957 - no docs for this yet
1959 0.05 Thurs. April 27, 2006
1961 - keywords are now exported with Sub::Exporter
1962 thanks to chansen for this commit
1963 - has keyword now takes a 'metaclass' option
1964 to support custom attribute meta-classes
1965 on a per-attribute basis
1966 - added tests for this
1967 - the 'has' keyword not accepts inherited slot
1968 specifications (has '+foo'). This is still an
1969 experimental feature and probably not finished
1970 see t/038_attribute_inherited_slot_specs.t for
1971 more details, or ask about it on #moose
1972 - added tests for this
1975 - keywords are now exported with Sub::Exporter
1977 * Moose::Utils::TypeConstraints
1978 - reorganized the type constraint hierarchy, thanks
1979 to nothingmuch and chansen for his help and advice
1981 - added some tests for this
1982 - keywords are now exported with Sub::Exporter
1983 thanks to chansen for this commit
1985 * Moose::Meta::Class
1986 - due to changes in Class::MOP, we had to change
1987 construct_instance (for the better)
1989 * Moose::Meta::Attribute
1990 - due to changes in Class::MOP, we had to add the
1991 initialize_instance_slot method (it's a good thing)
1993 * Moose::Meta::TypeConstraint
1994 - added type constraint unions
1995 - added tests for this
1996 - added the is_subtype_of predicate method
1997 - added tests for this
1999 0.04 Sun. April 16th, 2006
2001 - Roles can now consume other roles
2002 - added tests for this
2003 - Roles can specify required methods now with
2004 the requires() keyword
2005 - added tests for this
2008 - ripped out much of it's guts ,.. much cleaner now
2009 - added required methods and correct handling of
2010 them in apply() for both classes and roles
2011 - added tests for this
2012 - no longer adds a does() method to consuming classes
2013 it relys on the one in Moose::Object
2014 - added roles attribute and some methods to support
2015 roles consuming roles
2017 * Moose::Meta::Attribute
2018 - added support for triggers on attributes
2019 - added tests for this
2020 - added support for does option on an attribute
2021 - added tests for this
2023 * Moose::Meta::Class
2024 - added support for attribute triggers in the
2026 - added tests for this
2029 - Moose no longer creates a subtype for your class
2030 if a subtype of the same name already exists, this
2031 should DWIM in 99.9999% of all cases
2033 * Moose::Util::TypeConstraints
2034 - fixed bug where incorrect subtype conflicts were
2036 - added test for this
2039 - this class can now be extended with 'use base' if
2040 you need it, it properly loads the metaclass class now
2041 - added test for this
2043 0.03_02 Wed. April 12, 2006
2045 - you must now explictly use Moose::Util::TypeConstraints
2046 it no longer gets exported for you automatically
2049 - new() now accepts hash-refs as well as key/value lists
2050 - added does() method to check for Roles
2051 - added tests for this
2053 * Moose::Meta::Class
2054 - added roles attribute along with the add_role() and
2056 - added tests for this
2059 - now adds a does() method to consuming classes
2060 which tests the class's hierarchy for roles
2061 - added tests for this
2063 0.03_01 Mon. April 10, 2006
2065 - added new Role recipe (no content yet, only code)
2068 - added 'with' keyword for Role support
2069 - added test and docs for this
2070 - fixed subtype quoting bug
2071 - added test for this
2075 - added test and docs
2077 * Moose::Util::TypeConstraints
2078 - added the message keyword to add custom
2079 error messages to type constraints
2082 - the meta role to support Moose::Role
2083 - added tests and docs
2085 * Moose::Meta::Class
2086 - moved a number of things from Moose.pm
2087 to here, they should have been here
2090 * Moose::Meta::Attribute
2091 - moved the attribute option macros here
2092 instead of putting them in Moose.pm
2094 * Moose::Meta::TypeConstraint
2095 - added the message attributes and the
2097 - added tests and docs for this
2099 0.03 Thurs. March 30, 2006
2101 - added the Moose::Cookbook with 5 recipes,
2102 describing all the stuff Moose can do.
2105 - fixed an issue with &extends super class loading
2106 it now captures errors and deals with inline
2107 packages correctly (bug found by mst, solution
2109 - added super/override & inner/augment features
2110 - added tests and docs for these
2113 - BUILDALL now takes a reference of the %params
2114 that are passed to &new, and passes that to
2117 * Moose::Util::TypeConstraints
2118 - Type constraints now survive runtime reloading
2119 - added test for this
2121 * Moose::Meta::Class
2122 - fixed the way attribute defaults are handled
2123 during instance construction (bug found by chansen)
2125 * Moose::Meta::Attribute
2126 - read-only attributes now actually enforce their
2127 read-only-ness (this corrected in Class::MOP as
2130 0.02 Tues. March 21, 2006
2132 - many more tests, fixing some bugs and
2134 - &extends now loads the base module with
2136 - added UNIVERSAL::require to the
2139 - each new Moose class will also create
2140 and register a subtype of Object which
2141 correspond to the new Moose class.
2142 - the 'isa' option in &has now only
2143 accepts strings, and will DWIM in
2146 * Moose::Util::TypeConstraints
2147 - added type coercion features
2148 - added tests for this
2149 - added support for this in attributes
2150 and instance construction
2152 - type construction no longer creates a
2153 function, it registers the type instead.
2154 - added several functions to get the
2158 - BUILDALL and DEMOLISHALL were broken
2159 because of a mis-named hash key, Whoops :)
2161 * Moose::Meta::Attribute
2162 - adding support for coercion in the
2163 autogenerated accessors
2165 * Moose::Meta::Class
2166 - adding support for coercion in the
2167 instance construction
2169 * Moose::Meta::TypeConstraint
2170 * Moose::Meta::TypeCoercion
2171 - type constraints and coercions are now
2172 full fledges meta-objects
2174 0.01 Wed. March 15, 2006
2175 - Moooooooooooooooooose!!!