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