Allow required versions to be specified when setting superclasses and applying roles.
[gitmo/Moose.git] / Changes
1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
3
4   [NEW FEATURES]
5
6   * Allow specifying required versions when setting superclasses or applying
7     roles (Florian Ragwitz).
8
9 1.02 Sat, May 01, 2010
10
11   [BUG FIXES]
12
13   * Stop the natatime method provided by the native Array trait from returning
14     an exhausted iterator when being called with a callback. (Florian Ragwitz)
15
16   * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
17     (Florian Ragwitz)
18
19   * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
20     the class the TC represents as an argument incorrectly returned true. This
21     behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
22
23   * Use File::Temp for temp files created during tests. Previously, files were
24     written to the t/ dir, which could cause problems of the user running the
25     tests did not have write access to that directory.. (Chris Weyl, Ævar
26     Arnfjörð Bjarmason)
27
28   * Pass role arguments along when applying roles to instances. (doy, lsm)
29
30 1.01 Fri, Mar 26, 2010
31
32   [NEW FEATURES]
33
34   * The handles option now also accepts a role type constraint in addition to a
35     plain role name. (Florian Ragwitz)
36
37   [OTHER]
38
39   * Record the Sartak/doy debt properly in Changes (perigrin)
40
41 1.00 Tue, Mar 25, 2010
42
43   [BUG FIXES]
44
45   * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
46     methods by default. (Florian Ragwitz)
47
48   [DOCUMENTATION]
49
50   * Improve various parts of the documentation and fix many typos.
51     (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
52
53   [OTHER]
54
55   * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
56
57 0.99 Mon, Mar 8, 2010
58
59   [NEW FEATURES]
60
61   * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
62     which member of the union a given value validates for. (Cory Watson)
63
64   [BUG FIXES]
65
66   * DEMOLISH methods in mutable subclasses of immutable classes are now called
67     properly (Chia-liang Kao, Jesse Luehrs)
68
69   [NEW DOCUMENTATION]
70
71   * Added Moose::Manual::Support that defines the support, compatiblity, and
72     release policies for Moose. (Chris Prather)
73
74 0.98 Wed, Feb 10, 2010
75
76   [BUG FIXES]
77
78   * An internals change in 0.97 broke role application to an instance in some
79     cases. The bug occurred when two different roles were applied to different
80     instances of the same class. (Rafael Kitover)
81
82
83 0.97 Tue, Feb 9, 2010
84
85   [BUG FIXES]
86
87   * Calling ->reinitialize on a cached anonymous class effectively uncached
88     the metaclass object, causing the metaclass to go out of scope
89     unexpectedly. This could easily happen at a distance by applying a
90     metarole to an anonymous class. (Dave Rolsky).
91
92 0.96 Sat, Feb 6, 2010
93
94   [NEW FEATURES]
95
96   * ScalarRef is now a parameterized type. You can now specify a type
97     constraint for whatever the reference points to. (Closes RT#50857)
98     (Michael G. Schwern, Florian Ragwitz)
99
100   [BUG FIXES]
101
102   * ScalarRef now accepts references to other references. (Closes RT#50934)
103     (Michael G. Schwern)
104
105 0.95 Thu, Feb 4, 2010
106
107   [NEW FEATURES]
108
109   * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
110     a delegation option. This allows the code reference to be called as a
111     method on the object. (Florian Ragwitz)
112
113   [ENHANCEMENTS]
114
115   * Moose::Object::does no longer checks the entire inheritance tree, since
116     Moose::Meta::Class::does_role already does this. (doy)
117
118   * Moose::Util::add_method_modifier (and subsequently the sugar functions
119     Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
120     with the same behavior as lists. Types other than arrayref and regexp
121     result in an error.  (Dylan Hardison)
122
123 0.94 Mon, Jan 18, 2010
124
125   [API CHANGES]
126
127   * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
128
129   [ENHANCEMENTS]
130
131   * Improved support for anonymous roles by changing various APIs to take
132     Moose::Meta::Role objects as well as role names. This included
133
134   - Moose::Meta::Class->does_role
135   - Moose::Meta::Role->does_role
136   - Moose::Util::does_role
137   - Moose::Util::apply_all_roles
138   - Moose::Util::ensure_all_roles
139   - Moose::Util::search_class_by_role
140
141   Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
142
143   [BUG FIXES]
144
145   * Fix handling of non-alphanumeric attributes names like '@foo'. This should
146     work as long as the accessor method names are explicitly set to valid Perl
147     method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
148
149
150 0.93_03 Tue, Jan 5, 2010
151
152   [BUG FIXES]
153
154   * Portability fixes to our XS code so we compile with 5.8.8 and Visual
155     C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
156
157
158 0.93_02 Tue, Jan 5, 2010
159
160  [BUG FIXES]
161
162   * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
163     testers. (Dave Rolsky)
164
165
166 0.93_01 Mon, Jan 4, 2010
167
168   [API CHANGES]
169
170   See Moose::Manual::Delta for more details on backwards compatiblity issues.
171
172   * Role attributes are now objects of the Moose::Meta::Role::Attribute
173     class. (Dave Rolsky).
174
175   * There were major changes to how metaroles are applied. We now distinguish
176     between metaroles for classes vs those for roles. See the
177     Moose::Util::MetaRole docs for details. (Dave Rolsky)
178
179   * The old MetaRole API has been deprecated, but will continue to
180     work. However, if you are applying an attribute metaclass role, this may
181     break because of the fact that roles now have an attribute metaclass
182     too. (Dave Rolsky)
183
184   * Moose::Util::MetaRole::apply_metaclass_roles is now called
185     apply_metaroles. The old name is deprecated. Dave Rolsky>
186
187   * The unimport subs created by Moose::Exporter now clean up re-exported
188     functions like blessed and confess, unless the caller imported them from
189     somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
190
191   [ENHANCEMENTS AND BUG FIXES]
192
193   * Changed the Str constraint to accept magic lvalue strings like one gets from
194     substr et al, again. (sorear)
195
196   * Sped up the type constraint parsing regex. (Sam Vilain)
197
198   * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
199     jrey.
200
201   * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
202     easier testing of TypeConstraints from the command line. (perigrin)
203
204   * Added a with_immutable test function to Test::Moose, to run a block of tests
205     with and without certain classes being immutable. (doy)
206
207   * We now use Module::Install extensions explicitly to avoid confusing errors
208     if they're not installed. We use Module::Install::AuthorRequires to stop
209     test extraction and general failures if you don't have the author side
210     dependencies installed.
211
212   * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
213     #51791. (Amir E. Aharoni)
214
215
216 0.93 Thu, Nov 19, 2009
217     * Moose::Object
218       - Calling $object->new() is no longer deprecated, and no longer
219         warns. (doy)
220
221     * Moose::Meta::Role
222       - The get_attribute_map method is now deprecated. (Dave Rolsky)
223
224     * Moose::Meta::Method::Delegation
225       - Preserve variable aliasing in @_ for delegated methods, so that
226         altering @_ affects the passed value. (doy)
227
228     * Moose::Util::TypeConstraints
229       - Allow array refs for non-anonymous form of enum and duck_type, not
230         just anonymous. The non-arrayref forms may be removed in the
231         future. (doy)
232       - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
233       - Properly document Int being a subtype of Str. (doy)
234
235     * Moose::Exporter
236       - Moose::Exporter using modules can now export their functions to the
237         main package. This applied to Moose and Moose::Role, among
238         others. (nothingmuch)
239
240     * Moose::Meta::Attribute
241       - Don't remove attribute accessors we never installed, during
242         remove_accessors. (doy)
243
244     * Moose::Meta::Attribute::Native::Trait::Array
245       - Don't bypass prototype checking when calling List::Util::first, to
246         avoid a segfault when it is called with a non-code argument. (doy)
247
248     * Moose::Meta::Attribute::Native::Trait::Code
249       - Fix passing arguments to code execute helpers. (doy)
250
251 0.92 Tue, Sep 22, 2009
252     * Moose::Util::TypeConstraints
253       - added the match_on_type operator (Stevan)
254         - added tests and docs for this (Stevan)
255
256     * Moose::Meta::Class
257       - Metaclass compat fixing should already happen recursively, there's no
258         need to explicitly walk up the inheritance tree. (doy)
259
260     * Moose::Meta::Attribute
261       - Add tests for set_raw_value and get_raw_value. (nothingmuch)
262
263 0.91 Thu, Sep 17, 2009
264     * Moose::Object
265       - Don't import any functions, in order to avoid polluting our namespace
266         with things that can look like methods (blessed, try, etc)
267         (nothingmuch)
268
269     * Moose::Meta::Method::Constructor
270       - The generated code needs to called Scalar::Util::blessed by its
271         fully-qualified name or else Perl can interpret the call to blessed as
272         an indirect method call. This broke Search::GIN, which in turn broke
273         KiokuDB. (nothingmuch)
274
275 0.90 Tue, Sep 15, 2009
276     * Moose::Meta::Attribute::Native::Trait::Counter
277     * Moose::Meta::Attribute::Native::Trait::String
278       - For these two traits, an attribute which did not explicitly provide
279         methods to handles magically ended up delegating *all* the helper
280         methods. This has been removed. You must be explicit in your handles
281         declaration for all Native Traits. (Dave Rolsky)
282
283     * Moose::Object
284       - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
285         sure to rethrow its error message. However, we also localize $@ before
286         this so that if all the DEMOLISH methods success, the value of $@ will
287         be preserved. (nothingmuch and Dave Rolsky)
288       - We now also localize $? during object destruction. (nothingmuch and
289         Dave Rolsky)
290       - The handling of DEMOLISH methods was broken for immutablized classes,
291         which were not receiving the value of
292         Devel::GlobalDestruction::in_global_destruction.
293       - These two fixes address some of RT #48271, reported by Zefram.
294       - This is all now documented in Moose::Manual::Construction.
295       - Calling $object->new() is now deprecated. A warning will be
296         issued. (perigrin)
297
298     * Moose::Meta::Role
299       - Added more hooks to customize how roles are applied. The role
300         summation class, used to create composite roles, can now be changed
301         and/or have meta-roles applied to it. (rafl)
302       - The get_method_list method no longer explicitly excludes the "meta"
303         method. This was a hack that has been replaced by better hacks. (Dave
304         Rolsky)
305
306     * Moose::Meta::Method::Delegation
307       - fixed delegated methods to make sure that any modifiers attached to
308         the accessor being delegated on will be called (Stevan)
309         - added tests for this (Stevan)
310
311     * Moose::Meta::Class
312       - Moose no longer warns when a class that is being made immutable has
313         mutable ancestors. While in theory this is a good thing to warn about,
314         we found so many exceptions to this that doing this properly became
315         quite problematic.
316
317 0.89_02 Thu, Sep 10, 2009
318     * Moose::Meta::Attribute::Native
319       - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
320
321     * Moose::Meta::Attribute::Native::Trait::Array
322       - Added a number of functions from List::Util and List::MoreUtils,
323         including reduce, shuffle, uniq, and natatime. (doy)
324
325     * Moose::Exporter
326       - This module will now generate an init_meta method for your exporting
327         class if you pass it options for
328         Moose::Util::MetaRole::apply_metaclass_roles or
329         apply_base_class_roles. This eliminates a lot of repetitive
330         boilerplate for typical MooseX modules. (doy).
331       - Documented the with_meta feature, which is a replacement for
332         with_caller. This feature was added by josh a while ago.
333       - The with_caller feature is now deprecated, but will not issue a
334         warning yet. (Dave Rolsky)
335       - If you try to wrap/export a subroutine which doesn't actually exist,
336         Moose::Exporter will warn you about this. (doy)
337
338     * Moose::Meta::Role::Application::ToRole
339       - When a role aliased a method from another role, it was only getting
340         the new (aliased) name, not the original name. This differed from what
341         happens when a class aliases a role's methods. If you _only_ want the
342         aliased name, make sure to also exclue the original name. (Dave
343         Rolsky)
344
345 0.89_01 Wed Sep 2, 2009
346     * Moose::Meta::Attribute
347       - Added the currying syntax for delegation from AttributeHelpers to the
348         existing delegation API. (hdp)
349
350     * Moose::Meta::Attribute::Native
351       - We have merged the functionality of MooseX::AttributeHelpers into the
352         Moose core with some API tweaks. You can continue to use
353         MooseX::AttributeHelpers, but it will not be maintained except
354         (perhaps) for critical bug fixes in the future. See
355         Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
356         perigrin, doy)
357
358     * Moose::Error::Croak
359     * Moose::Error::Confess
360       - Clarify documentation on how to use different error-throwing
361         modules. (Curtis Jewell)
362
363     * Moose
364       - Correct POD for builder to point to Recipe8, not 9. (gphat)
365
366     * Moose::Exporter
367       - When a nonexistent sub name is passed to as_is, with_caller, or
368         with_meta, throw a warning and skip the exporting, rather than
369         installing a broken sub. (doy)
370
371     * Moose::Meta::Class
372       - Moose now warns if you call C<make_immutable> for a class with mutable
373         ancestors. (doy)
374
375 0.89 Thu Aug 13, 2009
376     * Moose::Manual::Attributes
377       - Clarify "is", include discussion of "bare". (Sartak)
378
379     * Moose::Meta::Role::Method::Conflicting
380     * Moose::Meta::Role::Application::ToClass
381       - For the first set of roles involved in a conflict, report all
382         unresolved method conflicts, not just the first method. Fixes #47210
383         reported by Ovid. (Sartak)
384
385     * Moose::Meta::TypeConstraint
386       - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
387
388     * Moose::Exporter
389       - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
390         does. (doy)
391       - Allow specifying role options (alias, excludes, MXRP stuff) in the
392         arrayref passed to "use Moose -traits" (doy)
393
394     * Moose::Util
395       - Add functions meta_class_alias and meta_attribute_alias for creating
396         aliases for class and attribute metaclasses and metatraits. (doy)
397
398     * Moose::Meta::Attribute
399     * Moose::Meta::Method::Accessor
400       - A trigger now receives the old value as a second argument, if the
401         attribute had one. (Dave Rolsky)
402
403     * Moose::Meta::Method::Constructor
404       - Fix a bug with $obj->new when $obj has stringify overloading.
405         Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
406         - However, we will probably deprecate $obj->new, so please don't start
407           using it for new code!
408
409     * Moose::Meta::Role::Application
410     * Moose::Meta::Role::Application::RoleSummation
411       - Rename alias and excludes to -alias and -excludes (but keep the old
412         names for now, for backcompat) (doy)
413
414 0.88 Fri Jul 24, 2009
415     * Moose::Manual::Contributing
416       - Re-write the Moose::Manual::Contributing document to reflect
417         the new layout and methods of work for the Git repository. All
418         work now should be done in topic branches and reviewed by a
419         core committer before being applied to master. All releases
420         are done by a cabal member and merged from master to
421         stable. This plan was devised by Yuval, blame him. (perigrin)
422
423     * Moose::Meta::Role
424       - Create metaclass attributes for the different role application
425         classes.  (rafl)
426
427     * Moose::Util::MetaRole
428       - Allow applying roles to a meta role's role application
429         classes. (rafl)
430
431     * Moose::Meta::Attribute
432       - Add weak_ref to allowed options for "has '+foo'" (mst)
433
434     * Moose::Meta::Method::Accessor
435       - No longer uses inline_slot_access in accessors, to support
436         non-lvalue-based meta instances. (sorear)
437
438 0.87 Tue Jul 7, 2009
439     * Moose::Meta::Method::Delegation
440       - Once again allow class names as well as objects for
441         delegation. This was changed in 0.86.
442
443 0.86 Fri Jul 3, 2009
444     * Moose::Meta::Class::Immutable::Trait
445       - Fixes to work with the latest Class::MOP.
446
447     * Moose::Meta::Method::Delegation
448       - Delegation now dies with a more useful error message if the
449         attribute's accessor returns something defined but
450         unblessed. (hdp)
451
452 0.85 Fri, Jun 26, 2009
453     * Moose::Meta::Attribute
454       - The warning for 'no associated methods' is now split out into
455         the _check_associated_methods method, so that extensions can
456         safely call 'after install_accessors => ...'. This fixes a
457         warning from MooseX::AttributeHelpers. (hdp)
458
459 0.84 Fri, Jun 26, 2009
460     * Moose::Role
461       - has now sets definition_context for attributes defined in
462         roles. (doy)
463
464     * Moose::Meta::Attribute
465       - When adding an attribute to a metaclass, if the attribute has
466         no associated methods, it will give a deprecation
467         warning. (hdp)
468       - Methods generated by delegation were not being added to
469         associated_methods. (hdp)
470       - Attribute accessors (reader, writer, accessor, predicate,
471         clearer) now warn if they overwrite an existing method. (doy)
472       - Attribute constructors now warn very noisily about unknown (or
473         misspelled) arguments
474
475     * Moose::Util::TypeConstraints
476       - Deprecated the totally useless Role type name, which just
477         checked if $object->can('does'). Note that this is _not_ the
478         same as a type created by calling role_type('RoleName').
479
480     * Moose::Util::TypeConstraints
481     * Moose::Meta::TypeConstraint::DuckType
482       - Reify duck type from a regular subtype into an actual class
483         (Sartak)
484         - Document this because Sartak did all my work for me
485           (perigrin)
486
487     * Moose::Meta::Attribute
488       - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
489         it is just a list of methods (Sartak)
490
491     * Moose::Meta::Role
492       - The get_*_method_modifiers methods would die if the role had
493         no modifiers of the given type (Robert Buels).
494
495 0.83 Tue, Jun 23, 2009
496     * Moose::Meta::Class
497       - Fix _construct_instance not setting the special __MOP__ object
498         key in instances of anon classes. (doy)
499
500 0.82 Sun, Jun 21, 2009
501     * Moose::Manual::Types
502       - Mention MooseX::Types early to avoid users falling down the
503         string parsing rathole (mst)
504
505     * Moose::Manual::MooseX
506       - Add warnings about class-level extensions and mention considering
507         using plain objects instead
508
509 0.81 Sun, Jun 7, 2009
510     * Bumped our Class::MOP prereq to the latest version (0.85), since
511       that's what we need.
512
513 0.80 Sat, Jun 6, 2009
514     * Moose::Manual::FAQ
515       - Add FAQ about the coercion change from 0.76 because it came up
516         three times today (perigrin)
517         - Win doy $10 dollars because Sartak didn't think anybody
518           would document this fast enough (perigrin)
519
520     * Moose::Meta::Method::Destructor
521       - Inline a DESTROY method even if there are no DEMOLISH methods
522         to prevent unnecessary introspection in
523         Moose::Object::DEMOLISHALL
524
525     * Moose::*
526       - A role's required methods are now represented by
527         Moose::Meta::Role::Method::Required objects. Conflicts are now
528         represented by Moose::Meta::Role::Method::Conflicting
529         objects. The benefit for end-users in that unresolved
530         conflicts generate different, more instructive, errors,
531         resolving Ovid's #44895. (Sartak)
532
533     * Moose::Role
534       - Improve the error message of "extends" as suggested by Adam
535         Kennedy and confound (Sartak)
536       - Link to Moose::Manual::Roles from Moose::Role as we now have
537         excellent documentation (Adam Kennedy)
538
539     * Tests
540       - Update test suite for subname change in Class::MOP
541         (nothingmuch)
542       - Add TODO test for infinite recursion in Moose::Meta::Class
543         (groditi)
544
545 0.79 Wed, May 13, 2009
546     * Tests
547       - More fixes for Win32 problems. Reported by Robert Krimen.
548
549     * Moose::Object
550       - The DEMOLISHALL method could still blow up in some cases
551         during global destruction. This method has been made more
552         resilient in the face of global destruction's random garbage
553         collection order.
554
555     * Moose::Exporter
556       - If you "also" a module that isn't loaded, the error message
557         now acknowledges that (Sartak)
558
559     * Moose
560       - When your ->meta method does not return a Moose::Meta::Class,
561         the error message gave the wrong output (Sartak)
562
563 0.78 Tue, May 12, 2009
564     * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
565       - Merged these documents into what is now Moose::Manual::FAQ
566
567     * Moose::Unsweetened
568       - Moved to Moose::Manual::Unsweetened
569
570     * Moose::Cookbook::Basics::Recipes 9-12
571       - Renamed to be 8-11, since recipe 8 did not exist
572
573     * Moose::Exporter
574       - Make Moose::Exporter import strict and warnings into packages
575         that use it (doy)
576
577     * Moose::Object
578       - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
579         methods during global destruction (doy)
580
581     * Moose::Meta::Class
582     * Moose::Meta::Role::Application::ToClass
583       - Track the Role::Application objects created during class-role
584         consumption (Sartak)
585
586     * Moose::Meta::Class
587       - Fix metaclass incompatibility errors when extending a vanilla perl
588         class which isa Moose class with a metaclass role applied (t0m)
589
590     * Moose::Meta::Role
591       - Add a role-combination hook, _role_for_combination, for the
592         benefit of MooseX::Role::Parameterized (Sartak)
593
594     * Tests
595       - Some tests were failing on Win32 because they explicit checked
596         warning output for newlines. Reported by Nickolay Platonov.
597
598 0.77 Sat, May 2, 2009
599     * Moose::Meta::Role
600       - Add explicit use of Devel::GlobalDestruction and Sub::Name
601         (perigrin)
602
603     * Moose::Object
604       - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
605         or not we are currently in global destruction (doy)
606       - Add explicit use of Devel::GlobalDestruction and Sub::Name
607         (perigrin)
608
609     * Moose::Cookbook::FAQ
610       - Reworked much of the existing content to be more useful to
611         modern Moose hackers (Sartak)
612
613     * Makefile.PL
614       - Depend on Class::MOP 0.83 instead of 0.82_01.
615
616 0.76 Mon, April 27, 2009
617     * Moose::Meta::TypeConstraint
618       - Do not run coercions in coerce() if the value already passes the type
619         constraint (hdp)
620
621     * Moose::Meta::TypeConstraint::Class
622       - In validation error messages, specifically say that the value is not
623         an instance of the class. This should alleviate some frustrating
624         forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
625
626     * Moose::Meta::Role::Application::ToClass
627       - Revert the class-overrides-role warning in favor of a solution outside
628         of the Moose core (Sartak)
629
630     * Tests
631       - Make Test::Output optional again, since it's only used in a few files
632         (Sartak)
633
634 0.75_01 Thu, April 23, 2009
635     * Moose::Meta::Role::Application::ToClass
636       - Moose now warns about each class overriding methods from roles it
637         consumes (Sartak)
638
639     * Tests
640       - Warnings tests have standardized on Test::Output which is now an
641         unconditionally dependency (Sartak)
642
643     * Moose::Meta::Class
644       - Changes to immutabilization to work with Class::MOP 0.82_01+.
645
646 0.75 Mon, April 20, 2009
647     * Moose
648     * Moose::Meta::Class
649       - Move validation of not inheriting from roles from Moose::extends to
650         Moose::Meta::Class::superclasses (doy)
651
652     * Moose::Util
653       - add ensure_all_roles() function to encapsulate the common "apply this
654         role unless the object already does it" pattern (hdp)
655
656     * Moose::Exporter
657       - Users can now select a different metaclass with the "-metaclass"
658         option to import, for classes and roles (Sartak)
659
660     * Moose::Meta::Role
661       - Make method_metaclass an attr so that it can accept a metarole
662         application.  (jdv)
663
664 0.74 Tue, April 7, 2009
665     * Moose::Meta::Role
666     * Moose::Meta::Method::Destructor
667       - Include stack traces in the deprecation warnings.
668         (Florian Ragwitz)
669
670     * Moose::Meta::Class
671       - Removed the long-deprecated _apply_all_roles method.
672
673     * Moose::Meta::TypeConstraint
674       - Removed the long-deprecated union method.
675
676
677 0.73_02 Mon, April 6, 2009
678     * More deprecations and renamings
679       - Moose::Meta::Method::Constructor
680         - initialize_body => _initialize_body (this is always called
681           when an object is constructed)
682
683     * Moose::Object
684       - The DEMOLISHALL method could throw an exception during global
685         destruction, meaning that your class's DEMOLISH methods would
686         not be properly called. Reported by t0m.
687
688     * Moose::Meta::Method::Destructor
689       - Destructor inlining was totally broken by the change to the
690         is_needed method in 0.72_01. Now there is a test for this
691         feature, and it works again.
692
693     * Moose::Util
694       - Bold the word 'not' in the POD for find_meta (t0m)
695
696 0.73_01 Sun, April 5, 2009
697     * Moose::*
698       - Call user_class->meta in fewer places, with the eventual goal
699         of allowing the user to rename or exclude ->meta
700         altogether. Instead uses Class::MOP::class_of. (Sartak)
701
702     * Moose::Meta::Method::Accessor
703       - If an attribute had a lazy default, and that value did not
704         pass the attribute's type constraint, it did not get the
705         message from the type constraint, instead using a generic
706         message. Test provided by perigrin.
707
708     * Moose::Util::TypeConstraints
709       - Add duck_type keyword. It's sugar over making sure an object
710         can() a list of methods. This is easier than jrockway's
711         suggestion to fork all of CPAN. (perigrin)
712         - add tests and documentation (perigrin)
713
714     * Moose
715       - Document the fact that init_meta() returns the target class's
716         metaclass object. (hdp)
717
718     * Moose::Cookbook::Extending::Recipe1
719     * Moose::Cookbook::Extending::Recipe2
720     * Moose::Cookbook::Extending::Recipe3
721     * Moose::Cookbook::Extending::Recipe4
722       - Make init_meta() examples explicitly return the metaclass and
723         point out this fact. (hdp)
724
725     * Moose::Cookbook::Basics::Recipe12
726       - A new recipe, creating a custom meta-method class.
727
728     * Moose::Cookbook::Meta::Recipe6
729       - A new recipe, creating a custom meta-method class.
730
731     * Moose::Meta::Class
732     * Moose::Meta::Method::Constructor
733       - Attribute triggers no longer receive the meta-attribute object
734         as an argument in any circumstance. Previously, triggers
735         called during instance construction were passed the
736         meta-attribute, but triggers called by normal accessors were
737         not. Fixes RT#44429, reported by Mark Swayne. (hdp)
738
739     * Moose::Manual::Attributes
740       - Remove references to triggers receving the meta-attribute object as an
741         argument. (hdp)
742
743     * Moose::Cookbook::FAQ
744       - Remove recommendation for deprecated Moose::Policy and
745         Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
746         instead. (hdp)
747
748     * Many methods have been renamed with a leading underscore, and a
749       few have been deprecated entirely. The methods with a leading
750       underscore are consider "internals only". People writing
751       subclasses or extensions to Moose should feel free to override
752       them, but they are not for "public" use.
753
754       - Moose::Meta::Class
755         - check_metaclass_compatibility => _check_metaclass_compatibility
756
757       - Moose::Meta::Method::Accessor
758         - initialize_body => _initialize_body (this is always called
759           when an object is constructed)
760         - /(generate_.*_method(?:_inline)?)/ => '_' . $1
761
762       - Moose::Meta::Method::Constructor
763         - initialize_body => _initialize_body (this is always called
764           when an object is constructed)
765         - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
766         - attributes => _attributes (now inherited from parent)
767         - meta_instance => _meta_instance (now inherited from parent)
768
769       - Moose::Meta::Role
770         - alias_method is deprecated. Use add_method
771
772 0.73 Fri, March 29, 2009
773     * No changes from 0.72_01.
774
775 0.72_01 Thu, March 26, 2009
776     * Everything
777       - Almost every module has complete API documentation. A few
778         methods (and even whole classes) have been intentionally
779         excluded pending some rethinking of their APIs.
780
781     * Moose::Util::TypeConstraints
782       - Calling subtype with a name as the only argument is now an
783         exception. If you want an anonymous subtype do:
784
785          my $subtype = subtype as 'Foo';
786
787     * Moose::Cookbook::Meta::Recipe7
788       - A new recipe, creating a custom meta-instance class.
789
790     * Moose::Cookbook::Basics::Recipe5
791       - Fix various typos and mistakes. Includes a patch from Radu
792         Greab.
793
794     * Moose::Cookbook::Basics::Recipe9
795       - Link to this recipe from Moose.pm's builder blurb
796
797     * Moose::Exporter
798       - When wrapping a function with a prototype, Moose::Exporter now
799         makes sure the wrapped function still has the same
800         prototype. (Daisuke Maki)
801
802     * Moose::Meta::Attribute
803       - Allow a subclass to set lazy_build for an inherited
804         attribute. (hdp)
805
806     * Makefile.PL
807       - Explicitly depend on Data::OptList. We already had this dependency
808         via Sub::Exporter, but since we're using it directly we're
809         better off with it listed. (Sartak)
810
811     * Moose::Meta::Method::Constructor
812       - Make it easier to subclass the inlining behaviour. (Ash
813         Berlin)
814
815     * Moose::Manual::Delta
816       - Details significant changes in the history of Moose, along
817         with recommended workarounds.
818
819     * Moose::Manual::Contributing
820       - Contributor's guide to Moose.
821
822     * Moose::Meta::Method::Constructor
823       - The long-deprecated intialize_body method has been removed
824         (yes, spelled like that).
825
826     * Moose::Meta::Method::Destructor
827       - This is_needed method is now always a class method.
828
829     * Moose::Meta::Class
830       - Changes to the internals of how make_immutable works to match
831         changes in latest Class::MOP.
832
833 0.72 Mon, February 23, 2009
834     * Moose::Object
835     * Moose::Meta::Method::Constructor
836       - A mutable class accepted Foo->new(undef) without complaint,
837         while an immutable class would blow up with an unhelpful
838         error. Now, in both cases we throw a helpful error
839         instead. Reported by doy.
840
841 0.71_01 Sun, February 22, 2009
842     * Moose::Cookbook
843       - Hopefully fixed some POD errors in a few recipes that caused
844         them to display weird on search.cpan.org.
845
846     * Moose::Util::TypeConstraints
847       - Calling type or subtype without the sugar helpers (as, where,
848         message) is now deprecated.
849       - The subtype function tried hard to guess what you meant, but
850         often got it wrong. For example:
851
852          my $subtype = subtype as 'ArrayRef[Object]';
853
854         This caused an error in the past, but now works as you'd
855         expect.
856
857     * Everywhere
858       - Make sure Moose.pm is loaded before calling
859         Moose->throw_error. This wasn't normally an issue, but could
860         bite you in weird cases.
861
862 0.71 Thu, February 19, 2009
863     * Moose::Cookbook::Basics::Recipe11
864       - A new recipe which demonstrates the use of BUILDARGS and
865         BUILD. (Dave Rolsky)
866
867     * Moose::Cookbook::Roles::Recipe3
868       - A new recipe, applying a role to an object instance. (Dave
869         Rolsky)
870
871     * Moose::Exporter
872       - Allow overriding specific keywords from "also" packages. (doy)
873
874     * Tests
875       - Replace hardcoded cookbook tests with Test::Inline to ensure
876         the tests match the actual code in the recipes. (Dave Rolsky)
877
878     * Moose::Cookbook
879       - Working on the above turned up a number of little bugs in the
880         recipe code. (Dave Rolsky)
881
882     * Moose::Util::TypeConstraints::Optimized
883       - Just use Class::MOP for the optimized ClassName check. (Dave
884         Rolsky)
885
886 0.70 Sat, February 14, 2009
887     * Moose::Util::TypeConstraints
888       - Added the RoleName type (stevan)
889         - added tests for this (stevan)
890
891     * Moose::Cookbook::Basics::Recipe3
892       - Updated the before qw[left right] sub to be a little more
893         defensive about what it accepts (stevan)
894         - added more tests to t/000_recipies/basics/003_binary_tree.t
895           (stevan)
896
897     * Moose::Object
898       - We now always call DEMOLISHALL, even if a class does not
899         define DEMOLISH. This makes sure that method modifiers on
900         DEMOLISHALL work as expected. (doy)
901         - added tests for this (EvanCarroll)
902
903     * Moose::Util::MetaRole
904       - Accept roles for the wrapped_method_metaclass (rafl)
905         - added tests for this (rafl)
906
907     * Moose::Meta::Attribute
908       - We no longer pass the meta-attribute object as a final
909         argument to triggers. This actually changed for inlined code a
910         while back, but the non-inlined version and the docs were
911         still out of date.
912
913     * Tests
914       - Some tests tried to use Test::Warn 0.10, which had bugs. Now
915         they require 0.11. (Dave Rolsky)
916
917     * Documentation
918       - Lots of small changes to the manual, cookbook, and
919         elsewhere. These were based on feedback from various
920         users, too many to list here. (Dave Rolsky)
921
922 0.69 Thu, February 12, 2009
923     * Moose
924       - Make some keyword errors use throw_error instead of croak
925         since Moose::Exporter wraps keywords now (Sartak)
926
927     * Moose::Cookbook::*
928       - Revised every recipe for style and clarity. Also moved some
929         documentation out of cookbook recipes and into Moose::Manual
930         pages. This work was funded as part of the Moose docs grant
931         from TPF. (Dave Rolsky)
932
933     * Moose::Meta::Method::Delegation
934       - If the attribute doing the delegation was not populated, the
935         error message did not specify the attribute name
936         properly. (doy)
937
938 0.68 Wed, February 4, 2009
939     * POD
940       - Many spelling, typo, and formatting fixes by daxim.
941
942     * Moose::Manual::Attributes
943       - The NAME section in the POD used "Attribute" so search.cpan
944         didn't resolve links from other documents properly.
945
946     * Moose::Meta::Method::Overriden
947       - Now properly spelled as Overridden. Thanks to daxim for
948         noticing this.
949
950 0.67 Tue, February 3, 2009
951     * Moose::Manual::*
952       - Lots of little typo fixes and a few clarifications. Several
953         pages didn't have proper titles, and so weren't actually
954         visible on search.cpan.org. Thanks to hanekomu for a variety
955         of fixes and formatting improvements.
956
957 0.66 Tue, February 3, 2009
958     * Moose::Manual
959       - This is a brand new, extensive manual for Moose. This aims to
960         provide a complete introduction to all of Moose's
961         features. This work was funded as part of the Moose docs grant
962         from TPF. (Dave Rolsky)
963
964     * Moose::Meta::Attribute
965       - Added a delegation_metaclass method to replace a hard-coded
966         use of Moose::Meta::Method::Delegation. (Dave Rolsky)
967
968     * Moose::Util::TypeConstraints
969       - If you created a subtype and passed a parent that Moose didn't
970         know about, it simply ignored the parent. Now it automatically
971         creates the parent as a class type. This may not be what you
972         want, but is less broken than before. (Dave Rolsky)
973
974     * Moose::Util::TypeConstraints
975       - This module tried throw errors by calling Moose->throw_error,
976         but it did not ensure that Moose was loaded first. This could
977         cause very unhelpful errors when it tried to throw an error
978         before Moose was loaded. (Dave Rolsky)
979
980     * Moose::Util::TypeConstraints
981       - You could declare a name with subtype such as "Foo!Bar" that
982         would be allowed, but if you used it in a parameterized type
983         such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
984         vetting on names created via the sugar functions, so that they
985         can only contain alphanumerics, ":", and ".". (Dave Rolsky)
986
987 0.65 Thu, January 22, 2008
988     * Moose and Moose::Meta::Method::Overridden
989       - If an overridden method called super(), and then the
990         superclass's method (not overridden) _also_ called super(),
991         Moose went into an endless recursion loop. Test provided by
992         Chris Prather. (Dave Rolsky)
993
994     * Moose::Meta::TypeConstraint
995       - All methods are now documented. (gphat)
996
997     * t/100_bugs/011_DEMOLISH_eats_exceptions.t
998       - Fixed some bogus failures that occurred because we tried to
999         validate filesystem paths in a very ad-hoc and
1000         not-quite-correct way. (Dave Rolsky)
1001
1002     * Moose::Util::TypeConstraints
1003       - Added maybe_type to exports. See docs for details. (rjbs)
1004
1005     * Moose
1006       - Added Moose::Util::TypeConstraints to the SEE ALSO
1007         section. (pjf)
1008
1009     * Moose::Role
1010       - Methods created via an attribute can now fulfill a "requires"
1011         declaration for a role. (nothingmuch)
1012
1013     * Moose::Meta::Method::*
1014       - Stack traces from inlined code will now report its line and
1015         file as being in your class, as opposed to in Moose
1016         guts. (nothingmuch).
1017
1018 0.64 Wed, December 31, 2008
1019     * Moose::Meta::Method::Accessor
1020       - Always inline predicate and clearer methods (Sartak)
1021
1022     * Moose::Meta::Attribute
1023       - Support for parameterized traits (Sartak)
1024       - verify_against_type_constraint method to avoid duplication
1025         and enhance extensibility (Sartak)
1026
1027     * Moose::Meta::Class
1028       - Tests (but no support yet) for parameterized traits (Sartak)
1029
1030     * Moose
1031       - Require Class::MOP 0.75+, which has the side effect of making
1032         sure we work on Win32. (Dave Rolsky)
1033
1034 0.63 Mon, December 8, 2008
1035     * Moose::Unsweetened
1036       - Some small grammar tweaks and bug fixes in non-Moose example
1037         code. (Dave Rolsky)
1038
1039 0.62_02 Fri, December 5, 2008
1040     * Moose::Meta::Role::Application::ToClass
1041       - When a class does not provide all of a role's required
1042         methods, the error thrown now mentions all of the missing
1043         methods, as opposed to just the first one found. Requested by
1044         Curtis Poe (RT #41119). (Dave Rolsky)
1045
1046     * Moose::Meta::Method::Constructor
1047       - Moose will no longer inline a constructor for your class
1048         unless it inherits its constructor from Moose::Object, and
1049         will warn when it doesn't inline. If you want to force
1050         inlining anyway, pass "replace_constructor => 1" to
1051         make_immutable. Addresses RT #40968, reported by Jon
1052         Swartz. (Dave Rolsky)
1053       - The quoting of default values could be broken if the default
1054         contained a single quote ('). Now we use quotemeta to escape
1055         anything potentially dangerous in the defaults. (Dave Rolsky)
1056
1057 0.62_01 Wed, December 3, 2008
1058     * Moose::Object
1059       - use the method->execute API for BUILDALL
1060         and DEMOLISHALL (Sartak)
1061
1062     * Moose::Util::TypeConstraints
1063       - We now make all the type constraint meta classes immutable
1064         before creating the default types provided by Moose. This
1065         should make loading Moose a little faster. (Dave Rolsky)
1066
1067 0.62 Wed November 26, 2008
1068     * Moose::Meta::Role::Application::ToClass
1069       Moose::Meta::Role::Application::ToRole
1070       - fixed issues where excluding and aliasing the
1071         same methods for a single role did not work
1072         right (worked just fine with multiple
1073         roles) (stevan)
1074         - added test for this (stevan)
1075
1076     * Moose::Meta::Role::Application::RoleSummation
1077       - fixed the error message when trying to compose
1078         a role with a role it excludes (Sartak)
1079
1080     * Moose::Exporter
1081       - Catch another case where recursion caused the value
1082         of $CALLER to be stamped on (t0m)
1083         - added test for this (t0m)
1084
1085     * Moose
1086       - Remove the make_immutable keyword, which has been
1087         deprecated since April. It breaks metaclasses that
1088         use Moose without no Moose (Sartak)
1089
1090     * Moose::Meta::Attribute
1091       - Removing an attribute from a class now also removes delegation
1092         (handles) methods installed for that attribute (t0m)
1093         - added test for this (t0m)
1094
1095     * Moose::Meta::Method::Constructor
1096       - An attribute with a default that looked like a number (but was
1097         really a string) would accidentally be treated as a number
1098         when the constructor was made immutable (perigrin)
1099         - added test for this (perigrin)
1100
1101     * Moose::Meta::Role
1102       - create method for constructing a role
1103         dynamically (Sartak)
1104         - added test for this (Sartak)
1105       - anonymous roles! (Sartak)
1106         - added test for this (Sartak)
1107
1108     * Moose::Role
1109       - more consistent error messages (Sartak)
1110
1111     * Moose::Cookbook::Roles::Recipe1
1112       - attempt to explain why a role that just requires
1113         methods is useful (Sartak)
1114
1115 0.61 Fri November 7, 2008
1116     * Moose::Meta::Attribute
1117       - When passing a role to handles, it will be loaded if necessary
1118         (perigrin)
1119
1120     * Moose::Meta::Class
1121       - Method objects returned by get_method (and other methods)
1122         Could end up being returned without an associated_metaclass
1123         attribute. Removing get_method_map, which is provided by
1124         Class::MOP::Class, fixed this. The Moose version did nothing
1125         different from its parent except introduce a bug. (Dave Rolsky)
1126         - added tests for this (jdv79)
1127
1128     * Various
1129       - Added a $VERSION to all .pm files which didn't have one. Fixes
1130         RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1131
1132     * Moose::Cookbook::Basics::Recipe4
1133     * Moose::Cookbook::Basics::Recipe6
1134       - These files had spaces on the first line of the SYNOPSIS, as
1135         opposed to a totally empty line. According to RT #40432, this
1136         confuses POD parsers. (Dave Rolsky)
1137
1138 0.60 Fri October 24, 2008
1139     * Moose::Exporter
1140       - Passing "-traits" when loading Moose caused the Moose.pm
1141         exports to be broken. Reported by t0m. (Dave Rolsky)
1142         - Tests for this bug. (t0m)
1143
1144     * Moose::Util
1145       - Change resolve_metaclass alias to use the new
1146         load_first_existing_class function. This makes it a lot
1147         simpler, and also around 5 times faster. (t0m)
1148       - Add caching to resolve_metaclass_alias, which gives an order
1149         of magnitude speedup to things which repeatedly call the
1150         Moose::Meta::Attribute->does method, notably MooseX::Storage
1151         (t0m)
1152
1153     * Moose::Util::TypeConstraint
1154       - Put back the changes for parameterized constraints that
1155         shouldn't have been removed in 0.59. We still cannot parse
1156         them, but MooseX modules can create them in some other
1157         way. See the 0.58 changes for more details. (jnapiorkowski)
1158       - Changed the way subtypes are created so that the job is
1159         delegated to a type constraint parent. This clears up some
1160         hardcoded checking and should allow correct subtypes of
1161         Moose::Meta::Type::Constraint. Don't rely on this new API too
1162         much (create_child_type) because it may go away in the
1163         future. (jnapiorkowski)
1164
1165     * Moose::Meta::TypeConstraint::Union
1166       - Type constraint names are sorted as strings, not numbers.
1167         (jnapiorkowski)
1168
1169     * Moose::Meta::TypeConstraint::Parameterizable
1170       - New parameterize method. This can be used as a factory method
1171         to make a new type constraint with a given parameterized
1172         type. (jnapiorkowski)
1173         - added tests (jnapiorkowski)
1174
1175 0.59 Tue October 14, 2008
1176     * Moose
1177       - Add abridged documentation for builder/default/initializer/
1178         predicate, and link to more details sections in
1179         Class::MOP::Attribute. (t0m)
1180
1181     * Moose::Util::TypeConstraints
1182       - removed prototypes from all but the &-based stuff (mst)
1183
1184     * Moose::Util::TypeConstraints
1185       - Creating a anonymous subtype with both a constraint and a
1186         message failed with a very unhelpful error, but should just
1187         work. Reported by t0m. (Dave Rolsky)
1188
1189     * Tests
1190       - Some tests that used Test::Warn if it was available failed
1191         with older versions of Test::Warn. Reported by Fayland. (Dave
1192         Rolsky)
1193       - Test firing behavior of triggers in relation to builder/default/
1194         lazy_build. (t0m)
1195       - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1196         kinds of supported type. (t0m)
1197
1198     * Moose::Meta::Class
1199       - In create(), do not pass "roles" option to the superclass
1200         - added related test that creates an anon metaclass with
1201           a required attribute
1202
1203     * Moose::Meta::TypeConstraint::Class
1204     * Moose::Meta::TypeConstraint::Role
1205       - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1206         other types (as per change in 0.55_02). (t0m)
1207
1208     * Moose::Meta::TypeConstraint::Registry
1209       - Fix warning when dealing with unknown type names (t0m)
1210
1211     * Moose::Util::TypeConstraints
1212       - Reverted changes from 0.58 related to handle parameterized
1213         types. This caused random failures on BSD and Win32 systems,
1214         apparently related to the regex engine. This means that Moose
1215         can no longer parse structured type constraints like
1216         ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1217         supported in a slightly different way via MooseX::Types some
1218         time in the future. (Dave Rolsky)
1219
1220 0.58 Sat September 20, 2008
1221     !! This release has an incompatible change regarding !!
1222     !! how roles add methods to a class !!
1223
1224     * Roles and role application
1225       ! Roles now add methods by calling add_method, not
1226         alias_method. They make sure to always provide a method
1227         object, which will be cloned internally. This means that it is
1228         now possible to track the source of a method provided by a
1229         role, and even follow its history through intermediate roles.
1230
1231         This means that methods added by a role now show up when
1232         looking at a class's method list/map. (Dave Rolsky)
1233
1234     * Makefile.PL
1235       - From this release on, we'll try to maintain a list of
1236         conflicting modules, and warn you if you have one
1237         installed. For example, this release conflicts with ...
1238         - MooseX::Singleton        <= 0.11
1239         - MooseX::Params::Validate <= 0.05
1240         - Fey::ORM                 <= 0.10
1241
1242         In general, we try to not break backwards compatibility for
1243         most Moose users, but MooseX modules and other code which
1244         extends Moose's metaclasses is often affected by very small
1245         changes in the Moose internals.
1246
1247     * Moose::Meta::Method::Delegation
1248     * Moose::Meta::Attribute
1249       - Delegation methods now have their own method class. (Dave
1250         Rolsky)
1251
1252     * Moose::Meta::TypeConstraint::Parameterizable
1253       - Added a new method 'parameterize' which is basically a factory
1254         for the containing constraint. This makes it easier to create
1255         new types of parameterized constraints. (jnapiorkowski)
1256
1257     * Moose::Meta::TypeConstraint::Union
1258       - Changed the way Union types canonicalize their names to follow
1259         the normalized TC naming rules, which means we strip all
1260         whitespace. (jnapiorkowski)
1261
1262     * Moose::Util::TypeConstraints
1263       - Parameter and Union args are now sorted, this makes Int|Str
1264         the same constraint as Str|Int. (jnapiorkowski)
1265       - Changes to the way Union types are parsed to more correctly
1266         stringify their names. (jnapiorkowski)
1267       - When creating a parameterized type, we now use the new
1268         parameterize method. (jnapiorkowski)
1269       - Incoming type constraint strings are now normalized to remove
1270         all whitespace differences. (jnapiorkowski)
1271       - Changed the way we parse type constraint strings so that we now
1272         match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1273         constraints. This lays the foundation for more flexible type
1274         constraint implementations.
1275
1276     * Tests and docs for all the above. (jnapiorkowski)
1277
1278     * Moose::Exporter
1279     * Moose
1280       - Moose::Exporter will no longer remove a subroutine that the
1281         exporting package re-exports. Moose re-exports the
1282         Carp::confess function, among others. The reasoning is that we
1283         cannot know whether you have also explicitly imported those
1284         functions for your own use, so we err on the safe side and
1285         always keep them. (Dave Rolsky)
1286         - added tests for this (rafl)
1287
1288     * Moose::Meta::Class
1289       - Changes to how we fix metaclass compatibility that are much
1290         too complicated to go into. The summary is that Moose is much
1291         less likely to complain about metaclass incompatibility
1292         now. In particular, if two metaclasses differ because
1293         Moose::Util::MetaRole was used on the two corresponding
1294         classes, then the difference in roles is reconciled for the
1295         subclass's metaclass. (Dave Rolsky)
1296       - Squashed an warning in _process_attribute (thepler)
1297
1298     * Moose::Meta::Role
1299       - throw exceptions (sooner) for invalid attribute names (thepler)
1300         - added tests for this (thepler)
1301
1302     * Moose::Util::MetaRole
1303       - If you explicitly set a constructor or destructor class for a
1304         metaclass object, and then applied roles to the metaclass,
1305         that explicitly set class would be lost and replaced with the
1306         default.
1307
1308     * Moose::Meta::Class
1309     * Moose::Meta::Attribute
1310     * Moose::Meta::Method
1311     * Moose
1312     * Moose::Object
1313     * Moose::Error::Default
1314     * Moose::Error::Croak
1315     * Moose::Error::Confess
1316       - All instances of confess() changed to use overridable
1317         C<throw_error> method. This method ultimately calls a class
1318         constructor, and you can change the class being called. In
1319         addition, errors now pass more information than just a string.
1320         The default C<error_class> behaves like C<Carp::confess>, so
1321         the behavior is not visibly different for end users.
1322
1323 0.57 Wed September 3, 2008
1324     * Moose::Intro
1325       - A new bit of doc intended to introduce folks familiar with
1326         "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1327
1328     * Moose::Unsweetened
1329       - Shows examples of two classes, each done first with and then
1330         without Moose. This makes a nice parallel to
1331         Moose::Intro. (Dave Rolsky)
1332
1333     * Moose::Util::TypeConstraints
1334       - Fixed a bug in find_or_parse_type_constraint so that it
1335         accepts a Moose::Meta::TypeConstraint object as the parent
1336         type, not just a name (jnapiorkowski)
1337         - added tests (jnapiorkowski)
1338
1339     * Moose::Exporter
1340       - If Sub::Name was not present, unimporting failed to actually
1341         remove some sugar subs, causing test failures (Dave Rolsky)
1342
1343 0.56 Mon September 1, 2008
1344     For those not following the series of dev releases, there are
1345     several major changes in this release of Moose.
1346       ! Moose::init_meta should now be called as a method. See the
1347         docs for details.
1348
1349       - Major performance improvements by nothingmuch.
1350
1351       - New modules for extension writers, Moose::Exporter and
1352         Moose::Util::MetaRole by Dave Rolsky.
1353
1354       - Lots of doc improvements and additions, especially in the
1355         cookbook sections.
1356
1357       - Various bug fixes.
1358
1359     * Removed all references to the experimental-but-no-longer-needed
1360       Moose::Meta::Role::Application::ToMetaclassInstance.
1361
1362     * Require Class::MOP 0.65.
1363
1364 0.55_04 Sat August 30, 2008
1365     * Moose::Util::MetaRole
1366     * Moose::Cookbook::Extending::Recipe2
1367       - This simplifies the application of roles to any meta class, as
1368         well as the base object class. Reimplemented metaclass traits
1369         using this module. (Dave Rolsky)
1370
1371     * Moose::Cookbook::Extending::Recipe1
1372       - This a new recipe, an overview of various ways to write Moose
1373         extensions (Dave Rolsky)
1374
1375     * Moose::Cookbook::Extending::Recipe3
1376     * Moose::Cookbook::Extending::Recipe4
1377       - These used to be Extending::Recipe1 and Extending::Recipe2,
1378         respectively.
1379
1380 0.55_03 Fri August 29, 2008
1381     * No changes from 0.55_02 except increasing the Class::MOP
1382       dependency to 0.64_07.
1383
1384 0.55_02 Fri August 29, 2008
1385     * Makefile.PL and Moose.pm
1386       - explicitly require Perl 5.8.0+ (Dave Rolsky)
1387
1388     * Moose::Util::TypeConstraints
1389       - Fix warnings from find_type_constraint if the type is not
1390         found (t0m).
1391
1392     * Moose::Meta::TypeConstraint
1393       - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1394         return false if the type you specify cannot be found in the
1395         type registry, rather than throwing an unhelpful and
1396         coincidental exception. (t0m).
1397         - added docs & test for this (t0m)
1398
1399     * Moose::Meta::TypeConstraint::Registry
1400       - add_type_constraint now throws an exception if a parameter is
1401         not supplied (t0m).
1402         - added docs & test for this (t0m)
1403
1404     * Moose::Cookbook::FAQ
1405       - Added a faq entry on the difference between "role" and "trait"
1406         (t0m)
1407
1408     * Moose::Meta::Role
1409       - Fixed a bug that caused role composition to not see a required
1410         method when that method was provided by another role being
1411         composed at the same time. (Dave Rolsky)
1412         - test and bug finding (tokuhirom)
1413
1414 0.55_01 Wed August 20, 2008
1415
1416     !! Calling Moose::init_meta as a function is now         !!
1417     !! deprecated. Please see the Moose.pm docs for details. !!
1418
1419     * Moose::Meta::Method::Constructor
1420       - Fix inlined constructor so that values produced by default
1421         or builder methods are coerced as required. (t0m)
1422         - added test for this (t0m)
1423
1424     * Moose::Meta::Attribute
1425       - A lazy attribute with a default or builder did not attempt to
1426         coerce the default value. The immutable code _did_
1427         coerce. (t0m)
1428         - added test for this (t0m)
1429
1430     * Moose::Exporter
1431       - This is a new helper module for writing "Moose-alike"
1432         modules. This should make the lives of MooseX module authors
1433         much easier. (Dave Rolsky)
1434
1435     * Moose
1436     * Moose::Cookbook::Meta::Recipe5
1437       - Implemented metaclass traits (and wrote a recipe for it):
1438
1439           use Moose -traits => 'Foo'
1440
1441         This should make writing small Moose extensions a little
1442         easier (Dave Rolsky)
1443
1444     * Moose::Cookbook::Basics::Recipe1
1445       - Removed any examples of direct hashref access, and applied an
1446         editorial axe to reduce verbosity. (Dave Rolsky)
1447
1448     * Moose::Cookbook::Basics::Recipe1
1449       - Also applied an editorial axe here. (Dave Rolsky)
1450
1451     * Moose
1452     * Moose::Cookbook::Extending::Recipe1
1453     * Moose::Cookbook::Extending::Recipe2
1454       - Rewrote extending and embedding moose documentation and
1455         recipes to use Moose::Exporter (Dave Rolsky)
1456
1457     * Moose
1458     * Moose::Role
1459       - These two modules now warn when you load them from the main
1460         package "main" package, because we will not export sugar to
1461         main. Previously it just did nothing. (Dave Rolsky)
1462
1463     * Moose::Role
1464       - Now provide an init_meta method just like Moose.pm, and you
1465         can call this to provide an alternate role metaclass. (Dave
1466         Rolsky and nothingmuch)
1467       - get_method_map now respects the package cache flag (nothingmuch)
1468
1469     * Moose::Meta::Role
1470       - Two new methods - add_method and wrap_method_body
1471         (nothingmuch)
1472
1473     * many modules
1474       - Optimizations including allowing constructors to accept hash
1475         refs, making many more classes immutable, and making
1476         constructors immutable. (nothingmuch)
1477
1478 0.55 Sun August 3, 2008
1479     * Moose::Meta::Attribute
1480       - breaking down the way 'handles' methods are
1481         created so that the process can be more easily
1482         overridden by subclasses (stevan)
1483
1484     * Moose::Meta::TypeConstraint
1485       - fixing what is passed into a ->message with
1486         the type constraints (RT #37569)
1487         - added tests for this (Charles Alderman)
1488
1489     * Moose::Util::TypeConstraints
1490       - fix coerce to accept anon types like subtype can (mst)
1491
1492     * Moose::Cookbook
1493       - reorganized the recipes into sections - Basics, Roles, Meta,
1494         Extending - and wrote abstracts for each section (Dave Rolsky)
1495
1496     * Moose::Cookbook::Basics::Recipe10
1497       - A new recipe that demonstrates operator overloading
1498         in combination with Moose. (bluefeet)
1499
1500     * Moose::Cookbook::Meta::Recipe1
1501       - an introduction to what meta is and why you'd want to make
1502         your own metaclass extensions (Dave Rolsky)
1503
1504     * Moose::Cookbook::Meta::Recipe4
1505       - a very simple metaclass example (Dave Rolsky)
1506
1507     * Moose::Cookbook::Extending::Recipe1
1508       - how to write a Moose-alike module to use your own object base
1509         class (Dave Rolsky)
1510
1511     * Moose::Cookbook::Extending::Recipe2
1512       - how to write modules with an API just like C<Moose.pm> (Dave
1513         Rolsky)
1514
1515     * all documentation
1516       - Tons of fixes, both syntactical and grammatical (Dave
1517         Rolsky, Paul Fenwick)
1518
1519 0.54 Thurs. July 3, 2008
1520     ... this is not my day today ...
1521
1522     * Moose::Meta::Attribute
1523       - fixed legal_options_for_inheritance such that
1524         clone_and_inherit options still works for
1525         Class::MOP::Attribute objects and therefore
1526         does not break MooseX::AttributeHelpers
1527         (stevan)
1528
1529 0.53 Thurs. July 3, 2008
1530     * Whoops, I guess I should run 'make manifest' before
1531       actually releasing the module. No actual changes
1532       in this release, except the fact that it includes
1533       the changes that I didn't include in the last
1534       release. (stevan--)
1535
1536 0.52 Thurs. July 3, 2008
1537     * Moose
1538       - added "FEATURE REQUESTS" section to the Moose docs
1539         to properly direct people (stevan) (RT #34333)
1540       - making 'extends' croak if it is passed a Role since
1541         this is not ever something you want to do
1542         (fixed by stevan, found by obra)
1543         - added tests for this (stevan)
1544
1545     * Moose::Object
1546       - adding support for DOES (as in UNIVERSAL::DOES)
1547         (nothingmuch)
1548         - added test for this
1549
1550     * Moose::Meta::Attribute
1551       - added legal_options_for_inheritance (wreis)
1552         - added tests for this (wreis)
1553
1554     * Moose::Cookbook::Snacks::*
1555       - removed some of the unfinished snacks that should
1556         not have been released yet. Added some more examples
1557         to the 'Keywords' snack. (stevan)
1558
1559     * Moose::Cookbook::Style
1560       - added general Moose "style guide" of sorts to the
1561         cookbook (nothingmuch) (RT #34335)
1562
1563     * t/
1564       - added more BUILDARGS tests (stevan)
1565
1566 0.51 Thurs. Jun 26, 2008
1567     * Moose::Role
1568       - add unimport so "no Moose::Role" actually does
1569         something (sartak)
1570
1571     * Moose::Meta::Role::Application::ToRole
1572       - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1573         order to provide its own implementation, that method still got
1574         added to the list of required methods for consumers of
1575         RoleB. Now an aliased method is only added to the list of
1576         required methods if the role doing the aliasing does not
1577         provide its own implementation. See Recipe 11 for an example
1578         of all this. (Dave Rolsky)
1579         - added tests for this
1580
1581     * Moose::Meta::Method::Constructor
1582       - when a single argument that wasn't a hashref was provided to
1583         an immutabilized constructor, the error message was very
1584         unhelpful, as opposed to the non-immutable error. Reported by
1585         dew. (Dave Rolsky)
1586         - added test for this (Dave Rolsky)
1587
1588     * Moose::Meta::Attribute
1589       - added support for meta_attr->does("ShortAlias") (sartak)
1590         - added tests for this (sartak)
1591       - moved the bulk of the `handles` handling to the new
1592         install_delegation method (Stevan)
1593
1594     * Moose::Object
1595       - Added BUILDARGS, a new step in new()
1596
1597     * Moose::Meta::Role::Application::RoleSummation
1598       - fix typos no one ever sees (sartak)
1599
1600     * Moose::Util::TypeConstraints
1601     * Moose::Meta::TypeConstraint
1602     * Moose::Meta::TypeCoercion
1603       - Attempt to work around the ??{ } vs. threads issue
1604         (not yet fixed)
1605       - Some null_constraint optimizations
1606
1607 0.50 Thurs. Jun 11, 2008
1608     - Fixed a version number issue by bumping all modules
1609       to 0.50.
1610
1611 0.49 Thurs. Jun 11, 2008
1612     !! This version now approx. 20-25% !!
1613     !! faster with new Class::MOP 0.59 !!
1614
1615     * Moose::Meta::Attribute
1616       - fixed how the is => (ro|rw) works with
1617         custom defined reader, writer and accessor
1618         options.
1619         - added docs for this (TODO).
1620         - added tests for this (Thanks to Penfold)
1621       - added the custom attribute alias for regular
1622         Moose attributes which is "Moose"
1623       - fix builder and default both being used
1624         (groditi)
1625
1626     * Moose
1627       Moose::Meta::Class
1628       Moose::Meta::Attribute
1629       Moose::Meta::Role
1630       Moose::Meta::Role::Composite
1631       Moose::Util::TypeConstraints
1632       - switched usage of reftype to ref because
1633         it is much faster
1634
1635     * Moose::Meta::Role
1636       - changing add_package_symbol to use the new
1637         HASH ref form
1638
1639     * Moose::Object
1640       - fixed how DEMOLISHALL is called so that it
1641         can be overrided in subclasses (thanks to Sartak)
1642         - added test for this (thanks to Sartak)
1643
1644     * Moose::Util::TypeConstraints
1645       - move the ClassName type check code to
1646         Class::MOP::is_class_loaded (thanks to Sartak)
1647
1648     * Moose::Cookbook::Recipe11
1649       - add tests for this (thanks to tokuhirom)
1650
1651 0.48 Thurs. May 29, 2008
1652     (early morning release engineering)--
1653
1654     - fixing the version in Moose::Meta::Method::Destructor
1655       which was causing the indexer to choke
1656
1657 0.47 Thurs. May 29, 2008
1658     (late night release engineering)--
1659
1660     - fixing the version is META.yml, no functional
1661       changes in this release
1662
1663 0.46 Wed. May 28, 2008
1664     !! This version now approx. 20-25% !!
1665     !! faster with new Class::MOP 0.57 !!
1666
1667     * Moose::Meta::Class
1668       - some optimizations of the &initialize method
1669         since it is called so often by &meta
1670
1671     * Moose::Meta::Class
1672       Moose::Meta::Role
1673       - now use the get_all_package_symbols from the
1674         updated Class::MOP, test suite is now 10 seconds
1675         faster
1676
1677     * Moose::Meta::Method::Destructor
1678       - is_needed can now also be called as a class
1679         method for immutablization to check if the
1680         destructor object even needs to be created
1681         at all
1682
1683     * Moose::Meta::Method::Destructor
1684       Moose::Meta::Method::Constructor
1685       - added more descriptive error message to help
1686         keep people from wasting time tracking an error
1687         that is easily fixed by upgrading.
1688
1689 0.45 Saturday, May 24, 2008
1690     * Moose
1691       - Because of work in Class::MOP 0.57, all
1692         XS based functionality is now optional
1693         and a Pure Perl version is supplied
1694         - the CLASS_MOP_NO_XS environment variable
1695           can now be used to force non-XS versions
1696           to always be used
1697         - several of the packages have been tweaked
1698           to take care of this, mostly we added
1699           support for the package_name and name
1700           variables in all the Method metaclasses
1701       - before/around/after method modifiers now
1702         support regexp matching of names
1703         (thanks to Takatoshi Kitano)
1704         - tests added for this
1705         - NOTE: this only works for classes, it
1706           is currently not supported in roles,
1707           but, ... patches welcome
1708       - All usage of Carp::confess have been replaced
1709         by Carp::croak in the "keyword" functions since
1710         the stack trace is usually not helpful
1711
1712     * Moose::Role
1713       - All usage of Carp::confess have been replaced
1714         by Carp::croak in the "keyword" functions since
1715         the stack trace is usually not helpful
1716       - The 'has' keyword for roles now accepts the
1717         same array ref form that Moose.pm does
1718         (has [qw/foo bar/] => (is => 'rw', ...))
1719         - added test for this
1720
1721     * Moose::Meta::Attribute
1722       - trigger on a ro-attribute is no longer an
1723         error, as it's useful to trigger off of the
1724         constructor
1725
1726     * Moose::Meta::Class
1727       - added same 'add_package_symbol' fix as in
1728         Class::MOP 0.57
1729
1730     * Moose::Util
1731       - does_role now handles non-Moose classes
1732         more gracefully
1733         - added tests for this
1734       - added the 'add_method_modifier' function
1735         (thanks to Takatoshi Kitano)
1736
1737     * Moose::Util::TypeConstraints
1738       - subtypes of parameterizable types now are
1739         themselves parameterizable types
1740
1741     * Moose::Meta::Method::Constructor
1742       - fixed bug where trigger was not being
1743         called by the inlined immutable
1744         constructors
1745         - added test for this (thanks to Caelum)
1746
1747     * Moose::Meta::Role::Application::ToInstance
1748       - now uses the metaclass of the instance
1749         (if possible) to create the anon-class
1750         (thanks Jonathan Rockway)
1751
1752     * Moose::Cookbook::Recipe22
1753       - added the meta-attribute trait recipe
1754         (thanks to Sartak)
1755
1756     * t/
1757       - fixed hash-ordering test bug that was
1758         causing occasional cpantester failures
1759       - renamed the t/000_recipe/*.t tests to be
1760         more descriptive (thanks to Sartak)
1761
1762 0.44 Sat. May 10, 2008
1763     * Moose
1764       - made make_immutable warning cluck to
1765         show where the error is (thanks mst)
1766
1767     * Moose::Object
1768       - BUILDALL and DEMOLISHALL now call
1769         ->body when looping through the
1770         methods, to avoid the overloaded
1771         method call.
1772       - fixed issue where DEMOLISHALL was
1773         eating the $@ values, and so not
1774         working correctly, it still kind of
1775         eats them, but so does vanilla perl
1776         - added tests for this
1777
1778     * Moose::Cookbook::Recipe7
1779       - added new recipe for immutable
1780         functionality (thanks Dave Rolsky)
1781
1782     * Moose::Cookbook::Recipe9
1783       - added new recipe for builder and
1784         lazy_build (thanks Dave Rolsky)
1785
1786     * Moose::Cookbook::Recipe11
1787       - added new recipe for method aliasing
1788         and exclusion with Roles (thanks Dave Rolsky)
1789
1790     * t/
1791       - fixed Win32 test failure (thanks spicyjack)
1792
1793     ~ removed Build.PL and Module::Build compat
1794       since Module::Install has done that.
1795
1796 0.43 Wed. April, 30, 2008
1797     * NOTE TO SELF:
1798         drink more coffee before
1799         doing release engineering
1800
1801     - whoops, forgot to do the smolder tests,
1802       and we broke some of the custom meta-attr
1803       modules. This fixes that.
1804
1805 0.42 Mon. April 28, 2008
1806     - some bad tests slipped by, nothing else
1807       changed in this release (cpantesters++)
1808
1809     - upped the Class::MOP dependency to 0.55
1810       since we have tests which need the C3
1811       support
1812
1813 0.41 Mon. April 28, 2008
1814     ~~ numerous documentation updates ~~
1815
1816     - Changed all usage of die to Carp::croak for better
1817       error reporting (initial patch by Tod Hagan)
1818
1819     ** IMPORTANT NOTE **
1820     - the make_immutable keyword is now deprecated, don't
1821       use it in any new code and please fix your old code
1822       as well. There will be 2 releases, and then it will
1823       be removed.
1824
1825     * Moose
1826       Moose::Role
1827       Moose::Meta::Class
1828       - refactored the way inner and super work to avoid
1829         any method/@ISA cache penalty (nothingmuch)
1830
1831     * Moose::Meta::Class
1832       - fixing &new_object to make sure trigger gets the
1833         coerced value (spotted by Charles Alderman on the
1834         mailing list)
1835         - added test for this
1836
1837     * Moose::Meta::Method::Constructor
1838       - immutable classes which had non-lazy attributes were calling
1839         the default generating sub twice in the constructor. (bug
1840         found by Jesse Luehrs, fixed by Dave Rolsky)
1841         - added tests for this (Dave Rolsky)
1842       - fix typo in initialize_body method (nothingmuch)
1843
1844     * Moose::Meta::Method::Destructor
1845       - fix typo in initialize_body method (nothingmuch)
1846
1847     * Moose::Meta::Method::Overriden
1848       Moose::Meta::Method::Augmented
1849       - moved the logic for these into their own
1850         classes (nothingmuch)
1851
1852     * Moose::Meta::Attribute
1853       - inherited attributes may now be extended without
1854         restriction on the type ('isa', 'does') (Sartak)
1855         - added tests for this (Sartak)
1856       - when an attribute property is malformed (such as lazy without
1857         a default), give the name of the attribute in the error
1858         message (Sartak)
1859       - added the &applied_traits and &has_applied_traits methods
1860         to allow introspection of traits
1861         - added tests for this
1862       - moved 'trait' and 'metaclass' argument handling to here from
1863         Moose::Meta::Class
1864       - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1865         '+foo' syntax) (nothingmuch)
1866         - added tests for this (t0m)
1867
1868     * Moose::Object
1869       - localize $@ inside DEMOLISHALL to avoid it
1870         eating $@ (found by Ernesto)
1871         - added test for this (thanks to Ernesto)
1872
1873     * Moose::Util::TypeConstraints
1874       - &find_type_constraint now DWIMs when given an
1875         type constraint object or name (nothingmuch)
1876       - &find_or_create_type_constraint superseded with a number of more
1877         specific functions:
1878         - find_or_create_{isa,does}_type_constraint
1879         - find_or_parse_type_constraint
1880
1881     * Moose::Meta::TypeConstraint
1882       Moose::Meta::TypeConstraint::Class
1883       Moose::Meta::TypeConstraint::Role
1884       Moose::Meta::TypeConstraint::Enum
1885       Moose::Meta::TypeConstraint::Union
1886       Moose::Meta::TypeConstraint::Parameterized
1887         - added the &equals method for comparing two type
1888           constraints (nothingmuch)
1889           - added tests for this (nothingmuch)
1890
1891     * Moose::Meta::TypeConstraint
1892       - add the &parents method, which is just an alias to &parent.
1893         Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1894
1895     * Moose::Meta::TypeConstraint::Class
1896       - added the class attribute for introspection purposes
1897         (nothingmuch)
1898         - added tests for this
1899
1900     * Moose::Meta::TypeConstraint::Enum
1901       Moose::Meta::TypeConstraint::Role
1902       - broke these out into their own classes (nothingmuch)
1903
1904     * Moose::Cookbook::Recipe*
1905       - fixed references to test file locations in the POD
1906         and updated up some text for new Moose features
1907         (Sartak)
1908
1909     * Moose::Util
1910       - Added &resolve_metaclass_alias, a helper function for finding an actual
1911         class for a short name (e.g. in the traits list)
1912
1913 0.40 Fri. March 14, 2008
1914     - I hate Pod::Coverage
1915
1916 0.39 Fri. March 14, 2008
1917     * Moose
1918       - documenting the use of '+name' with attributes
1919         that come from recently composed roles. It makes
1920         sense, people are using it, and so why not just
1921         officially support it.
1922       - fixing the 'extends' keyword so that it will not
1923         trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1924
1925     * oose
1926       - added the perl -Moose=+Class::Name feature to allow
1927         monkeypatching of classes in one liners
1928
1929     * Moose::Util
1930       - fixing the 'apply_all_roles' keyword so that it will not
1931         trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1932
1933     * Moose::Meta::Class
1934       - added ->create method which now supports roles (thanks to jrockway)
1935         - added tests for this
1936       - added ->create_anon_class which now supports roles and caching of
1937         the results (thanks to jrockway)
1938         - added tests for this
1939       - made ->does_role a little more forgiving when it is
1940         checking a Class::MOP era metaclasses.
1941
1942     * Moose::Meta::Role::Application::ToInstance
1943       - it is now possible to pass extra params to be used when
1944         a role is applied to an the instance (rebless_params)
1945         - added tests for this
1946
1947     * Moose::Util::TypeConstraints
1948       - class_type now accepts an optional second argument for a
1949         custom message. POD anotated accordingly (groditi)
1950         - added tests for this
1951       - it is now possible to make anon-enums by passing 'enum' an
1952         ARRAY ref instead of the $name => @values. Everything else
1953         works as before.
1954         - added tests for this
1955
1956     * t/
1957       - making test for using '+name' on attributes consumed
1958         from a role, it works and makes sense too.
1959
1960     * Moose::Meta::Attribute
1961       - fix handles so that it doesn't return nothing
1962         when the method cannot be found, not sure why
1963         it ever did this originally, this means we now
1964         have slightly better support for AUTOLOADed
1965         objects
1966         - added more delegation tests
1967       - adding ->does method to this so as to better
1968         support traits and their introspection.
1969         - added tests for this
1970
1971     * Moose::Object
1972       - localizing the Data::Dumper configurations so
1973         that it does not pollute others (RT #33509)
1974       - made ->does a little more forgiving when it is
1975         passed Class::MOP era metaclasses.
1976
1977 0.38 Fri. Feb. 15, 2008
1978     * Moose::Meta::Attribute
1979       - fixed initializer to correctly do
1980         type checking and coercion in the
1981         callback
1982         - added tests for this
1983
1984     * t/
1985       - fixed some finicky tests (thanks to konobi)
1986
1987 0.37 Thurs. Feb. 14, 2008
1988     * Moose
1989       - fixed some details in Moose::init_meta
1990         and its superclass handling (thanks thepler)
1991         - added tests for this (thanks thepler)
1992       - 'has' now dies if you don't pass in name
1993         value pairs
1994       - added the 'make_immutable' keyword as a shortcut
1995         to make_immutable
1996
1997     * Moose::Meta::Class
1998       Moose::Meta::Method::Constructor
1999       Moose::Meta::Attribute
2000       - making (init_arg => undef) work here too
2001         (thanks to nothingmuch)
2002
2003     * Moose::Meta::Attribute
2004       Moose::Meta::Method::Constructor
2005       Moose::Meta::Method::Accessor
2006       - make lazy attributes respect attr initializers (rjbs)
2007         - added tests for this
2008
2009     * Moose::Util::TypeConstraints
2010       Moose::Util::TypeConstraints::OptimizedConstraints
2011       Moose::Meta::TypeConstraints
2012       Moose::Meta::Attribute
2013       Moose::Meta::Method::Constructor
2014       Moose::Meta::Method::Accessor
2015       - making type errors use the
2016         assigned message (thanks to Sartak)
2017         - added tests for this
2018
2019     * Moose::Meta::Method::Destructor
2020       - making sure DESTROY gets inlined properly
2021         with successive DEMOLISH calls (thanks to manito)
2022
2023     * Moose::Meta::Attribute
2024       Moose::Meta::Method::Accessor
2025       - fixed handling of undef with type constraints
2026         (thanks to Ernesto)
2027         - added tests for this
2028
2029     * Moose::Util
2030       - added &get_all_init_args and &get_all_attribute_values
2031         (thanks to Sartak and nothingmuch)
2032
2033 0.36 Sat. Jan. 26, 2008
2034     * Moose::Role
2035       Moose::Meta::Attribute
2036       - role type tests now support when roles are
2037         applied to non-Moose classes (found by ash)
2038         - added tests for this (thanks to ash)
2039       - couple extra tests to boost code coverage
2040
2041     * Moose::Meta::Method::Constructor
2042       - improved fix for handling Class::MOP attributes
2043         - added test for this
2044
2045     * Moose::Meta::Class
2046       - handled the add_attribute($attribute_meta_object)
2047         case correctly
2048         - added test for this
2049
2050 0.35 Tues. Jan. 22, 2008
2051     * Moose::Meta::Method::Constructor
2052       - fix to make sure even Class::MOP attributes
2053         are handled correctly (Thanks to Dave Rolsky)
2054         - added test for this (also Dave Rolsky)
2055
2056     * Moose::Meta::Class
2057       - improved error message on _apply_all_roles,
2058         you should now use Moose::Util::apply_all_roles
2059         and you shouldnt have been using a _ prefixed
2060         method in the first place ;)
2061
2062 0.34 Mon. Jan. 21, 2008
2063     ~~~ more misc. doc. fixes ~~~
2064     ~~ updated copyright dates ~~
2065
2066     Moose is now a postmodern object system :)
2067       - (see the POD for details)
2068
2069     * <<Role System Refactoring>>
2070     - this release contains a major reworking and
2071       cleanup of the role system
2072       - 100% backwards compat.
2073       - Role application now restructured into seperate
2074         classes based on type of applicants
2075       - Role summation (combining of more than one role)
2076         is much cleaner and anon-classes are no longer
2077         used in this process
2078       - new Composite role metaclass
2079       - runtime application of roles to instances
2080         is now more efficient and re-uses generated
2081         classes when applicable
2082
2083     * <<New Role composition features>>
2084       - methods can now be excluded from a given role
2085         during composition
2086       - methods can now be aliased to another name (and
2087         still retain the original as well)
2088
2089     * Moose::Util::TypeConstraints::OptimizedConstraints
2090       - added this module (see above)
2091
2092     * Moose::Meta::Class
2093       - fixed the &_process_attribute method to be called
2094         by &add_attribute, so that the API is now correct
2095
2096     * Moose::Meta::Method::Accessor
2097       - fixed bug when passing a list of values to
2098         an accessor would get (incorrectly) ignored.
2099         Thanks to Sartak for finding this ;)
2100         - added tests for this (Sartak again)
2101
2102     * Moose::Meta::Method::Accessor
2103       Moose::Meta::Method::Constructor
2104       Moose::Meta::Attribute
2105       Moose::Meta::TypeConstraint
2106       Moose::Meta::TypeCoercion
2107       - lots of cleanup of such things as:
2108         - generated methods
2109         - type constraint handling
2110         - error handling/messages
2111         (thanks to nothingmuch)
2112
2113     * Moose::Meta::TypeConstraint::Parameterizable
2114       - added this module to support the refactor
2115         in Moose::Meta::TypeConstraint::Parameterized
2116
2117     * Moose::Meta::TypeConstraint::Parameterized
2118       - refactored how these types are handled so they
2119         are more generic and not confined to ArrayRef
2120         and HashRef only
2121
2122     * t/
2123       - shortened some file names for better VMS support (RT #32381)
2124
2125 0.33 Fri. Dec. 14, 2007
2126     !! Moose now loads 2 x faster !!
2127     !!  with new Class::MOP 0.49  !!
2128
2129     ++ new oose.pm module to make command line
2130        Moose-ness easier (see POD docs for more)
2131
2132     * Moose::Meta::Class
2133     * Moose::Meta::Role
2134       - several tweaks to take advantage of the
2135         new method map caching in Class::MOP
2136
2137     * Moose::Meta::TypeConstraint::Parameterized
2138       - allow subtypes of ArrayRef and HashRef to
2139         be used as a container (sartak)
2140         - added tests for this
2141       - basic support for coercion to ArrayRef and
2142         HashRef for containers (sartak)
2143         - added tests for this
2144
2145     * Moose::Meta::TypeCoercion
2146       - coercions will now create subtypes as needed
2147         so you can now add coercions to parameterized
2148         types without having to explictly define them
2149         - added tests for this
2150
2151     * Moose::Meta::Method::Accessor
2152       - allow subclasses to decide whether we need
2153         to copy the value into a new variable (sartak)
2154
2155 0.32 Tues. Dec. 4, 2007
2156     * Moose::Util::TypeConstraints
2157       - fixing how subtype aliases of unions work
2158         they should inherit the parent's coercion
2159         - added tests for this
2160       - you can now define multiple coercions on
2161         a single type at different times instead of
2162         having to do it all in one place
2163         - added tests for this
2164
2165     * Moose::Meta::TypeConstraint
2166       - there is now a default constraint of sub { 1 }
2167         instead of Moose::Util::TypeConstraints setting
2168         this for us
2169
2170     * Moose::Meta::TypeCoercion
2171     * Moose::Meta::TypeCoercion::Union
2172       - added the &has_coercion_for_type and
2173         &add_type_coercions methods to support the
2174         new features above (although you cannot add
2175         more type coercions for Union types)
2176
2177 0.31 Mon. Nov. 26, 2007
2178     * Moose::Meta::Attribute
2179       - made the +attr syntax handle extending types with
2180         parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2181         now works if the original foo is an ArrayRef.
2182         - added tests for this.
2183       - delegation now works even if the attribute does not
2184         have a reader method using the get_read_method_ref
2185         method from Class::MOP::Attribute.
2186         - added tests for this
2187         - added docs for this
2188
2189     * Moose::Util::TypeConstraints
2190       - passing no "additional attribute info" to
2191         &find_or_create_type_constraint will no longer
2192         attempt to create an __ANON__ type for you,
2193         instead it will just return undef.
2194         - added docs for this
2195
2196 0.30 Fri. Nov. 23, 2007
2197     * Moose::Meta::Method::Constructor
2198       -builder related bug in inlined constructor. (groditi)
2199
2200     * Moose::Meta::Method::Accessor
2201       - genereate unnecessary calls to predicates and refactor
2202         code generation for runtime speed (groditi)
2203
2204     * Moose::Util::TypeConstraints
2205       - fix ClassName constraint to introspect symbol table (mst)
2206         - added more tests for this (mst)
2207       - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2208         with work correctly.
2209         - added tests for this
2210
2211     * Moose::Cookbook
2212       - adding the link to Recipie 11 (written by Sartak)
2213         - adding test for SYNOPSIS code
2214
2215     * t/
2216       - New tests for builder bug. Upon instantiation, if an
2217         attribute had a builder, no value and was not lazy the
2218         builder default was not getting run, oops. (groditi)
2219
2220 0.29 Tues. Nov. 13, 2007
2221     * Moose::Meta::Attribute
2222       - Fix error message on missing builder method (groditi)
2223
2224     * Moose::Meta::Method::Accessor
2225       - Fix error message on missing builder method (groditi)
2226
2227     * t/
2228       - Add test to check for the correct error message when
2229         builder method is missing (groditi)
2230
2231 0.28 Tues. Nov. 13, 2007
2232     - 0.27 packaged incorrectly (groditi)
2233
2234 0.27 Tues. Nov. 13, 2007
2235     * Moose::Meta::Attribute
2236       - Added support for the new builder option (groditi)
2237       - Added support for lazy_build option (groditi)
2238       - Changed slot initialization for predicate changes (groditi)
2239
2240     * Moose::Meta::Method::Accessor
2241       - Added support for lazy_build option (groditi)
2242       - Fix inline methods to work with corrected predicate
2243         behavior (groditi)
2244
2245     * Moose::Meta::Method::Constructor
2246       - Added support for lazy_build option (groditi)
2247
2248     * t/
2249       - tests for builder and lazy_build (groditi)
2250
2251     * fixing some misc. bits in the docs that
2252       got mentioned on CPAN Forum & perlmonks
2253
2254     * Moose::Meta::Role
2255       - fixed how required methods are handled
2256         when they encounter overriden or modified
2257         methods from a class (thanks to confound).
2258         - added tests for this
2259
2260     * Moose::Util::TypeConstraint
2261       - fixed the type notation parser so that
2262         the | always creates a union and so is
2263         no longer a valid type char (thanks to
2264         konobi, mugwump and #moose for working
2265         this one out.)
2266         - added more tests for this
2267
2268 0.26 Thurs. Sept. 27, 2007
2269     == New Features ==
2270
2271     * Parameterized Types
2272       We now support parameterized collection types, such as:
2273           ArrayRef[Int]    # array or integers
2274           HashRef[Object]  # a hash with object values
2275       They can also be nested:
2276           ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2277       And work with the type unions as well:
2278           ArrayRef[Int | Str]  # array of integers of strings
2279
2280     * Better Framework Extendability
2281       Moose.pm is now "extendable" such that it is now much
2282       easier to extend the framework and add your own keywords
2283       and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2284       section of the Moose.pm docs.
2285
2286     * Moose Snacks!
2287       In an effort to begin documenting some of the various
2288       details of Moose as well as some common idioms, we have
2289       created Moose::Cookbook::Snacks as a place to find
2290       small (easily digestable) nuggets of Moose code.
2291
2292     ====
2293     ~ Several doc updates/cleanup thanks to castaway ~
2294
2295     - converted build system to use Module::Install instead of
2296       Module::Build (thanks to jrockway)
2297
2298     * Moose
2299       - added all the meta classes to the immutable list and
2300         set it to inline the accessors
2301       - fix import to allow Sub::Exporter like { into => }
2302             and { into_level => } (perigrin)
2303       - exposed and documented init_meta() to allow better
2304             embedding and extending of Moose (perigrin)
2305
2306         * t/
2307           - complete re-organization of the test suite
2308           - added some new tests as well
2309           - finally re-enabled the Moose::POOP test since
2310             the new version of DBM::Deep now works again
2311             (thanks rob)
2312
2313     * Moose::Meta::Class
2314       - fixed very odd and very nasty recursion bug with
2315         inner/augment (mst)
2316         - added tests for this (eilara)
2317
2318     * Moose::Meta::Attribute
2319       Moose::Meta::Method::Constructor
2320       Moose::Meta::Method::Accessor
2321       - fixed issue with overload::Overloaded getting called
2322         on non-blessed items. (RT #29269)
2323         - added tests for this
2324
2325     * Moose::Meta::Method::Accessor
2326       - fixed issue with generated accessor code making
2327         assumptions about hash based classes (thanks to dexter)
2328
2329     * Moose::Coookbook::Snacks
2330       - these are bits of documentation, not quite as big as
2331         Recipes but which have no clear place in the module docs.
2332         So they are Snacks! (horray for castaway++)
2333
2334     * Moose::Cookbook::Recipe4
2335       - updated it to use the new ArrayRef[MyType] construct
2336         - updated the accompanying test as well
2337
2338     +++ Major Refactor of the Type Constraint system +++
2339     +++       with new features added as well        +++
2340
2341     * Moose::Util::TypeConstraint
2342       - no longer uses package variable to keep track of
2343         the type constraints, now uses the an instance of
2344         Moose::Meta::TypeConstraint::Registry to do it
2345       - added more sophisticated type notation parsing
2346         (thanks to mugwump)
2347         - added tests for this
2348
2349     * Moose::Meta::TypeConstraint
2350       - some minor adjustments to make subclassing easier
2351       - added the package_defined_in attribute so that we
2352         can track where the type constraints are created
2353
2354     * Moose::Meta::TypeConstraint::Union
2355       - this is now been refactored to be a subclass of
2356         Moose::Meta::TypeConstraint
2357
2358     * Moose::Meta::TypeCoercion::Union
2359       - this has been added to service the newly refactored
2360         Moose::Meta::TypeConstraint::Union and is itself
2361         a subclass of Moose::Meta::TypeCoercion
2362
2363     * Moose::Meta::TypeConstraint::Parameterized
2364       - added this module (taken from MooseX::AttributeHelpers)
2365         to help construct nested collection types
2366         - added tests for this
2367
2368     * Moose::Meta::TypeConstraint::Registry
2369       - added this class to keep track of type constraints
2370
2371 0.25 Mon. Aug. 13, 2007
2372     * Moose
2373       - Documentation update to reference Moose::Util::TypeConstraints
2374         under 'isa' in 'has' for how to define a new type
2375         (thanks to shlomif).
2376
2377     * Moose::Meta::Attribute
2378       - required attributes now will no longer accept undef
2379         from the constructor, even if there is a default and lazy
2380         - added tests for this
2381       - default subroutines must return a value which passes the
2382         type constraint
2383         - added tests for this
2384
2385     * Moose::Meta::Attribute
2386     * Moose::Meta::Method::Constructor
2387     * Moose::Meta::Method::Accessor
2388       - type-constraint tests now handle overloaded objects correctly
2389         in the error message
2390         - added tests for this (thanks to EvanCarroll)
2391
2392     * Moose::Meta::TypeConstraint::Union
2393       - added (has_)hand_optimized_constraint to this class so that
2394         it behaves as the regular Moose::Meta::TypeConstraint does.
2395
2396     * Moose::Meta::Role
2397       - large refactoring of this code
2398       - added several more tests
2399         - tests for subtle conflict resolition issues
2400           added, but not currently running
2401           (thanks to kolibre)
2402
2403     * Moose::Cookbook::Recipe7
2404       - added new recipe for augment/inner functionality
2405         (still in progress)
2406         - added test for this
2407
2408     * Moose::Spec::Role
2409       - a formal definition of roles (still in progress)
2410
2411     * Moose::Util
2412       - utilities for easier working with Moose classes
2413         - added tests for these
2414
2415     * Test::Moose
2416       - This contains Moose specific test functions
2417         - added tests for these
2418
2419 0.24 Tues. July 3, 2007
2420     ~ Some doc updates/cleanup ~
2421
2422     * Moose::Meta::Attribute
2423       - added support for roles to be given as parameters
2424         to the 'handles' option.
2425         - added tests and docs for this
2426       - the has '+foo' attribute form now accepts changes to
2427         the lazy option, and the addition of a handles option
2428         (but not changing the handles option)
2429         - added tests and docs for this
2430
2431     * Moose::Meta::Role
2432       - required methods are now fetched using find_method_by_name
2433         so that required methods can come from superclasses
2434         - adjusted tests for this
2435
2436 0.23 Mon. June 18, 2007
2437     * Moose::Meta::Method::Constructor
2438       - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2439     * Moose::Meta::Class
2440       - Modify make_immutable to work with the new Class::MOP immutable
2441         mechanism + POD + very basic test (groditi)
2442     * Moose::Meta::Attribute
2443       - Fix handles to use goto() so that caller() comes out properly on
2444         the other side (perigrin)
2445
2446 0.22 Thurs. May 31, 2007
2447     * Moose::Util::TypeConstraints
2448       - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2449         loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2450         prototypes for functions
2451       - added the ClassName type constraint, this checks for strings
2452         which will respond true to ->isa(UNIVERSAL).
2453         - added tests and docs for this
2454       - subtyping just in name now works correctly by making the
2455         default for where be { 1 }
2456         - added test for this
2457
2458     * Moose::Meta::Method::Accessor
2459       - coerce and lazy now work together correctly, thanks to
2460         merlyn for finding this bug
2461         - tests added for this
2462       - fix reader presedence bug in Moose::Meta::Attribute + tests
2463
2464     * Moose::Object
2465       - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2466         a HASH-ref and missed. This produces better error messages then
2467         having it die cause undef is not a HASH.
2468         - added tests for this
2469
2470 0.21 Thursday, May 2nd, 2007
2471     * Moose
2472       - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2473       - modified unimport to remove super and inner along with the rest
2474         - altered unimport tests to handle this
2475
2476     * Moose::Role
2477       - altered super export to populate SUPER_SLOT
2478
2479     * Moose::Meta::Class
2480       - altered augment and override modifier application to use *_SLOT
2481         - modified tests for these to unimport one test class each to test
2482
2483     * Moose::Meta::Role
2484       - fixed issue where custom attribute metaclasses
2485         where not handled correctly in roles
2486         - added tests for this
2487
2488     * Moose::Meta::Class
2489       - fixed issue where extending metaclasses with
2490         roles would blow up. Thanks to Aankhen`` for
2491         finding this insidious error, and it's solution.
2492
2493     ~~ lots of spelling and grammer fixes in the docs,
2494        many many thanks to rlb3 and Aankhen for these :)
2495
2496 0.20 Friday, April 6th, 2007
2497     >> I messed up the SKIP logic in one test
2498        so this release is just to fix that.
2499
2500     * Moose
2501       - 'has' now also accepts an ARRAY ref
2502         to create multiple attrs (see docs)
2503         (thanks to konobi for this)
2504          - added tests and docs
2505
2506 0.19 Thurs. April 5th, 2007
2507     ~~ More documentation updates ~~
2508
2509     * Moose::Util::TypeConstraints
2510       - 'type' now supports messages as well
2511         thanks to phaylon for finding this
2512         - added tests for this
2513       - added &list_all_type_constraints and
2514         &list_all_builtin_type_constraints
2515         functions to facilitate introspection.
2516
2517     * Moose::Meta::Attribute
2518       - fixed regexp 'handles' declarations
2519         to build the list of delegated methods
2520         correctly (and not override important
2521         things like &new) thanks to ashleyb
2522         for finding this
2523         - added tests and docs for this
2524       - added the 'documentation' attributes
2525         so that you can actually document your
2526         attributes and inspect them through the
2527         meta-object.
2528         - added tests and docs for this
2529
2530     * Moose::Meta::Class
2531       - when loading custom attribute metaclasses
2532         it will first look in for the class in the
2533         Moose::Meta::Attribute::Custom::$name, and
2534         then default to just loading $name.
2535         - added tests and docs for this
2536
2537     * Moose::Meta::TypeConstraint
2538       - type constraints now stringify to their names.
2539         - added test for this
2540
2541     * misc.
2542       - added tests to assure we work with Module::Refresh
2543       - added stricter test skip logic in the Moose POOP
2544         test, ask Rob Kinyon why.
2545         - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2546
2547 0.18 Sat. March 10, 2007
2548     ~~ Many, many documentation updates ~~
2549
2550     * misc.
2551       - We now use Class::MOP::load_class to
2552         load all classes.
2553       - added tests to show types and subtypes
2554         working with Declare::Constraints::Simple
2555         and Test::Deep as constraint engines.
2556
2557 0.18_001
2558     !! You must have Class::MOP 0.37_001  !!
2559     !! for this developer release to work !!
2560
2561     This release was primarily adding the immutable
2562     feature to Moose. An immutable class is one which
2563     you promise not to alter. When you set the class
2564     as immutable it will perform various bits of
2565     memoization and inline certain part of the code
2566     (constructors, destructors and accessors). This
2567     minimizes (and in some cases totally eliminates)
2568     one of Moose's biggest performance hits. This
2569     feature is not on by default, and is 100% optional.
2570     It has several configurable bits as well, so you
2571     can pick and choose to your specific needs.
2572
2573     The changes involved in this were fairly wide and
2574     highly specific, but 100% backwards compatible, so
2575     I am not going to enumerate them here. If you are
2576     truely interested in what was changed, please do
2577     a diff :)
2578
2579 0.17 Tues. Nov. 14, 2006
2580     * Moose::Meta::Method::Accessor
2581       - bugfix for read-only accessors which
2582         are have a type constraint and lazy.
2583         Thanks to chansen for finding it.
2584
2585 0.16 Tues. Nov. 14, 2006
2586     ++ NOTE ++
2587     There are some speed improvements in this release,
2588     but they are only the begining, so stay tuned.
2589
2590     * Moose::Object
2591       - BUILDALL and DEMOLISHALL no longer get
2592         called unless they actually need to be.
2593         This gave us a signifigant speed boost
2594         for the cases when there is no BUILD or
2595         DEMOLISH method present.
2596
2597     * Moose::Util::TypeConstraints
2598     * Moose::Meta::TypeConstraint
2599       - added an 'optimize_as' option to the
2600         type constraint, which allows for a
2601         hand optimized version of the type
2602         constraint to be used when possible.
2603       - Any internally created type constraints
2604         now provide an optimized version as well.
2605
2606 0.15 Sun. Nov. 5, 2006
2607     ++ NOTE ++
2608     This version of Moose *must* have Class::MOP 0.36 in order
2609     to work correctly. A number of small internal tweaks have
2610     been made in order to be compatible with that release.
2611
2612     * Moose::Util::TypeConstraints
2613       - added &unimport so that you can clean out
2614         your class namespace of these exported
2615         keywords
2616
2617     * Moose::Meta::Class
2618       - fixed minor issue which occasionally
2619         comes up during global destruction
2620         (thanks omega)
2621       - moved Moose::Meta::Method::Overriden into
2622         its own file.
2623
2624     * Moose::Meta::Role
2625       - moved Moose::Meta::Role::Method into
2626         its own file.
2627
2628     * Moose::Meta::Attribute
2629       - changed how we do type checks so that
2630         we reduce the overall cost, but still
2631         retain correctness.
2632        *** API CHANGE ***
2633       - moved accessor generation methods to
2634         Moose::Meta::Method::Accessor to
2635         conform to the API changes from
2636         Class::MOP 0.36
2637
2638     * Moose::Meta::TypeConstraint
2639       - changed how constraints are compiled
2640         so that we do less recursion and more
2641         iteration. This makes the type check
2642         faster :)
2643       - moved Moose::Meta::TypeConstraint::Union
2644         into its own file
2645
2646     * Moose::Meta::Method::Accessor
2647       - created this from methods formerly found in
2648         Moose::Meta::Attribute
2649
2650     * Moose::Meta::Role::Method
2651       - moved this from Moose::Meta::Role
2652
2653     * Moose::Meta::Method::Overriden
2654       - moved this from Moose::Meta::Class
2655
2656     * Moose::Meta::TypeConstraint::Union
2657       - moved this from Moose::Meta::TypeConstraint
2658
2659 0.14 Mon. Oct. 9, 2006
2660
2661     * Moose::Meta::Attribute
2662       - fixed lazy attributes which were not getting
2663         checked with the type constraint (thanks ashley)
2664         - added tests for this
2665       - removed the over-enthusiastic DWIMery of the
2666         automatic ArrayRef and HashRef defaults, it
2667         broke predicates in an ugly way.
2668         - removed tests for this
2669
2670 0.13 Sat. Sept. 30, 2006
2671     ++ NOTE ++
2672     This version of Moose *must* have Class::MOP 0.35 in order
2673     to work correctly. A number of small internal tweaks have
2674     been made in order to be compatible with that release.
2675
2676     * Moose
2677       - Removed the use of UNIVERSAL::require to be a better
2678         symbol table citizen and remove a dependency
2679         (thanks Adam Kennedy)
2680
2681       **~~ removed experimental & undocumented feature ~~**
2682       - commented out the 'method' and 'self' keywords, see the
2683         comments for more info.
2684
2685     * Moose::Cookbook
2686       - added a FAQ and WTF files to document frequently
2687         asked questions and common problems
2688
2689     * Moose::Util::TypeConstraints
2690       - added GlobRef and FileHandle type constraint
2691         - added tests for this
2692
2693     * Moose::Meta::Attribute
2694       - if your attribute 'isa' ArrayRef of HashRef, and you have
2695         not explicitly set a default, then make the default DWIM.
2696         This will also work for subtypes of ArrayRef and HashRef
2697         as well.
2698       - you can now auto-deref subtypes of ArrayRef or HashRef too.
2699         - new test added for this (thanks to ashley)
2700
2701     * Moose::Meta::Role
2702       - added basic support for runtime role composition
2703         but this is still *highly experimental*, so feedback
2704         is much appreciated :)
2705         - added tests for this
2706
2707     * Moose::Meta::TypeConstraint
2708       - the type constraint now handles the coercion process
2709         through delegation, this is to support the coercion
2710         of unions
2711
2712     * Moose::Meta::TypeConstraint::Union
2713       - it is now possible for coercions to be performed
2714         on a type union
2715         - added tests for this (thanks to konobi)
2716
2717     * Moose::Meta::TypeCoercion
2718       - properly capturing error when type constraint
2719         is not found
2720
2721     * Build.PL
2722       - Scalar::Util 1.18 is bad on Win32, so temporarily
2723         only require version 1.17 for Win32 and cygwin.
2724         (thanks Adam Kennedy)
2725
2726 0.12 Sat. Sept. 1, 2006
2727     * Moose::Cookbook
2728       - Recipe5 (subtypes & coercion) has been written
2729
2730     * Moose
2731       - fixed "bad meta" error message to be more descriptive
2732       - fixed &unimport to not remove the &inner and &super
2733         keywords because we need to localize them.
2734       - fixed number of spelling/grammer issues, thanks Theory :)
2735
2736       **~~ experimental & undocumented feature ~~**
2737       - added the method and self keywords, they are basically
2738         just sugar, and they may not stay around.
2739
2740     * Moose::Object
2741       - added &dump method to easily Data::Dumper
2742         an object
2743
2744     * Moose::Meta::TypeConstraint
2745       - added the &is_a_type_of method to check both the current
2746         and the subtype of a method (similar to &isa with classes)
2747
2748     * Moose::Meta::Role
2749       - this is now a subclass of Class::MOP::Module, and no longer
2750         creates the _role_meta ugliness of before.
2751         - fixed tests to reflect this change
2752
2753 0.11 Wed. July 12, 2006
2754     * Moose
2755       - added an &unimport method to remove all the keywords
2756         that Moose will import, simply add 'no Moose' to the
2757         bottom of your class file.
2758
2759     * t/
2760       - fixed some test failures caused by a forgotten test
2761         dependency.
2762
2763 0.10 Thurs. July 6, 2006
2764     * Moose
2765       - improved error message when loading modules so
2766         it is less confusing when you load a role.
2767       - added &calculate_all_roles method to
2768         Moose::Meta::Class and Moose::Meta::Role
2769
2770     NOTE:
2771     This module has been tested against Class::MOP 0.30
2772     but it does not yet utilize the optimizations
2773     it makes available. Stay tuned for that ;)
2774
2775 0.09_03 Fri. June 23, 2006
2776     ++ DEVELOPER RELEASE ++
2777     * Moose
2778       - 'use strict' and 'use warnings' are no longer
2779          needed in Moose classes, Moose itself will
2780          turn them on for you.
2781          - added tests for this
2782       - moved code from exported subs to private methods
2783         in Moose::Meta::Class
2784
2785     * Moose::Role
2786       - as with Moose, strict and warnings are
2787         automatically turned on for you.
2788          - added tests for this
2789
2790     * Moose::Meta::Role
2791       - now handles an edge case for override errors
2792         - added tests for this
2793       - added some more edge case tests
2794
2795 0.09_02 Tues. May 16, 2006
2796     ++ DEVELOPER RELEASE ++
2797     * Moose
2798       - added prototypes to the exported subs
2799       - updated docs
2800
2801     * Moose::Role
2802       - added prototypes to the exported subs
2803       - updated docs
2804
2805     * Moose::Util::TypeConstraints
2806       - cleaned up prototypes for the subs
2807       - updated docs
2808
2809 0.09_01 Fri. May 12, 2006
2810     ++ DEVELOPER RELEASE ++
2811       - This release works in combination with
2812         Class::MOP 0.29_01, it is a developer
2813         release because it uses the a new
2814         instance sub-protocol and a fairly
2815         complete Role implementation. It has
2816         not yet been optimized, so it slower
2817         the the previous CPAN version. This
2818         release also lacks good updated docs,
2819         the official release will have updated docs.
2820
2821     * Moose
2822       - refactored the keyword exports
2823         - 'with' now checks Role validaity and
2824           accepts more than one Role at a time
2825         - 'extends' makes metaclass adjustments as
2826            needed to ensure metaclass compatibility
2827
2828     * Moose::Role
2829       - refactored the keyword exports
2830         - 'with' now checks Role validaity and
2831           accepts more than one Role at a time
2832
2833     * Moose::Util::TypeConstraints
2834       - added the 'enum' keyword for simple
2835         string enumerations which can be used as
2836         type constraints
2837         - see example of usage in t/202_example.t
2838
2839     * Moose::Object
2840       - more careful checking of params to new()
2841
2842     * Moose::Meta::Role
2843       - much work done on the role composition
2844         - many new tests for conflict detection
2845           and composition edge cases
2846         - not enough documentation, I suggest
2847           looking at the tests
2848
2849     * Moose::Meta::Instance
2850       - added new Instance metaclass to support
2851         the new Class::MOP instance protocol
2852
2853     * Moose::Meta::Class
2854       - some small changes to support the new
2855         instance protocol
2856       - some small additions to support Roles
2857
2858     * Moose::Meta::Attribute
2859       - some improvements to the accessor generation code
2860         by nothingmuch
2861       - some small changes to support the new
2862         instance protocol
2863       - (still somewhat) experimental delegation support
2864         with the 'handles' option
2865         - added several tests for this
2866         - no docs for this yet
2867
2868 0.05 Thurs. April 27, 2006
2869     * Moose
2870       - keywords are now exported with Sub::Exporter
2871         thanks to chansen for this commit
2872       - has keyword now takes a 'metaclass' option
2873         to support custom attribute meta-classes
2874         on a per-attribute basis
2875         - added tests for this
2876       - the 'has' keyword not accepts inherited slot
2877         specifications (has '+foo'). This is still an
2878         experimental feature and probably not finished
2879         see t/038_attribute_inherited_slot_specs.t for
2880         more details, or ask about it on #moose
2881         - added tests for this
2882
2883     * Moose::Role
2884       - keywords are now exported with Sub::Exporter
2885
2886     * Moose::Utils::TypeConstraints
2887       - reorganized the type constraint hierarchy, thanks
2888         to nothingmuch and chansen for his help and advice
2889         on this
2890         - added some tests for this
2891       - keywords are now exported with Sub::Exporter
2892         thanks to chansen for this commit
2893
2894     * Moose::Meta::Class
2895       - due to changes in Class::MOP, we had to change
2896         construct_instance (for the better)
2897
2898     * Moose::Meta::Attribute
2899       - due to changes in Class::MOP, we had to add the
2900         initialize_instance_slot method (it's a good thing)
2901
2902     * Moose::Meta::TypeConstraint
2903       - added type constraint unions
2904         - added tests for this
2905       - added the is_subtype_of predicate method
2906         - added tests for this
2907
2908 0.04 Sun. April 16th, 2006
2909     * Moose::Role
2910       - Roles can now consume other roles
2911         - added tests for this
2912       - Roles can specify required methods now with
2913         the requires() keyword
2914         - added tests for this
2915
2916     * Moose::Meta::Role
2917       - ripped out much of it's guts ,.. much cleaner now
2918       - added required methods and correct handling of
2919         them in apply() for both classes and roles
2920         - added tests for this
2921       - no longer adds a does() method to consuming classes
2922         it relys on the one in Moose::Object
2923       - added roles attribute and some methods to support
2924         roles consuming roles
2925
2926     * Moose::Meta::Attribute
2927       - added support for triggers on attributes
2928         - added tests for this
2929       - added support for does option on an attribute
2930         - added tests for this
2931
2932     * Moose::Meta::Class
2933       - added support for attribute triggers in the
2934         object construction
2935         - added tests for this
2936
2937     * Moose
2938       - Moose no longer creates a subtype for your class
2939         if a subtype of the same name already exists, this
2940         should DWIM in 99.9999% of all cases
2941
2942     * Moose::Util::TypeConstraints
2943       - fixed bug where incorrect subtype conflicts were
2944         being reported
2945         - added test for this
2946
2947     * Moose::Object
2948       - this class can now be extended with 'use base' if
2949         you need it, it properly loads the metaclass class now
2950         - added test for this
2951
2952 0.03_02 Wed. April 12, 2006
2953     * Moose
2954       - you must now explictly use Moose::Util::TypeConstraints
2955         it no longer gets exported for you automatically
2956
2957     * Moose::Object
2958       - new() now accepts hash-refs as well as key/value lists
2959       - added does() method to check for Roles
2960         - added tests for this
2961
2962     * Moose::Meta::Class
2963       - added roles attribute along with the add_role() and
2964         does_role() methods
2965         - added tests for this
2966
2967     * Moose::Meta::Role
2968       - now adds a does() method to consuming classes
2969         which tests the class's hierarchy for roles
2970         - added tests for this
2971
2972 0.03_01 Mon. April 10, 2006
2973     * Moose::Cookbook
2974       - added new Role recipe (no content yet, only code)
2975
2976     * Moose
2977       - added 'with' keyword for Role support
2978         - added test and docs for this
2979       - fixed subtype quoting bug
2980         - added test for this
2981
2982     * Moose::Role
2983       - Roles for Moose
2984         - added test and docs
2985
2986     * Moose::Util::TypeConstraints
2987       - added the message keyword to add custom
2988         error messages to type constraints
2989
2990     * Moose::Meta::Role
2991       - the meta role to support Moose::Role
2992         - added tests and docs
2993
2994     * Moose::Meta::Class
2995       - moved a number of things from Moose.pm
2996         to here, they should have been here
2997         in the first place
2998
2999     * Moose::Meta::Attribute
3000       - moved the attribute option macros here
3001         instead of putting them in Moose.pm
3002
3003     * Moose::Meta::TypeConstraint
3004       - added the message attributes and the
3005         validate method
3006         - added tests and docs for this
3007
3008 0.03 Thurs. March 30, 2006
3009     * Moose::Cookbook
3010       - added the Moose::Cookbook with 5 recipes,
3011         describing all the stuff Moose can do.
3012
3013     * Moose
3014       - fixed an issue with &extends super class loading
3015         it now captures errors and deals with inline
3016         packages correctly (bug found by mst, solution
3017         stolen from alias)
3018       - added super/override & inner/augment features
3019         - added tests and docs for these
3020
3021     * Moose::Object
3022       - BUILDALL now takes a reference of the %params
3023         that are passed to &new, and passes that to
3024         each BUILD as well.
3025
3026     * Moose::Util::TypeConstraints
3027       - Type constraints now survive runtime reloading
3028         - added test for this
3029
3030         * Moose::Meta::Class
3031           - fixed the way attribute defaults are handled
3032             during instance construction (bug found by chansen)
3033
3034     * Moose::Meta::Attribute
3035       - read-only attributes now actually enforce their
3036         read-only-ness (this corrected in Class::MOP as
3037         well)
3038
3039 0.02 Tues. March 21, 2006
3040     * Moose
3041       - many more tests, fixing some bugs and
3042         edge cases
3043       - &extends now loads the base module with
3044         UNIVERSAL::require
3045         - added UNIVERSAL::require to the
3046           dependencies list
3047       ** API CHANGES **
3048       - each new Moose class will also create
3049         and register a subtype of Object which
3050         correspond to the new Moose class.
3051       - the 'isa' option in &has now only
3052         accepts strings, and will DWIM in
3053         almost all cases
3054
3055     * Moose::Util::TypeConstraints
3056       - added type coercion features
3057         - added tests for this
3058         - added support for this in attributes
3059           and instance construction
3060       ** API CHANGES **
3061       - type construction no longer creates a
3062         function, it registers the type instead.
3063         - added several functions to get the
3064           registered types
3065
3066     * Moose::Object
3067       - BUILDALL and DEMOLISHALL were broken
3068         because of a mis-named hash key, Whoops :)
3069
3070     * Moose::Meta::Attribute
3071       - adding support for coercion in the
3072         autogenerated accessors
3073
3074     * Moose::Meta::Class
3075       - adding support for coercion in the
3076         instance construction
3077
3078     * Moose::Meta::TypeConstraint
3079     * Moose::Meta::TypeCoercion
3080           - type constraints and coercions are now
3081             full fledges meta-objects
3082
3083 0.01 Wed. March 15, 2006
3084     - Moooooooooooooooooose!!!