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