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