changes and delta
[gitmo/Moose.git] / lib / Moose / Manual / Delta.pod
1 =pod
2
3 =head1 NAME
4
5 Moose::Manual::Delta - Important Changes in Moose
6
7 =head1 DESCRIPTION
8
9 This documents any important or noteworthy changes in Moose, with a
10 focus on backwards. This does duplicate data from the F<Changes> file,
11 but aims to provide more details and when possible workarounds.
12
13 Besides helping keep up with changes, you can also use this document
14 for finding the lowest version of Moose that supported a given
15 feature.  If you encounter a problem and have a solution but don't see
16 it documented here, or think we missed an important feature, please
17 send us a patch.
18
19 =head1 NEXT
20
21 =over 4
22
23 =item Native Traits
24
25 In previous versions of Moose, the Native delegations were created as
26 closures. The generated code was often quite slow compared to doing the same
27 thing by hand. For example, the Array's push delegation ended up doing
28 something like this:
29
30   push @{ $self->$reader() }, @_;
31
32 If the attribute was created without a reader, the C<$reader> sub reference
33 followed a very slow code path. Even with a reader, this is still slower than
34 it needs to be.
35
36 Native delegations are now generated as inline code, just like other
37 accessors, so we can access the slot directly.
38
39 In addition, native traits now do proper constraint checking in all cases. In
40 particular, constraint checking has been improved for array and hash
41 references. Previously, only the I<contained> type (the C<Str> in
42 C<HashRef[Str]>) would be checked when a new value was added to the
43 collection. However, if there was a constraint that applied to the whole
44 value, this was never checked.
45
46 In addition, coercions are now called on the whole value.
47
48 The delegation methods now do more argument checking. All of the methods check
49 that a valid number of arguments were passed to the method. In addition, the
50 delegation methods check that the arguments are sane (array indexes, hash
51 keys, numbers, etc.) when applicable. We have tried to emulate the behavior of
52 Perl builtins as much as possible.
53
54 Finally, triggers are called whenever the value of the attribute is changed by
55 a Native delegation.
56
57 These changes are only likely to break code in a few cases.
58
59 The inlning code may or may not preserve the original reference when changes
60 are made. In some cases, methods which change the value may replace it
61 entirely. This will break tied values.
62
63 If you have a typed arrayref or hashref attribute where the type enforces a
64 constraint on the whole collection, this constraint will now be checked. It's
65 possible that code which previously ran without errors will now cause the
66 constraint to fail. However, presumably this is a good thing ;)
67
68 If you are passing invalid arguments to a delegation which were previously
69 being ignore, these calls will now fail.
70
71 If your code relied on the trigger only being called for a regular writer,
72 that may cause problems.
73
74 As always, you are encouraged to test before deploying the latest version of
75 Moose to production.
76
77 =item The C<meta> method
78
79 Moose and Class::MOP have been cleaned up internally enough to make the
80 C<meta> method that you get by default optional. C<use Moose> and
81 C<use Moose::Role> now can take an additional C<-meta_name> option, which
82 tells Moose what name to use when installing the C<meta> method. Passing
83 C<undef> to this option suppresses generation of the C<meta> method
84 entirely. This should be useful for users of modules which also use a C<meta>
85 method or function, such as L<Curses> or L<Rose::DB::Object>.
86
87 =back
88
89 =head1 1.09
90
91 =over 4
92
93 =item All deprecated features now warn
94
95 Previously, deprecation mostly consisted of simply saying "X is deprecated" in
96 the Changes file. We were not very consistent about actually warning. Now, all
97 deprecated features still present in Moose actually give a warning. The
98 warning is issued once per calling package. See L<Moose::Deprecated> for more
99 details.
100
101 =item You cannot pass C<< coerce => 1 >> unless the attribute's type constraint has a coercion
102
103 Previously, this was accepted, and it sort of worked, except that if you
104 attempted to set the attribute after the object was created, you would get a
105 runtime error.
106
107 Now you will get a warning when you attempt to define the attribute.
108
109 =item C<no Moose>, C<no Moose::Role>, and C<no Moose::Exporter> no longer unimport strict and warnings
110
111 This change was made in 1.05, and has now been reverted. We don't know if the
112 user has explicitly loaded strict or warnings on their own, and unimporting
113 them is just broken in that case.
114
115 =item Reversed logic when defining which options can be changed
116
117 L<Moose::Meta::Attribute> now allows all options to be changed in an
118 overridden attribute. The previous behaviour required each option to be
119 whitelisted using the C<legal_options_for_inheritance> method. This method has
120 been removed, and there is a new method, C<illegal_options_for_inheritance>,
121 which can now be used to prevent certain options from being changeable.
122
123 In addition, we only throw an error if the illegal option is actually
124 changed. If the superclass didn't specify this option at all when defining the
125 attribute, the subclass version can still add it as an option.
126
127 Example of overriding this in an attribute trait:
128
129   package Bar::Meta::Attribute;
130   use Moose::Role;
131
132   has 'my_illegal_option' => (
133       isa => 'CodeRef',
134       is  => 'rw',
135   );
136
137   around illegal_options_for_inheritance => sub {
138       return ( shift->(@_), qw/my_illegal_option/ );
139   };
140
141 =back
142
143 =head1 1.05
144
145 =over 4
146
147 =item L<Moose::Object/BUILD> methods are now called when calling C<new_object>
148
149 Previously, C<BUILD> methods would only be called from C<Moose::Object::new>,
150 but now they are also called when constructing an object via
151 C<Moose::Meta::Class::new_object>. C<BUILD> methods are an inherent part of the
152 object construction process, and this should make C<< $meta->new_object >>
153 actually usable without forcing people to use C<< $meta->name->new >>.
154
155 =item C<no Moose>, C<no Moose::Role>, and C<no Moose::Exporter> now unimport strict and warnings
156
157 In the interest of having C<no Moose> clean up everything that C<use Moose>
158 does in the calling scope, C<no Moose> (as well as all other
159 L<Moose::Exporter>-using modules) now unimports strict and warnings.
160
161 =item Metaclass compatibility checking and fixing should be much more robust
162
163 The L<metaclass compatibility|Moose/METACLASS COMPATIBILITY AND MOOSE> checking
164 and fixing algorithms have been completely rewritten, in both Class::MOP and
165 Moose. This should resolve many confusing errors when dealing with non-Moose
166 inheritance and with custom metaclasses for things like attributes,
167 constructors, etc. For correct code, the only thing that should require a
168 change is that custom error metaclasses must now inherit from
169 L<Moose::Error::Default>.
170
171 =back
172
173 =head1 1.02
174
175 =over 4
176
177 =item Moose::Meta::TypeConstraint::Class is_subtype_of behavior
178
179 Earlier versions of L<is_subtype_of|Moose::Meta::TypeConstraint::Class/is_subtype_of>
180 would incorrectly return true when called with itself, its own TC name or
181 its class name as an argument. (i.e. $foo_tc->is_subtype_of('Foo') == 1) This
182 behavior was a caused by C<isa> being checked before the class name. The old
183 behavior can be accessed with L<is_type_of|Moose::Meta::TypeConstraint::Class/is_type_of>
184
185 =back
186
187 =head1 1.00
188
189 =over 4
190
191 =item Moose::Meta::Attribute::Native::Trait::Code no longer creates reader methods by default
192
193 Earlier versions of L<Moose::Meta::Attribute::Native::Trait::Code> created
194 read-only accessors for the attributes it's been applied to, even if you didn't
195 ask for it with C<< is => 'ro' >>. This incorrect behaviour has now been fixed.
196
197 =back
198
199 =head1 0.95
200
201 =over 4
202
203 =item Moose::Util add_method_modifier behavior
204
205 add_method_modifier (and subsequently the sugar functions Moose::before,
206 Moose::after, and Moose::around) can now accept arrayrefs, with the same
207 behavior as lists. Types other than arrayref and regexp result in an error.
208
209 =back
210
211 =head1 0.93_01 and 0.94
212
213 =over 4
214
215 =item Moose::Util::MetaRole API has changed
216
217 The C<apply_metaclass_roles> function is now called C<apply_metaroles>. The
218 way arguments are supplied has been changed to force you to distinguish
219 between metaroles applied to L<Moose::Meta::Class> (and helpers) versus
220 L<Moose::Meta::Role>.
221
222 The old API still works, but will warn in a future release, and eventually be
223 removed.
224
225 =item Moose::Meta::Role has real attributes
226
227 The attributes returned by L<Moose::Meta::Role> are now instances of the
228 L<Moose::Meta::Role::Attribute> class, instead of bare hash references.
229
230 =item "no Moose" now removes C<blessed> and C<confess>
231
232 Moose is now smart enough to know exactly what it exported, even when it
233 re-exports functions from other packages. When you unimport Moose, it will
234 remove these functions from your namespace unless you I<also> imported them
235 directly from their respective packages.
236
237 If you have a C<no Moose> in your code I<before> you call C<blessed> or
238 C<confess>, your code will break. You can either move the C<no Moose> call
239 later in your code, or explicitly import the relevant functions from the
240 packages that provide them.
241
242 =item L<Moose::Exporter> is smarter about unimporting re-exports
243
244 The change above comes from a general improvement to L<Moose::Exporter>. It
245 will now unimport any function it exports, even if that function is a
246 re-export from another package.
247
248 =item Attributes in roles can no longer override class attributes with "+foo"
249
250 Previously, this worked more or less accidentally, because role attributes
251 weren't objects. This was never documented, but a few MooseX modules took
252 advantage of this.
253
254 =item The composition_class_roles attribute in L<Moose::Meta::Role> is now a method
255
256 This was done to make it possible for roles to alter the the list of
257 composition class roles by applying a method modifiers. Previously, this was
258 an attribute and MooseX modules override it. Since that no longer works, this
259 was made a method.
260
261 This I<should> be an attribute, so this may switch back to being an attribute
262 in the future if we can figure out how to make this work.
263
264 =back
265
266 =head1 0.93
267
268 =over 4
269
270 =item Calling $object->new() is no longer deprecated
271
272 We decided to undeprecate this. Now it just works.
273
274 =item Both C<get_method_map> and C<get_attribute_map> is deprecated
275
276 These metaclass methods were never meant to be public, and they are both now
277 deprecated. The work around if you still need the functionality they provided
278 is to iterate over the list of names manually.
279
280     my %fields = map { $_ => $meta->get_attribute($_) } $meta->get_attribute_list;
281
282 This was actually a change in L<Class::MOP>, but this version of Moose
283 requires a version of L<Class::MOP> that includes said change.
284
285 =back
286
287 =head1 0.90
288
289 =over 4
290
291 =item Added Native delegation for Code refs
292
293 See L<Moose::Meta::Attribute::Native::Trait::Code> for details.
294
295 =item Calling $object->new() is deprecated
296
297 Moose has long supported this, but it's never really been documented, and we
298 don't think this is a good practice. If you want to construct an object from
299 an existing object, you should provide some sort of alternate constructor like
300 C<< $object->clone >>.
301
302 Calling C<< $object->new >> now issues a warning, and will be an error in a
303 future release.
304
305 =item Moose no longer warns if you call C<make_immutable> for a class with mutable ancestors
306
307 While in theory this is a good thing to warn about, we found so many
308 exceptions to this that doing this properly became quite problematic.
309
310 =back
311
312 =head1 0.89_02
313
314 =over 4
315
316 =item New Native delegation methods from L<List::Util> and L<List::MoreUtils>
317
318 In particular, we now have C<reduce>, C<shuffle>, C<uniq>, and C<natatime>.
319
320 =item The Moose::Exporter with_caller feature is now deprecated
321
322 Use C<with_meta> instead. The C<with_caller> option will start warning in a
323 future release.
324
325 =item Moose now warns if you call C<make_immutable> for a class with mutable ancestors
326
327 This is dangerous because modifying a class after a subclass has been
328 immutabilized will lead to incorrect results in the subclass, due to inlining,
329 caching, etc. This occasionally happens accidentally, when a class loads one
330 of its subclasses in the middle of its class definition, so pointing out that
331 this may cause issues should be helpful. Metaclasses (classes that inherit
332 from L<Class::MOP::Object>) are currently exempt from this check, since at the
333 moment we aren't very consistent about which metaclasses we immutabilize.
334
335 =item C<enum> and C<duck_type> now take arrayrefs for all forms
336
337 Previously, calling these functions with a list would take the first element of
338 the list as the type constraint name, and use the remainder as the enum values
339 or method names. This makes the interface inconsistent with the anon-type forms
340 of these functions (which must take an arrayref), and a free-form list where
341 the first value is sometimes special is hard to validate (and harder to give
342 reasonable error messages for). These functions have been changed to take
343 arrayrefs in all their forms - so, C<< enum 'My::Type' => [qw(foo bar)] >> is
344 now the preferred way to create an enum type constraint. The old syntax still
345 works for now, but it will hopefully be deprecated and removed in a future
346 release.
347
348 =back
349
350 =head1 0.89_01
351
352 L<Moose::Meta::Attribute::Native> has been moved into the Moose core from
353 L<MooseX::AttributeHelpers>.  Major changes include:
354
355 =over 4
356
357 =item C<traits>, not C<metaclass>
358
359 Method providers are only available via traits.
360
361 =item C<handles>, not C<provides> or C<curries>
362
363 The C<provides> syntax was like core Moose C<< handles => HASHREF >>
364 syntax, but with the keys and values reversed.  This was confusing,
365 and AttributeHelpers now uses C<< handles => HASHREF >> in a way that
366 should be intuitive to anyone already familiar with how it is used for
367 other attributes.
368
369 The C<curries> functionality provided by AttributeHelpers has been
370 generalized to apply to all cases of C<< handles => HASHREF >>, though
371 not every piece of functionality has been ported (currying with a
372 CODEREF is not supported).
373
374 =item C<empty> is now C<is_empty>, and means empty, not non-empty
375
376 Previously, the C<empty> method provided by Arrays and Hashes returned true if
377 the attribute was B<not> empty (no elements).  Now it returns true if the
378 attribute B<is> empty. It was also renamed to C<is_empty>, to reflect this.
379
380 =item C<find> was renamed to C<first>, and C<first> and C<last> were removed
381
382 L<List::Util> refers to the functionality that we used to provide under C<find>
383 as L<first|List::Util/first>, so that will likely be more familiar (and will
384 fit in better if we decide to add more List::Util functions). C<first> and
385 C<last> were removed, since their functionality is easily duplicated with
386 curries of C<get>.
387
388 =item Helpers that take a coderef of one argument now use C<$_>
389
390 Subroutines passed as the first argument to C<first>, C<map>, and C<grep> now
391 receive their argument in C<$_> rather than as a parameter to the subroutine.
392 Helpers that take a coderef of two or more arguments remain using the argument
393 list (there are technical limitations to using C<$a> and C<$b> like C<sort>
394 does).
395
396 See L<Moose::Meta::Attribute::Native> for the new documentation.
397
398 =back
399
400 The C<alias> and C<excludes> role parameters have been renamed to C<-alias>
401 and C<-excludes>. The old names still work, but new code should use the new
402 names, and eventually the old ones will be deprecated and removed.
403
404 =head1 0.89
405
406 C<< use Moose -metaclass => 'Foo' >> now does alias resolution, just like
407 C<-traits> (and the C<metaclass> and C<traits> options to C<has>).
408
409 Added two functions C<meta_class_alias> and C<meta_attribute_alias> to
410 L<Moose::Util>, to simplify aliasing metaclasses and metatraits. This is
411 a wrapper around the old
412
413   package Moose::Meta::Class::Custom::Trait::FooTrait;
414   sub register_implementation { 'My::Meta::Trait' }
415
416 way of doing this.
417
418 =head1 0.84
419
420 When an attribute generates I<no> accessors, we now warn. This is to help
421 users who forget the C<is> option. If you really do not want any accessors,
422 you can use C<< is => 'bare' >>. You can maintain back compat with older
423 versions of Moose by using something like:
424
425     ($Moose::VERSION >= 0.84 ? is => 'bare' : ())
426
427 When an accessor overwrites an existing method, we now warn. To work around
428 this warning (if you really must have this behavior), you can explicitly
429 remove the method before creating it as an accessor:
430
431     sub foo {}
432
433     __PACKAGE__->meta->remove_method('foo');
434
435     has foo => (
436         is => 'ro',
437     );
438
439 When an unknown option is passed to C<has>, we now warn. You can silence
440 the warning by fixing your code. :)
441
442 The C<Role> type has been deprecated. On its own, it was useless,
443 since it just checked C<< $object->can('does') >>. If you were using
444 it as a parent type, just call C<role_type('Role::Name')> to create an
445 appropriate type instead.
446
447 =head1 0.78
448
449 C<use Moose::Exporter;> now imports C<strict> and C<warnings> into packages
450 that use it.
451
452 =head1 0.77
453
454 C<DEMOLISHALL> and C<DEMOLISH> now receive an argument indicating whether or
455 not we are in global destruction.
456
457 =head1 0.76
458
459 Type constraints no longer run coercions for a value that already matches the
460 constraint.  This may affect some (arguably buggy) edge case coercions that
461 rely on side effects in the C<via> clause.
462
463 =head1 0.75
464
465 L<Moose::Exporter> now accepts the C<-metaclass> option for easily
466 overriding the metaclass (without L<metaclass>). This works for classes
467 and roles.
468
469 =head1 0.74
470
471 Added a C<duck_type> sugar function to L<Moose::Util::TypeConstraints>
472 to make integration with non-Moose classes easier. It simply checks if
473 C<< $obj->can() >> a list of methods.
474
475 A number of methods (mostly inherited from L<Class::MOP>) have been
476 renamed with a leading underscore to indicate their internal-ness. The
477 old method names will still work for a while, but will warn that the
478 method has been renamed. In a few cases, the method will be removed
479 entirely in the future. This may affect MooseX authors who were using
480 these methods.
481
482 =head1 0.73
483
484 Calling C<subtype> with a name as the only argument now throws an
485 exception. If you want an anonymous subtype do:
486
487     my $subtype = subtype as 'Foo';
488
489 This is related to the changes in version 0.71_01.
490
491 The C<is_needed> method in L<Moose::Meta::Method::Destructor> is now
492 only usable as a class method. Previously, it worked as a class or
493 object method, with a different internal implementation for each
494 version.
495
496 The internals of making a class immutable changed a lot in Class::MOP
497 0.78_02, and Moose's internals have changed along with it. The
498 external C<< $metaclass->make_immutable >> method still works the same
499 way.
500
501 =head1 0.72
502
503 A mutable class accepted C<< Foo->new(undef) >> without complaint,
504 while an immutable class would blow up with an unhelpful error. Now,
505 in both cases we throw a helpful error instead.
506
507 This "feature" was originally added to allow for cases such as this:
508
509   my $args;
510
511   if ( something() ) {
512       $args = {...};
513   }
514
515   return My::Class->new($args);
516
517 But we decided this is a bad idea and a little too magical, because it
518 can easily mask real errors.
519
520 =head1 0.71_01
521
522 Calling C<type> or C<subtype> without the sugar helpers (C<as>,
523 C<where>, C<message>) is now deprecated.
524
525 As a side effect, this meant we ended up using Perl prototypes on
526 C<as>, and code like this will no longer work:
527
528   use Moose::Util::TypeConstraints;
529   use Declare::Constraints::Simple -All;
530
531   subtype 'ArrayOfInts'
532       => as 'ArrayRef'
533       => IsArrayRef(IsInt);
534
535 Instead it must be changed to this:
536
537   subtype(
538       'ArrayOfInts' => {
539           as    => 'ArrayRef',
540           where => IsArrayRef(IsInt)
541       }
542   );
543
544 If you want to maintain backwards compat with older versions of Moose,
545 you must explicitly test Moose's C<VERSION>:
546
547   if ( Moose->VERSION < 0.71_01 ) {
548       subtype 'ArrayOfInts'
549           => as 'ArrayRef'
550           => IsArrayRef(IsInt);
551   }
552   else {
553       subtype(
554           'ArrayOfInts' => {
555               as    => 'ArrayRef',
556               where => IsArrayRef(IsInt)
557           }
558       );
559   }
560
561 =head1 0.70
562
563 We no longer pass the meta-attribute object as a final argument to
564 triggers. This actually changed for inlined code a while back, but the
565 non-inlined version and the docs were still out of date.
566
567 If by some chance you actually used this feature, the workaround is
568 simple. You fetch the attribute object from out of the C<$self>
569 that is passed as the first argument to trigger, like so:
570
571   has 'foo' => (
572       is      => 'ro',
573       isa     => 'Any',
574       trigger => sub {
575           my ( $self, $value ) = @_;
576           my $attr = $self->meta->find_attribute_by_name('foo');
577
578           # ...
579       }
580   );
581
582 =head1 0.66
583
584 If you created a subtype and passed a parent that Moose didn't know
585 about, it simply ignored the parent. Now it automatically creates the
586 parent as a class type. This may not be what you want, but is less
587 broken than before.
588
589 You could declare a name with subtype such as "Foo!Bar". Moose would
590 accept this allowed, but if you used it in a parameterized type such
591 as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some vetting on
592 names created via the sugar functions, so that they can only contain
593 alphanumerics, ":", and ".".
594
595 =head1 0.65
596
597 Methods created via an attribute can now fulfill a C<requires>
598 declaration for a role. Honestly we don't know why Stevan didn't make
599 this work originally, he was just insane or something.
600
601 Stack traces from inlined code will now report the line and file as
602 being in your class, as opposed to in Moose guts.
603
604 =head1 0.62_02
605
606 When a class does not provide all of a role's required methods, the
607 error thrown now mentions all of the missing methods, as opposed to
608 just the first missing method.
609
610 Moose will no longer inline a constructor for your class unless it
611 inherits its constructor from Moose::Object, and will warn when it
612 doesn't inline. If you want to force inlining anyway, pass
613 C<< replace_constructor => 1 >> to C<make_immutable>.
614
615 If you want to get rid of the warning, pass C<< inline_constructor =>
616 0 >>.
617
618 =head1 0.62
619
620 Removed the (deprecated) C<make_immutable> keyword.
621
622 Removing an attribute from a class now also removes delegation
623 (C<handles>) methods installed for that attribute. This is correct
624 behavior, but if you were wrongly relying on it you might get bit.
625
626 =head1 0.58
627
628 Roles now add methods by calling C<add_method>, not
629 C<alias_method>. They make sure to always provide a method object,
630 which will be cloned internally. This means that it is now possible to
631 track the source of a method provided by a role, and even follow its
632 history through intermediate roles.  This means that methods added by
633 a role now show up when looking at a class's method list/map.
634
635 Parameter and Union args are now sorted, this makes Int|Str the same
636 constraint as Str|Int. Also, incoming type constraint strings are
637 normalized to remove all whitespace differences. This is mostly for
638 internals and should not affect outside code.
639
640 L<Moose::Exporter> will no longer remove a subroutine that the
641 exporting package re-exports. Moose re-exports the Carp::confess
642 function, among others. The reasoning is that we cannot know whether
643 you have also explicitly imported those functions for your own use, so
644 we err on the safe side and always keep them.
645
646 =head1 0.56
647
648 C<Moose::init_meta> should now be called as a method.
649
650 New modules for extension writers, L<Moose::Exporter> and
651 L<Moose::Util::MetaRole>.
652
653 =head1 0.55_01
654
655 Implemented metaclass traits (and wrote a recipe for it):
656
657   use Moose -traits => 'Foo'
658
659 This should make writing small Moose extensions a little
660 easier.
661
662 =head1 0.55
663
664 Fixed C<coerce> to accept anon types just like C<subtype> can.
665 So that you can do:
666
667   coerce $some_anon_type => from 'Str' => via { ... };
668
669 =head1 0.51
670
671 Added C<BUILDARGS>, a new step in C<< Moose::Object->new() >>.
672
673 =head1 0.49
674
675 Fixed how the C<< is => (ro|rw) >> works with custom defined
676 C<reader>, C<writer> and C<accessor> options. See the below table for
677 details:
678
679   is => ro, writer => _foo    # turns into (reader => foo, writer => _foo)
680   is => rw, writer => _foo    # turns into (reader => foo, writer => _foo)
681   is => rw, accessor => _foo  # turns into (accessor => _foo)
682   is => ro, accessor => _foo  # error, accesor is rw
683
684 =head1 0.45
685
686 The C<before/around/after> method modifiers now support regexp
687 matching of method names. NOTE: this only works for classes, it is
688 currently not supported in roles, but, ... patches welcome.
689
690 The C<has> keyword for roles now accepts the same array ref form that
691 L<Moose>.pm does for classes.
692
693 A trigger on a read-only attribute is no longer an error, as it's
694 useful to trigger off of the constructor.
695
696 Subtypes of parameterizable types now are parameterizable types
697 themselves.
698
699 =head1 0.44
700
701 Fixed issue where C<DEMOLISHALL> was eating the value in C<$@>, and so
702 not working correctly. It still kind of eats them, but so does vanilla
703 perl.
704
705 =head1 0.41
706
707 Inherited attributes may now be extended without restriction on the
708 type ('isa', 'does').
709
710 The entire set of Moose::Meta::TypeConstraint::* classes were
711 refactored in this release. If you were relying on their internals you
712 should test your code carefully.
713
714 =head1 0.40
715
716 Documenting the use of '+name' with attributes that come from recently
717 composed roles. It makes sense, people are using it, and so why not
718 just officially support it.
719
720 The C<< Moose::Meta::Class->create >> method now supports roles.
721
722 It is now possible to make anonymous enum types by passing C<enum> an
723 array reference instead of the C<< enum $name => @values >>.
724
725 =head1 0.37
726
727 Added the C<make_immutable> keyword as a shortcut to calling
728 C<make_immutable> on the meta object. This eventually got removed!
729
730 Made C<< init_arg => undef >> work in Moose. This means "do not accept
731 a constructor parameter for this attribute".
732
733 Type errors now use the provided message. Prior to this release they
734 didn't.
735
736 =head1 0.34
737
738 Moose is now a postmodern object system :)
739
740 The Role system was completely refactored. It is 100% backwards
741 compat, but the internals were totally changed. If you relied on the
742 internals then you are advised to test carefully.
743
744 Added method exclusion and aliasing for Roles in this release.
745
746 Added the L<Moose::Util::TypeConstraints::OptimizedConstraints>
747 module.
748
749 Passing a list of values to an accessor (which is only expecting one
750 value) used to be silently ignored, now it throws an error.
751
752 =head1 0.26
753
754 Added parameterized types and did a pretty heavy refactoring of the
755 type constraint system.
756
757 Better framework extendability and better support for "making your own
758 Moose".
759
760 =head1 0.25 or before
761
762 Honestly, you shouldn't be using versions of Moose that are this old,
763 so many bug fixes and speed improvements have been made you would be
764 crazy to not upgrade.
765
766 Also, I am tired of going through the Changelog so I am stopping here,
767 if anyone would like to continue this please feel free.
768
769 =head1 AUTHOR
770
771 Stevan Little E<lt>stevan@iinteractive.comE<gt>
772
773 =head1 COPYRIGHT AND LICENSE
774
775 Copyright 2009 by Infinity Interactive, Inc.
776
777 L<http://www.iinteractive.com>
778
779 This library is free software; you can redistribute it and/or modify
780 it under the same terms as Perl itself.
781
782 =cut