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