Fix Evan's required/writer/accessor bug
[gitmo/Moose.git] / Changes
CommitLineData
e522431d 1Revision history for Perl extension Moose
2
695d1c68 30.48 Thurs. May 29, 2008
4 (early morning release engineering)--
5
6 - fixing the version in Moose::Meta::Method::Destructor
7 which was causing the indexer to choke
8
2391ba89 90.47 Thurs. May 29, 2008
10 (late night release engineering)--
11
12 - fixing the version is META.yml, no functional
13 changes in this release
14
bd364604 150.46 Wed. May 28, 2008
16 !! This version now approx. 20-25% !!
17 !! faster with new Class::MOP 0.57 !!
18
19 * Moose::Meta::Class
20 - some optimizations of the &initialize method
21 since it is called so often by &meta
22
0addec44 23 * Moose::Meta::Class
24 Moose::Meta::Role
25 - now use the get_all_package_symbols from the
26 updated Class::MOP, test suite is now 10 seconds
27 faster
d3308256 28
29 * Moose::Meta::Method::Destructor
bd364604 30 - is_needed can now also be called as a class
31 method for immutablization to check if the
32 destructor object even needs to be created
33 at all
34
35 * Moose::Meta::Method::Destructor
d3308256 36 Moose::Meta::Method::Constructor
37 - added more descriptive error message to help
38 keep people from wasting time tracking an error
39 that is easily fixed by upgrading.
0addec44 40
c998012c 410.45 Saturday, May 24, 2008
1b2aea39 42 * Moose
43 - Because of work in Class::MOP 0.56, all
44 XS based functionality is now optional
45 and a Pure Perl version is supplied
46 - the CLASS_MOP_NO_XS environment variable
47 can now be used to force non-XS versions
48 to always be used
49 - several of the packages have been tweaked
50 to take care of this, mostly we added
51 support for the package_name and name
52 variables in all the Method metaclasses
408f2665 53 - before/around/after method modifiers now
54 support regexp matching of names
55 (thanks to Takatoshi Kitano)
56 - tests added for this
088f372b 57 - NOTE: this only works for classes, it
58 is currently not supported in roles,
59 but, ... patches welcome
b8926b8c 60 - All usage of Carp::confess have been replaced
61 by Carp::croak in the "keyword" functions since
62 the stack trace is usually not helpful
63
64 * Moose::Role
65 - All usage of Carp::confess have been replaced
66 by Carp::croak in the "keyword" functions since
67 the stack trace is usually not helpful
68 - The 'has' keyword for roles now accepts the
69 same array ref form that Moose.pm does
70 (has [qw/foo bar/] => (is => 'rw', ...))
71 - added test for this
72
0b7df53c 73 * Moose::Meta::Attribute
74 - trigger on a ro-attribute is no longer an
75 error, as it's useful to trigger off of the
76 constructor
77
8453c358 78 * Moose::Meta::Class
79 - added same 'add_package_symbol' fix as in
80 Class::MOP 0.56
81
82 * Moose::Util
83 - does_role now handles non-Moose classes
84 more gracefully
85 - added tests for this
408f2665 86 - added the 'add_method_modifier' function
87 (thanks to Takatoshi Kitano)
8453c358 88
a84a89ba 89 * Moose::Util::TypeConstraints
90 - subtypes of parameterizable types now are
91 themselves parameterizable types
92
1b55c340 93 * Moose::Meta::Method::Constructor
94 - fixed bug where trigger was not being
95 called by the inlined immutable
96 constructors
97 - added test for this (thanks to Caelum)
98
99 * Moose::Meta::Role::Application::ToInstance
100 - now uses the metaclass of the instance
101 (if possible) to create the anon-class
102 (thanks Jonathan Rockway)
103
b8926b8c 104 * Moose::Cookbook::Recipe22
105 - added the meta-attribute trait recipe
106 (thanks to Sartak)
107
1b55c340 108 * t/
109 - fixed hash-ordering test bug that was
b8926b8c 110 causing occasional cpantester failures
111 - renamed the t/000_recipe/*.t tests to be
112 more descriptive (thanks to Sartak)
1b55c340 113
3a0c064a 1140.44 Sat. May 10, 2008
c0b37457 115 * Moose
3a0c064a 116 - made make_immutable warning cluck to
ca0e380d 117 show where the error is (thanks mst)
3a0c064a 118
119 * Moose::Object
120 - BUILDALL and DEMOLISHALL now call
121 ->body when looping through the
122 methods, to avoid the overloaded
123 method call.
ca0e380d 124 - fixed issue where DEMOLISHALL was
125 eating the $@ values, and so not
126 working correctly, it still kind of
127 eats them, but so does vanilla perl
128 - added tests for this
3a0c064a 129
ceb8945d 130 * Moose::Cookbook::Recipe7
3a0c064a 131 - added new recipe for immutable
132 functionality (thanks Dave Rolsky)
133
ceb8945d 134 * Moose::Cookbook::Recipe9
3a0c064a 135 - added new recipe for builder and
136 lazy_build (thanks Dave Rolsky)
137
37332f31 138 * Moose::Cookbook::Recipe11
3a0c064a 139 - added new recipe for method aliasing
140 and exclusion with Roles (thanks Dave Rolsky)
141
142 * t/
ca0e380d 143 - fixed Win32 test failure (thanks spicyjack)
ceb8945d 144
1a28289d 145 ~ removed Build.PL and Module::Build compat
146 since Module::Install has done that.
147
27cabcda 1480.43 Wed. April, 30, 2008
cbd141ca 149 * NOTE TO SELF:
150 drink more coffee before
151 doing release engineering
152
153 - whoops, forgot to do the smolder tests,
154 and we broke some of the custom meta-attr
155 modules. This fixes that.
156
c93e8e7d 1570.42 Mon. April 28, 2008
158 - some bad tests slipped by, nothing else
159 changed in this release (cpantesters++)
160
161 - upped the Class::MOP dependency to 0.55
162 since we have tests which need the C3
163 support
164
a5e883ae 1650.41 Mon. April 28, 2008
004222dc 166 ~~ numerous documentation updates ~~
547dda77 167
168 - Changed all usage of die to Carp::croak for better
169 error reporting (initial patch by Tod Hagan)
004222dc 170
c2922d69 171 ** IMPORTANT NOTE **
172 - the make_immutable keyword is now deprecated, don't
173 use it in any new code and please fix your old code
174 as well. There will be 2 releases, and then it will
175 be removed.
176
6c36eeaa 177 * Moose
178 Moose::Role
179 Moose::Meta::Class
180 - refactored the way inner and super work to avoid
181 any method/@ISA cache penalty (nothingmuch)
182
4078709c 183 * Moose::Meta::Class
184 - fixing &new_object to make sure trigger gets the
185 coerced value (spotted by Charles Alderman on the
186 mailing list)
187 - added test for this
188
51c107ef 189 * Moose::Meta::Method::Constructor
190 - immutable classes which had non-lazy attributes were calling
191 the default generating sub twice in the constructor. (bug
192 found by Jesse Luehrs, fixed by Dave Rolsky)
193 - added tests for this (Dave Rolsky)
ae8d63f2 194 - fix typo in initialize_body method (nothingmuch)
195
196 * Moose::Meta::Method::Destructor
197 - fix typo in initialize_body method (nothingmuch)
51c107ef 198
6c36eeaa 199 * Moose::Meta::Method::Overriden
200 Moose::Meta::Method::Augmented
201 - moved the logic for these into their own
202 classes (nothingmuch)
203
5e98d2b6 204 * Moose::Meta::Attribute
aed87761 205 - inherited attributes may now be extended without
2ea379cb 206 restriction on the type ('isa', 'does') (Sartak)
cf12a691 207 - added tests for this (Sartak)
547dda77 208 - when an attribute property is malformed (such as lazy without
209 a default), give the name of the attribute in the error
210 message (Sartak)
88f23977 211 - added the &applied_traits and &has_applied_traits methods
212 to allow introspection of traits
213 - added tests for this
37905a64 214 - moved 'trait' and 'metaclass' argument handling to here from
215 Moose::Meta::Class
216 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
217 '+foo' syntax) (nothingmuch)
218 - added tests for this (t0m)
7c60f730 219
220 * Moose::Object
221 - localize $@ inside DEMOLISHALL to avoid it
222 eating $@ (found by Ernesto)
223 - added test for this (thanks to Ernesto)
cf12a691 224
ae8d63f2 225 * Moose::Util::TypeConstraints
226 - &find_type_constraint now DWIMs when given an
6c36eeaa 227 type constraint object or name (nothingmuch)
37905a64 228 - &find_or_create_type_constraint superseded with a number of more
229 specific functions:
230 - find_or_create_{isa,does}_type_constraint
231 - find_or_parse_type_constraint
ae8d63f2 232
233 * Moose::Meta::TypeConstraint
4078709c 234 Moose::Meta::TypeConstraint::Class
37905a64 235 Moose::Meta::TypeConstraint::Role
4078709c 236 Moose::Meta::TypeConstraint::Enum
237 Moose::Meta::TypeConstraint::Union
238 Moose::Meta::TypeConstraint::Parameterized
239 - added the &equals method for comparing two type
240 constraints (nothingmuch)
241 - added tests for this (nothingmuch)
242
243 * Moose::Meta::TypeConstraint
ae8d63f2 244 - add the &parents method, which is just an alias to &parent.
37905a64 245 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
ae8d63f2 246
247 * Moose::Meta::TypeConstraint::Class
ae8d63f2 248 - added the class attribute for introspection purposes
249 (nothingmuch)
250 - added tests for this
4078709c 251
252 * Moose::Meta::TypeConstraint::Enum
6c36eeaa 253 Moose::Meta::TypeConstraint::Role
37905a64 254 - broke these out into their own classes (nothingmuch)
ae8d63f2 255
256 * Moose::Cookbook::Recipe*
257 - fixed references to test file locations in the POD
258 and updated up some text for new Moose features
37905a64 259 (Sartak)
260
261 * Moose::Util
262 - Added &resolve_metaclass_alias, a helper function for finding an actual
263 class for a short name (e.g. in the traits list)
ae8d63f2 264
52338af5 2650.40 Fri. March 14, 2008
6e2840b7 266 - I hate Pod::Coverage
267
e0328ed4 2680.39 Fri. March 14, 2008
8d62bf6d 269 * Moose
270 - documenting the use of '+name' with attributes
271 that come from recently composed roles. It makes
272 sense, people are using it, and so why not just
273 officially support it.
9c10b5ad 274 - fixing the 'extends' keyword so that it will not
275 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
94075501 276
1321f087 277 * oose
278 - added the perl -Moose=+Class::Name feature to allow
279 monkeypatching of classes in one liners
280
9c10b5ad 281 * Moose::Util
282 - fixing the 'apply_all_roles' keyword so that it will not
283 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
8d62bf6d 284
48045612 285 * Moose::Meta::Class
286 - added ->create method which now supports roles (thanks to jrockway)
287 - added tests for this
6d5cbd2b 288 - added ->create_anon_class which now supports roles and caching of
289 the results (thanks to jrockway)
290 - added tests for this
81c3738f 291 - made ->does_role a little more forgiving when it is
292 checking a Class::MOP era metaclasses.
48045612 293
94075501 294 * Moose::Meta::Role::Application::ToInstance
295 - it is now possible to pass extra params to be used when
296 a role is applied to an the instance (rebless_params)
297 - added tests for this
298
9f4334a1 299 * Moose::Util::TypeConstraints
4ab662d6 300 - class_type now accepts an optional second argument for a
301 custom message. POD anotated accordingly (groditi)
302 - added tests for this
9f4334a1 303 - it is now possible to make anon-enums by passing 'enum' an
304 ARRAY ref instead of the $name => @values. Everything else
305 works as before.
306 - added tests for this
307
8d62bf6d 308 * t/
309 - making test for using '+name' on attributes consumed
310 from a role, it works and makes sense too.
311
80d955e4 312 * Moose::Meta::Attribute
313 - fix handles so that it doesn't return nothing
314 when the method cannot be found, not sure why
f4f3e701 315 it ever did this originally, this means we now
316 have slightly better support for AUTOLOADed
317 objects
318 - added more delegation tests
587e457d 319 - adding ->does method to this so as to better
320 support traits and their introspection.
321 - added tests for this
1a386a6c 322
323 * Moose::Object
324 - localizing the Data::Dumper configurations so
325 that it does not pollute others (RT #33509)
9b1aa0c3 326 - made ->does a little more forgiving when it is
327 passed Class::MOP era metaclasses.
80d955e4 328
3290.38 Fri. Feb. 15, 2008
c3b81505 330 * Moose::Meta::Attribute
331 - fixed initializer to correctly do
332 type checking and coercion in the
333 callback
334 - added tests for this
335
1a740d8a 336 * t/
337 - fixed some finicky tests (thanks to konobi)
338
80d955e4 3390.37 Thurs. Feb. 14, 2008
688fcdda 340 * Moose
341 - fixed some details in Moose::init_meta
342 and its superclass handling (thanks thepler)
343 - added tests for this (thanks thepler)
a28fe77b 344 - 'has' now dies if you don't pass in name
345 value pairs
2a5e59d0 346 - added the 'make_immutable' keyword as a shortcut
9df136d0 347 to make_immutable
688fcdda 348
349 * Moose::Meta::Class
350 Moose::Meta::Method::Constructor
351 Moose::Meta::Attribute
649b9340 352 - making (init_arg => undef) work here too
353 (thanks to nothingmuch)
be771c43 354
355 * Moose::Meta::Attribute
356 Moose::Meta::Method::Constructor
357 Moose::Meta::Method::Accessor
5fec9b97 358 - make lazy attributes respect attr initializers (rjbs)
be771c43 359 - added tests for this
688fcdda 360
361 * Moose::Util::TypeConstraints
362 Moose::Util::TypeConstraints::OptimizedConstraints
c14746bc 363 Moose::Meta::TypeConstraints
688fcdda 364 Moose::Meta::Attribute
365 Moose::Meta::Method::Constructor
366 Moose::Meta::Method::Accessor
649b9340 367 - making type errors use the
368 assigned message (thanks to Sartak)
369 - added tests for this
370
371 * Moose::Meta::Method::Destructor
372 - making sure DESTROY gets inlined properly
373 with successive DEMOLISH calls (thanks to manito)
688fcdda 374
ab76842e 375 * Moose::Meta::Attribute
376 Moose::Meta::Method::Accessor
377 - fixed handling of undef with type constraints
378 (thanks to Ernesto)
379 - added tests for this
c14746bc 380
381 * Moose::Util
382 - added &get_all_init_args and &get_all_attribute_values
383 (thanks to Sartak and nothingmuch)
ab76842e 384
e472c9a5 3850.36 Sat. Jan. 26, 2008
238b424d 386 * Moose::Role
387 Moose::Meta::Attribute
388 - role type tests now support when roles are
389 applied to non-Moose classes (found by ash)
390 - added tests for this (thanks to ash)
e472c9a5 391 - couple extra tests to boost code coverage
238b424d 392
393 * Moose::Meta::Method::Constructor
394 - improved fix for handling Class::MOP attributes
395 - added test for this
396
397 * Moose::Meta::Class
398 - handled the add_attribute($attribute_meta_object)
399 case correctly
400 - added test for this
401
3285fae9 4020.35 Tues. Jan. 22, 2008
45fd4af3 403 * Moose::Meta::Method::Constructor
404 - fix to make sure even Class::MOP attributes
472b7401 405 are handled correctly (Thanks to Dave Rolsky)
c3b35392 406 - added test for this (also Dave Rolsky)
4498537c 407
408 * Moose::Meta::Class
409 - improved error message on _apply_all_roles,
410 you should now use Moose::Util::apply_all_roles
411 and you shouldnt have been using a _ prefixed
412 method in the first place ;)
45fd4af3 413
fe05ce9c 4140.34 Mon. Jan. 21, 2008
778db3ac 415 ~~~ more misc. doc. fixes ~~~
416 ~~ updated copyright dates ~~
9b28d20b 417
418 Moose is now a postmodern object system :)
8bdc7f13 419 - (see the POD for details)
ccf49e80 420
421 * <<Role System Refactoring>>
422 - this release contains a major reworking and
423 cleanup of the role system
9b28d20b 424 - 100% backwards compat.
425 - Role application now restructured into seperate
426 classes based on type of applicants
427 - Role summation (combining of more than one role)
ccf49e80 428 is much cleaner and anon-classes are no longer
9b28d20b 429 used in this process
ccf49e80 430 - new Composite role metaclass
9b28d20b 431 - runtime application of roles to instances
432 is now more efficient and re-uses generated
433 classes when applicable
ccf49e80 434
9b28d20b 435 * <<New Role composition features>>
ccf49e80 436 - methods can now be excluded from a given role
9b28d20b 437 during composition
ccf49e80 438 - methods can now be aliased to another name (and
439 still retain the original as well)
4734114b 440
441 * Moose::Util::TypeConstraints::OptimizedConstraints
442 - added this module (see above)
443
d7d8a8c7 444 * Moose::Meta::Class
445 - fixed the &_process_attribute method to be called
4734114b 446 by &add_attribute, so that the API is now correct
447
e7c06c1e 448 * Moose::Meta::Method::Accessor
4734114b 449 - fixed bug when passing a list of values to
e7c06c1e 450 an accessor would get (incorrectly) ignored.
451 Thanks to Sartak for finding this ;)
452 - added tests for this (Sartak again)
32dd4a95 453
a4e516f6 454 * Moose::Meta::Method::Accessor
455 Moose::Meta::Method::Constructor
28412c0b 456 Moose::Meta::Attribute
ccf49e80 457 Moose::Meta::TypeConstraint
458 Moose::Meta::TypeCoercion
459 - lots of cleanup of such things as:
28412c0b 460 - generated methods
461 - type constraint handling
ccf49e80 462 - error handling/messages
463 (thanks to nothingmuch)
a4e516f6 464
4734114b 465 * Moose::Meta::TypeConstraint::Parameterizable
466 - added this module to support the refactor
467 in Moose::Meta::TypeConstraint::Parameterized
468
469 * Moose::Meta::TypeConstraint::Parameterized
470 - refactored how these types are handled so they
471 are more generic and not confined to ArrayRef
472 and HashRef only
a4e516f6 473
2de7e794 474 * t/
475 - shortened some file names for better VMS support (RT #32381)
476
25374f01 4770.33 Fri. Dec. 14, 2007
32dd4a95 478 !! Moose now loads 2 x faster !!
479 !! with new Class::MOP 0.49 !!
25374f01 480
f7865ec8 481 ++ new oose.pm module to make command line
25374f01 482 Moose-ness easier (see POD docs for more)
4734114b 483
25374f01 484 * Moose::Meta::Class
485 * Moose::Meta::Role
4734114b 486 - several tweaks to take advantage of the
25374f01 487 new method map caching in Class::MOP
488
39aba5c9 489 * Moose::Meta::TypeConstraint::Parameterized
490 - allow subtypes of ArrayRef and HashRef to
acb8a5db 491 be used as a container (sartak)
4734114b 492 - added tests for this
acb8a5db 493 - basic support for coercion to ArrayRef and
494 HashRef for containers (sartak)
4734114b 495 - added tests for this
496
25374f01 497 * Moose::Meta::TypeCoercion
498 - coercions will now create subtypes as needed
499 so you can now add coercions to parameterized
500 types without having to explictly define them
501 - added tests for this
502
ac211120 503 * Moose::Meta::Method::Accessor
504 - allow subclasses to decide whether we need
505 to copy the value into a new variable (sartak)
39aba5c9 506
dc26a424 5070.32 Tues. Dec. 4, 2007
8de73ff1 508 * Moose::Util::TypeConstraints
509 - fixing how subtype aliases of unions work
510 they should inherit the parent's coercion
511 - added tests for this
4734114b 512 - you can now define multiple coercions on
41e007e4 513 a single type at different times instead of
514 having to do it all in one place
515 - added tests for this
4734114b 516
8de73ff1 517 * Moose::Meta::TypeConstraint
518 - there is now a default constraint of sub { 1 }
519 instead of Moose::Util::TypeConstraints setting
520 this for us
521
4734114b 522 * Moose::Meta::TypeCoercion
523 * Moose::Meta::TypeCoercion::Union
524 - added the &has_coercion_for_type and
525 &add_type_coercions methods to support the
41e007e4 526 new features above (although you cannot add
527 more type coercions for Union types)
528
ffcb48b4 5290.31 Mon. Nov. 26, 2007
f3c4e20e 530 * Moose::Meta::Attribute
4734114b 531 - made the +attr syntax handle extending types with
f3c4e20e 532 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
533 now works if the original foo is an ArrayRef.
534 - added tests for this.
535 - delegation now works even if the attribute does not
536 have a reader method using the get_read_method_ref
4734114b 537 method from Class::MOP::Attribute.
f3c4e20e 538 - added tests for this
539 - added docs for this
4734114b 540
f3c4e20e 541 * Moose::Util::TypeConstraints
4734114b 542 - passing no "additional attribute info" to
543 &find_or_create_type_constraint will no longer
544 attempt to create an __ANON__ type for you,
f3c4e20e 545 instead it will just return undef.
546 - added docs for this
547
1edfdf1c 5480.30 Fri. Nov. 23, 2007
ca168e89 549 * Moose::Meta::Method::Constructor
550 -builder related bug in inlined constructor. (groditi)
551
3822d5ee 552 * Moose::Meta::Method::Accessor
553 - genereate unnecessary calls to predicates and refactor
554 code generation for runtime speed (groditi)
555
5d776bdf 556 * Moose::Util::TypeConstraints
0e0709ea 557 - fix ClassName constraint to introspect symbol table (mst)
a0f8153d 558 - added more tests for this (mst)
559 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
560 with work correctly.
561 - added tests for this
5d776bdf 562
1edfdf1c 563 * Moose::Cookbook
564 - adding the link to Recipie 11 (written by Sartak)
565 - adding test for SYNOPSIS code
566
4734114b 567 * t/
ca168e89 568 - New tests for builder bug. Upon instantiation, if an
569 attribute had a builder, no value and was not lazy the
570 builder default was not getting run, oops. (groditi)
571
b97b9655 5720.29 Tues. Nov. 13, 2007
0b26305c 573 * Moose::Meta::Attribute
5d776bdf 574 - Fix error message on missing builder method (groditi)
0b26305c 575
576 * Moose::Meta::Method::Accessor
5d776bdf 577 - Fix error message on missing builder method (groditi)
0b26305c 578
4734114b 579 * t/
5d776bdf 580 - Add test to check for the correct error message when
581 builder method is missing (groditi)
0b26305c 582
98c4c382 5830.28 Tues. Nov. 13, 2007
4734114b 584 - 0.27 packaged incorrectly (groditi)
98c4c382 585
e134cd19 5860.27 Tues. Nov. 13, 2007
26fbace8 587 * Moose::Meta::Attribute
588 - Added support for the new builder option (groditi)
6af1a927 589 - Added support for lazy_build option (groditi)
1ed0b94f 590 - Changed slot initialization for predicate changes (groditi)
26fbace8 591
592 * Moose::Meta::Method::Accessor
6af1a927 593 - Added support for lazy_build option (groditi)
4734114b 594 - Fix inline methods to work with corrected predicate
28669f89 595 behavior (groditi)
26fbace8 596
7a5b07b3 597 * Moose::Meta::Method::Constructor
598 - Added support for lazy_build option (groditi)
599
26fbace8 600 * t/
28669f89 601 - tests for builder and lazy_build (groditi)
26fbace8 602
4734114b 603 * fixing some misc. bits in the docs that
28669f89 604 got mentioned on CPAN Forum & perlmonks
4734114b 605
e7f8d0c2 606 * Moose::Meta::Role
4734114b 607 - fixed how required methods are handled
e7f8d0c2 608 when they encounter overriden or modified
609 methods from a class (thanks to confound).
610 - added tests for this
5af6a16d 611
3796382a 612 * Moose::Util::TypeConstraint
4734114b 613 - fixed the type notation parser so that
614 the | always creates a union and so is
615 no longer a valid type char (thanks to
616 konobi, mugwump and #moose for working
3796382a 617 this one out.)
618 - added more tests for this
619
77a18c28 6200.26 Thurs. Sept. 27, 2007
621 == New Features ==
4734114b 622
77a18c28 623 * Parameterized Types
4734114b 624 We now support parameterized collection types, such as:
77a18c28 625 ArrayRef[Int] # array or integers
626 HashRef[Object] # a hash with object values
627 They can also be nested:
628 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
629 And work with the type unions as well:
630 ArrayRef[Int | Str] # array of integers of strings
4734114b 631
77a18c28 632 * Better Framework Extendability
4734114b 633 Moose.pm is now "extendable" such that it is now much
634 easier to extend the framework and add your own keywords
77a18c28 635 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
636 section of the Moose.pm docs.
4734114b 637
77a18c28 638 * Moose Snacks!
4734114b 639 In an effort to begin documenting some of the various
640 details of Moose as well as some common idioms, we have
641 created Moose::Cookbook::Snacks as a place to find
77a18c28 642 small (easily digestable) nuggets of Moose code.
4734114b 643
77a18c28 644 ====
fb697a87 645 ~ Several doc updates/cleanup thanks to castaway ~
4734114b 646
647 - converted build system to use Module::Install instead of
e46f5cc2 648 Module::Build (thanks to jrockway)
fb697a87 649
d67145ed 650 * Moose
4734114b 651 - added all the meta classes to the immutable list and
d67145ed 652 set it to inline the accessors
4734114b 653 - fix import to allow Sub::Exporter like { into => }
e59a5c29 654 and { into_level => } (perigrin)
4734114b 655 - exposed and documented init_meta() to allow better
e59a5c29 656 embedding and extending of Moose (perigrin)
4734114b 657
e59a5c29 658 * t/
659 - complete re-organization of the test suite
4734114b 660 - added some new tests as well
77a18c28 661 - finally re-enabled the Moose::POOP test since
662 the new version of DBM::Deep now works again
663 (thanks rob)
b468a3d3 664
665 * Moose::Meta::Class
4734114b 666 - fixed very odd and very nasty recursion bug with
b468a3d3 667 inner/augment (mst)
668 - added tests for this (eilara)
d67145ed 669
3726f905 670 * Moose::Meta::Attribute
671 Moose::Meta::Method::Constructor
672 Moose::Meta::Method::Accessor
4734114b 673 - fixed issue with overload::Overloaded getting called
f1917f58 674 on non-blessed items. (RT #29269)
3726f905 675 - added tests for this
4734114b 676
3ccdc84a 677 * Moose::Meta::Method::Accessor
4734114b 678 - fixed issue with generated accessor code making
3ccdc84a 679 assumptions about hash based classes (thanks to dexter)
4734114b 680
3726f905 681 * Moose::Coookbook::Snacks
4734114b 682 - these are bits of documentation, not quite as big as
683 Recipes but which have no clear place in the module docs.
3726f905 684 So they are Snacks! (horray for castaway++)
685
07cde929 686 * Moose::Cookbook::Recipe4
687 - updated it to use the new ArrayRef[MyType] construct
688 - updated the accompanying test as well
689
3726f905 690 +++ Major Refactor of the Type Constraint system +++
691 +++ with new features added as well +++
692
22aed3c0 693 * Moose::Util::TypeConstraint
4734114b 694 - no longer uses package variable to keep track of
22aed3c0 695 the type constraints, now uses the an instance of
696 Moose::Meta::TypeConstraint::Registry to do it
f1917f58 697 - added more sophisticated type notation parsing
698 (thanks to mugwump)
699 - added tests for this
22aed3c0 700
d67145ed 701 * Moose::Meta::TypeConstraint
702 - some minor adjustments to make subclassing easier
4734114b 703 - added the package_defined_in attribute so that we
22aed3c0 704 can track where the type constraints are created
4734114b 705
d67145ed 706 * Moose::Meta::TypeConstraint::Union
4734114b 707 - this is now been refactored to be a subclass of
3726f905 708 Moose::Meta::TypeConstraint
4734114b 709
3726f905 710 * Moose::Meta::TypeCoercion::Union
711 - this has been added to service the newly refactored
4734114b 712 Moose::Meta::TypeConstraint::Union and is itself
3726f905 713 a subclass of Moose::Meta::TypeCoercion
4734114b 714
0fbd4b0a 715 * Moose::Meta::TypeConstraint::Parameterized
d67145ed 716 - added this module (taken from MooseX::AttributeHelpers)
717 to help construct nested collection types
718 - added tests for this
4734114b 719
22aed3c0 720 * Moose::Meta::TypeConstraint::Registry
721 - added this class to keep track of type constraints
d67145ed 722
887169d7 7230.25 Mon. Aug. 13, 2007
8eca434b 724 * Moose
4734114b 725 - Documentation update to reference Moose::Util::TypeConstraints
726 under 'isa' in 'has' for how to define a new type
8eca434b 727 (thanks to shlomif).
728
ab859145 729 * Moose::Meta::Attribute
4734114b 730 - required attributes now will no longer accept undef
ab859145 731 from the constructor, even if there is a default and lazy
732 - added tests for this
4734114b 733 - default subroutines must return a value which passes the
7a5ebc40 734 type constraint
735 - added tests for this
4734114b 736
a909a4df 737 * Moose::Meta::Attribute
738 * Moose::Meta::Method::Constructor
4734114b 739 * Moose::Meta::Method::Accessor
a909a4df 740 - type-constraint tests now handle overloaded objects correctly
741 in the error message
4734114b 742 - added tests for this (thanks to EvanCarroll)
ab859145 743
8eca434b 744 * Moose::Meta::TypeConstraint::Union
4734114b 745 - added (has_)hand_optimized_constraint to this class so that
8eca434b 746 it behaves as the regular Moose::Meta::TypeConstraint does.
747
5868294f 748 * Moose::Meta::Role
887169d7 749 - large refactoring of this code
4734114b 750 - added several more tests
751 - tests for subtle conflict resolition issues
7125b244 752 added, but not currently running
753 (thanks to kolibre)
754
4734114b 755 * Moose::Cookbook::Recipe7
756 - added new recipe for augment/inner functionality
887169d7 757 (still in progress)
7125b244 758 - added test for this
5868294f 759
24a8fe99 760 * Moose::Spec::Role
7125b244 761 - a formal definition of roles (still in progress)
24a8fe99 762
9a641848 763 * Moose::Util
887169d7 764 - utilities for easier working with Moose classes
7125b244 765 - added tests for these
9a641848 766
767 * Test::Moose
887169d7 768 - This contains Moose specific test functions
7125b244 769 - added tests for these
9a641848 770
6b4c1bdd 7710.24 Tues. July 3, 2007
772 ~ Some doc updates/cleanup ~
c84f324f 773
774 * Moose::Meta::Attribute
4734114b 775 - added support for roles to be given as parameters
c84f324f 776 to the 'handles' option.
777 - added tests and docs for this
4734114b 778 - the has '+foo' attribute form now accepts changes to
83cc9094 779 the lazy option, and the addition of a handles option
780 (but not changing the handles option)
781 - added tests and docs for this
c84f324f 782
1db8ecc7 783 * Moose::Meta::Role
784 - required methods are now fetched using find_method_by_name
785 so that required methods can come from superclasses
786 - adjusted tests for this
787
81941e9b 7880.23 Mon. June 18, 2007
73b84d2e 789 * Moose::Meta::Method::Constructor
790 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
ac2dc464 791 * Moose::Meta::Class
792 - Modify make_immutable to work with the new Class::MOP immutable
793 mechanism + POD + very basic test (groditi)
cbe25729 794 * Moose::Meta::Attribute
4734114b 795 - Fix handles to use goto() so that caller() comes out properly on
cbe25729 796 the other side (perigrin)
ac2dc464 797
db53853c 7980.22 Thurs. May 31, 2007
3969267d 799 * Moose::Util::TypeConstraints
4734114b 800 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
db53853c 801 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
802 prototypes for functions
4734114b 803 - added the ClassName type constraint, this checks for strings
804 which will respond true to ->isa(UNIVERSAL).
9af1d28b 805 - added tests and docs for this
4734114b 806 - subtyping just in name now works correctly by making the
86629f93 807 default for where be { 1 }
4734114b 808 - added test for this
3969267d 809
d7611a4a 810 * Moose::Meta::Method::Accessor
4734114b 811 - coerce and lazy now work together correctly, thanks to
d7611a4a 812 merlyn for finding this bug
813 - tests added for this
df492bba 814 - fix reader presedence bug in Moose::Meta::Attribute + tests
d7611a4a 815
86629f93 816 * Moose::Object
817 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
4734114b 818 a HASH-ref and missed. This produces better error messages then
86629f93 819 having it die cause undef is not a HASH.
820 - added tests for this
821
74a0a945 8220.21 Thursday, May 2nd, 2007
52c7c330 823 * Moose
824 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
825 - modified unimport to remove super and inner along with the rest
826 - altered unimport tests to handle this
827
828 * Moose::Role
829 - altered super export to populate SUPER_SLOT
830
831 * Moose::Meta::Class
832 - altered augment and override modifier application to use *_SLOT
833 - modified tests for these to unimport one test class each to test
834
492d4d76 835 * Moose::Meta::Role
836 - fixed issue where custom attribute metaclasses
837 where not handled correctly in roles
838 - added tests for this
4734114b 839
5cb193ed 840 * Moose::Meta::Class
4734114b 841 - fixed issue where extending metaclasses with
5cb193ed 842 roles would blow up. Thanks to Aankhen`` for
843 finding this insidious error, and it's solution.
4734114b 844
845 ~~ lots of spelling and grammer fixes in the docs,
0305961b 846 many many thanks to rlb3 and Aankhen for these :)
492d4d76 847
e518dfb4 8480.20 Friday, April 6th, 2007
a60285b3 849 >> I messed up the SKIP logic in one test
850 so this release is just to fix that.
851
93c435b3 852 * Moose
853 - 'has' now also accepts an ARRAY ref
854 to create multiple attrs (see docs)
855 (thanks to konobi for this)
4734114b 856 - added tests and docs
93c435b3 857
cd7eeaf5 8580.19 Thurs. April 5th, 2007
859 ~~ More documentation updates ~~
860
c899258b 861 * Moose::Util::TypeConstraints
c1935ade 862 - 'type' now supports messages as well
ddbdc0cb 863 thanks to phaylon for finding this
c899258b 864 - added tests for this
4734114b 865 - added &list_all_type_constraints and
c1935ade 866 &list_all_builtin_type_constraints
943596a6 867 functions to facilitate introspection.
4734114b 868
d022f632 869 * Moose::Meta::Attribute
4734114b 870 - fixed regexp 'handles' declarations
d022f632 871 to build the list of delegated methods
4734114b 872 correctly (and not override important
873 things like &new) thanks to ashleyb
ddbdc0cb 874 for finding this
875 - added tests and docs for this
c1935ade 876 - added the 'documentation' attributes
4734114b 877 so that you can actually document your
878 attributes and inspect them through the
ddbdc0cb 879 meta-object.
d022f632 880 - added tests and docs for this
881
c1935ade 882 * Moose::Meta::Class
883 - when loading custom attribute metaclasses
4734114b 884 it will first look in for the class in the
885 Moose::Meta::Attribute::Custom::$name, and
c1935ade 886 then default to just loading $name.
887 - added tests and docs for this
888
900466d6 889 * Moose::Meta::TypeConstraint
890 - type constraints now stringify to their names.
891 - added test for this
892
d022f632 893 * misc.
4734114b 894 - added tests to assure we work with Module::Refresh
895 - added stricter test skip logic in the Moose POOP
ddbdc0cb 896 test, ask Rob Kinyon why.
897 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
c899258b 898
af5199c6 8990.18 Sat. March 10, 2007
900 ~~ Many, many documentation updates ~~
ddbdc0cb 901
902 * misc.
4734114b 903 - We now use Class::MOP::load_class to
904 load all classes.
905 - added tests to show types and subtypes
ddbdc0cb 906 working with Declare::Constraints::Simple
907 and Test::Deep as constraint engines.
b77fdbed 908
587ae0d2 9090.18_001
d01f1dab 910 !! You must have Class::MOP 0.37_001 !!
911 !! for this developer release to work !!
912
734d1752 913 This release was primarily adding the immutable
4734114b 914 feature to Moose. An immutable class is one which
915 you promise not to alter. When you set the class
916 as immutable it will perform various bits of
734d1752 917 memoization and inline certain part of the code
4734114b 918 (constructors, destructors and accessors). This
734d1752 919 minimizes (and in some cases totally eliminates)
4734114b 920 one of Moose's biggest performance hits. This
734d1752 921 feature is not on by default, and is 100% optional.
4734114b 922 It has several configurable bits as well, so you
734d1752 923 can pick and choose to your specific needs.
4734114b 924
925 The changes involved in this were fairly wide and
926 highly specific, but 100% backwards compatible, so
927 I am not going to enumerate them here. If you are
928 truely interested in what was changed, please do
734d1752 929 a diff :)
587ae0d2 930
9310.17 Tues. Nov. 14, 2006
932 * Moose::Meta::Method::Accessor
4734114b 933 - bugfix for read-only accessors which
587ae0d2 934 are have a type constraint and lazy.
935 Thanks to chansen for finding it.
936
9370.16 Tues. Nov. 14, 2006
938 ++ NOTE ++
4734114b 939 There are some speed improvements in this release,
587ae0d2 940 but they are only the begining, so stay tuned.
4734114b 941
587ae0d2 942 * Moose::Object
4734114b 943 - BUILDALL and DEMOLISHALL no longer get
587ae0d2 944 called unless they actually need to be.
945 This gave us a signifigant speed boost
4734114b 946 for the cases when there is no BUILD or
587ae0d2 947 DEMOLISH method present.
4734114b 948
587ae0d2 949 * Moose::Util::TypeConstraints
950 * Moose::Meta::TypeConstraint
4734114b 951 - added an 'optimize_as' option to the
587ae0d2 952 type constraint, which allows for a
4734114b 953 hand optimized version of the type
587ae0d2 954 constraint to be used when possible.
955 - Any internally created type constraints
956 now provide an optimized version as well.
957
ecb59493 9580.15 Sun. Nov. 5, 2006
946289d1 959 ++ NOTE ++
4734114b 960 This version of Moose *must* have Class::MOP 0.36 in order
961 to work correctly. A number of small internal tweaks have
946289d1 962 been made in order to be compatible with that release.
571dd39f 963
964 * Moose::Util::TypeConstraints
4734114b 965 - added &unimport so that you can clean out
966 your class namespace of these exported
571dd39f 967 keywords
4734114b 968
37ee30c9 969 * Moose::Meta::Class
4734114b 970 - fixed minor issue which occasionally
971 comes up during global destruction
37ee30c9 972 (thanks omega)
4734114b 973 - moved Moose::Meta::Method::Overriden into
946289d1 974 its own file.
4734114b 975
976 * Moose::Meta::Role
977 - moved Moose::Meta::Role::Method into
946289d1 978 its own file.
4734114b 979
43123819 980 * Moose::Meta::Attribute
4734114b 981 - changed how we do type checks so that
982 we reduce the overall cost, but still
7623f774 983 retain correctness.
946289d1 984 *** API CHANGE ***
4734114b 985 - moved accessor generation methods to
986 Moose::Meta::Method::Accessor to
987 conform to the API changes from
946289d1 988 Class::MOP 0.36
4734114b 989
43123819 990 * Moose::Meta::TypeConstraint
991 - changed how constraints are compiled
992 so that we do less recursion and more
4734114b 993 iteration. This makes the type check
43123819 994 faster :)
946289d1 995 - moved Moose::Meta::TypeConstraint::Union
996 into its own file
4734114b 997
946289d1 998 * Moose::Meta::Method::Accessor
4734114b 999 - created this from methods formerly found in
946289d1 1000 Moose::Meta::Attribute
4734114b 1001
946289d1 1002 * Moose::Meta::Role::Method
1003 - moved this from Moose::Meta::Role
4734114b 1004
946289d1 1005 * Moose::Meta::Method::Overriden
1006 - moved this from Moose::Meta::Class
4734114b 1007
946289d1 1008 * Moose::Meta::TypeConstraint::Union
1009 - moved this from Moose::Meta::TypeConstraint
37ee30c9 1010
3ec7b7a3 10110.14 Mon. Oct. 9, 2006
4fd69d6c 1012
1013 * Moose::Meta::Attribute
4734114b 1014 - fixed lazy attributes which were not getting
4fd69d6c 1015 checked with the type constraint (thanks ashley)
1016 - added tests for this
4734114b 1017 - removed the over-enthusiastic DWIMery of the
1018 automatic ArrayRef and HashRef defaults, it
3ec7b7a3 1019 broke predicates in an ugly way.
1020 - removed tests for this
4fd69d6c 1021
c0c41f76 10220.13 Sat. Sept. 30, 2006
093b12c2 1023 ++ NOTE ++
4734114b 1024 This version of Moose *must* have Class::MOP 0.35 in order
1025 to work correctly. A number of small internal tweaks have
093b12c2 1026 been made in order to be compatible with that release.
1027
3c2bc5e2 1028 * Moose
1029 - Removed the use of UNIVERSAL::require to be a better
4734114b 1030 symbol table citizen and remove a dependency
093b12c2 1031 (thanks Adam Kennedy)
3c2bc5e2 1032
2a0f3bd3 1033 **~~ removed experimental & undocumented feature ~~**
4734114b 1034 - commented out the 'method' and 'self' keywords, see the
2a0f3bd3 1035 comments for more info.
1036
e95c7c42 1037 * Moose::Cookbook
4734114b 1038 - added a FAQ and WTF files to document frequently
e95c7c42 1039 asked questions and common problems
4734114b 1040
3f7376b0 1041 * Moose::Util::TypeConstraints
0a5bd159 1042 - added GlobRef and FileHandle type constraint
3f7376b0 1043 - added tests for this
4734114b 1044
3f7376b0 1045 * Moose::Meta::Attribute
1046 - if your attribute 'isa' ArrayRef of HashRef, and you have
1047 not explicitly set a default, then make the default DWIM.
4734114b 1048 This will also work for subtypes of ArrayRef and HashRef
94b8bbb8 1049 as well.
1050 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1051 - new test added for this (thanks to ashley)
4734114b 1052
b805c70c 1053 * Moose::Meta::Role
1054 - added basic support for runtime role composition
4734114b 1055 but this is still *highly experimental*, so feedback
0a5bd159 1056 is much appreciated :)
b805c70c 1057 - added tests for this
e95c7c42 1058
0a5bd159 1059 * Moose::Meta::TypeConstraint
1060 - the type constraint now handles the coercion process
4734114b 1061 through delegation, this is to support the coercion
0a5bd159 1062 of unions
4734114b 1063
0a5bd159 1064 * Moose::Meta::TypeConstraint::Union
4734114b 1065 - it is now possible for coercions to be performed
0a5bd159 1066 on a type union
1067 - added tests for this (thanks to konobi)
1068
e95c7c42 1069 * Moose::Meta::TypeCoercion
4734114b 1070 - properly capturing error when type constraint
e95c7c42 1071 is not found
1072
3c2bc5e2 1073 * Build.PL
1074 - Scalar::Util 1.18 is bad on Win32, so temporarily
1075 only require version 1.17 for Win32 and cygwin.
4734114b 1076 (thanks Adam Kennedy)
3c2bc5e2 1077
40e89659 10780.12 Sat. Sept. 1, 2006
2bdd01cd 1079 * Moose::Cookbook
1080 - Recipe5 (subtypes & coercion) has been written
4734114b 1081
2bdd01cd 1082 * Moose
4734114b 1083 - fixed "bad meta" error message to be more descriptive
1084 - fixed &unimport to not remove the &inner and &super
3279ab4a 1085 keywords because we need to localize them.
68efb014 1086 - fixed number of spelling/grammer issues, thanks Theory :)
4734114b 1087
0558683c 1088 **~~ experimental & undocumented feature ~~**
4734114b 1089 - added the method and self keywords, they are basically
68efb014 1090 just sugar, and they may not stay around.
4734114b 1091
f742dfef 1092 * Moose::Object
4734114b 1093 - added &dump method to easily Data::Dumper
68efb014 1094 an object
4734114b 1095
b26e162e 1096 * Moose::Meta::TypeConstraint
1097 - added the &is_a_type_of method to check both the current
1098 and the subtype of a method (similar to &isa with classes)
f008ac1f 1099
68efb014 1100 * Moose::Meta::Role
1101 - this is now a subclass of Class::MOP::Module, and no longer
4734114b 1102 creates the _role_meta ugliness of before.
68efb014 1103 - fixed tests to reflect this change
4734114b 1104
8c835eba 11050.11 Wed. July 12, 2006
31f8ec72 1106 * Moose
1107 - added an &unimport method to remove all the keywords
4734114b 1108 that Moose will import, simply add 'no Moose' to the
1109 bottom of your class file.
1110
31f8ec72 1111 * t/
4734114b 1112 - fixed some test failures caused by a forgotten test
31f8ec72 1113 dependency.
1114
864cd714 11150.10 Thurs. July 6, 2006
01a8e221 1116 * Moose
1117 - improved error message when loading modules so
1118 it is less confusing when you load a role.
4734114b 1119 - added &calculate_all_roles method to
2b14ac61 1120 Moose::Meta::Class and Moose::Meta::Role
4734114b 1121
2b14ac61 1122 NOTE:
1123 This module has been tested against Class::MOP 0.30
4734114b 1124 but it does not yet utilize the optimizations
2b14ac61 1125 it makes available. Stay tuned for that ;)
4734114b 1126
2b14ac61 11270.09_03 Fri. June 23, 2006
715ea0b7 1128 ++ DEVELOPER RELEASE ++
4276ccb4 1129 * Moose
1130 - 'use strict' and 'use warnings' are no longer
4734114b 1131 needed in Moose classes, Moose itself will
4276ccb4 1132 turn them on for you.
1133 - added tests for this
1341f10c 1134 - moved code from exported subs to private methods
1135 in Moose::Meta::Class
4734114b 1136
4276ccb4 1137 * Moose::Role
4734114b 1138 - as with Moose, strict and warnings are
4276ccb4 1139 automatically turned on for you.
4734114b 1140 - added tests for this
1141
e39d707f 1142 * Moose::Meta::Role
1143 - now handles an edge case for override errors
1144 - added tests for this
b7f2d25b 1145 - added some more edge case tests
1341f10c 1146
43d599e5 11470.09_02 Tues. May 16, 2006
715ea0b7 1148 ++ DEVELOPER RELEASE ++
2c0cbef7 1149 * Moose
1150 - added prototypes to the exported subs
43d599e5 1151 - updated docs
4734114b 1152
2c0cbef7 1153 * Moose::Role
4734114b 1154 - added prototypes to the exported subs
43d599e5 1155 - updated docs
4734114b 1156
2c0cbef7 1157 * Moose::Util::TypeConstraints
4734114b 1158 - cleaned up prototypes for the subs
1159 - updated docs
2c0cbef7 1160
72c4f6d1 11610.09_01 Fri. May 12, 2006
1162 ++ DEVELOPER RELEASE ++
4734114b 1163 - This release works in combination with
1164 Class::MOP 0.29_01, it is a developer
1165 release because it uses the a new
72c4f6d1 1166 instance sub-protocol and a fairly
4734114b 1167 complete Role implementation. It has
72c4f6d1 1168 not yet been optimized, so it slower
4734114b 1169 the the previous CPAN version. This
1170 release also lacks good updated docs,
72c4f6d1 1171 the official release will have updated docs.
1172
4734114b 1173 * Moose
98aae381 1174 - refactored the keyword exports
4734114b 1175 - 'with' now checks Role validaity and
db1ab48d 1176 accepts more than one Role at a time
4734114b 1177 - 'extends' makes metaclass adjustments as
98aae381 1178 needed to ensure metaclass compatability
4734114b 1179
72c4f6d1 1180 * Moose::Role
1181 - refactored the keyword exports
4734114b 1182 - 'with' now checks Role validaity and
72c4f6d1 1183 accepts more than one Role at a time
4734114b 1184
98aae381 1185 * Moose::Util::TypeConstraints
4734114b 1186 - added the 'enum' keyword for simple
1187 string enumerations which can be used as
98aae381 1188 type constraints
db1ab48d 1189 - see example of usage in t/202_example.t
4734114b 1190
98aae381 1191 * Moose::Object
1192 - more careful checking of params to new()
4734114b 1193
72c4f6d1 1194 * Moose::Meta::Role
1195 - much work done on the role composition
4734114b 1196 - many new tests for conflict detection
72c4f6d1 1197 and composition edge cases
4734114b 1198 - not enough documentation, I suggest
1199 looking at the tests
1200
98aae381 1201 * Moose::Meta::Instance
4734114b 1202 - added new Instance metaclass to support
98aae381 1203 the new Class::MOP instance protocol
4734114b 1204
98aae381 1205 * Moose::Meta::Class
4734114b 1206 - some small changes to support the new
98aae381 1207 instance protocol
72c4f6d1 1208 - some small additions to support Roles
4734114b 1209
98aae381 1210 * Moose::Meta::Attribute
1211 - some improvements to the accessor generation code
1212 by nothingmuch
4734114b 1213 - some small changes to support the new
98aae381 1214 instance protocol
4734114b 1215 - (still somewhat) experimental delegation support
98aae381 1216 with the 'handles' option
1217 - added several tests for this
db1ab48d 1218 - no docs for this yet
98aae381 1219
35c8b8f2 12200.05 Thurs. April 27, 2006
2d562421 1221 * Moose
1222 - keywords are now exported with Sub::Exporter
1223 thanks to chansen for this commit
4734114b 1224 - has keyword now takes a 'metaclass' option
1225 to support custom attribute meta-classes
590868a3 1226 on a per-attribute basis
4734114b 1227 - added tests for this
daea75c9 1228 - the 'has' keyword not accepts inherited slot
4734114b 1229 specifications (has '+foo'). This is still an
daea75c9 1230 experimental feature and probably not finished
4734114b 1231 see t/038_attribute_inherited_slot_specs.t for
daea75c9 1232 more details, or ask about it on #moose
fcb7afc2 1233 - added tests for this
4734114b 1234
2d562421 1235 * Moose::Role
1236 - keywords are now exported with Sub::Exporter
1237
5204cd52 1238 * Moose::Utils::TypeConstraints
cce8198b 1239 - reorganized the type constraint hierarchy, thanks
4734114b 1240 to nothingmuch and chansen for his help and advice
cce8198b 1241 on this
1242 - added some tests for this
7eaef7ad 1243 - keywords are now exported with Sub::Exporter
35c8b8f2 1244 thanks to chansen for this commit
5204cd52 1245
d500266f 1246 * Moose::Meta::Class
1247 - due to changes in Class::MOP, we had to change
1248 construct_instance (for the better)
4734114b 1249
d500266f 1250 * Moose::Meta::Attribute
4734114b 1251 - due to changes in Class::MOP, we had to add the
d500266f 1252 initialize_instance_slot method (it's a good thing)
4734114b 1253
cce8198b 1254 * Moose::Meta::TypeConstraint
4734114b 1255 - added type constraint unions
c07af9d2 1256 - added tests for this
cce8198b 1257 - added the is_subtype_of predicate method
1258 - added tests for this
d500266f 1259
02a0fb52 12600.04 Sun. April 16th, 2006
1331430a 1261 * Moose::Role
1262 - Roles can now consume other roles
1263 - added tests for this
4734114b 1264 - Roles can specify required methods now with
1331430a 1265 the requires() keyword
1266 - added tests for this
1267
bdabd620 1268 * Moose::Meta::Role
1269 - ripped out much of it's guts ,.. much cleaner now
4734114b 1270 - added required methods and correct handling of
fa1be058 1271 them in apply() for both classes and roles
1272 - added tests for this
4734114b 1273 - no longer adds a does() method to consuming classes
1331430a 1274 it relys on the one in Moose::Object
4734114b 1275 - added roles attribute and some methods to support
1331430a 1276 roles consuming roles
8c9d74e7 1277
1278 * Moose::Meta::Attribute
1279 - added support for triggers on attributes
1280 - added tests for this
4734114b 1281 - added support for does option on an attribute
02a0fb52 1282 - added tests for this
4734114b 1283
8c9d74e7 1284 * Moose::Meta::Class
4734114b 1285 - added support for attribute triggers in the
8c9d74e7 1286 object construction
1287 - added tests for this
4734114b 1288
256903b6 1289 * Moose
4734114b 1290 - Moose no longer creates a subtype for your class
1291 if a subtype of the same name already exists, this
256903b6 1292 should DWIM in 99.9999% of all cases
4734114b 1293
256903b6 1294 * Moose::Util::TypeConstraints
4734114b 1295 - fixed bug where incorrect subtype conflicts were
256903b6 1296 being reported
8c9d74e7 1297 - added test for this
4734114b 1298
8c9d74e7 1299 * Moose::Object
1300 - this class can now be extended with 'use base' if
1301 you need it, it properly loads the metaclass class now
1302 - added test for this
bdabd620 1303
0677220d 13040.03_02 Wed. April 12, 2006
05d9eaf6 1305 * Moose
1306 - you must now explictly use Moose::Util::TypeConstraints
1307 it no longer gets exported for you automatically
4734114b 1308
05d9eaf6 1309 * Moose::Object
1310 - new() now accepts hash-refs as well as key/value lists
0677220d 1311 - added does() method to check for Roles
1312 - added tests for this
05d9eaf6 1313
0677220d 1314 * Moose::Meta::Class
4734114b 1315 - added roles attribute along with the add_role() and
0677220d 1316 does_role() methods
4734114b 1317 - added tests for this
0677220d 1318
1319 * Moose::Meta::Role
4734114b 1320 - now adds a does() method to consuming classes
0677220d 1321 which tests the class's hierarchy for roles
1322 - added tests for this
1323
13240.03_01 Mon. April 10, 2006
e9ec68d6 1325 * Moose::Cookbook
76d37e5a 1326 - added new Role recipe (no content yet, only code)
4734114b 1327
e9ec68d6 1328 * Moose
1329 - added 'with' keyword for Role support
1330 - added test and docs for this
1331 - fixed subtype quoting bug
4734114b 1332 - added test for this
e9ec68d6 1333
1334 * Moose::Role
1335 - Roles for Moose
1336 - added test and docs
76d37e5a 1337
1338 * Moose::Util::TypeConstraints
1339 - added the message keyword to add custom
4734114b 1340 error messages to type constraints
1341
e9ec68d6 1342 * Moose::Meta::Role
1343 - the meta role to support Moose::Role
1344 - added tests and docs
4734114b 1345
e9ec68d6 1346 * Moose::Meta::Class
4734114b 1347 - moved a number of things from Moose.pm
1348 to here, they should have been here
e9ec68d6 1349 in the first place
1350
1351 * Moose::Meta::Attribute
1352 - moved the attribute option macros here
1353 instead of putting them in Moose.pm
e185c027 1354
76d37e5a 1355 * Moose::Meta::TypeConstraint
4734114b 1356 - added the message attributes and the
76d37e5a 1357 validate method
1358 - added tests and docs for this
1359
0ac928d2 13600.03 Thurs. March 30, 2006
e9bb8a31 1361 * Moose::Cookbook
4734114b 1362 - added the Moose::Cookbook with 5 recipes,
e9bb8a31 1363 describing all the stuff Moose can do.
1364
d7f17ebb 1365 * Moose
1366 - fixed an issue with &extends super class loading
4734114b 1367 it now captures errors and deals with inline
1368 packages correctly (bug found by mst, solution
d7f17ebb 1369 stolen from alias)
159da176 1370 - added super/override & inner/augment features
1371 - added tests and docs for these
4734114b 1372
d7f17ebb 1373 * Moose::Object
4734114b 1374 - BUILDALL now takes a reference of the %params
1375 that are passed to &new, and passes that to
d7f17ebb 1376 each BUILD as well.
4734114b 1377
471c4f09 1378 * Moose::Util::TypeConstraints
1379 - Type constraints now survive runtime reloading
1380 - added test for this
d7f17ebb 1381
8339fae2 1382 * Moose::Meta::Class
4734114b 1383 - fixed the way attribute defaults are handled
8339fae2 1384 during instance construction (bug found by chansen)
1385
d7f17ebb 1386 * Moose::Meta::Attribute
1387 - read-only attributes now actually enforce their
4734114b 1388 read-only-ness (this corrected in Class::MOP as
9deed647 1389 well)
d7f17ebb 1390
076c81ed 13910.02 Tues. March 21, 2006
fc5609d2 1392 * Moose
4734114b 1393 - many more tests, fixing some bugs and
b841b2a3 1394 edge cases
b841b2a3 1395 - &extends now loads the base module with
4734114b 1396 UNIVERSAL::require
1397 - added UNIVERSAL::require to the
b841b2a3 1398 dependencies list
6ba6d68c 1399 ** API CHANGES **
4734114b 1400 - each new Moose class will also create
1401 and register a subtype of Object which
1402 correspond to the new Moose class.
1403 - the 'isa' option in &has now only
1404 accepts strings, and will DWIM in
b841b2a3 1405 almost all cases
4734114b 1406
b841b2a3 1407 * Moose::Util::TypeConstraints
1408 - added type coercion features
1409 - added tests for this
4734114b 1410 - added support for this in attributes
b841b2a3 1411 and instance construction
6ba6d68c 1412 ** API CHANGES **
4734114b 1413 - type construction no longer creates a
b841b2a3 1414 function, it registers the type instead.
4734114b 1415 - added several functions to get the
1416 registered types
6ba6d68c 1417
1418 * Moose::Object
4734114b 1419 - BUILDALL and DEMOLISHALL were broken
6ba6d68c 1420 because of a mis-named hash key, Whoops :)
4734114b 1421
b841b2a3 1422 * Moose::Meta::Attribute
1423 - adding support for coercion in the
1424 autogenerated accessors
4734114b 1425
b841b2a3 1426 * Moose::Meta::Class
1427 - adding support for coercion in the
4734114b 1428 instance construction
6ba6d68c 1429
1430 * Moose::Meta::TypeConstraint
1431 * Moose::Meta::TypeCoercion
4734114b 1432 - type constraints and coercions are now
6ba6d68c 1433 full fledges meta-objects
fc5609d2 1434
e522431d 14350.01 Wed. March 15, 2006
900466d6 1436 - Moooooooooooooooooose!!!