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