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