Add support for parametric containers that subtype ArrayRef or HashRef
[gitmo/Moose.git] / Changes
CommitLineData
e522431d 1Revision history for Perl extension Moose
2
39aba5c9 30.33
4 * Moose::Meta::TypeConstraint::Parameterized
5 - allow subtypes of ArrayRef and HashRef to
6 be used as a container
7
dc26a424 80.32 Tues. Dec. 4, 2007
8de73ff1 9 * Moose::Util::TypeConstraints
10 - fixing how subtype aliases of unions work
11 they should inherit the parent's coercion
12 - added tests for this
41e007e4 13 - you can now define multiple coercions on
14 a single type at different times instead of
15 having to do it all in one place
16 - added tests for this
8de73ff1 17
18 * Moose::Meta::TypeConstraint
19 - there is now a default constraint of sub { 1 }
20 instead of Moose::Util::TypeConstraints setting
21 this for us
22
41e007e4 23 * Moose::Meta::TypeCoercion
24 * Moose::Meta::TypeCoercion::Union
25 - added the &has_coercion_for_type and
26 &add_type_coercions methods to support the
27 new features above (although you cannot add
28 more type coercions for Union types)
29
ffcb48b4 300.31 Mon. Nov. 26, 2007
f3c4e20e 31 * Moose::Meta::Attribute
32 - made the +attr syntax handle extending types with
33 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
34 now works if the original foo is an ArrayRef.
35 - added tests for this.
36 - delegation now works even if the attribute does not
37 have a reader method using the get_read_method_ref
38 method from Class::MOP::Attribute.
39 - added tests for this
40 - added docs for this
41
42 * Moose::Util::TypeConstraints
43 - passing no "additional attribute info" to
44 &find_or_create_type_constraint will no longer
45 attempt to create an __ANON__ type for you,
46 instead it will just return undef.
47 - added docs for this
48
1edfdf1c 490.30 Fri. Nov. 23, 2007
ca168e89 50 * Moose::Meta::Method::Constructor
51 -builder related bug in inlined constructor. (groditi)
52
3822d5ee 53 * Moose::Meta::Method::Accessor
54 - genereate unnecessary calls to predicates and refactor
55 code generation for runtime speed (groditi)
56
5d776bdf 57 * Moose::Util::TypeConstraints
0e0709ea 58 - fix ClassName constraint to introspect symbol table (mst)
a0f8153d 59 - added more tests for this (mst)
60 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
61 with work correctly.
62 - added tests for this
5d776bdf 63
1edfdf1c 64 * Moose::Cookbook
65 - adding the link to Recipie 11 (written by Sartak)
66 - adding test for SYNOPSIS code
67
ca168e89 68 * t/
69 - New tests for builder bug. Upon instantiation, if an
70 attribute had a builder, no value and was not lazy the
71 builder default was not getting run, oops. (groditi)
72
b97b9655 730.29 Tues. Nov. 13, 2007
0b26305c 74 * Moose::Meta::Attribute
5d776bdf 75 - Fix error message on missing builder method (groditi)
0b26305c 76
77 * Moose::Meta::Method::Accessor
5d776bdf 78 - Fix error message on missing builder method (groditi)
0b26305c 79
80 * t/
5d776bdf 81 - Add test to check for the correct error message when
82 builder method is missing (groditi)
0b26305c 83
98c4c382 840.28 Tues. Nov. 13, 2007
85 - 0.27 packaged incorrectly (groditi)
86
e134cd19 870.27 Tues. Nov. 13, 2007
26fbace8 88 * Moose::Meta::Attribute
89 - Added support for the new builder option (groditi)
6af1a927 90 - Added support for lazy_build option (groditi)
1ed0b94f 91 - Changed slot initialization for predicate changes (groditi)
26fbace8 92
93 * Moose::Meta::Method::Accessor
6af1a927 94 - Added support for lazy_build option (groditi)
28669f89 95 - Fix inline methods to work with corrected predicate
96 behavior (groditi)
26fbace8 97
7a5b07b3 98 * Moose::Meta::Method::Constructor
99 - Added support for lazy_build option (groditi)
100
26fbace8 101 * t/
28669f89 102 - tests for builder and lazy_build (groditi)
26fbace8 103
5af6a16d 104 * fixing some misc. bits in the docs that
28669f89 105 got mentioned on CPAN Forum & perlmonks
e7f8d0c2 106
107 * Moose::Meta::Role
108 - fixed how required methods are handled
109 when they encounter overriden or modified
110 methods from a class (thanks to confound).
111 - added tests for this
5af6a16d 112
3796382a 113 * Moose::Util::TypeConstraint
114 - fixed the type notation parser so that
115 the | always creates a union and so is
116 no longer a valid type char (thanks to
117 konobi, mugwump and #moose for working
118 this one out.)
119 - added more tests for this
120
77a18c28 1210.26 Thurs. Sept. 27, 2007
122 == New Features ==
123
124 * Parameterized Types
125 We now support parameterized collection types, such as:
126 ArrayRef[Int] # array or integers
127 HashRef[Object] # a hash with object values
128 They can also be nested:
129 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
130 And work with the type unions as well:
131 ArrayRef[Int | Str] # array of integers of strings
132
133 * Better Framework Extendability
134 Moose.pm is now "extendable" such that it is now much
135 easier to extend the framework and add your own keywords
136 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
137 section of the Moose.pm docs.
138
139 * Moose Snacks!
140 In an effort to begin documenting some of the various
141 details of Moose as well as some common idioms, we have
142 created Moose::Cookbook::Snacks as a place to find
143 small (easily digestable) nuggets of Moose code.
144
145 ====
fb697a87 146 ~ Several doc updates/cleanup thanks to castaway ~
e46f5cc2 147
148 - converted build system to use Module::Install instead of
149 Module::Build (thanks to jrockway)
fb697a87 150
d67145ed 151 * Moose
152 - added all the meta classes to the immutable list and
153 set it to inline the accessors
9bcfbab1 154 - fix import to allow Sub::Exporter like { into => }
e59a5c29 155 and { into_level => } (perigrin)
9bcfbab1 156 - exposed and documented init_meta() to allow better
e59a5c29 157 embedding and extending of Moose (perigrin)
158
159 * t/
160 - complete re-organization of the test suite
b468a3d3 161 - added some new tests as well
77a18c28 162 - finally re-enabled the Moose::POOP test since
163 the new version of DBM::Deep now works again
164 (thanks rob)
b468a3d3 165
166 * Moose::Meta::Class
167 - fixed very odd and very nasty recursion bug with
168 inner/augment (mst)
169 - added tests for this (eilara)
d67145ed 170
3726f905 171 * Moose::Meta::Attribute
172 Moose::Meta::Method::Constructor
173 Moose::Meta::Method::Accessor
174 - fixed issue with overload::Overloaded getting called
f1917f58 175 on non-blessed items. (RT #29269)
3726f905 176 - added tests for this
177
3ccdc84a 178 * Moose::Meta::Method::Accessor
179 - fixed issue with generated accessor code making
180 assumptions about hash based classes (thanks to dexter)
181
3726f905 182 * Moose::Coookbook::Snacks
183 - these are bits of documentation, not quite as big as
184 Recipes but which have no clear place in the module docs.
185 So they are Snacks! (horray for castaway++)
186
07cde929 187 * Moose::Cookbook::Recipe4
188 - updated it to use the new ArrayRef[MyType] construct
189 - updated the accompanying test as well
190
3726f905 191 +++ Major Refactor of the Type Constraint system +++
192 +++ with new features added as well +++
193
22aed3c0 194 * Moose::Util::TypeConstraint
195 - no longer uses package variable to keep track of
196 the type constraints, now uses the an instance of
197 Moose::Meta::TypeConstraint::Registry to do it
f1917f58 198 - added more sophisticated type notation parsing
199 (thanks to mugwump)
200 - added tests for this
22aed3c0 201
d67145ed 202 * Moose::Meta::TypeConstraint
203 - some minor adjustments to make subclassing easier
22aed3c0 204 - added the package_defined_in attribute so that we
205 can track where the type constraints are created
d67145ed 206
207 * Moose::Meta::TypeConstraint::Union
3726f905 208 - this is now been refactored to be a subclass of
209 Moose::Meta::TypeConstraint
210
211 * Moose::Meta::TypeCoercion::Union
212 - this has been added to service the newly refactored
213 Moose::Meta::TypeConstraint::Union and is itself
214 a subclass of Moose::Meta::TypeCoercion
d67145ed 215
0fbd4b0a 216 * Moose::Meta::TypeConstraint::Parameterized
d67145ed 217 - added this module (taken from MooseX::AttributeHelpers)
218 to help construct nested collection types
219 - added tests for this
18ea2bcc 220
22aed3c0 221 * Moose::Meta::TypeConstraint::Registry
222 - added this class to keep track of type constraints
d67145ed 223
887169d7 2240.25 Mon. Aug. 13, 2007
8eca434b 225 * Moose
226 - Documentation update to reference Moose::Util::TypeConstraints
227 under 'isa' in 'has' for how to define a new type
228 (thanks to shlomif).
229
ab859145 230 * Moose::Meta::Attribute
231 - required attributes now will no longer accept undef
232 from the constructor, even if there is a default and lazy
233 - added tests for this
7a5ebc40 234 - default subroutines must return a value which passes the
235 type constraint
236 - added tests for this
a909a4df 237
238 * Moose::Meta::Attribute
239 * Moose::Meta::Method::Constructor
240 * Moose::Meta::Method::Accessor
241 - type-constraint tests now handle overloaded objects correctly
242 in the error message
243 - added tests for this (thanks to EvanCarroll)
ab859145 244
8eca434b 245 * Moose::Meta::TypeConstraint::Union
246 - added (has_)hand_optimized_constraint to this class so that
247 it behaves as the regular Moose::Meta::TypeConstraint does.
248
5868294f 249 * Moose::Meta::Role
887169d7 250 - large refactoring of this code
24a8fe99 251 - added several more tests
7125b244 252 - tests for subtle conflict resolition issues
253 added, but not currently running
254 (thanks to kolibre)
255
256 * Moose::Cookbook::Recipe7
887169d7 257 - added new recipe for augment/inner functionality
258 (still in progress)
7125b244 259 - added test for this
5868294f 260
24a8fe99 261 * Moose::Spec::Role
7125b244 262 - a formal definition of roles (still in progress)
24a8fe99 263
9a641848 264 * Moose::Util
887169d7 265 - utilities for easier working with Moose classes
7125b244 266 - added tests for these
9a641848 267
268 * Test::Moose
887169d7 269 - This contains Moose specific test functions
7125b244 270 - added tests for these
9a641848 271
6b4c1bdd 2720.24 Tues. July 3, 2007
273 ~ Some doc updates/cleanup ~
c84f324f 274
275 * Moose::Meta::Attribute
276 - added support for roles to be given as parameters
277 to the 'handles' option.
278 - added tests and docs for this
83cc9094 279 - the has '+foo' attribute form now accepts changes to
280 the lazy option, and the addition of a handles option
281 (but not changing the handles option)
282 - added tests and docs for this
c84f324f 283
1db8ecc7 284 * Moose::Meta::Role
285 - required methods are now fetched using find_method_by_name
286 so that required methods can come from superclasses
287 - adjusted tests for this
288
81941e9b 2890.23 Mon. June 18, 2007
73b84d2e 290 * Moose::Meta::Method::Constructor
291 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
ac2dc464 292 * Moose::Meta::Class
293 - Modify make_immutable to work with the new Class::MOP immutable
294 mechanism + POD + very basic test (groditi)
cbe25729 295 * Moose::Meta::Attribute
296 - Fix handles to use goto() so that caller() comes out properly on
297 the other side (perigrin)
ac2dc464 298
db53853c 2990.22 Thurs. May 31, 2007
3969267d 300 * Moose::Util::TypeConstraints
db53853c 301 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
302 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
303 prototypes for functions
9af1d28b 304 - added the ClassName type constraint, this checks for strings
305 which will respond true to ->isa(UNIVERSAL).
306 - added tests and docs for this
86629f93 307 - subtyping just in name now works correctly by making the
308 default for where be { 1 }
309 - added test for this
3969267d 310
d7611a4a 311 * Moose::Meta::Method::Accessor
312 - coerce and lazy now work together correctly, thanks to
313 merlyn for finding this bug
314 - tests added for this
df492bba 315 - fix reader presedence bug in Moose::Meta::Attribute + tests
d7611a4a 316
86629f93 317 * Moose::Object
318 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
319 a HASH-ref and missed. This produces better error messages then
320 having it die cause undef is not a HASH.
321 - added tests for this
322
74a0a945 3230.21 Thursday, May 2nd, 2007
52c7c330 324 * Moose
325 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
326 - modified unimport to remove super and inner along with the rest
327 - altered unimport tests to handle this
328
329 * Moose::Role
330 - altered super export to populate SUPER_SLOT
331
332 * Moose::Meta::Class
333 - altered augment and override modifier application to use *_SLOT
334 - modified tests for these to unimport one test class each to test
335
492d4d76 336 * Moose::Meta::Role
337 - fixed issue where custom attribute metaclasses
338 where not handled correctly in roles
339 - added tests for this
5cb193ed 340
341 * Moose::Meta::Class
342 - fixed issue where extending metaclasses with
343 roles would blow up. Thanks to Aankhen`` for
344 finding this insidious error, and it's solution.
b7c751dc 345
0305961b 346 ~~ lots of spelling and grammer fixes in the docs,
347 many many thanks to rlb3 and Aankhen for these :)
492d4d76 348
e518dfb4 3490.20 Friday, April 6th, 2007
a60285b3 350 >> I messed up the SKIP logic in one test
351 so this release is just to fix that.
352
93c435b3 353 * Moose
354 - 'has' now also accepts an ARRAY ref
355 to create multiple attrs (see docs)
356 (thanks to konobi for this)
357 - added tests and docs
358
cd7eeaf5 3590.19 Thurs. April 5th, 2007
360 ~~ More documentation updates ~~
361
c899258b 362 * Moose::Util::TypeConstraints
c1935ade 363 - 'type' now supports messages as well
ddbdc0cb 364 thanks to phaylon for finding this
c899258b 365 - added tests for this
c1935ade 366 - added &list_all_type_constraints and
367 &list_all_builtin_type_constraints
943596a6 368 functions to facilitate introspection.
d022f632 369
370 * Moose::Meta::Attribute
371 - fixed regexp 'handles' declarations
372 to build the list of delegated methods
373 correctly (and not override important
ddbdc0cb 374 things like &new) thanks to ashleyb
375 for finding this
376 - added tests and docs for this
c1935ade 377 - added the 'documentation' attributes
ddbdc0cb 378 so that you can actually document your
379 attributes and inspect them through the
380 meta-object.
d022f632 381 - added tests and docs for this
382
c1935ade 383 * Moose::Meta::Class
384 - when loading custom attribute metaclasses
385 it will first look in for the class in the
386 Moose::Meta::Attribute::Custom::$name, and
387 then default to just loading $name.
388 - added tests and docs for this
389
900466d6 390 * Moose::Meta::TypeConstraint
391 - type constraints now stringify to their names.
392 - added test for this
393
d022f632 394 * misc.
ddbdc0cb 395 - added tests to assure we work with Module::Refresh
396 - added stricter test skip logic in the Moose POOP
397 test, ask Rob Kinyon why.
398 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
c899258b 399
af5199c6 4000.18 Sat. March 10, 2007
401 ~~ Many, many documentation updates ~~
ddbdc0cb 402
403 * misc.
404 - We now use Class::MOP::load_class to
405 load all classes.
406 - added tests to show types and subtypes
407 working with Declare::Constraints::Simple
408 and Test::Deep as constraint engines.
b77fdbed 409
587ae0d2 4100.18_001
d01f1dab 411 !! You must have Class::MOP 0.37_001 !!
412 !! for this developer release to work !!
413
734d1752 414 This release was primarily adding the immutable
415 feature to Moose. An immutable class is one which
416 you promise not to alter. When you set the class
417 as immutable it will perform various bits of
418 memoization and inline certain part of the code
419 (constructors, destructors and accessors). This
420 minimizes (and in some cases totally eliminates)
421 one of Moose's biggest performance hits. This
422 feature is not on by default, and is 100% optional.
423 It has several configurable bits as well, so you
424 can pick and choose to your specific needs.
425
426 The changes involved in this were fairly wide and
427 highly specific, but 100% backwards compatible, so
428 I am not going to enumerate them here. If you are
429 truely interested in what was changed, please do
430 a diff :)
587ae0d2 431
4320.17 Tues. Nov. 14, 2006
433 * Moose::Meta::Method::Accessor
434 - bugfix for read-only accessors which
435 are have a type constraint and lazy.
436 Thanks to chansen for finding it.
437
4380.16 Tues. Nov. 14, 2006
439 ++ NOTE ++
440 There are some speed improvements in this release,
441 but they are only the begining, so stay tuned.
442
443 * Moose::Object
444 - BUILDALL and DEMOLISHALL no longer get
445 called unless they actually need to be.
446 This gave us a signifigant speed boost
447 for the cases when there is no BUILD or
448 DEMOLISH method present.
449
450 * Moose::Util::TypeConstraints
451 * Moose::Meta::TypeConstraint
452 - added an 'optimize_as' option to the
453 type constraint, which allows for a
454 hand optimized version of the type
455 constraint to be used when possible.
456 - Any internally created type constraints
457 now provide an optimized version as well.
458
ecb59493 4590.15 Sun. Nov. 5, 2006
946289d1 460 ++ NOTE ++
461 This version of Moose *must* have Class::MOP 0.36 in order
462 to work correctly. A number of small internal tweaks have
463 been made in order to be compatible with that release.
571dd39f 464
465 * Moose::Util::TypeConstraints
466 - added &unimport so that you can clean out
467 your class namespace of these exported
468 keywords
469
37ee30c9 470 * Moose::Meta::Class
471 - fixed minor issue which occasionally
472 comes up during global destruction
473 (thanks omega)
946289d1 474 - moved Moose::Meta::Method::Overriden into
475 its own file.
476
477 * Moose::Meta::Role
478 - moved Moose::Meta::Role::Method into
479 its own file.
480
43123819 481 * Moose::Meta::Attribute
482 - changed how we do type checks so that
7623f774 483 we reduce the overall cost, but still
484 retain correctness.
946289d1 485 *** API CHANGE ***
486 - moved accessor generation methods to
487 Moose::Meta::Method::Accessor to
488 conform to the API changes from
489 Class::MOP 0.36
43123819 490
491 * Moose::Meta::TypeConstraint
492 - changed how constraints are compiled
493 so that we do less recursion and more
494 iteration. This makes the type check
495 faster :)
946289d1 496 - moved Moose::Meta::TypeConstraint::Union
497 into its own file
498
499 * Moose::Meta::Method::Accessor
500 - created this from methods formerly found in
501 Moose::Meta::Attribute
502
503 * Moose::Meta::Role::Method
504 - moved this from Moose::Meta::Role
505
506 * Moose::Meta::Method::Overriden
507 - moved this from Moose::Meta::Class
508
509 * Moose::Meta::TypeConstraint::Union
510 - moved this from Moose::Meta::TypeConstraint
37ee30c9 511
3ec7b7a3 5120.14 Mon. Oct. 9, 2006
4fd69d6c 513
514 * Moose::Meta::Attribute
515 - fixed lazy attributes which were not getting
516 checked with the type constraint (thanks ashley)
517 - added tests for this
3ec7b7a3 518 - removed the over-enthusiastic DWIMery of the
519 automatic ArrayRef and HashRef defaults, it
520 broke predicates in an ugly way.
521 - removed tests for this
4fd69d6c 522
c0c41f76 5230.13 Sat. Sept. 30, 2006
093b12c2 524 ++ NOTE ++
525 This version of Moose *must* have Class::MOP 0.35 in order
526 to work correctly. A number of small internal tweaks have
527 been made in order to be compatible with that release.
528
3c2bc5e2 529 * Moose
530 - Removed the use of UNIVERSAL::require to be a better
093b12c2 531 symbol table citizen and remove a dependency
532 (thanks Adam Kennedy)
3c2bc5e2 533
2a0f3bd3 534 **~~ removed experimental & undocumented feature ~~**
535 - commented out the 'method' and 'self' keywords, see the
536 comments for more info.
537
e95c7c42 538 * Moose::Cookbook
539 - added a FAQ and WTF files to document frequently
540 asked questions and common problems
b805c70c 541
3f7376b0 542 * Moose::Util::TypeConstraints
0a5bd159 543 - added GlobRef and FileHandle type constraint
3f7376b0 544 - added tests for this
545
546 * Moose::Meta::Attribute
547 - if your attribute 'isa' ArrayRef of HashRef, and you have
548 not explicitly set a default, then make the default DWIM.
94b8bbb8 549 This will also work for subtypes of ArrayRef and HashRef
550 as well.
551 - you can now auto-deref subtypes of ArrayRef or HashRef too.
552 - new test added for this (thanks to ashley)
3f7376b0 553
b805c70c 554 * Moose::Meta::Role
555 - added basic support for runtime role composition
0a5bd159 556 but this is still *highly experimental*, so feedback
557 is much appreciated :)
b805c70c 558 - added tests for this
e95c7c42 559
0a5bd159 560 * Moose::Meta::TypeConstraint
561 - the type constraint now handles the coercion process
562 through delegation, this is to support the coercion
563 of unions
564
565 * Moose::Meta::TypeConstraint::Union
566 - it is now possible for coercions to be performed
567 on a type union
568 - added tests for this (thanks to konobi)
569
e95c7c42 570 * Moose::Meta::TypeCoercion
571 - properly capturing error when type constraint
572 is not found
573
3c2bc5e2 574 * Build.PL
575 - Scalar::Util 1.18 is bad on Win32, so temporarily
576 only require version 1.17 for Win32 and cygwin.
093b12c2 577 (thanks Adam Kennedy)
3c2bc5e2 578
40e89659 5790.12 Sat. Sept. 1, 2006
2bdd01cd 580 * Moose::Cookbook
581 - Recipe5 (subtypes & coercion) has been written
582
583 * Moose
3279ab4a 584 - fixed "bad meta" error message to be more descriptive
585 - fixed &unimport to not remove the &inner and &super
586 keywords because we need to localize them.
68efb014 587 - fixed number of spelling/grammer issues, thanks Theory :)
0558683c 588
589 **~~ experimental & undocumented feature ~~**
68efb014 590 - added the method and self keywords, they are basically
591 just sugar, and they may not stay around.
f742dfef 592
593 * Moose::Object
68efb014 594 - added &dump method to easily Data::Dumper
595 an object
b26e162e 596
597 * Moose::Meta::TypeConstraint
598 - added the &is_a_type_of method to check both the current
599 and the subtype of a method (similar to &isa with classes)
f008ac1f 600
68efb014 601 * Moose::Meta::Role
602 - this is now a subclass of Class::MOP::Module, and no longer
603 creates the _role_meta ugliness of before.
604 - fixed tests to reflect this change
605
8c835eba 6060.11 Wed. July 12, 2006
31f8ec72 607 * Moose
608 - added an &unimport method to remove all the keywords
8c835eba 609 that Moose will import, simply add 'no Moose' to the
610 bottom of your class file.
31f8ec72 611
612 * t/
613 - fixed some test failures caused by a forgotten test
614 dependency.
615
864cd714 6160.10 Thurs. July 6, 2006
01a8e221 617 * Moose
618 - improved error message when loading modules so
619 it is less confusing when you load a role.
2b14ac61 620 - added &calculate_all_roles method to
621 Moose::Meta::Class and Moose::Meta::Role
622
623 NOTE:
624 This module has been tested against Class::MOP 0.30
625 but it does not yet utilize the optimizations
626 it makes available. Stay tuned for that ;)
627
2b14ac61 6280.09_03 Fri. June 23, 2006
715ea0b7 629 ++ DEVELOPER RELEASE ++
4276ccb4 630 * Moose
631 - 'use strict' and 'use warnings' are no longer
632 needed in Moose classes, Moose itself will
633 turn them on for you.
634 - added tests for this
1341f10c 635 - moved code from exported subs to private methods
636 in Moose::Meta::Class
4276ccb4 637
638 * Moose::Role
639 - as with Moose, strict and warnings are
640 automatically turned on for you.
641 - added tests for this
e39d707f 642
643 * Moose::Meta::Role
644 - now handles an edge case for override errors
645 - added tests for this
b7f2d25b 646 - added some more edge case tests
1341f10c 647
43d599e5 6480.09_02 Tues. May 16, 2006
715ea0b7 649 ++ DEVELOPER RELEASE ++
2c0cbef7 650 * Moose
651 - added prototypes to the exported subs
43d599e5 652 - updated docs
2c0cbef7 653
654 * Moose::Role
655 - added prototypes to the exported subs
43d599e5 656 - updated docs
2c0cbef7 657
658 * Moose::Util::TypeConstraints
659 - cleaned up prototypes for the subs
43d599e5 660 - updated docs
2c0cbef7 661
72c4f6d1 6620.09_01 Fri. May 12, 2006
663 ++ DEVELOPER RELEASE ++
664 - This release works in combination with
665 Class::MOP 0.29_01, it is a developer
666 release because it uses the a new
667 instance sub-protocol and a fairly
668 complete Role implementation. It has
669 not yet been optimized, so it slower
670 the the previous CPAN version. This
671 release also lacks good updated docs,
672 the official release will have updated docs.
673
98aae381 674 * Moose
675 - refactored the keyword exports
db1ab48d 676 - 'with' now checks Role validaity and
677 accepts more than one Role at a time
98aae381 678 - 'extends' makes metaclass adjustments as
679 needed to ensure metaclass compatability
680
72c4f6d1 681 * Moose::Role
682 - refactored the keyword exports
683 - 'with' now checks Role validaity and
684 accepts more than one Role at a time
685
98aae381 686 * Moose::Util::TypeConstraints
687 - added the 'enum' keyword for simple
688 string enumerations which can be used as
689 type constraints
db1ab48d 690 - see example of usage in t/202_example.t
98aae381 691
692 * Moose::Object
693 - more careful checking of params to new()
694
72c4f6d1 695 * Moose::Meta::Role
696 - much work done on the role composition
697 - many new tests for conflict detection
698 and composition edge cases
699 - not enough documentation, I suggest
700 looking at the tests
701
98aae381 702 * Moose::Meta::Instance
703 - added new Instance metaclass to support
704 the new Class::MOP instance protocol
705
706 * Moose::Meta::Class
707 - some small changes to support the new
708 instance protocol
72c4f6d1 709 - some small additions to support Roles
98aae381 710
711 * Moose::Meta::Attribute
712 - some improvements to the accessor generation code
713 by nothingmuch
714 - some small changes to support the new
715 instance protocol
716 - (still somewhat) experimental delegation support
717 with the 'handles' option
718 - added several tests for this
db1ab48d 719 - no docs for this yet
98aae381 720
35c8b8f2 7210.05 Thurs. April 27, 2006
2d562421 722 * Moose
723 - keywords are now exported with Sub::Exporter
724 thanks to chansen for this commit
590868a3 725 - has keyword now takes a 'metaclass' option
726 to support custom attribute meta-classes
727 on a per-attribute basis
daea75c9 728 - added tests for this
729 - the 'has' keyword not accepts inherited slot
730 specifications (has '+foo'). This is still an
731 experimental feature and probably not finished
732 see t/038_attribute_inherited_slot_specs.t for
733 more details, or ask about it on #moose
fcb7afc2 734 - added tests for this
2d562421 735
736 * Moose::Role
737 - keywords are now exported with Sub::Exporter
738
5204cd52 739 * Moose::Utils::TypeConstraints
cce8198b 740 - reorganized the type constraint hierarchy, thanks
741 to nothingmuch and chansen for his help and advice
742 on this
743 - added some tests for this
7eaef7ad 744 - keywords are now exported with Sub::Exporter
35c8b8f2 745 thanks to chansen for this commit
5204cd52 746
d500266f 747 * Moose::Meta::Class
748 - due to changes in Class::MOP, we had to change
749 construct_instance (for the better)
750
751 * Moose::Meta::Attribute
752 - due to changes in Class::MOP, we had to add the
753 initialize_instance_slot method (it's a good thing)
c07af9d2 754
cce8198b 755 * Moose::Meta::TypeConstraint
c07af9d2 756 - added type constraint unions
757 - added tests for this
cce8198b 758 - added the is_subtype_of predicate method
759 - added tests for this
d500266f 760
02a0fb52 7610.04 Sun. April 16th, 2006
1331430a 762 * Moose::Role
763 - Roles can now consume other roles
764 - added tests for this
765 - Roles can specify required methods now with
766 the requires() keyword
767 - added tests for this
768
bdabd620 769 * Moose::Meta::Role
770 - ripped out much of it's guts ,.. much cleaner now
1331430a 771 - added required methods and correct handling of
fa1be058 772 them in apply() for both classes and roles
773 - added tests for this
1331430a 774 - no longer adds a does() method to consuming classes
775 it relys on the one in Moose::Object
776 - added roles attribute and some methods to support
777 roles consuming roles
8c9d74e7 778
779 * Moose::Meta::Attribute
780 - added support for triggers on attributes
781 - added tests for this
02a0fb52 782 - added support for does option on an attribute
783 - added tests for this
8c9d74e7 784
785 * Moose::Meta::Class
786 - added support for attribute triggers in the
787 object construction
788 - added tests for this
256903b6 789
790 * Moose
791 - Moose no longer creates a subtype for your class
792 if a subtype of the same name already exists, this
793 should DWIM in 99.9999% of all cases
794
795 * Moose::Util::TypeConstraints
796 - fixed bug where incorrect subtype conflicts were
797 being reported
8c9d74e7 798 - added test for this
799
800 * Moose::Object
801 - this class can now be extended with 'use base' if
802 you need it, it properly loads the metaclass class now
803 - added test for this
bdabd620 804
0677220d 8050.03_02 Wed. April 12, 2006
05d9eaf6 806 * Moose
807 - you must now explictly use Moose::Util::TypeConstraints
808 it no longer gets exported for you automatically
809
810 * Moose::Object
811 - new() now accepts hash-refs as well as key/value lists
0677220d 812 - added does() method to check for Roles
813 - added tests for this
05d9eaf6 814
0677220d 815 * Moose::Meta::Class
816 - added roles attribute along with the add_role() and
817 does_role() methods
818 - added tests for this
819
820 * Moose::Meta::Role
821 - now adds a does() method to consuming classes
822 which tests the class's hierarchy for roles
823 - added tests for this
824
8250.03_01 Mon. April 10, 2006
e9ec68d6 826 * Moose::Cookbook
76d37e5a 827 - added new Role recipe (no content yet, only code)
e9ec68d6 828
829 * Moose
830 - added 'with' keyword for Role support
831 - added test and docs for this
832 - fixed subtype quoting bug
833 - added test for this
834
835 * Moose::Role
836 - Roles for Moose
837 - added test and docs
76d37e5a 838
839 * Moose::Util::TypeConstraints
840 - added the message keyword to add custom
841 error messages to type constraints
e9ec68d6 842
843 * Moose::Meta::Role
844 - the meta role to support Moose::Role
845 - added tests and docs
846
847 * Moose::Meta::Class
848 - moved a number of things from Moose.pm
849 to here, they should have been here
850 in the first place
851
852 * Moose::Meta::Attribute
853 - moved the attribute option macros here
854 instead of putting them in Moose.pm
e185c027 855
76d37e5a 856 * Moose::Meta::TypeConstraint
857 - added the message attributes and the
858 validate method
859 - added tests and docs for this
860
0ac928d2 8610.03 Thurs. March 30, 2006
e9bb8a31 862 * Moose::Cookbook
863 - added the Moose::Cookbook with 5 recipes,
864 describing all the stuff Moose can do.
865
d7f17ebb 866 * Moose
867 - fixed an issue with &extends super class loading
868 it now captures errors and deals with inline
869 packages correctly (bug found by mst, solution
870 stolen from alias)
159da176 871 - added super/override & inner/augment features
872 - added tests and docs for these
d7f17ebb 873
874 * Moose::Object
875 - BUILDALL now takes a reference of the %params
876 that are passed to &new, and passes that to
877 each BUILD as well.
471c4f09 878
879 * Moose::Util::TypeConstraints
880 - Type constraints now survive runtime reloading
881 - added test for this
d7f17ebb 882
8339fae2 883 * Moose::Meta::Class
884 - fixed the way attribute defaults are handled
885 during instance construction (bug found by chansen)
886
d7f17ebb 887 * Moose::Meta::Attribute
888 - read-only attributes now actually enforce their
9deed647 889 read-only-ness (this corrected in Class::MOP as
890 well)
d7f17ebb 891
076c81ed 8920.02 Tues. March 21, 2006
fc5609d2 893 * Moose
b841b2a3 894 - many more tests, fixing some bugs and
895 edge cases
b841b2a3 896 - &extends now loads the base module with
897 UNIVERSAL::require
898 - added UNIVERSAL::require to the
899 dependencies list
6ba6d68c 900 ** API CHANGES **
b841b2a3 901 - each new Moose class will also create
902 and register a subtype of Object which
903 correspond to the new Moose class.
b841b2a3 904 - the 'isa' option in &has now only
905 accepts strings, and will DWIM in
906 almost all cases
907
908 * Moose::Util::TypeConstraints
909 - added type coercion features
910 - added tests for this
911 - added support for this in attributes
912 and instance construction
6ba6d68c 913 ** API CHANGES **
b841b2a3 914 - type construction no longer creates a
915 function, it registers the type instead.
916 - added several functions to get the
917 registered types
6ba6d68c 918
919 * Moose::Object
920 - BUILDALL and DEMOLISHALL were broken
921 because of a mis-named hash key, Whoops :)
b841b2a3 922
923 * Moose::Meta::Attribute
924 - adding support for coercion in the
925 autogenerated accessors
926
927 * Moose::Meta::Class
928 - adding support for coercion in the
6ba6d68c 929 instance construction
930
931 * Moose::Meta::TypeConstraint
932 * Moose::Meta::TypeCoercion
933 - type constraints and coercions are now
934 full fledges meta-objects
fc5609d2 935
e522431d 9360.01 Wed. March 15, 2006
900466d6 937 - Moooooooooooooooooose!!!