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