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