adding 2007 to the copyright list
[gitmo/Moose.git] / Changes
CommitLineData
e522431d 1Revision history for Perl extension Moose
2
b77fdbed 30.18
4
5
587ae0d2 60.18_001
d01f1dab 7 !! You must have Class::MOP 0.37_001 !!
8 !! for this developer release to work !!
9
10 Lots of changes really, too numerous to mention now,
11 I need to have people test/fiddle with this first.
587ae0d2 12
130.17 Tues. Nov. 14, 2006
14 * Moose::Meta::Method::Accessor
15 - bugfix for read-only accessors which
16 are have a type constraint and lazy.
17 Thanks to chansen for finding it.
18
190.16 Tues. Nov. 14, 2006
20 ++ NOTE ++
21 There are some speed improvements in this release,
22 but they are only the begining, so stay tuned.
23
24 * Moose::Object
25 - BUILDALL and DEMOLISHALL no longer get
26 called unless they actually need to be.
27 This gave us a signifigant speed boost
28 for the cases when there is no BUILD or
29 DEMOLISH method present.
30
31 * Moose::Util::TypeConstraints
32 * Moose::Meta::TypeConstraint
33 - added an 'optimize_as' option to the
34 type constraint, which allows for a
35 hand optimized version of the type
36 constraint to be used when possible.
37 - Any internally created type constraints
38 now provide an optimized version as well.
39
ecb59493 400.15 Sun. Nov. 5, 2006
946289d1 41 ++ NOTE ++
42 This version of Moose *must* have Class::MOP 0.36 in order
43 to work correctly. A number of small internal tweaks have
44 been made in order to be compatible with that release.
571dd39f 45
46 * Moose::Util::TypeConstraints
47 - added &unimport so that you can clean out
48 your class namespace of these exported
49 keywords
50
37ee30c9 51 * Moose::Meta::Class
52 - fixed minor issue which occasionally
53 comes up during global destruction
54 (thanks omega)
946289d1 55 - moved Moose::Meta::Method::Overriden into
56 its own file.
57
58 * Moose::Meta::Role
59 - moved Moose::Meta::Role::Method into
60 its own file.
61
43123819 62 * Moose::Meta::Attribute
63 - changed how we do type checks so that
7623f774 64 we reduce the overall cost, but still
65 retain correctness.
946289d1 66 *** API CHANGE ***
67 - moved accessor generation methods to
68 Moose::Meta::Method::Accessor to
69 conform to the API changes from
70 Class::MOP 0.36
43123819 71
72 * Moose::Meta::TypeConstraint
73 - changed how constraints are compiled
74 so that we do less recursion and more
75 iteration. This makes the type check
76 faster :)
946289d1 77 - moved Moose::Meta::TypeConstraint::Union
78 into its own file
79
80 * Moose::Meta::Method::Accessor
81 - created this from methods formerly found in
82 Moose::Meta::Attribute
83
84 * Moose::Meta::Role::Method
85 - moved this from Moose::Meta::Role
86
87 * Moose::Meta::Method::Overriden
88 - moved this from Moose::Meta::Class
89
90 * Moose::Meta::TypeConstraint::Union
91 - moved this from Moose::Meta::TypeConstraint
37ee30c9 92
3ec7b7a3 930.14 Mon. Oct. 9, 2006
4fd69d6c 94
95 * Moose::Meta::Attribute
96 - fixed lazy attributes which were not getting
97 checked with the type constraint (thanks ashley)
98 - added tests for this
3ec7b7a3 99 - removed the over-enthusiastic DWIMery of the
100 automatic ArrayRef and HashRef defaults, it
101 broke predicates in an ugly way.
102 - removed tests for this
4fd69d6c 103
c0c41f76 1040.13 Sat. Sept. 30, 2006
093b12c2 105 ++ NOTE ++
106 This version of Moose *must* have Class::MOP 0.35 in order
107 to work correctly. A number of small internal tweaks have
108 been made in order to be compatible with that release.
109
3c2bc5e2 110 * Moose
111 - Removed the use of UNIVERSAL::require to be a better
093b12c2 112 symbol table citizen and remove a dependency
113 (thanks Adam Kennedy)
3c2bc5e2 114
2a0f3bd3 115 **~~ removed experimental & undocumented feature ~~**
116 - commented out the 'method' and 'self' keywords, see the
117 comments for more info.
118
e95c7c42 119 * Moose::Cookbook
120 - added a FAQ and WTF files to document frequently
121 asked questions and common problems
b805c70c 122
3f7376b0 123 * Moose::Util::TypeConstraints
0a5bd159 124 - added GlobRef and FileHandle type constraint
3f7376b0 125 - added tests for this
126
127 * Moose::Meta::Attribute
128 - if your attribute 'isa' ArrayRef of HashRef, and you have
129 not explicitly set a default, then make the default DWIM.
94b8bbb8 130 This will also work for subtypes of ArrayRef and HashRef
131 as well.
132 - you can now auto-deref subtypes of ArrayRef or HashRef too.
133 - new test added for this (thanks to ashley)
3f7376b0 134
b805c70c 135 * Moose::Meta::Role
136 - added basic support for runtime role composition
0a5bd159 137 but this is still *highly experimental*, so feedback
138 is much appreciated :)
b805c70c 139 - added tests for this
e95c7c42 140
0a5bd159 141 * Moose::Meta::TypeConstraint
142 - the type constraint now handles the coercion process
143 through delegation, this is to support the coercion
144 of unions
145
146 * Moose::Meta::TypeConstraint::Union
147 - it is now possible for coercions to be performed
148 on a type union
149 - added tests for this (thanks to konobi)
150
e95c7c42 151 * Moose::Meta::TypeCoercion
152 - properly capturing error when type constraint
153 is not found
154
3c2bc5e2 155 * Build.PL
156 - Scalar::Util 1.18 is bad on Win32, so temporarily
157 only require version 1.17 for Win32 and cygwin.
093b12c2 158 (thanks Adam Kennedy)
3c2bc5e2 159
40e89659 1600.12 Sat. Sept. 1, 2006
2bdd01cd 161 * Moose::Cookbook
162 - Recipe5 (subtypes & coercion) has been written
163
164 * Moose
3279ab4a 165 - fixed "bad meta" error message to be more descriptive
166 - fixed &unimport to not remove the &inner and &super
167 keywords because we need to localize them.
68efb014 168 - fixed number of spelling/grammer issues, thanks Theory :)
0558683c 169
170 **~~ experimental & undocumented feature ~~**
68efb014 171 - added the method and self keywords, they are basically
172 just sugar, and they may not stay around.
f742dfef 173
174 * Moose::Object
68efb014 175 - added &dump method to easily Data::Dumper
176 an object
b26e162e 177
178 * Moose::Meta::TypeConstraint
179 - added the &is_a_type_of method to check both the current
180 and the subtype of a method (similar to &isa with classes)
f008ac1f 181
68efb014 182 * Moose::Meta::Role
183 - this is now a subclass of Class::MOP::Module, and no longer
184 creates the _role_meta ugliness of before.
185 - fixed tests to reflect this change
186
8c835eba 1870.11 Wed. July 12, 2006
31f8ec72 188 * Moose
189 - added an &unimport method to remove all the keywords
8c835eba 190 that Moose will import, simply add 'no Moose' to the
191 bottom of your class file.
31f8ec72 192
193 * t/
194 - fixed some test failures caused by a forgotten test
195 dependency.
196
864cd714 1970.10 Thurs. July 6, 2006
01a8e221 198 * Moose
199 - improved error message when loading modules so
200 it is less confusing when you load a role.
2b14ac61 201 - added &calculate_all_roles method to
202 Moose::Meta::Class and Moose::Meta::Role
203
204 NOTE:
205 This module has been tested against Class::MOP 0.30
206 but it does not yet utilize the optimizations
207 it makes available. Stay tuned for that ;)
208
2b14ac61 2090.09_03 Fri. June 23, 2006
715ea0b7 210 ++ DEVELOPER RELEASE ++
4276ccb4 211 * Moose
212 - 'use strict' and 'use warnings' are no longer
213 needed in Moose classes, Moose itself will
214 turn them on for you.
215 - added tests for this
1341f10c 216 - moved code from exported subs to private methods
217 in Moose::Meta::Class
4276ccb4 218
219 * Moose::Role
220 - as with Moose, strict and warnings are
221 automatically turned on for you.
222 - added tests for this
e39d707f 223
224 * Moose::Meta::Role
225 - now handles an edge case for override errors
226 - added tests for this
b7f2d25b 227 - added some more edge case tests
1341f10c 228
43d599e5 2290.09_02 Tues. May 16, 2006
715ea0b7 230 ++ DEVELOPER RELEASE ++
2c0cbef7 231 * Moose
232 - added prototypes to the exported subs
43d599e5 233 - updated docs
2c0cbef7 234
235 * Moose::Role
236 - added prototypes to the exported subs
43d599e5 237 - updated docs
2c0cbef7 238
239 * Moose::Util::TypeConstraints
240 - cleaned up prototypes for the subs
43d599e5 241 - updated docs
2c0cbef7 242
72c4f6d1 2430.09_01 Fri. May 12, 2006
244 ++ DEVELOPER RELEASE ++
245 - This release works in combination with
246 Class::MOP 0.29_01, it is a developer
247 release because it uses the a new
248 instance sub-protocol and a fairly
249 complete Role implementation. It has
250 not yet been optimized, so it slower
251 the the previous CPAN version. This
252 release also lacks good updated docs,
253 the official release will have updated docs.
254
98aae381 255 * Moose
256 - refactored the keyword exports
db1ab48d 257 - 'with' now checks Role validaity and
258 accepts more than one Role at a time
98aae381 259 - 'extends' makes metaclass adjustments as
260 needed to ensure metaclass compatability
261
72c4f6d1 262 * Moose::Role
263 - refactored the keyword exports
264 - 'with' now checks Role validaity and
265 accepts more than one Role at a time
266
98aae381 267 * Moose::Util::TypeConstraints
268 - added the 'enum' keyword for simple
269 string enumerations which can be used as
270 type constraints
db1ab48d 271 - see example of usage in t/202_example.t
98aae381 272
273 * Moose::Object
274 - more careful checking of params to new()
275
72c4f6d1 276 * Moose::Meta::Role
277 - much work done on the role composition
278 - many new tests for conflict detection
279 and composition edge cases
280 - not enough documentation, I suggest
281 looking at the tests
282
98aae381 283 * Moose::Meta::Instance
284 - added new Instance metaclass to support
285 the new Class::MOP instance protocol
286
287 * Moose::Meta::Class
288 - some small changes to support the new
289 instance protocol
72c4f6d1 290 - some small additions to support Roles
98aae381 291
292 * Moose::Meta::Attribute
293 - some improvements to the accessor generation code
294 by nothingmuch
295 - some small changes to support the new
296 instance protocol
297 - (still somewhat) experimental delegation support
298 with the 'handles' option
299 - added several tests for this
db1ab48d 300 - no docs for this yet
98aae381 301
35c8b8f2 3020.05 Thurs. April 27, 2006
2d562421 303 * Moose
304 - keywords are now exported with Sub::Exporter
305 thanks to chansen for this commit
590868a3 306 - has keyword now takes a 'metaclass' option
307 to support custom attribute meta-classes
308 on a per-attribute basis
daea75c9 309 - added tests for this
310 - the 'has' keyword not accepts inherited slot
311 specifications (has '+foo'). This is still an
312 experimental feature and probably not finished
313 see t/038_attribute_inherited_slot_specs.t for
314 more details, or ask about it on #moose
fcb7afc2 315 - added tests for this
2d562421 316
317 * Moose::Role
318 - keywords are now exported with Sub::Exporter
319
5204cd52 320 * Moose::Utils::TypeConstraints
cce8198b 321 - reorganized the type constraint hierarchy, thanks
322 to nothingmuch and chansen for his help and advice
323 on this
324 - added some tests for this
7eaef7ad 325 - keywords are now exported with Sub::Exporter
35c8b8f2 326 thanks to chansen for this commit
5204cd52 327
d500266f 328 * Moose::Meta::Class
329 - due to changes in Class::MOP, we had to change
330 construct_instance (for the better)
331
332 * Moose::Meta::Attribute
333 - due to changes in Class::MOP, we had to add the
334 initialize_instance_slot method (it's a good thing)
c07af9d2 335
cce8198b 336 * Moose::Meta::TypeConstraint
c07af9d2 337 - added type constraint unions
338 - added tests for this
cce8198b 339 - added the is_subtype_of predicate method
340 - added tests for this
d500266f 341
02a0fb52 3420.04 Sun. April 16th, 2006
1331430a 343 * Moose::Role
344 - Roles can now consume other roles
345 - added tests for this
346 - Roles can specify required methods now with
347 the requires() keyword
348 - added tests for this
349
bdabd620 350 * Moose::Meta::Role
351 - ripped out much of it's guts ,.. much cleaner now
1331430a 352 - added required methods and correct handling of
fa1be058 353 them in apply() for both classes and roles
354 - added tests for this
1331430a 355 - no longer adds a does() method to consuming classes
356 it relys on the one in Moose::Object
357 - added roles attribute and some methods to support
358 roles consuming roles
8c9d74e7 359
360 * Moose::Meta::Attribute
361 - added support for triggers on attributes
362 - added tests for this
02a0fb52 363 - added support for does option on an attribute
364 - added tests for this
8c9d74e7 365
366 * Moose::Meta::Class
367 - added support for attribute triggers in the
368 object construction
369 - added tests for this
256903b6 370
371 * Moose
372 - Moose no longer creates a subtype for your class
373 if a subtype of the same name already exists, this
374 should DWIM in 99.9999% of all cases
375
376 * Moose::Util::TypeConstraints
377 - fixed bug where incorrect subtype conflicts were
378 being reported
8c9d74e7 379 - added test for this
380
381 * Moose::Object
382 - this class can now be extended with 'use base' if
383 you need it, it properly loads the metaclass class now
384 - added test for this
bdabd620 385
0677220d 3860.03_02 Wed. April 12, 2006
05d9eaf6 387 * Moose
388 - you must now explictly use Moose::Util::TypeConstraints
389 it no longer gets exported for you automatically
390
391 * Moose::Object
392 - new() now accepts hash-refs as well as key/value lists
0677220d 393 - added does() method to check for Roles
394 - added tests for this
05d9eaf6 395
0677220d 396 * Moose::Meta::Class
397 - added roles attribute along with the add_role() and
398 does_role() methods
399 - added tests for this
400
401 * Moose::Meta::Role
402 - now adds a does() method to consuming classes
403 which tests the class's hierarchy for roles
404 - added tests for this
405
4060.03_01 Mon. April 10, 2006
e9ec68d6 407 * Moose::Cookbook
76d37e5a 408 - added new Role recipe (no content yet, only code)
e9ec68d6 409
410 * Moose
411 - added 'with' keyword for Role support
412 - added test and docs for this
413 - fixed subtype quoting bug
414 - added test for this
415
416 * Moose::Role
417 - Roles for Moose
418 - added test and docs
76d37e5a 419
420 * Moose::Util::TypeConstraints
421 - added the message keyword to add custom
422 error messages to type constraints
e9ec68d6 423
424 * Moose::Meta::Role
425 - the meta role to support Moose::Role
426 - added tests and docs
427
428 * Moose::Meta::Class
429 - moved a number of things from Moose.pm
430 to here, they should have been here
431 in the first place
432
433 * Moose::Meta::Attribute
434 - moved the attribute option macros here
435 instead of putting them in Moose.pm
e185c027 436
76d37e5a 437 * Moose::Meta::TypeConstraint
438 - added the message attributes and the
439 validate method
440 - added tests and docs for this
441
0ac928d2 4420.03 Thurs. March 30, 2006
e9bb8a31 443 * Moose::Cookbook
444 - added the Moose::Cookbook with 5 recipes,
445 describing all the stuff Moose can do.
446
d7f17ebb 447 * Moose
448 - fixed an issue with &extends super class loading
449 it now captures errors and deals with inline
450 packages correctly (bug found by mst, solution
451 stolen from alias)
159da176 452 - added super/override & inner/augment features
453 - added tests and docs for these
d7f17ebb 454
455 * Moose::Object
456 - BUILDALL now takes a reference of the %params
457 that are passed to &new, and passes that to
458 each BUILD as well.
471c4f09 459
460 * Moose::Util::TypeConstraints
461 - Type constraints now survive runtime reloading
462 - added test for this
d7f17ebb 463
8339fae2 464 * Moose::Meta::Class
465 - fixed the way attribute defaults are handled
466 during instance construction (bug found by chansen)
467
d7f17ebb 468 * Moose::Meta::Attribute
469 - read-only attributes now actually enforce their
9deed647 470 read-only-ness (this corrected in Class::MOP as
471 well)
d7f17ebb 472
076c81ed 4730.02 Tues. March 21, 2006
fc5609d2 474 * Moose
b841b2a3 475 - many more tests, fixing some bugs and
476 edge cases
b841b2a3 477 - &extends now loads the base module with
478 UNIVERSAL::require
479 - added UNIVERSAL::require to the
480 dependencies list
6ba6d68c 481 ** API CHANGES **
b841b2a3 482 - each new Moose class will also create
483 and register a subtype of Object which
484 correspond to the new Moose class.
b841b2a3 485 - the 'isa' option in &has now only
486 accepts strings, and will DWIM in
487 almost all cases
488
489 * Moose::Util::TypeConstraints
490 - added type coercion features
491 - added tests for this
492 - added support for this in attributes
493 and instance construction
6ba6d68c 494 ** API CHANGES **
b841b2a3 495 - type construction no longer creates a
496 function, it registers the type instead.
497 - added several functions to get the
498 registered types
6ba6d68c 499
500 * Moose::Object
501 - BUILDALL and DEMOLISHALL were broken
502 because of a mis-named hash key, Whoops :)
b841b2a3 503
504 * Moose::Meta::Attribute
505 - adding support for coercion in the
506 autogenerated accessors
507
508 * Moose::Meta::Class
509 - adding support for coercion in the
6ba6d68c 510 instance construction
511
512 * Moose::Meta::TypeConstraint
513 * Moose::Meta::TypeCoercion
514 - type constraints and coercions are now
515 full fledges meta-objects
fc5609d2 516
e522431d 5170.01 Wed. March 15, 2006
518 - Moooooooooooooooooose!!!