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