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