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