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