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
14 0.69 Thu, February 12, 2009
16 - Make some keyword errors use throw_error instead of croak
17 since Moose::Exporter wraps keywords now (Sartak)
20 - Revised every recipe for style and clarity. Also moved some
21 documentation out of cookbook recipes and into Moose::Manual
22 pages. This work was funded as part of the Moose docs grant
23 from TPF. (Dave Rolsky)
25 * Moose::Meta::Method::Delegation
26 - If the attribute doing the delegation was not populated, the
27 error message did not specify the attribute name
30 0.68 Wed, February 4, 2009
32 - Many spelling, typo, and formatting fixes by daxim.
34 * Moose::Manual::Attributes
35 - The NAME section in the POD used "Attribute" so search.cpan
36 didn't resolve links from other documents properly.
38 * Moose::Meta::Method::Overriden
39 - Now properly spelled as Overridden. Thanks to daxim for
42 0.67 Tue, February 3, 2009
44 - Lots of little typo fixes and a few clarifications. Several
45 pages didn't have proper titles, and so weren't actually
46 visible on search.cpan.org. Thanks to hanekomu for a variety
47 of fixes and formatting improvements.
49 0.66 Tue, February 3, 2009
51 - This is a brand new, extensive manual for Moose. This aims to
52 provide a complete introduction to all of Moose's
53 features. This work was funded as part of the Moose docs grant
54 from TPF. (Dave Rolsky)
56 * Moose::Meta::Attribute
57 - Added a delegation_metaclass method to replace a hard-coded
58 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
60 * Moose::Util::TypeConstraints
61 - If you created a subtype and passed a parent that Moose didn't
62 know about, it simply ignored the parent. Now it automatically
63 creates the parent as a class type. This may not be what you
64 want, but is less broken than before. (Dave Rolsky)
66 * Moose::Util::TypeConstraints
67 - This module tried throw errors by calling Moose->throw_error,
68 but it did not ensure that Moose was loaded first. This could
69 cause very unhelpful errors when it tried to throw an error
70 before Moose was loaded. (Dave Rolsky)
72 * Moose::Util::TypeConstraints
73 - You could declare a name with subtype such as "Foo!Bar" that
74 would be allowed, but if you used it in a parameterized type
75 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
76 vetting on names created via the sugar functions, so that they
77 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
79 0.65 Thu, January 22, 2008
80 * Moose and Moose::Meta::Method::Overridden
81 - If an overridden method called super(), and then the
82 superclass's method (not overridden) _also_ called super(),
83 Moose went into an endless recursion loop. Test provided by
84 Chris Prather. (Dave Rolsky)
86 * Moose::Meta::TypeConstraint
87 - All methods are now documented. (gphat)
89 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
90 - Fixed some bogus failures that occurred because we tried to
91 validate filesystem paths in a very ad-hoc and
92 not-quite-correct way. (Dave Rolsky)
94 * Moose::Util::TypeConstraints
95 - Added maybe_type to exports. See docs for details. (rjbs)
98 - Added Moose::Util::TypeConstraints to the SEE ALSO
102 - Methods created via an attribute can now fulfill a "requires"
103 declaration for a role. (nothingmuch)
105 * Moose::Meta::Method::*
106 - Stack traces from inlined code will now report its line and
107 file as being in your class, as opposed to in Moose
110 0.64 Wed, December 31, 2008
111 * Moose::Meta::Method::Accessor
112 - Always inline predicate and clearer methods (Sartak)
114 * Moose::Meta::Attribute
115 - Support for parameterized traits (Sartak)
116 - verify_against_type_constraint method to avoid duplication
117 and enhance extensibility (Sartak)
120 - Tests (but no support yet) for parameterized traits (Sartak)
123 - Require Class::MOP 0.75+, which has the side effect of making
124 sure we work on Win32. (Dave Rolsky)
126 0.63 Mon, December 8, 2008
128 - Some small grammar tweaks and bug fixes in non-Moose example
131 0.62_02 Fri, December 5, 2008
132 * Moose::Meta::Role::Application::ToClass
133 - When a class does not provide all of a role's required
134 methods, the error thrown now mentions all of the missing
135 methods, as opposed to just the first one found. Requested by
136 Curtis Poe (RT #41119). (Dave Rolsky)
138 * Moose::Meta::Method::Constructor
139 - Moose will no longer inline a constructor for your class
140 unless it inherits its constructor from Moose::Object, and
141 will warn when it doesn't inline. If you want to force
142 inlining anyway, pass "replace_constructor => 1" to
143 make_immutable. Addresses RT #40968, reported by Jon
144 Swartz. (Dave Rolsky)
145 - The quoting of default values could be broken if the default
146 contained a single quote ('). Now we use quotemeta to escape
147 anything potentially dangerous in the defaults. (Dave Rolsky)
149 0.62_01 Wed, December 3, 2008
151 - use the method->execute API for BUILDALL
152 and DEMOLISHALL (Sartak)
154 * Moose::Util::TypeConstraints
155 - We now make all the type constraint meta classes immutable
156 before creating the default types provided by Moose. This
157 should make loading Moose a little faster. (Dave Rolsky)
159 0.62 Wed November 26, 2008
160 * Moose::Meta::Role::Application::ToClass
161 Moose::Meta::Role::Application::ToRole
162 - fixed issues where excluding and aliasing the
163 same methods for a single role did not work
164 right (worked just fine with multiple
166 - added test for this (stevan)
168 * Moose::Meta::Role::Application::RoleSummation
169 - fixed the error message when trying to compose
170 a role with a role it excludes (Sartak)
173 - Catch another case where recursion caused the value
174 of $CALLER to be stamped on (t0m)
175 - added test for this (t0m)
178 - Remove the make_immutable keyword, which has been
179 deprecated since April. It breaks metaclasses that
180 use Moose without no Moose (Sartak)
182 * Moose::Meta::Attribute
183 - Removing an attribute from a class now also removes delegation
184 (handles) methods installed for that attribute (t0m)
185 - added test for this (t0m)
187 * Moose::Meta::Method::Constructor
188 - An attribute with a default that looked like a number (but was
189 really a string) would accidentally be treated as a number
190 when the constructor was made immutable (perigrin)
191 - added test for this (perigrin)
194 - create method for constructing a role
196 - added test for this (Sartak)
197 - anonymous roles! (Sartak)
198 - added test for this (Sartak)
201 - more consistent error messages (Sartak)
203 * Moose::Cookbook::Roles::Recipe1
204 - attempt to explain why a role that just requires
205 methods is useful (Sartak)
207 0.61 Fri November 7, 2008
208 * Moose::Meta::Attribute
209 - When passing a role to handles, it will be loaded if necessary
213 - Method objects returned by get_method (and other methods)
214 Could end up being returned without an associated_metaclass
215 attribute. Removing get_method_map, which is provided by
216 Class::MOP::Class, fixed this. The Moose version did nothing
217 different from its parent except introduce a bug. (Dave Rolsky)
218 - added tests for this (jdv79)
221 - Added a $VERSION to all .pm files which didn't have one. Fixes
222 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
224 * Moose::Cookbook::Basics::Recipe4
225 * Moose::Cookbook::Basics::Recipe6
226 - These files had spaces on the first line of the SYNOPSIS, as
227 opposed to a totally empty line. According to RT #40432, this
228 confuses POD parsers. (Dave Rolsky)
230 0.60 Fri October 24, 2008
232 - Passing "-traits" when loading Moose caused the Moose.pm
233 exports to be broken. Reported by t0m. (Dave Rolsky)
234 - Tests for this bug. (t0m)
237 - Change resolve_metaclass alias to use the new
238 load_first_existing_class function. This makes it a lot
239 simpler, and also around 5 times faster. (t0m)
240 - Add caching to resolve_metaclass_alias, which gives an order
241 of magnitude speedup to things which repeatedly call the
242 Moose::Meta::Attribute->does method, notably MooseX::Storage
245 * Moose::Util::TypeConstraint
246 - Put back the changes for parameterized constraints that
247 shouldn't have been removed in 0.59. We still cannot parse
248 them, but MooseX modules can create them in some other
249 way. See the 0.58 changes for more details. (jnapiorkowski)
250 - Changed the way subtypes are created so that the job is
251 delegated to a type constraint parent. This clears up some
252 hardcoded checking and should allow correct subtypes of
253 Moose::Meta::Type::Constraint. Don't rely on this new API too
254 much (create_child_type) because it may go away in the
255 future. (jnapiorkowski)
257 * Moose::Meta::TypeConstraint::Union
258 - Type constraint names are sorted as strings, not numbers.
261 * Moose::Meta::TypeConstraint::Parameterizable
262 - New parameterize method. This can be used as a factory method
263 to make a new type constraint with a given parameterized
264 type. (jnapiorkowski)
265 - added tests (jnapiorkowski)
267 0.59 Tue October 14, 2008
269 - Add abridged documentation for builder/default/initializer/
270 predicate, and link to more details sections in
271 Class::MOP::Attribute. (t0m)
273 * Moose::Util::TypeConstraints
274 - removed prototypes from all but the &-based stuff (mst)
276 * Moose::Util::TypeConstraints
277 - Creating a anonymous subtype with both a constraint and a
278 message failed with a very unhelpful error, but should just
279 work. Reported by t0m. (Dave Rolsky)
282 - Some tests that used Test::Warn if it was available failed
283 with older versions of Test::Warn. Reported by Fayland. (Dave
285 - Test firing behavior of triggers in relation to builder/default/
287 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
288 kinds of supported type. (t0m)
291 - In create(), do not pass "roles" option to the superclass
292 - added related test that creates an anon metaclass with
295 * Moose::Meta::TypeConstraint::Class
296 * Moose::Meta::TypeConstraint::Role
297 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
298 other types (as per change in 0.55_02). (t0m)
300 * Moose::Meta::TypeConstraint::Registry
301 - Fix warning when dealing with unknown type names (t0m)
303 * Moose::Util::TypeConstraints
304 - Reverted changes from 0.58 related to handle parameterized
305 types. This caused random failures on BSD and Win32 systems,
306 apparently related to the regex engine. This means that Moose
307 can no longer parse structured type constraints like
308 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
309 supported in a slightly different way via MooseX::Types some
310 time in the future. (Dave Rolsky)
312 0.58 Sat September 20, 2008
313 !! This release has an incompatible change regarding !!
314 !! how roles add methods to a class !!
316 * Roles and role application
317 ! Roles now add methods by calling add_method, not
318 alias_method. They make sure to always provide a method
319 object, which will be cloned internally. This means that it is
320 now possible to track the source of a method provided by a
321 role, and even follow its history through intermediate roles.
323 This means that methods added by a role now show up when
324 looking at a class's method list/map. (Dave Rolsky)
327 - From this release on, we'll try to maintain a list of
328 conflicting modules, and warn you if you have one
329 installed. For example, this release conflicts with ...
330 - MooseX::Singleton <= 0.11
331 - MooseX::Params::Validate <= 0.05
334 In general, we try to not break backwards compatibility for
335 most Moose users, but MooseX modules and other code which
336 extends Moose's metaclasses is often affected by very small
337 changes in the Moose internals.
339 * Moose::Meta::Method::Delegation
340 * Moose::Meta::Attribute
341 - Delegation methods now have their own method class. (Dave
344 * Moose::Meta::TypeConstraint::Parameterizable
345 - Added a new method 'parameterize' which is basically a factory
346 for the containing constraint. This makes it easier to create
347 new types of parameterized constraints. (jnapiorkowski)
349 * Moose::Meta::TypeConstraint::Union
350 - Changed the way Union types canonicalize their names to follow
351 the normalized TC naming rules, which means we strip all
352 whitespace. (jnapiorkowski)
354 * Moose::Util::TypeConstraints
355 - Parameter and Union args are now sorted, this makes Int|Str
356 the same constraint as Str|Int. (jnapiorkowski)
357 - Changes to the way Union types are parsed to more correctly
358 stringify their names. (jnapiorkowski)
359 - When creating a parameterized type, we now use the new
360 parameterize method. (jnapiorkowski)
361 - Incoming type constraint strings are now normalized to remove
362 all whitespace differences. (jnapiorkowski)
363 - Changed the way we parse type constraint strings so that we now
364 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
365 constraints. This lays the foundation for more flexible type
366 constraint implementations.
368 * Tests and docs for all the above. (jnapiorkowski)
372 - Moose::Exporter will no longer remove a subroutine that the
373 exporting package re-exports. Moose re-exports the
374 Carp::confess function, among others. The reasoning is that we
375 cannot know whether you have also explicitly imported those
376 functions for your own use, so we err on the safe side and
377 always keep them. (Dave Rolsky)
378 - added tests for this (rafl)
381 - Changes to how we fix metaclass compatibility that are much
382 too complicated to go into. The summary is that Moose is much
383 less likely to complain about metaclass incompatibility
384 now. In particular, if two metaclasses differ because
385 Moose::Util::MetaRole was used on the two corresponding
386 classes, then the difference in roles is reconciled for the
387 subclass's metaclass. (Dave Rolsky)
388 - Squashed an warning in _process_attribute (thepler)
391 - throw exceptions (sooner) for invalid attribute names (thepler)
392 - added tests for this (thepler)
394 * Moose::Util::MetaRole
395 - If you explicitly set a constructor or destructor class for a
396 metaclass object, and then applied roles to the metaclass,
397 that explicitly set class would be lost and replaced with the
401 * Moose::Meta::Attribute
402 * Moose::Meta::Method
405 * Moose::Error::Default
406 * Moose::Error::Croak
407 * Moose::Error::Confess
408 - All instances of confess() changed to use overridable
409 C<throw_error> method. This method ultimately calls a class
410 constructor, and you can change the class being called. In
411 addition, errors now pass more information than just a string.
412 The default C<error_class> behaves like C<Carp::confess>, so
413 the behavior is not visibly different for end users.
415 0.57 Wed September 3, 2008
417 - A new bit of doc intended to introduce folks familiar with
418 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
421 - Shows examples of two classes, each done first with and then
422 without Moose. This makes a nice parallel to
423 Moose::Intro. (Dave Rolsky)
425 * Moose::Util::TypeConstraints
426 - Fixed a bug in find_or_parse_type_constraint so that it
427 accepts a Moose::Meta::TypeConstraint object as the parent
428 type, not just a name (jnapiorkowski)
429 - added tests (jnapiorkowski)
432 - If Sub::Name was not present, unimporting failed to actually
433 remove some sugar subs, causing test failures (Dave Rolsky)
435 0.56 Mon September 1, 2008
436 For those not following the series of dev releases, there are
437 several major changes in this release of Moose.
438 ! Moose::init_meta should now be called as a method. See the
441 - Major performance improvements by nothingmuch.
443 - New modules for extension writers, Moose::Exporter and
444 Moose::Util::MetaRole by Dave Rolsky.
446 - Lots of doc improvements and additions, especially in the
451 * Removed all references to the experimental-but-no-longer-needed
452 Moose::Meta::Role::Application::ToMetaclassInstance.
454 * Require Class::MOP 0.65.
456 0.55_04 Sat August 30, 2008
457 * Moose::Util::MetaRole
458 * Moose::Cookbook::Extending::Recipe2
459 - This simplifies the application of roles to any meta class, as
460 well as the base object class. Reimplemented metaclass traits
461 using this module. (Dave Rolsky)
463 * Moose::Cookbook::Extending::Recipe1
464 - This a new recipe, an overview of various ways to write Moose
465 extensions (Dave Rolsky)
467 * Moose::Cookbook::Extending::Recipe3
468 * Moose::Cookbook::Extending::Recipe4
469 - These used to be Extending::Recipe1 and Extending::Recipe2,
472 0.55_03 Fri August 29, 2008
473 * No changes from 0.55_02 except increasing the Class::MOP
474 dependency to 0.64_07.
476 0.55_02 Fri August 29, 2008
477 * Makefile.PL and Moose.pm
478 - explicitly require Perl 5.8.0+ (Dave Rolsky)
480 * Moose::Util::TypeConstraints
481 - Fix warnings from find_type_constraint if the type is not
484 * Moose::Meta::TypeConstraint
485 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
486 return false if the type you specify cannot be found in the
487 type registry, rather than throwing an unhelpful and
488 coincidental exception. (t0m).
489 - added docs & test for this (t0m)
491 * Moose::Meta::TypeConstraint::Registry
492 - add_type_constraint now throws an exception if a parameter is
494 - added docs & test for this (t0m)
496 * Moose::Cookbook::FAQ
497 - Added a faq entry on the difference between "role" and "trait"
501 - Fixed a bug that caused role composition to not see a required
502 method when that method was provided by another role being
503 composed at the same time. (Dave Rolsky)
504 - test and bug finding (tokuhirom)
506 0.55_01 Wed August 20, 2008
508 !! Calling Moose::init_meta as a function is now !!
509 !! deprecated. Please see the Moose.pm docs for details. !!
511 * Moose::Meta::Method::Constructor
512 - Fix inlined constructor so that values produced by default
513 or builder methods are coerced as required. (t0m)
514 - added test for this (t0m)
516 * Moose::Meta::Attribute
517 - A lazy attribute with a default or builder did not attempt to
518 coerce the default value. The immutable code _did_
520 - added test for this (t0m)
523 - This is a new helper module for writing "Moose-alike"
524 modules. This should make the lives of MooseX module authors
525 much easier. (Dave Rolsky)
528 * Moose::Cookbook::Meta::Recipe5
529 - Implemented metaclass traits (and wrote a recipe for it):
531 use Moose -traits => 'Foo'
533 This should make writing small Moose extensions a little
536 * Moose::Cookbook::Basics::Recipe1
537 - Removed any examples of direct hashref access, and applied an
538 editorial axe to reduce verbosity. (Dave Rolsky)
540 * Moose::Cookbook::Basics::Recipe1
541 - Also applied an editorial axe here. (Dave Rolsky)
544 * Moose::Cookbook::Extending::Recipe1
545 * Moose::Cookbook::Extending::Recipe2
546 - Rewrote extending and embedding moose documentation and
547 recipes to use Moose::Exporter (Dave Rolsky)
551 - These two modules now warn when you load them from the main
552 package "main" package, because we will not export sugar to
553 main. Previously it just did nothing. (Dave Rolsky)
556 - Now provide an init_meta method just like Moose.pm, and you
557 can call this to provide an alternate role metaclass. (Dave
558 Rolsky and nothingmuch)
559 - get_method_map now respects the package cache flag (nothingmuch)
562 - Two new methods - add_method and wrap_method_body
566 - Optimizations including allowing constructors to accept hash
567 refs, making many more classes immutable, and making
568 constructors immutable. (nothingmuch)
570 0.55 Sun August 3, 2008
571 * Moose::Meta::Attribute
572 - breaking down the way 'handles' methods are
573 created so that the process can be more easily
574 overridden by subclasses (stevan)
576 * Moose::Meta::TypeConstraint
577 - fixing what is passed into a ->message with
578 the type constraints (RT #37569)
579 - added tests for this (Charles Alderman)
581 * Moose::Util::TypeConstraints
582 - fix coerce to accept anon types like subtype can (mst)
585 - reorganized the recipes into sections - Basics, Roles, Meta,
586 Extending - and wrote abstracts for each section (Dave Rolsky)
588 * Moose::Cookbook::Basics::Recipe10
589 - A new recipe that demonstrates operator overloading
590 in combination with Moose. (bluefeet)
592 * Moose::Cookbook::Meta::Recipe1
593 - an introduction to what meta is and why you'd want to make
594 your own metaclass extensions (Dave Rolsky)
596 * Moose::Cookbook::Meta::Recipe4
597 - a very simple metaclass example (Dave Rolsky)
599 * Moose::Cookbook::Extending::Recipe1
600 - how to write a Moose-alike module to use your own object base
603 * Moose::Cookbook::Extending::Recipe2
604 - how to write modules with an API just like C<Moose.pm> (Dave
608 - Tons of fixes, both syntactical and grammatical (Dave
609 Rolsky, Paul Fenwick)
611 0.54 Thurs. July 3, 2008
612 ... this is not my day today ...
614 * Moose::Meta::Attribute
615 - fixed legal_options_for_inheritance such that
616 clone_and_inherit options still works for
617 Class::MOP::Attribute objects and therefore
618 does not break MooseX::AttributeHelpers
621 0.53 Thurs. July 3, 2008
622 * Whoops, I guess I should run 'make manifest' before
623 actually releasing the module. No actual changes
624 in this release, except the fact that it includes
625 the changes that I didn't include in the last
628 0.52 Thurs. July 3, 2008
630 - added "FEATURE REQUESTS" section to the Moose docs
631 to properly direct people (stevan) (RT #34333)
632 - making 'extends' croak if it is passed a Role since
633 this is not ever something you want to do
634 (fixed by stevan, found by obra)
635 - added tests for this (stevan)
638 - adding support for DOES (as in UNIVERSAL::DOES)
640 - added test for this
642 * Moose::Meta::Attribute
643 - added legal_options_for_inheritance (wreis)
644 - added tests for this (wreis)
646 * Moose::Cookbook::Snacks::*
647 - removed some of the unfinished snacks that should
648 not have been released yet. Added some more examples
649 to the 'Keywords' snack. (stevan)
651 * Moose::Cookbook::Style
652 - added general Moose "style guide" of sorts to the
653 cookbook (nothingmuch) (RT #34335)
656 - added more BUILDARGS tests (stevan)
658 0.51 Thurs. Jun 26, 2008
660 - add unimport so "no Moose::Role" actually does
663 * Moose::Meta::Role::Application::ToRole
664 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
665 order to provide its own implementation, that method still got
666 added to the list of required methods for consumers of
667 RoleB. Now an aliased method is only added to the list of
668 required methods if the role doing the aliasing does not
669 provide its own implementation. See Recipe 11 for an example
670 of all this. (Dave Rolsky)
671 - added tests for this
673 * Moose::Meta::Method::Constructor
674 - when a single argument that wasn't a hashref was provided to
675 an immutabilized constructor, the error message was very
676 unhelpful, as opposed to the non-immutable error. Reported by
678 - added test for this (Dave Rolsky)
680 * Moose::Meta::Attribute
681 - added support for meta_attr->does("ShortAlias") (sartak)
682 - added tests for this (sartak)
683 - moved the bulk of the `handles` handling to the new
684 install_delegation method (Stevan)
687 - Added BUILDARGS, a new step in new()
689 * Moose::Meta::Role::Application::RoleSummation
690 - fix typos no one ever sees (sartak)
692 * Moose::Util::TypeConstraints
693 * Moose::Meta::TypeConstraint
694 * Moose::Meta::TypeCoercion
695 - Attempt to work around the ??{ } vs. threads issue
697 - Some null_constraint optimizations
699 0.50 Thurs. Jun 11, 2008
700 - Fixed a version number issue by bumping all modules
703 0.49 Thurs. Jun 11, 2008
704 !! This version now approx. 20-25% !!
705 !! faster with new Class::MOP 0.59 !!
707 * Moose::Meta::Attribute
708 - fixed how the is => (ro|rw) works with
709 custom defined reader, writer and accessor
711 - added docs for this (TODO).
712 - added tests for this (Thanks to Penfold)
713 - added the custom attribute alias for regular
714 Moose attributes which is "Moose"
715 - fix builder and default both being used
720 Moose::Meta::Attribute
722 Moose::Meta::Role::Composite
723 Moose::Util::TypeConstraints
724 - switched usage of reftype to ref because
728 - changing add_package_symbol to use the new
732 - fixed how DEMOLISHALL is called so that it
733 can be overrided in subclasses (thanks to Sartak)
734 - added test for this (thanks to Sartak)
736 * Moose::Util::TypeConstraints
737 - move the ClassName type check code to
738 Class::MOP::is_class_loaded (thanks to Sartak)
740 * Moose::Cookbook::Recipe11
741 - add tests for this (thanks to tokuhirom)
743 0.48 Thurs. May 29, 2008
744 (early morning release engineering)--
746 - fixing the version in Moose::Meta::Method::Destructor
747 which was causing the indexer to choke
749 0.47 Thurs. May 29, 2008
750 (late night release engineering)--
752 - fixing the version is META.yml, no functional
753 changes in this release
755 0.46 Wed. May 28, 2008
756 !! This version now approx. 20-25% !!
757 !! faster with new Class::MOP 0.57 !!
760 - some optimizations of the &initialize method
761 since it is called so often by &meta
765 - now use the get_all_package_symbols from the
766 updated Class::MOP, test suite is now 10 seconds
769 * Moose::Meta::Method::Destructor
770 - is_needed can now also be called as a class
771 method for immutablization to check if the
772 destructor object even needs to be created
775 * Moose::Meta::Method::Destructor
776 Moose::Meta::Method::Constructor
777 - added more descriptive error message to help
778 keep people from wasting time tracking an error
779 that is easily fixed by upgrading.
781 0.45 Saturday, May 24, 2008
783 - Because of work in Class::MOP 0.57, all
784 XS based functionality is now optional
785 and a Pure Perl version is supplied
786 - the CLASS_MOP_NO_XS environment variable
787 can now be used to force non-XS versions
789 - several of the packages have been tweaked
790 to take care of this, mostly we added
791 support for the package_name and name
792 variables in all the Method metaclasses
793 - before/around/after method modifiers now
794 support regexp matching of names
795 (thanks to Takatoshi Kitano)
796 - tests added for this
797 - NOTE: this only works for classes, it
798 is currently not supported in roles,
799 but, ... patches welcome
800 - All usage of Carp::confess have been replaced
801 by Carp::croak in the "keyword" functions since
802 the stack trace is usually not helpful
805 - All usage of Carp::confess have been replaced
806 by Carp::croak in the "keyword" functions since
807 the stack trace is usually not helpful
808 - The 'has' keyword for roles now accepts the
809 same array ref form that Moose.pm does
810 (has [qw/foo bar/] => (is => 'rw', ...))
811 - added test for this
813 * Moose::Meta::Attribute
814 - trigger on a ro-attribute is no longer an
815 error, as it's useful to trigger off of the
819 - added same 'add_package_symbol' fix as in
823 - does_role now handles non-Moose classes
825 - added tests for this
826 - added the 'add_method_modifier' function
827 (thanks to Takatoshi Kitano)
829 * Moose::Util::TypeConstraints
830 - subtypes of parameterizable types now are
831 themselves parameterizable types
833 * Moose::Meta::Method::Constructor
834 - fixed bug where trigger was not being
835 called by the inlined immutable
837 - added test for this (thanks to Caelum)
839 * Moose::Meta::Role::Application::ToInstance
840 - now uses the metaclass of the instance
841 (if possible) to create the anon-class
842 (thanks Jonathan Rockway)
844 * Moose::Cookbook::Recipe22
845 - added the meta-attribute trait recipe
849 - fixed hash-ordering test bug that was
850 causing occasional cpantester failures
851 - renamed the t/000_recipe/*.t tests to be
852 more descriptive (thanks to Sartak)
854 0.44 Sat. May 10, 2008
856 - made make_immutable warning cluck to
857 show where the error is (thanks mst)
860 - BUILDALL and DEMOLISHALL now call
861 ->body when looping through the
862 methods, to avoid the overloaded
864 - fixed issue where DEMOLISHALL was
865 eating the $@ values, and so not
866 working correctly, it still kind of
867 eats them, but so does vanilla perl
868 - added tests for this
870 * Moose::Cookbook::Recipe7
871 - added new recipe for immutable
872 functionality (thanks Dave Rolsky)
874 * Moose::Cookbook::Recipe9
875 - added new recipe for builder and
876 lazy_build (thanks Dave Rolsky)
878 * Moose::Cookbook::Recipe11
879 - added new recipe for method aliasing
880 and exclusion with Roles (thanks Dave Rolsky)
883 - fixed Win32 test failure (thanks spicyjack)
885 ~ removed Build.PL and Module::Build compat
886 since Module::Install has done that.
888 0.43 Wed. April, 30, 2008
890 drink more coffee before
891 doing release engineering
893 - whoops, forgot to do the smolder tests,
894 and we broke some of the custom meta-attr
895 modules. This fixes that.
897 0.42 Mon. April 28, 2008
898 - some bad tests slipped by, nothing else
899 changed in this release (cpantesters++)
901 - upped the Class::MOP dependency to 0.55
902 since we have tests which need the C3
905 0.41 Mon. April 28, 2008
906 ~~ numerous documentation updates ~~
908 - Changed all usage of die to Carp::croak for better
909 error reporting (initial patch by Tod Hagan)
912 - the make_immutable keyword is now deprecated, don't
913 use it in any new code and please fix your old code
914 as well. There will be 2 releases, and then it will
920 - refactored the way inner and super work to avoid
921 any method/@ISA cache penalty (nothingmuch)
924 - fixing &new_object to make sure trigger gets the
925 coerced value (spotted by Charles Alderman on the
927 - added test for this
929 * Moose::Meta::Method::Constructor
930 - immutable classes which had non-lazy attributes were calling
931 the default generating sub twice in the constructor. (bug
932 found by Jesse Luehrs, fixed by Dave Rolsky)
933 - added tests for this (Dave Rolsky)
934 - fix typo in initialize_body method (nothingmuch)
936 * Moose::Meta::Method::Destructor
937 - fix typo in initialize_body method (nothingmuch)
939 * Moose::Meta::Method::Overriden
940 Moose::Meta::Method::Augmented
941 - moved the logic for these into their own
942 classes (nothingmuch)
944 * Moose::Meta::Attribute
945 - inherited attributes may now be extended without
946 restriction on the type ('isa', 'does') (Sartak)
947 - added tests for this (Sartak)
948 - when an attribute property is malformed (such as lazy without
949 a default), give the name of the attribute in the error
951 - added the &applied_traits and &has_applied_traits methods
952 to allow introspection of traits
953 - added tests for this
954 - moved 'trait' and 'metaclass' argument handling to here from
956 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
957 '+foo' syntax) (nothingmuch)
958 - added tests for this (t0m)
961 - localize $@ inside DEMOLISHALL to avoid it
962 eating $@ (found by Ernesto)
963 - added test for this (thanks to Ernesto)
965 * Moose::Util::TypeConstraints
966 - &find_type_constraint now DWIMs when given an
967 type constraint object or name (nothingmuch)
968 - &find_or_create_type_constraint superseded with a number of more
970 - find_or_create_{isa,does}_type_constraint
971 - find_or_parse_type_constraint
973 * Moose::Meta::TypeConstraint
974 Moose::Meta::TypeConstraint::Class
975 Moose::Meta::TypeConstraint::Role
976 Moose::Meta::TypeConstraint::Enum
977 Moose::Meta::TypeConstraint::Union
978 Moose::Meta::TypeConstraint::Parameterized
979 - added the &equals method for comparing two type
980 constraints (nothingmuch)
981 - added tests for this (nothingmuch)
983 * Moose::Meta::TypeConstraint
984 - add the &parents method, which is just an alias to &parent.
985 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
987 * Moose::Meta::TypeConstraint::Class
988 - added the class attribute for introspection purposes
990 - added tests for this
992 * Moose::Meta::TypeConstraint::Enum
993 Moose::Meta::TypeConstraint::Role
994 - broke these out into their own classes (nothingmuch)
996 * Moose::Cookbook::Recipe*
997 - fixed references to test file locations in the POD
998 and updated up some text for new Moose features
1002 - Added &resolve_metaclass_alias, a helper function for finding an actual
1003 class for a short name (e.g. in the traits list)
1005 0.40 Fri. March 14, 2008
1006 - I hate Pod::Coverage
1008 0.39 Fri. March 14, 2008
1010 - documenting the use of '+name' with attributes
1011 that come from recently composed roles. It makes
1012 sense, people are using it, and so why not just
1013 officially support it.
1014 - fixing the 'extends' keyword so that it will not
1015 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1018 - added the perl -Moose=+Class::Name feature to allow
1019 monkeypatching of classes in one liners
1022 - fixing the 'apply_all_roles' keyword so that it will not
1023 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1025 * Moose::Meta::Class
1026 - added ->create method which now supports roles (thanks to jrockway)
1027 - added tests for this
1028 - added ->create_anon_class which now supports roles and caching of
1029 the results (thanks to jrockway)
1030 - added tests for this
1031 - made ->does_role a little more forgiving when it is
1032 checking a Class::MOP era metaclasses.
1034 * Moose::Meta::Role::Application::ToInstance
1035 - it is now possible to pass extra params to be used when
1036 a role is applied to an the instance (rebless_params)
1037 - added tests for this
1039 * Moose::Util::TypeConstraints
1040 - class_type now accepts an optional second argument for a
1041 custom message. POD anotated accordingly (groditi)
1042 - added tests for this
1043 - it is now possible to make anon-enums by passing 'enum' an
1044 ARRAY ref instead of the $name => @values. Everything else
1046 - added tests for this
1049 - making test for using '+name' on attributes consumed
1050 from a role, it works and makes sense too.
1052 * Moose::Meta::Attribute
1053 - fix handles so that it doesn't return nothing
1054 when the method cannot be found, not sure why
1055 it ever did this originally, this means we now
1056 have slightly better support for AUTOLOADed
1058 - added more delegation tests
1059 - adding ->does method to this so as to better
1060 support traits and their introspection.
1061 - added tests for this
1064 - localizing the Data::Dumper configurations so
1065 that it does not pollute others (RT #33509)
1066 - made ->does a little more forgiving when it is
1067 passed Class::MOP era metaclasses.
1069 0.38 Fri. Feb. 15, 2008
1070 * Moose::Meta::Attribute
1071 - fixed initializer to correctly do
1072 type checking and coercion in the
1074 - added tests for this
1077 - fixed some finicky tests (thanks to konobi)
1079 0.37 Thurs. Feb. 14, 2008
1081 - fixed some details in Moose::init_meta
1082 and its superclass handling (thanks thepler)
1083 - added tests for this (thanks thepler)
1084 - 'has' now dies if you don't pass in name
1086 - added the 'make_immutable' keyword as a shortcut
1089 * Moose::Meta::Class
1090 Moose::Meta::Method::Constructor
1091 Moose::Meta::Attribute
1092 - making (init_arg => undef) work here too
1093 (thanks to nothingmuch)
1095 * Moose::Meta::Attribute
1096 Moose::Meta::Method::Constructor
1097 Moose::Meta::Method::Accessor
1098 - make lazy attributes respect attr initializers (rjbs)
1099 - added tests for this
1101 * Moose::Util::TypeConstraints
1102 Moose::Util::TypeConstraints::OptimizedConstraints
1103 Moose::Meta::TypeConstraints
1104 Moose::Meta::Attribute
1105 Moose::Meta::Method::Constructor
1106 Moose::Meta::Method::Accessor
1107 - making type errors use the
1108 assigned message (thanks to Sartak)
1109 - added tests for this
1111 * Moose::Meta::Method::Destructor
1112 - making sure DESTROY gets inlined properly
1113 with successive DEMOLISH calls (thanks to manito)
1115 * Moose::Meta::Attribute
1116 Moose::Meta::Method::Accessor
1117 - fixed handling of undef with type constraints
1119 - added tests for this
1122 - added &get_all_init_args and &get_all_attribute_values
1123 (thanks to Sartak and nothingmuch)
1125 0.36 Sat. Jan. 26, 2008
1127 Moose::Meta::Attribute
1128 - role type tests now support when roles are
1129 applied to non-Moose classes (found by ash)
1130 - added tests for this (thanks to ash)
1131 - couple extra tests to boost code coverage
1133 * Moose::Meta::Method::Constructor
1134 - improved fix for handling Class::MOP attributes
1135 - added test for this
1137 * Moose::Meta::Class
1138 - handled the add_attribute($attribute_meta_object)
1140 - added test for this
1142 0.35 Tues. Jan. 22, 2008
1143 * Moose::Meta::Method::Constructor
1144 - fix to make sure even Class::MOP attributes
1145 are handled correctly (Thanks to Dave Rolsky)
1146 - added test for this (also Dave Rolsky)
1148 * Moose::Meta::Class
1149 - improved error message on _apply_all_roles,
1150 you should now use Moose::Util::apply_all_roles
1151 and you shouldnt have been using a _ prefixed
1152 method in the first place ;)
1154 0.34 Mon. Jan. 21, 2008
1155 ~~~ more misc. doc. fixes ~~~
1156 ~~ updated copyright dates ~~
1158 Moose is now a postmodern object system :)
1159 - (see the POD for details)
1161 * <<Role System Refactoring>>
1162 - this release contains a major reworking and
1163 cleanup of the role system
1164 - 100% backwards compat.
1165 - Role application now restructured into seperate
1166 classes based on type of applicants
1167 - Role summation (combining of more than one role)
1168 is much cleaner and anon-classes are no longer
1169 used in this process
1170 - new Composite role metaclass
1171 - runtime application of roles to instances
1172 is now more efficient and re-uses generated
1173 classes when applicable
1175 * <<New Role composition features>>
1176 - methods can now be excluded from a given role
1178 - methods can now be aliased to another name (and
1179 still retain the original as well)
1181 * Moose::Util::TypeConstraints::OptimizedConstraints
1182 - added this module (see above)
1184 * Moose::Meta::Class
1185 - fixed the &_process_attribute method to be called
1186 by &add_attribute, so that the API is now correct
1188 * Moose::Meta::Method::Accessor
1189 - fixed bug when passing a list of values to
1190 an accessor would get (incorrectly) ignored.
1191 Thanks to Sartak for finding this ;)
1192 - added tests for this (Sartak again)
1194 * Moose::Meta::Method::Accessor
1195 Moose::Meta::Method::Constructor
1196 Moose::Meta::Attribute
1197 Moose::Meta::TypeConstraint
1198 Moose::Meta::TypeCoercion
1199 - lots of cleanup of such things as:
1201 - type constraint handling
1202 - error handling/messages
1203 (thanks to nothingmuch)
1205 * Moose::Meta::TypeConstraint::Parameterizable
1206 - added this module to support the refactor
1207 in Moose::Meta::TypeConstraint::Parameterized
1209 * Moose::Meta::TypeConstraint::Parameterized
1210 - refactored how these types are handled so they
1211 are more generic and not confined to ArrayRef
1215 - shortened some file names for better VMS support (RT #32381)
1217 0.33 Fri. Dec. 14, 2007
1218 !! Moose now loads 2 x faster !!
1219 !! with new Class::MOP 0.49 !!
1221 ++ new oose.pm module to make command line
1222 Moose-ness easier (see POD docs for more)
1224 * Moose::Meta::Class
1226 - several tweaks to take advantage of the
1227 new method map caching in Class::MOP
1229 * Moose::Meta::TypeConstraint::Parameterized
1230 - allow subtypes of ArrayRef and HashRef to
1231 be used as a container (sartak)
1232 - added tests for this
1233 - basic support for coercion to ArrayRef and
1234 HashRef for containers (sartak)
1235 - added tests for this
1237 * Moose::Meta::TypeCoercion
1238 - coercions will now create subtypes as needed
1239 so you can now add coercions to parameterized
1240 types without having to explictly define them
1241 - added tests for this
1243 * Moose::Meta::Method::Accessor
1244 - allow subclasses to decide whether we need
1245 to copy the value into a new variable (sartak)
1247 0.32 Tues. Dec. 4, 2007
1248 * Moose::Util::TypeConstraints
1249 - fixing how subtype aliases of unions work
1250 they should inherit the parent's coercion
1251 - added tests for this
1252 - you can now define multiple coercions on
1253 a single type at different times instead of
1254 having to do it all in one place
1255 - added tests for this
1257 * Moose::Meta::TypeConstraint
1258 - there is now a default constraint of sub { 1 }
1259 instead of Moose::Util::TypeConstraints setting
1262 * Moose::Meta::TypeCoercion
1263 * Moose::Meta::TypeCoercion::Union
1264 - added the &has_coercion_for_type and
1265 &add_type_coercions methods to support the
1266 new features above (although you cannot add
1267 more type coercions for Union types)
1269 0.31 Mon. Nov. 26, 2007
1270 * Moose::Meta::Attribute
1271 - made the +attr syntax handle extending types with
1272 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1273 now works if the original foo is an ArrayRef.
1274 - added tests for this.
1275 - delegation now works even if the attribute does not
1276 have a reader method using the get_read_method_ref
1277 method from Class::MOP::Attribute.
1278 - added tests for this
1279 - added docs for this
1281 * Moose::Util::TypeConstraints
1282 - passing no "additional attribute info" to
1283 &find_or_create_type_constraint will no longer
1284 attempt to create an __ANON__ type for you,
1285 instead it will just return undef.
1286 - added docs for this
1288 0.30 Fri. Nov. 23, 2007
1289 * Moose::Meta::Method::Constructor
1290 -builder related bug in inlined constructor. (groditi)
1292 * Moose::Meta::Method::Accessor
1293 - genereate unnecessary calls to predicates and refactor
1294 code generation for runtime speed (groditi)
1296 * Moose::Util::TypeConstraints
1297 - fix ClassName constraint to introspect symbol table (mst)
1298 - added more tests for this (mst)
1299 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1300 with work correctly.
1301 - added tests for this
1304 - adding the link to Recipie 11 (written by Sartak)
1305 - adding test for SYNOPSIS code
1308 - New tests for builder bug. Upon instantiation, if an
1309 attribute had a builder, no value and was not lazy the
1310 builder default was not getting run, oops. (groditi)
1312 0.29 Tues. Nov. 13, 2007
1313 * Moose::Meta::Attribute
1314 - Fix error message on missing builder method (groditi)
1316 * Moose::Meta::Method::Accessor
1317 - Fix error message on missing builder method (groditi)
1320 - Add test to check for the correct error message when
1321 builder method is missing (groditi)
1323 0.28 Tues. Nov. 13, 2007
1324 - 0.27 packaged incorrectly (groditi)
1326 0.27 Tues. Nov. 13, 2007
1327 * Moose::Meta::Attribute
1328 - Added support for the new builder option (groditi)
1329 - Added support for lazy_build option (groditi)
1330 - Changed slot initialization for predicate changes (groditi)
1332 * Moose::Meta::Method::Accessor
1333 - Added support for lazy_build option (groditi)
1334 - Fix inline methods to work with corrected predicate
1337 * Moose::Meta::Method::Constructor
1338 - Added support for lazy_build option (groditi)
1341 - tests for builder and lazy_build (groditi)
1343 * fixing some misc. bits in the docs that
1344 got mentioned on CPAN Forum & perlmonks
1347 - fixed how required methods are handled
1348 when they encounter overriden or modified
1349 methods from a class (thanks to confound).
1350 - added tests for this
1352 * Moose::Util::TypeConstraint
1353 - fixed the type notation parser so that
1354 the | always creates a union and so is
1355 no longer a valid type char (thanks to
1356 konobi, mugwump and #moose for working
1358 - added more tests for this
1360 0.26 Thurs. Sept. 27, 2007
1363 * Parameterized Types
1364 We now support parameterized collection types, such as:
1365 ArrayRef[Int] # array or integers
1366 HashRef[Object] # a hash with object values
1367 They can also be nested:
1368 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1369 And work with the type unions as well:
1370 ArrayRef[Int | Str] # array of integers of strings
1372 * Better Framework Extendability
1373 Moose.pm is now "extendable" such that it is now much
1374 easier to extend the framework and add your own keywords
1375 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1376 section of the Moose.pm docs.
1379 In an effort to begin documenting some of the various
1380 details of Moose as well as some common idioms, we have
1381 created Moose::Cookbook::Snacks as a place to find
1382 small (easily digestable) nuggets of Moose code.
1385 ~ Several doc updates/cleanup thanks to castaway ~
1387 - converted build system to use Module::Install instead of
1388 Module::Build (thanks to jrockway)
1391 - added all the meta classes to the immutable list and
1392 set it to inline the accessors
1393 - fix import to allow Sub::Exporter like { into => }
1394 and { into_level => } (perigrin)
1395 - exposed and documented init_meta() to allow better
1396 embedding and extending of Moose (perigrin)
1399 - complete re-organization of the test suite
1400 - added some new tests as well
1401 - finally re-enabled the Moose::POOP test since
1402 the new version of DBM::Deep now works again
1405 * Moose::Meta::Class
1406 - fixed very odd and very nasty recursion bug with
1408 - added tests for this (eilara)
1410 * Moose::Meta::Attribute
1411 Moose::Meta::Method::Constructor
1412 Moose::Meta::Method::Accessor
1413 - fixed issue with overload::Overloaded getting called
1414 on non-blessed items. (RT #29269)
1415 - added tests for this
1417 * Moose::Meta::Method::Accessor
1418 - fixed issue with generated accessor code making
1419 assumptions about hash based classes (thanks to dexter)
1421 * Moose::Coookbook::Snacks
1422 - these are bits of documentation, not quite as big as
1423 Recipes but which have no clear place in the module docs.
1424 So they are Snacks! (horray for castaway++)
1426 * Moose::Cookbook::Recipe4
1427 - updated it to use the new ArrayRef[MyType] construct
1428 - updated the accompanying test as well
1430 +++ Major Refactor of the Type Constraint system +++
1431 +++ with new features added as well +++
1433 * Moose::Util::TypeConstraint
1434 - no longer uses package variable to keep track of
1435 the type constraints, now uses the an instance of
1436 Moose::Meta::TypeConstraint::Registry to do it
1437 - added more sophisticated type notation parsing
1439 - added tests for this
1441 * Moose::Meta::TypeConstraint
1442 - some minor adjustments to make subclassing easier
1443 - added the package_defined_in attribute so that we
1444 can track where the type constraints are created
1446 * Moose::Meta::TypeConstraint::Union
1447 - this is now been refactored to be a subclass of
1448 Moose::Meta::TypeConstraint
1450 * Moose::Meta::TypeCoercion::Union
1451 - this has been added to service the newly refactored
1452 Moose::Meta::TypeConstraint::Union and is itself
1453 a subclass of Moose::Meta::TypeCoercion
1455 * Moose::Meta::TypeConstraint::Parameterized
1456 - added this module (taken from MooseX::AttributeHelpers)
1457 to help construct nested collection types
1458 - added tests for this
1460 * Moose::Meta::TypeConstraint::Registry
1461 - added this class to keep track of type constraints
1463 0.25 Mon. Aug. 13, 2007
1465 - Documentation update to reference Moose::Util::TypeConstraints
1466 under 'isa' in 'has' for how to define a new type
1467 (thanks to shlomif).
1469 * Moose::Meta::Attribute
1470 - required attributes now will no longer accept undef
1471 from the constructor, even if there is a default and lazy
1472 - added tests for this
1473 - default subroutines must return a value which passes the
1475 - added tests for this
1477 * Moose::Meta::Attribute
1478 * Moose::Meta::Method::Constructor
1479 * Moose::Meta::Method::Accessor
1480 - type-constraint tests now handle overloaded objects correctly
1481 in the error message
1482 - added tests for this (thanks to EvanCarroll)
1484 * Moose::Meta::TypeConstraint::Union
1485 - added (has_)hand_optimized_constraint to this class so that
1486 it behaves as the regular Moose::Meta::TypeConstraint does.
1489 - large refactoring of this code
1490 - added several more tests
1491 - tests for subtle conflict resolition issues
1492 added, but not currently running
1495 * Moose::Cookbook::Recipe7
1496 - added new recipe for augment/inner functionality
1498 - added test for this
1501 - a formal definition of roles (still in progress)
1504 - utilities for easier working with Moose classes
1505 - added tests for these
1508 - This contains Moose specific test functions
1509 - added tests for these
1511 0.24 Tues. July 3, 2007
1512 ~ Some doc updates/cleanup ~
1514 * Moose::Meta::Attribute
1515 - added support for roles to be given as parameters
1516 to the 'handles' option.
1517 - added tests and docs for this
1518 - the has '+foo' attribute form now accepts changes to
1519 the lazy option, and the addition of a handles option
1520 (but not changing the handles option)
1521 - added tests and docs for this
1524 - required methods are now fetched using find_method_by_name
1525 so that required methods can come from superclasses
1526 - adjusted tests for this
1528 0.23 Mon. June 18, 2007
1529 * Moose::Meta::Method::Constructor
1530 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1531 * Moose::Meta::Class
1532 - Modify make_immutable to work with the new Class::MOP immutable
1533 mechanism + POD + very basic test (groditi)
1534 * Moose::Meta::Attribute
1535 - Fix handles to use goto() so that caller() comes out properly on
1536 the other side (perigrin)
1538 0.22 Thurs. May 31, 2007
1539 * Moose::Util::TypeConstraints
1540 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1541 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1542 prototypes for functions
1543 - added the ClassName type constraint, this checks for strings
1544 which will respond true to ->isa(UNIVERSAL).
1545 - added tests and docs for this
1546 - subtyping just in name now works correctly by making the
1547 default for where be { 1 }
1548 - added test for this
1550 * Moose::Meta::Method::Accessor
1551 - coerce and lazy now work together correctly, thanks to
1552 merlyn for finding this bug
1553 - tests added for this
1554 - fix reader presedence bug in Moose::Meta::Attribute + tests
1557 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1558 a HASH-ref and missed. This produces better error messages then
1559 having it die cause undef is not a HASH.
1560 - added tests for this
1562 0.21 Thursday, May 2nd, 2007
1564 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1565 - modified unimport to remove super and inner along with the rest
1566 - altered unimport tests to handle this
1569 - altered super export to populate SUPER_SLOT
1571 * Moose::Meta::Class
1572 - altered augment and override modifier application to use *_SLOT
1573 - modified tests for these to unimport one test class each to test
1576 - fixed issue where custom attribute metaclasses
1577 where not handled correctly in roles
1578 - added tests for this
1580 * Moose::Meta::Class
1581 - fixed issue where extending metaclasses with
1582 roles would blow up. Thanks to Aankhen`` for
1583 finding this insidious error, and it's solution.
1585 ~~ lots of spelling and grammer fixes in the docs,
1586 many many thanks to rlb3 and Aankhen for these :)
1588 0.20 Friday, April 6th, 2007
1589 >> I messed up the SKIP logic in one test
1590 so this release is just to fix that.
1593 - 'has' now also accepts an ARRAY ref
1594 to create multiple attrs (see docs)
1595 (thanks to konobi for this)
1596 - added tests and docs
1598 0.19 Thurs. April 5th, 2007
1599 ~~ More documentation updates ~~
1601 * Moose::Util::TypeConstraints
1602 - 'type' now supports messages as well
1603 thanks to phaylon for finding this
1604 - added tests for this
1605 - added &list_all_type_constraints and
1606 &list_all_builtin_type_constraints
1607 functions to facilitate introspection.
1609 * Moose::Meta::Attribute
1610 - fixed regexp 'handles' declarations
1611 to build the list of delegated methods
1612 correctly (and not override important
1613 things like &new) thanks to ashleyb
1615 - added tests and docs for this
1616 - added the 'documentation' attributes
1617 so that you can actually document your
1618 attributes and inspect them through the
1620 - added tests and docs for this
1622 * Moose::Meta::Class
1623 - when loading custom attribute metaclasses
1624 it will first look in for the class in the
1625 Moose::Meta::Attribute::Custom::$name, and
1626 then default to just loading $name.
1627 - added tests and docs for this
1629 * Moose::Meta::TypeConstraint
1630 - type constraints now stringify to their names.
1631 - added test for this
1634 - added tests to assure we work with Module::Refresh
1635 - added stricter test skip logic in the Moose POOP
1636 test, ask Rob Kinyon why.
1637 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1639 0.18 Sat. March 10, 2007
1640 ~~ Many, many documentation updates ~~
1643 - We now use Class::MOP::load_class to
1645 - added tests to show types and subtypes
1646 working with Declare::Constraints::Simple
1647 and Test::Deep as constraint engines.
1650 !! You must have Class::MOP 0.37_001 !!
1651 !! for this developer release to work !!
1653 This release was primarily adding the immutable
1654 feature to Moose. An immutable class is one which
1655 you promise not to alter. When you set the class
1656 as immutable it will perform various bits of
1657 memoization and inline certain part of the code
1658 (constructors, destructors and accessors). This
1659 minimizes (and in some cases totally eliminates)
1660 one of Moose's biggest performance hits. This
1661 feature is not on by default, and is 100% optional.
1662 It has several configurable bits as well, so you
1663 can pick and choose to your specific needs.
1665 The changes involved in this were fairly wide and
1666 highly specific, but 100% backwards compatible, so
1667 I am not going to enumerate them here. If you are
1668 truely interested in what was changed, please do
1671 0.17 Tues. Nov. 14, 2006
1672 * Moose::Meta::Method::Accessor
1673 - bugfix for read-only accessors which
1674 are have a type constraint and lazy.
1675 Thanks to chansen for finding it.
1677 0.16 Tues. Nov. 14, 2006
1679 There are some speed improvements in this release,
1680 but they are only the begining, so stay tuned.
1683 - BUILDALL and DEMOLISHALL no longer get
1684 called unless they actually need to be.
1685 This gave us a signifigant speed boost
1686 for the cases when there is no BUILD or
1687 DEMOLISH method present.
1689 * Moose::Util::TypeConstraints
1690 * Moose::Meta::TypeConstraint
1691 - added an 'optimize_as' option to the
1692 type constraint, which allows for a
1693 hand optimized version of the type
1694 constraint to be used when possible.
1695 - Any internally created type constraints
1696 now provide an optimized version as well.
1698 0.15 Sun. Nov. 5, 2006
1700 This version of Moose *must* have Class::MOP 0.36 in order
1701 to work correctly. A number of small internal tweaks have
1702 been made in order to be compatible with that release.
1704 * Moose::Util::TypeConstraints
1705 - added &unimport so that you can clean out
1706 your class namespace of these exported
1709 * Moose::Meta::Class
1710 - fixed minor issue which occasionally
1711 comes up during global destruction
1713 - moved Moose::Meta::Method::Overriden into
1717 - moved Moose::Meta::Role::Method into
1720 * Moose::Meta::Attribute
1721 - changed how we do type checks so that
1722 we reduce the overall cost, but still
1725 - moved accessor generation methods to
1726 Moose::Meta::Method::Accessor to
1727 conform to the API changes from
1730 * Moose::Meta::TypeConstraint
1731 - changed how constraints are compiled
1732 so that we do less recursion and more
1733 iteration. This makes the type check
1735 - moved Moose::Meta::TypeConstraint::Union
1738 * Moose::Meta::Method::Accessor
1739 - created this from methods formerly found in
1740 Moose::Meta::Attribute
1742 * Moose::Meta::Role::Method
1743 - moved this from Moose::Meta::Role
1745 * Moose::Meta::Method::Overriden
1746 - moved this from Moose::Meta::Class
1748 * Moose::Meta::TypeConstraint::Union
1749 - moved this from Moose::Meta::TypeConstraint
1751 0.14 Mon. Oct. 9, 2006
1753 * Moose::Meta::Attribute
1754 - fixed lazy attributes which were not getting
1755 checked with the type constraint (thanks ashley)
1756 - added tests for this
1757 - removed the over-enthusiastic DWIMery of the
1758 automatic ArrayRef and HashRef defaults, it
1759 broke predicates in an ugly way.
1760 - removed tests for this
1762 0.13 Sat. Sept. 30, 2006
1764 This version of Moose *must* have Class::MOP 0.35 in order
1765 to work correctly. A number of small internal tweaks have
1766 been made in order to be compatible with that release.
1769 - Removed the use of UNIVERSAL::require to be a better
1770 symbol table citizen and remove a dependency
1771 (thanks Adam Kennedy)
1773 **~~ removed experimental & undocumented feature ~~**
1774 - commented out the 'method' and 'self' keywords, see the
1775 comments for more info.
1778 - added a FAQ and WTF files to document frequently
1779 asked questions and common problems
1781 * Moose::Util::TypeConstraints
1782 - added GlobRef and FileHandle type constraint
1783 - added tests for this
1785 * Moose::Meta::Attribute
1786 - if your attribute 'isa' ArrayRef of HashRef, and you have
1787 not explicitly set a default, then make the default DWIM.
1788 This will also work for subtypes of ArrayRef and HashRef
1790 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1791 - new test added for this (thanks to ashley)
1794 - added basic support for runtime role composition
1795 but this is still *highly experimental*, so feedback
1796 is much appreciated :)
1797 - added tests for this
1799 * Moose::Meta::TypeConstraint
1800 - the type constraint now handles the coercion process
1801 through delegation, this is to support the coercion
1804 * Moose::Meta::TypeConstraint::Union
1805 - it is now possible for coercions to be performed
1807 - added tests for this (thanks to konobi)
1809 * Moose::Meta::TypeCoercion
1810 - properly capturing error when type constraint
1814 - Scalar::Util 1.18 is bad on Win32, so temporarily
1815 only require version 1.17 for Win32 and cygwin.
1816 (thanks Adam Kennedy)
1818 0.12 Sat. Sept. 1, 2006
1820 - Recipe5 (subtypes & coercion) has been written
1823 - fixed "bad meta" error message to be more descriptive
1824 - fixed &unimport to not remove the &inner and &super
1825 keywords because we need to localize them.
1826 - fixed number of spelling/grammer issues, thanks Theory :)
1828 **~~ experimental & undocumented feature ~~**
1829 - added the method and self keywords, they are basically
1830 just sugar, and they may not stay around.
1833 - added &dump method to easily Data::Dumper
1836 * Moose::Meta::TypeConstraint
1837 - added the &is_a_type_of method to check both the current
1838 and the subtype of a method (similar to &isa with classes)
1841 - this is now a subclass of Class::MOP::Module, and no longer
1842 creates the _role_meta ugliness of before.
1843 - fixed tests to reflect this change
1845 0.11 Wed. July 12, 2006
1847 - added an &unimport method to remove all the keywords
1848 that Moose will import, simply add 'no Moose' to the
1849 bottom of your class file.
1852 - fixed some test failures caused by a forgotten test
1855 0.10 Thurs. July 6, 2006
1857 - improved error message when loading modules so
1858 it is less confusing when you load a role.
1859 - added &calculate_all_roles method to
1860 Moose::Meta::Class and Moose::Meta::Role
1863 This module has been tested against Class::MOP 0.30
1864 but it does not yet utilize the optimizations
1865 it makes available. Stay tuned for that ;)
1867 0.09_03 Fri. June 23, 2006
1868 ++ DEVELOPER RELEASE ++
1870 - 'use strict' and 'use warnings' are no longer
1871 needed in Moose classes, Moose itself will
1872 turn them on for you.
1873 - added tests for this
1874 - moved code from exported subs to private methods
1875 in Moose::Meta::Class
1878 - as with Moose, strict and warnings are
1879 automatically turned on for you.
1880 - added tests for this
1883 - now handles an edge case for override errors
1884 - added tests for this
1885 - added some more edge case tests
1887 0.09_02 Tues. May 16, 2006
1888 ++ DEVELOPER RELEASE ++
1890 - added prototypes to the exported subs
1894 - added prototypes to the exported subs
1897 * Moose::Util::TypeConstraints
1898 - cleaned up prototypes for the subs
1901 0.09_01 Fri. May 12, 2006
1902 ++ DEVELOPER RELEASE ++
1903 - This release works in combination with
1904 Class::MOP 0.29_01, it is a developer
1905 release because it uses the a new
1906 instance sub-protocol and a fairly
1907 complete Role implementation. It has
1908 not yet been optimized, so it slower
1909 the the previous CPAN version. This
1910 release also lacks good updated docs,
1911 the official release will have updated docs.
1914 - refactored the keyword exports
1915 - 'with' now checks Role validaity and
1916 accepts more than one Role at a time
1917 - 'extends' makes metaclass adjustments as
1918 needed to ensure metaclass compatibility
1921 - refactored the keyword exports
1922 - 'with' now checks Role validaity and
1923 accepts more than one Role at a time
1925 * Moose::Util::TypeConstraints
1926 - added the 'enum' keyword for simple
1927 string enumerations which can be used as
1929 - see example of usage in t/202_example.t
1932 - more careful checking of params to new()
1935 - much work done on the role composition
1936 - many new tests for conflict detection
1937 and composition edge cases
1938 - not enough documentation, I suggest
1939 looking at the tests
1941 * Moose::Meta::Instance
1942 - added new Instance metaclass to support
1943 the new Class::MOP instance protocol
1945 * Moose::Meta::Class
1946 - some small changes to support the new
1948 - some small additions to support Roles
1950 * Moose::Meta::Attribute
1951 - some improvements to the accessor generation code
1953 - some small changes to support the new
1955 - (still somewhat) experimental delegation support
1956 with the 'handles' option
1957 - added several tests for this
1958 - no docs for this yet
1960 0.05 Thurs. April 27, 2006
1962 - keywords are now exported with Sub::Exporter
1963 thanks to chansen for this commit
1964 - has keyword now takes a 'metaclass' option
1965 to support custom attribute meta-classes
1966 on a per-attribute basis
1967 - added tests for this
1968 - the 'has' keyword not accepts inherited slot
1969 specifications (has '+foo'). This is still an
1970 experimental feature and probably not finished
1971 see t/038_attribute_inherited_slot_specs.t for
1972 more details, or ask about it on #moose
1973 - added tests for this
1976 - keywords are now exported with Sub::Exporter
1978 * Moose::Utils::TypeConstraints
1979 - reorganized the type constraint hierarchy, thanks
1980 to nothingmuch and chansen for his help and advice
1982 - added some tests for this
1983 - keywords are now exported with Sub::Exporter
1984 thanks to chansen for this commit
1986 * Moose::Meta::Class
1987 - due to changes in Class::MOP, we had to change
1988 construct_instance (for the better)
1990 * Moose::Meta::Attribute
1991 - due to changes in Class::MOP, we had to add the
1992 initialize_instance_slot method (it's a good thing)
1994 * Moose::Meta::TypeConstraint
1995 - added type constraint unions
1996 - added tests for this
1997 - added the is_subtype_of predicate method
1998 - added tests for this
2000 0.04 Sun. April 16th, 2006
2002 - Roles can now consume other roles
2003 - added tests for this
2004 - Roles can specify required methods now with
2005 the requires() keyword
2006 - added tests for this
2009 - ripped out much of it's guts ,.. much cleaner now
2010 - added required methods and correct handling of
2011 them in apply() for both classes and roles
2012 - added tests for this
2013 - no longer adds a does() method to consuming classes
2014 it relys on the one in Moose::Object
2015 - added roles attribute and some methods to support
2016 roles consuming roles
2018 * Moose::Meta::Attribute
2019 - added support for triggers on attributes
2020 - added tests for this
2021 - added support for does option on an attribute
2022 - added tests for this
2024 * Moose::Meta::Class
2025 - added support for attribute triggers in the
2027 - added tests for this
2030 - Moose no longer creates a subtype for your class
2031 if a subtype of the same name already exists, this
2032 should DWIM in 99.9999% of all cases
2034 * Moose::Util::TypeConstraints
2035 - fixed bug where incorrect subtype conflicts were
2037 - added test for this
2040 - this class can now be extended with 'use base' if
2041 you need it, it properly loads the metaclass class now
2042 - added test for this
2044 0.03_02 Wed. April 12, 2006
2046 - you must now explictly use Moose::Util::TypeConstraints
2047 it no longer gets exported for you automatically
2050 - new() now accepts hash-refs as well as key/value lists
2051 - added does() method to check for Roles
2052 - added tests for this
2054 * Moose::Meta::Class
2055 - added roles attribute along with the add_role() and
2057 - added tests for this
2060 - now adds a does() method to consuming classes
2061 which tests the class's hierarchy for roles
2062 - added tests for this
2064 0.03_01 Mon. April 10, 2006
2066 - added new Role recipe (no content yet, only code)
2069 - added 'with' keyword for Role support
2070 - added test and docs for this
2071 - fixed subtype quoting bug
2072 - added test for this
2076 - added test and docs
2078 * Moose::Util::TypeConstraints
2079 - added the message keyword to add custom
2080 error messages to type constraints
2083 - the meta role to support Moose::Role
2084 - added tests and docs
2086 * Moose::Meta::Class
2087 - moved a number of things from Moose.pm
2088 to here, they should have been here
2091 * Moose::Meta::Attribute
2092 - moved the attribute option macros here
2093 instead of putting them in Moose.pm
2095 * Moose::Meta::TypeConstraint
2096 - added the message attributes and the
2098 - added tests and docs for this
2100 0.03 Thurs. March 30, 2006
2102 - added the Moose::Cookbook with 5 recipes,
2103 describing all the stuff Moose can do.
2106 - fixed an issue with &extends super class loading
2107 it now captures errors and deals with inline
2108 packages correctly (bug found by mst, solution
2110 - added super/override & inner/augment features
2111 - added tests and docs for these
2114 - BUILDALL now takes a reference of the %params
2115 that are passed to &new, and passes that to
2118 * Moose::Util::TypeConstraints
2119 - Type constraints now survive runtime reloading
2120 - added test for this
2122 * Moose::Meta::Class
2123 - fixed the way attribute defaults are handled
2124 during instance construction (bug found by chansen)
2126 * Moose::Meta::Attribute
2127 - read-only attributes now actually enforce their
2128 read-only-ness (this corrected in Class::MOP as
2131 0.02 Tues. March 21, 2006
2133 - many more tests, fixing some bugs and
2135 - &extends now loads the base module with
2137 - added UNIVERSAL::require to the
2140 - each new Moose class will also create
2141 and register a subtype of Object which
2142 correspond to the new Moose class.
2143 - the 'isa' option in &has now only
2144 accepts strings, and will DWIM in
2147 * Moose::Util::TypeConstraints
2148 - added type coercion features
2149 - added tests for this
2150 - added support for this in attributes
2151 and instance construction
2153 - type construction no longer creates a
2154 function, it registers the type instead.
2155 - added several functions to get the
2159 - BUILDALL and DEMOLISHALL were broken
2160 because of a mis-named hash key, Whoops :)
2162 * Moose::Meta::Attribute
2163 - adding support for coercion in the
2164 autogenerated accessors
2166 * Moose::Meta::Class
2167 - adding support for coercion in the
2168 instance construction
2170 * Moose::Meta::TypeConstraint
2171 * Moose::Meta::TypeCoercion
2172 - type constraints and coercions are now
2173 full fledges meta-objects
2175 0.01 Wed. March 15, 2006
2176 - Moooooooooooooooooose!!!