Add built local::lib
[catagits/Gitalist.git] / local-lib5 / man / man3 / Moose::Manual::Delta.3pm
1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.3
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
12 ..
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
16 ..
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
21 ..
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
25 ..
26 .\" Set up some character translations and predefined strings.  \*(-- will
27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28 .\" double quote, and \*(R" will give a right double quote.  | will give a
29 .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
30 .\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
31 .\" expand to `' in nroff, nothing in troff, for use with C<>.
32 .tr \(*W-|\(bv\*(Tr
33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34 .ie n \{\
35 .    ds -- \(*W-
36 .    ds PI pi
37 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
39 .    ds L" ""
40 .    ds R" ""
41 .    ds C` ""
42 .    ds C' ""
43 'br\}
44 .el\{\
45 .    ds -- \|\(em\|
46 .    ds PI \(*p
47 .    ds L" ``
48 .    ds R" ''
49 'br\}
50 .\"
51 .\" If the F register is turned on, we'll generate index entries on stderr for
52 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53 .\" entries marked with X<> in POD.  Of course, you'll have to process the
54 .\" output yourself in some meaningful fashion.
55 .if \nF \{\
56 .    de IX
57 .    tm Index:\\$1\t\\n%\t"\\$2"
58 ..
59 .    nr % 0
60 .    rr F
61 .\}
62 .\"
63 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
64 .\" way too many mistakes in technical documents.
65 .hy 0
66 .if n .na
67 .\"
68 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
70 .    \" fudge factors for nroff and troff
71 .if n \{\
72 .    ds #H 0
73 .    ds #V .8m
74 .    ds #F .3m
75 .    ds #[ \f1
76 .    ds #] \fP
77 .\}
78 .if t \{\
79 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80 .    ds #V .6m
81 .    ds #F 0
82 .    ds #[ \&
83 .    ds #] \&
84 .\}
85 .    \" simple accents for nroff and troff
86 .if n \{\
87 .    ds ' \&
88 .    ds ` \&
89 .    ds ^ \&
90 .    ds , \&
91 .    ds ~ ~
92 .    ds /
93 .\}
94 .if t \{\
95 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101 .\}
102 .    \" troff and (daisy-wheel) nroff accents
103 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110 .ds ae a\h'-(\w'a'u*4/10)'e
111 .ds Ae A\h'-(\w'A'u*4/10)'E
112 .    \" corrections for vroff
113 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115 .    \" for low resolution devices (crt and lpr)
116 .if \n(.H>23 .if \n(.V>19 \
117 \{\
118 .    ds : e
119 .    ds 8 ss
120 .    ds o a
121 .    ds d- d\h'-1'\(ga
122 .    ds D- D\h'-1'\(hy
123 .    ds th \o'bp'
124 .    ds Th \o'LP'
125 .    ds ae ae
126 .    ds Ae AE
127 .\}
128 .rm #[ #] #H #V #F C
129 .\" ========================================================================
130 .\"
131 .IX Title "Moose::Manual::Delta 3"
132 .TH Moose::Manual::Delta 3 "2009-10-24" "perl v5.8.7" "User Contributed Perl Documentation"
133 .SH "NAME"
134 Moose::Manual::Delta \- Important Changes in Moose
135 .SH "DESCRIPTION"
136 .IX Header "DESCRIPTION"
137 This documents any important or noteworthy changes in Moose, with a
138 focus on backwards. This does duplicate data from the \fIChanges\fR file,
139 but aims to provide more details and when possible workarounds.
140 .PP
141 Besides helping keep up with changes, you can also use this document
142 for finding the lowest version of Moose that supported a given
143 feature.  If you encounter a problem and have a solution but don't see
144 it documented here, or think we missed an important feature, please
145 send us a patch.
146 .SH "0.93"
147 .IX Header "0.93"
148 .ie n .IP "Calling $object\fR\->\fInew() is no longer deprecated" 4
149 .el .IP "Calling \f(CW$object\fR\->\fInew()\fR is no longer deprecated" 4
150 .IX Item "Calling $object->new() is no longer deprecated"
151 We decided to undeprecate this. Now it just works.
152 .SH "0.90"
153 .IX Header "0.90"
154 .IP "Added Native delegation for Code refs" 4
155 .IX Item "Added Native delegation for Code refs"
156 See Moose::Meta::Attribute::Native::Trait::Code for details.
157 .ie n .IP "Calling $object\fR\->\fInew() is deprecated" 4
158 .el .IP "Calling \f(CW$object\fR\->\fInew()\fR is deprecated" 4
159 .IX Item "Calling $object->new() is deprecated"
160 Moose has long supported this, but it's never really been documented, and we
161 don't think this is a good practice. If you want to construct an object from
162 an existing object, you should provide some sort of alternate constructor like
163 \&\f(CW\*(C`$object\->clone\*(C'\fR.
164 .Sp
165 Calling \f(CW\*(C`$object\->new\*(C'\fR now issues a warning, and will be an error in a
166 future release.
167 .ie n .IP "Moose no longer warns if you call ""make_immutable"" for a class with mutable ancestors" 4
168 .el .IP "Moose no longer warns if you call \f(CWmake_immutable\fR for a class with mutable ancestors" 4
169 .IX Item "Moose no longer warns if you call make_immutable for a class with mutable ancestors"
170 While in theory this is a good thing to warn about, we found so many
171 exceptions to this that doing this properly became quite problematic.
172 .SH "Version 0.89_02"
173 .IX Header "Version 0.89_02"
174 .IP "New Native delegation methods from List::Util and List::MoreUtils" 4
175 .IX Item "New Native delegation methods from List::Util and List::MoreUtils"
176 In particular, we now have \f(CW\*(C`reduce\*(C'\fR, \f(CW\*(C`shuffle\*(C'\fR, \f(CW\*(C`uniq\*(C'\fR, and \f(CW\*(C`natatime\*(C'\fR.
177 .IP "The Moose::Exporter with_caller feature is now deprecated" 4
178 .IX Item "The Moose::Exporter with_caller feature is now deprecated"
179 Use \f(CW\*(C`with_meta\*(C'\fR instead. The \f(CW\*(C`with_caller\*(C'\fR option will start warning in a
180 future release.
181 .ie n .IP "Moose now warns if you call ""make_immutable"" for a class with mutable ancestors" 4
182 .el .IP "Moose now warns if you call \f(CWmake_immutable\fR for a class with mutable ancestors" 4
183 .IX Item "Moose now warns if you call make_immutable for a class with mutable ancestors"
184 This is dangerous because modifying a class after a subclass has been
185 immutabilized will lead to incorrect results in the subclass, due to inlining,
186 caching, etc. This occasionally happens accidentally, when a class loads one
187 of its subclasses in the middle of its class definition, so pointing out that
188 this may cause issues should be helpful. Metaclasses (classes that inherit
189 from Class::MOP::Object) are currently exempt from this check, since at the
190 moment we aren't very consistent about which metaclasses we immutabilize.
191 .ie n .IP """enum""\fR and \f(CW""duck_type"" now take arrayrefs for all forms" 4
192 .el .IP "\f(CWenum\fR and \f(CWduck_type\fR now take arrayrefs for all forms" 4
193 .IX Item "enum and duck_type now take arrayrefs for all forms"
194 Previously, calling these functions with a list would take the first element of
195 the list as the type constraint name, and use the remainder as the enum values
196 or method names. This makes the interface inconsistent with the anon-type forms
197 of these functions (which must take an arrayref), and a free-form list where
198 the first value is sometimes special is hard to validate (and harder to give
199 reasonable error messages for). These functions have been changed to take
200 arrayrefs in all their forms \- so, \f(CW\*(C`enum 'My::Type' => [qw(foo bar)]\*(C'\fR is
201 now the preferred way to create an enum type constraint. The old syntax still
202 works for now, but it will hopefully be deprecated and removed in a future
203 release.
204 .SH "Version 0.89_01"
205 .IX Header "Version 0.89_01"
206 Moose::Meta::Attribute::Native has been moved into the Moose core from
207 MooseX::AttributeHelpers.  Major changes include:
208 .ie n .IP """traits""\fR, not \f(CW""metaclass""" 4
209 .el .IP "\f(CWtraits\fR, not \f(CWmetaclass\fR" 4
210 .IX Item "traits, not metaclass"
211 Method providers are only available via traits.
212 .ie n .IP """handles""\fR, not \f(CW""provides""\fR or \f(CW""curries""" 4
213 .el .IP "\f(CWhandles\fR, not \f(CWprovides\fR or \f(CWcurries\fR" 4
214 .IX Item "handles, not provides or curries"
215 The \f(CW\*(C`provides\*(C'\fR syntax was like core Moose \f(CW\*(C`handles => HASHREF\*(C'\fR
216 syntax, but with the keys and values reversed.  This was confusing,
217 and AttributeHelpers now uses \f(CW\*(C`handles => HASHREF\*(C'\fR in a way that
218 should be intuitive to anyone already familiar with how it is used for
219 other attributes.
220 .Sp
221 The \f(CW\*(C`curries\*(C'\fR functionality provided by AttributeHelpers has been
222 generalized to apply to all cases of \f(CW\*(C`handles => HASHREF\*(C'\fR, though
223 not every piece of functionality has been ported (currying with a
224 \&\s-1CODEREF\s0 is not supported).
225 .ie n .IP """empty""\fR is now \f(CW""is_empty"", and means empty, not non-empty" 4
226 .el .IP "\f(CWempty\fR is now \f(CWis_empty\fR, and means empty, not non-empty" 4
227 .IX Item "empty is now is_empty, and means empty, not non-empty"
228 Previously, the \f(CW\*(C`empty\*(C'\fR method provided by Arrays and Hashes returned true if
229 the attribute was \fBnot\fR empty (no elements).  Now it returns true if the
230 attribute \fBis\fR empty. It was also renamed to \f(CW\*(C`is_empty\*(C'\fR, to reflect this.
231 .ie n .IP """find""\fR was renamed to \f(CW""first""\fR, and \f(CW""first""\fR and \f(CW""last"" were removed" 4
232 .el .IP "\f(CWfind\fR was renamed to \f(CWfirst\fR, and \f(CWfirst\fR and \f(CWlast\fR were removed" 4
233 .IX Item "find was renamed to first, and first and last were removed"
234 List::Util refers to the functionality that we used to provide under \f(CW\*(C`find\*(C'\fR
235 as first, so that will likely be more familiar (and will
236 fit in better if we decide to add more List::Util functions). \f(CW\*(C`first\*(C'\fR and
237 \&\f(CW\*(C`last\*(C'\fR were removed, since their functionality is easily duplicated with
238 curries of \f(CW\*(C`get\*(C'\fR.
239 .ie n .IP "Helpers that take a coderef of one argument now use $_" 4
240 .el .IP "Helpers that take a coderef of one argument now use \f(CW$_\fR" 4
241 .IX Item "Helpers that take a coderef of one argument now use $_"
242 Subroutines passed as the first argument to \f(CW\*(C`first\*(C'\fR, \f(CW\*(C`map\*(C'\fR, and \f(CW\*(C`grep\*(C'\fR now
243 receive their argument in \f(CW$_\fR rather than as a parameter to the subroutine.
244 Helpers that take a coderef of two or more arguments remain using the argument
245 list (there are technical limitations to using \f(CW$a\fR and \f(CW$b\fR like \f(CW\*(C`sort\*(C'\fR
246 does).
247 .Sp
248 See Moose::Meta::Attribute::Native for the new documentation.
249 .PP
250 The \f(CW\*(C`alias\*(C'\fR and \f(CW\*(C`excludes\*(C'\fR role parameters have been renamed to \f(CW\*(C`\-alias\*(C'\fR
251 and \f(CW\*(C`\-excludes\*(C'\fR. The old names still work, but new code should use the new
252 names, and eventually the old ones will be deprecated and removed.
253 .SH "Version 0.89"
254 .IX Header "Version 0.89"
255 \&\f(CW\*(C`use Moose \-metaclass => 'Foo'\*(C'\fR now does alias resolution, just like
256 \&\f(CW\*(C`\-traits\*(C'\fR (and the \f(CW\*(C`metaclass\*(C'\fR and \f(CW\*(C`traits\*(C'\fR options to \f(CW\*(C`has\*(C'\fR).
257 .PP
258 Added two functions \f(CW\*(C`meta_class_alias\*(C'\fR and \f(CW\*(C`meta_attribute_alias\*(C'\fR to
259 Moose::Util, to simplify aliasing metaclasses and metatraits. This is
260 a wrapper around the old
261 .PP
262 .Vb 2
263 \&  package Moose::Meta::Class::Custom::Trait::FooTrait;
264 \&  sub register_implementation { 'My::Meta::Trait' }
265 .Ve
266 .PP
267 way of doing this.
268 .SH "Version 0.84"
269 .IX Header "Version 0.84"
270 When an attribute generates \fIno\fR accessors, we now warn. This is to help
271 users who forget the \f(CW\*(C`is\*(C'\fR option. If you really do not want any accessors,
272 you can use \f(CW\*(C`is => 'bare'\*(C'\fR. You can maintain back compat with older
273 versions of Moose by using something like:
274 .PP
275 .Vb 1
276 \&    ($Moose::VERSION >= 0.84 ? is => 'bare' : ())
277 .Ve
278 .PP
279 When an accessor overwrites an existing method, we now warn. To work around
280 this warning (if you really must have this behavior), you can explicitly
281 remove the method before creating it as an accessor:
282 .PP
283 .Vb 1
284 \&    sub foo {}
285 .Ve
286 .PP
287 .Vb 1
288 \&    __PACKAGE__\->meta\->remove_method('foo');
289 .Ve
290 .PP
291 .Vb 3
292 \&    has foo => (
293 \&        is => 'ro',
294 \&    );
295 .Ve
296 .PP
297 When an unknown option is passed to \f(CW\*(C`has\*(C'\fR, we now warn. You can silence
298 the warning by fixing your code. :)
299 .PP
300 The \f(CW\*(C`Role\*(C'\fR type has been deprecated. On its own, it was useless,
301 since it just checked \f(CW\*(C`$object\->can('does')\*(C'\fR. If you were using
302 it as a parent type, just call \f(CW\*(C`role_type('Role::Name')\*(C'\fR to create an
303 appropriate type instead.
304 .SH "Version 0.78"
305 .IX Header "Version 0.78"
306 \&\f(CW\*(C`use Moose::Exporter;\*(C'\fR now imports \f(CW\*(C`strict\*(C'\fR and \f(CW\*(C`warnings\*(C'\fR into packages
307 that use it.
308 .SH "Version 0.77"
309 .IX Header "Version 0.77"
310 \&\f(CW\*(C`DEMOLISHALL\*(C'\fR and \f(CW\*(C`DEMOLISH\*(C'\fR now receive an argument indicating whether or
311 not we are in global destruction.
312 .SH "Version 0.76"
313 .IX Header "Version 0.76"
314 Type constraints no longer run coercions for a value that already matches the
315 constraint.  This may affect some (arguably buggy) edge case coercions that
316 rely on side effects in the \f(CW\*(C`via\*(C'\fR clause.
317 .SH "Version 0.75"
318 .IX Header "Version 0.75"
319 Moose::Exporter now accepts the \f(CW\*(C`\-metaclass\*(C'\fR option for easily
320 overriding the metaclass (without metaclass). This works for classes
321 and roles.
322 .SH "Version 0.74"
323 .IX Header "Version 0.74"
324 Added a \f(CW\*(C`duck_type\*(C'\fR sugar function to Moose::Util::TypeConstraints
325 to make integration with non-Moose classes easier. It simply checks if
326 \&\f(CW\*(C`$obj\->can()\*(C'\fR a list of methods.
327 .PP
328 A number of methods (mostly inherited from Class::MOP) have been
329 renamed with a leading underscore to indicate their internal\-ness. The
330 old method names will still work for a while, but will warn that the
331 method has been renamed. In a few cases, the method will be removed
332 entirely in the future. This may affect MooseX authors who were using
333 these methods.
334 .SH "Version 0.73"
335 .IX Header "Version 0.73"
336 Calling \f(CW\*(C`subtype\*(C'\fR with a name as the only argument now throws an
337 exception. If you want an anonymous subtype do:
338 .PP
339 .Vb 1
340 \&    my $subtype = subtype as 'Foo';
341 .Ve
342 .PP
343 This is related to the changes in version 0.71_01.
344 .PP
345 The \f(CW\*(C`is_needed\*(C'\fR method in Moose::Meta::Method::Destructor is now
346 only usable as a class method. Previously, it worked as a class or
347 object method, with a different internal implementation for each
348 version.
349 .PP
350 The internals of making a class immutable changed a lot in Class::MOP
351 0.78_02, and Moose's internals have changed along with it. The
352 external \f(CW\*(C`$metaclass\->make_immutable\*(C'\fR method still works the same
353 way.
354 .SH "Version 0.72"
355 .IX Header "Version 0.72"
356 A mutable class accepted \f(CW\*(C`Foo\->new(undef)\*(C'\fR without complaint,
357 while an immutable class would blow up with an unhelpful error. Now,
358 in both cases we throw a helpful error instead.
359 .PP
360 This \*(L"feature\*(R" was originally added to allow for cases such as this:
361 .PP
362 .Vb 1
363 \&  my $args;
364 .Ve
365 .PP
366 .Vb 3
367 \&  if ( something() ) {
368 \&      $args = {...};
369 \&  }
370 .Ve
371 .PP
372 .Vb 1
373 \&  return My::Class\->new($args);
374 .Ve
375 .PP
376 But we decided this is a bad idea and a little too magical, because it
377 can easily mask real errors.
378 .SH "Version 0.71_01"
379 .IX Header "Version 0.71_01"
380 Calling \f(CW\*(C`type\*(C'\fR or \f(CW\*(C`subtype\*(C'\fR without the sugar helpers (\f(CW\*(C`as\*(C'\fR,
381 \&\f(CW\*(C`where\*(C'\fR, \f(CW\*(C`message\*(C'\fR) is now deprecated.
382 .PP
383 As a side effect, this meant we ended up using Perl prototypes on
384 \&\f(CW\*(C`as\*(C'\fR, and code like this will no longer work:
385 .PP
386 .Vb 2
387 \&  use Moose::Util::TypeConstraints;
388 \&  use Declare::Constraints::Simple \-All;
389 .Ve
390 .PP
391 .Vb 3
392 \&  subtype 'ArrayOfInts'
393 \&      => as 'ArrayRef'
394 \&      => IsArrayRef(IsInt);
395 .Ve
396 .PP
397 Instead it must be changed to this:
398 .PP
399 .Vb 6
400 \&  subtype(
401 \&      'ArrayOfInts' => {
402 \&          as    => 'ArrayRef',
403 \&          where => IsArrayRef(IsInt)
404 \&      }
405 \&  );
406 .Ve
407 .PP
408 If you want to maintain backwards compat with older versions of Moose,
409 you must explicitly test Moose's \f(CW\*(C`VERSION\*(C'\fR:
410 .PP
411 .Vb 13
412 \&  if ( Moose\->VERSION < 0.71_01 ) {
413 \&      subtype 'ArrayOfInts'
414 \&          => as 'ArrayRef'
415 \&          => IsArrayRef(IsInt);
416 \&  }
417 \&  else {
418 \&      subtype(
419 \&          'ArrayOfInts' => {
420 \&              as    => 'ArrayRef',
421 \&              where => IsArrayRef(IsInt)
422 \&          }
423 \&      );
424 \&  }
425 .Ve
426 .SH "Version 0.70"
427 .IX Header "Version 0.70"
428 We no longer pass the meta-attribute object as a final argument to
429 triggers. This actually changed for inlined code a while back, but the
430 non-inlined version and the docs were still out of date.
431 .PP
432 If by some chance you actually used this feature, the workaround is
433 simple. You fetch the attribute object from out of the \f(CW$self\fR
434 that is passed as the first argument to trigger, like so:
435 .PP
436 .Vb 6
437 \&  has 'foo' => (
438 \&      is      => 'ro',
439 \&      isa     => 'Any',
440 \&      trigger => sub {
441 \&          my ( $self, $value ) = @_;
442 \&          my $attr = $self\->meta\->find_attribute_by_name('foo');
443 .Ve
444 .PP
445 .Vb 3
446 \&          # ...
447 \&      }
448 \&  );
449 .Ve
450 .SH "Version 0.66"
451 .IX Header "Version 0.66"
452 If you created a subtype and passed a parent that Moose didn't know
453 about, it simply ignored the parent. Now it automatically creates the
454 parent as a class type. This may not be what you want, but is less
455 broken than before.
456 .PP
457 You could declare a name with subtype such as \*(L"Foo!Bar\*(R". Moose would
458 accept this allowed, but if you used it in a parameterized type such
459 as \*(L"ArrayRef[Foo!Bar]\*(R" it wouldn't work. We now do some vetting on
460 names created via the sugar functions, so that they can only contain
461 alphanumerics, \*(L":\*(R", and \*(L".\*(R".
462 .SH "Version 0.65"
463 .IX Header "Version 0.65"
464 Methods created via an attribute can now fulfill a \f(CW\*(C`requires\*(C'\fR
465 declaration for a role. Honestly we don't know why Stevan didn't make
466 this work originally, he was just insane or something.
467 .PP
468 Stack traces from inlined code will now report the line and file as
469 being in your class, as opposed to in Moose guts.
470 .SH "Version 0.62_02"
471 .IX Header "Version 0.62_02"
472 When a class does not provide all of a role's required methods, the
473 error thrown now mentions all of the missing methods, as opposed to
474 just the first missing method.
475 .PP
476 Moose will no longer inline a constructor for your class unless it
477 inherits its constructor from Moose::Object, and will warn when it
478 doesn't inline. If you want to force inlining anyway, pass
479 \&\f(CW\*(C`replace_constructor => 1\*(C'\fR to \f(CW\*(C`make_immutable\*(C'\fR.
480 .PP
481 If you want to get rid of the warning, pass \f(CW\*(C`inline_constructor =>
482 0\*(C'\fR.
483 .SH "Version 0.62"
484 .IX Header "Version 0.62"
485 Removed the (deprecated) \f(CW\*(C`make_immutable\*(C'\fR keyword.
486 .PP
487 Removing an attribute from a class now also removes delegation
488 (\f(CW\*(C`handles\*(C'\fR) methods installed for that attribute. This is correct
489 behavior, but if you were wrongly relying on it you might get bit.
490 .SH "Version 0.58"
491 .IX Header "Version 0.58"
492 Roles now add methods by calling \f(CW\*(C`add_method\*(C'\fR, not
493 \&\f(CW\*(C`alias_method\*(C'\fR. They make sure to always provide a method object,
494 which will be cloned internally. This means that it is now possible to
495 track the source of a method provided by a role, and even follow its
496 history through intermediate roles.  This means that methods added by
497 a role now show up when looking at a class's method list/map.
498 .PP
499 Parameter and Union args are now sorted, this makes Int|Str the same
500 constraint as Str|Int. Also, incoming type constraint strings are
501 normalized to remove all whitespace differences. This is mostly for
502 internals and should not affect outside code.
503 .PP
504 Moose::Exporter will no longer remove a subroutine that the
505 exporting package re\-exports. Moose re-exports the Carp::confess
506 function, among others. The reasoning is that we cannot know whether
507 you have also explicitly imported those functions for your own use, so
508 we err on the safe side and always keep them.
509 .SH "Version 0.56"
510 .IX Header "Version 0.56"
511 \&\f(CW\*(C`Moose::init_meta\*(C'\fR should now be called as a method.
512 .PP
513 New modules for extension writers, Moose::Exporter and
514 Moose::Util::MetaRole.
515 .SH "Version 0.55_01"
516 .IX Header "Version 0.55_01"
517 Implemented metaclass traits (and wrote a recipe for it):
518 .PP
519 .Vb 1
520 \&  use Moose \-traits => 'Foo'
521 .Ve
522 .PP
523 This should make writing small Moose extensions a little
524 easier.
525 .SH "Version 0.55"
526 .IX Header "Version 0.55"
527 Fixed \f(CW\*(C`coerce\*(C'\fR to accept anon types just like \f(CW\*(C`subtype\*(C'\fR can.
528 So that you can do:
529 .PP
530 .Vb 1
531 \&  coerce $some_anon_type => from 'Str' => via { ... };
532 .Ve
533 .SH "Version 0.51"
534 .IX Header "Version 0.51"
535 Added \f(CW\*(C`BUILDARGS\*(C'\fR, a new step in \f(CW\*(C`Moose::Object\->new()\*(C'\fR.
536 .SH "Version 0.49"
537 .IX Header "Version 0.49"
538 Fixed how the \f(CW\*(C`is => (ro|rw)\*(C'\fR works with custom defined
539 \&\f(CW\*(C`reader\*(C'\fR, \f(CW\*(C`writer\*(C'\fR and \f(CW\*(C`accessor\*(C'\fR options. See the below table for
540 details:
541 .PP
542 .Vb 4
543 \&  is => ro, writer => _foo    # turns into (reader => foo, writer => _foo)
544 \&  is => rw, writer => _foo    # turns into (reader => foo, writer => _foo)
545 \&  is => rw, accessor => _foo  # turns into (accessor => _foo)
546 \&  is => ro, accessor => _foo  # error, accesor is rw
547 .Ve
548 .SH "Version 0.45"
549 .IX Header "Version 0.45"
550 The \f(CW\*(C`before/around/after\*(C'\fR method modifiers now support regexp
551 matching of method names. \s-1NOTE:\s0 this only works for classes, it is
552 currently not supported in roles, but, ... patches welcome.
553 .PP
554 The \f(CW\*(C`has\*(C'\fR keyword for roles now accepts the same array ref form that
555 Moose.pm does for classes.
556 .PP
557 A trigger on a read-only attribute is no longer an error, as it's
558 useful to trigger off of the constructor.
559 .PP
560 Subtypes of parameterizable types now are parameterizable types
561 themselves.
562 .SH "Version 0.44"
563 .IX Header "Version 0.44"
564 Fixed issue where \f(CW\*(C`DEMOLISHALL\*(C'\fR was eating the value in \f(CW$@\fR, and so
565 not working correctly. It still kind of eats them, but so does vanilla
566 perl.
567 .SH "Version 0.41"
568 .IX Header "Version 0.41"
569 Inherited attributes may now be extended without restriction on the
570 type ('isa', 'does').
571 .PP
572 The entire set of Moose::Meta::TypeConstraint::* classes were
573 refactored in this release. If you were relying on their internals you
574 should test your code carefully.
575 .SH "Version 0.40"
576 .IX Header "Version 0.40"
577 Documenting the use of '+name' with attributes that come from recently
578 composed roles. It makes sense, people are using it, and so why not
579 just officially support it.
580 .PP
581 The \f(CW\*(C`Moose::Meta::Class\->create\*(C'\fR method now supports roles.
582 .PP
583 It is now possible to make anonymous enum types by passing \f(CW\*(C`enum\*(C'\fR an
584 array reference instead of the \f(CW\*(C`enum $name => @values\*(C'\fR.
585 .SH "Version 0.37"
586 .IX Header "Version 0.37"
587 Added the \f(CW\*(C`make_immutable\*(C'\fR keyword as a shortcut to calling
588 \&\f(CW\*(C`make_immutable\*(C'\fR on the meta object. This eventually got removed!
589 .PP
590 Made \f(CW\*(C`init_arg => undef\*(C'\fR work in Moose. This means \*(L"do not accept
591 a constructor parameter for this attribute\*(R".
592 .PP
593 Type errors now use the provided message. Prior to this release they
594 didn't.
595 .SH "Version 0.34"
596 .IX Header "Version 0.34"
597 Moose is now a postmodern object system :)
598 .PP
599 The Role system was completely refactored. It is 100% backwards
600 compat, but the internals were totally changed. If you relied on the
601 internals then you are advised to test carefully.
602 .PP
603 Added method exclusion and aliasing for Roles in this release.
604 .PP
605 Added the Moose::Util::TypeConstraints::OptimizedConstraints
606 module.
607 .PP
608 Passing a list of values to an accessor (which is only expecting one
609 value) used to be silently ignored, now it throws an error.
610 .SH "Version 0.26"
611 .IX Header "Version 0.26"
612 Added parameterized types and did a pretty heavy refactoring of the
613 type constraint system.
614 .PP
615 Better framework extendability and better support for \*(L"making your own
616 Moose\*(R".
617 .SH "Version 0.25 or before"
618 .IX Header "Version 0.25 or before"
619 Honestly, you shouldn't be using versions of Moose that are this old,
620 so many bug fixes and speed improvements have been made you would be
621 crazy to not upgrade.
622 .PP
623 Also, I am tired of going through the Changelog so I am stopping here,
624 if anyone would like to continue this please feel free.
625 .SH "AUTHOR"
626 .IX Header "AUTHOR"
627 Stevan Little <stevan@iinteractive.com>
628 .SH "COPYRIGHT AND LICENSE"
629 .IX Header "COPYRIGHT AND LICENSE"
630 Copyright 2009 by Infinity Interactive, Inc.
631 .PP
632 <http://www.iinteractive.com>
633 .PP
634 This library is free software; you can redistribute it and/or modify
635 it under the same terms as Perl itself.