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