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