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