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