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