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