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