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