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