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