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