predicate fixes
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
b817e248 2
3af3cbbd 3 * Class::MOP::Class
4 - optimise metaclass-already-exists check in construct_class_instance
5 - duplicate check into initialize to save a call through
6
1d68af04 7 * Class::MOP::MOP
8 - Add support for the 'builder' attribute (groditi)
9
10 * Class::MOP::Attribute
11 - Add support for the 'builder' attribute (groditi)
12
13 *t/
14 - Alter tests (005, 014 020, 021) for new builder addition
15
565f0cbb 160.43
17 * Class::MOP::Method::Accessor
18 - made this a subclass of Class::MOP::Method::Generated
19 - removed the relevant attributes
20
21 * Class::MOP::Method::Constructor
22 - fixed the cached values we had to be more sane
23 - made this a subclass of Class::MOP::Method::Generated
24 - fixed generated constructor so it properly handles
25 subclasses now.
26 - added tests for this
27 - added the option to allow for both inlined and
28 non-inlined constructors.
29
30 * Class::MOP::Method::Generated
31 - added this class as an abstract base for the
32 Class::MOP::Method::{Constructor,Accessor} classes
33 - added tests for this
34
367183c4 350.42 Mon. July 16, 2007
9195ddff 36 !!! Horray for mst, he fixed it !!!
37
92af7fdf 38 * Class::MOP::Package
39 - alter symbol table handling to deal with 5.8.x and 5.9.x
9195ddff 40
92af7fdf 41 * t/
9195ddff 42 - Get rid of the crappy workaround from 0.40/41
92af7fdf 43
829f7554 440.41 Sun. July 15, 2007
45 * t/
46 Arghh!!! My TODO test didn't work, so I handle
47 it manually now so that people can use this
48 with 5.9.5/bleadperl without issue.
49
1d7205b8 500.40 Tues, July 3, 2007
9f88b8ff 51 * t/
52 ~ marked a test in 003_methods.t as TODO
1d7205b8 53 for perl 5.9.5 (this test is irrelvant to
54 the module functioning on 5.9.5 for the most
55 part anyway)
9f88b8ff 56
28acb786 570.39 Mon. June 18, 2007
b817e248 58 * Class::MOP::Immutable
0ac992ee 59 - added make_metaclass_mutable + docs (groditi)
60 - removed unused variable
d9586da2 61 - added create_immutable_transformer
62 necessary for sane overloading of immutable behavior
63 - tests for this (groditi)
0ac992ee 64
65 * Class::MOP::Class
66 - Immutability can now be undone,
67 added make_mutable + tests + docs (groditi)
04dd7510 68 - Massive changes to the way Immutable is done
69 for details see comments next to make_immutable
70 This fixes a bug where custom metaclasses broke
71 when made immutable. We are now keeping one immutable
72 metaclass instance per metaclass instead of just one
73 to prevent isa hierarchy corruption. Memory use will go
74 up, but I suspect it will be neglible.
75 - New tests added for this behavior. (groditi)
7c90a1a8 76
c0fcd6ab 770.38 Thurs. May 31, 2007
823a5d31 78 ~~ More documentation updates ~~
c81de280 79
823a5d31 80 * Class::MOP::Package
81 - we now deal with stub methods properly
82 - added tests for this
c0fcd6ab 83 - fixed some tests failing on 5.9.5 (thanks blblack)
c81de280 84
b25109b1 85 * Class::MOP::Attribute
86 - added get_read_method and get_write_method
c81de280 87 thanks to groditi for this code, tests
88 and docs.
b25109b1 89 - added tests and POD for this
795a0c8b 90
91 * Class::MOP::Class
92 - fixed RT issue #27329, clone object now
93 handles undef values correctly.
94 - added tests for this
d4ba1677 95 - Corrected anon-class handling so that they
96 will not get reaped when instances still
97 exist which need to reference them. This is
98 the correct behavior, hopefully this is an
99 obscure enough feature that there are not too
100 many work arounds out in the wild.
101 - added tests for this by groditi
95514cb4 102 - updated docs to explain this
103
104 * metaclass
c0fcd6ab 105 - load custom metaclasses automatically (thanks groditi)
f2266181 106 - added tests for this behavior
a06797b0 107
3dc99d93 1080.37 Sat. March 10, 2007
448b6e55 109 ~~ Many, many documentation updates ~~
110
111 * Class::MOP
112 - added &load_class and &is_class_loaded
113 - added tests and docs for these
2367814a 114
9363ea89 115 * Class::MOP::Attribute
116 - default now checks the instance with defined to
117 avoid setting off bool-overloads (found by Carl Franks)
118
c23184fc 1190.37_002
120 * /t
121 - bad name in a test, causing meaningless failuress.
122 No other changes.
123
1240.37_001
125
126 ~~ GLOBAL CHANGES ~~
127 - All attribute names are now consistent and follow Perl 6
128 style (prefixed with the sigil, and ! as the twigil for
129 private attrs). This should not affect any code, unless
130 you broke encapsulation, in which case, it is your problem
131 anyway.
132
133 !! Class::MOP::Class::Immutable has been removed
134
135 * Class::MOP::Method::Constructor
136 - this has been moved out of Class::MOP::Class::Immutable
137 and is a proper subclass of Class::MOP::Method now.
138
139 * Class::MOP::Class
140 - this module now uses Class::MOP::Immutable for the
141 immutable transformation instead of
142 Class::MOP::Class::Immutable.
143
144 + Class::MOP::Immutable
145 - this module now controls the transformation from a mutable
146 to an immutable version of the class. Docs for this will
147 be coming eventually.
148
149
cdc1ecba 1500.36 Sun. Nov. 5, 2006
a651e249 151 * Class::MOP::Class
152 - added a few 'no warnings' lines to keep annoying
153 (and meaningless) warnings from chirping during
154 global destruction.
0870928c 155
156 * Class::MOP
157 - some more bootstrapping is now done on the new
158 classes
159
160 * Class::MOP::Class::Immutable
161 *** API CHANGE ***
162 - constructor generation is now handled by
163 the Class::MOP::Method::Constructor class
164
165 * Class::MOP::Method::Constructor
166 - created this to handle constructor generation
167 in Class::MOP::Class::Immutable
168
169 * Class::MOP::Attribute
170 *** API CHANGE ***
171 - attributes now delegate to the
172 Class::MOP::Method::Accessor to generate
173 accessors
174
175 * Class::MOP::Method::Accessor
176 - all accessor generation functions from
177 Class::MOP::Attribute have been moved here
a651e249 178
80f00c79 1790.35 Sat. Sept. 30, 2006
8745cf22 180
181 * scripts/class_browser.pl
182 - initial prototype of a class browser, more
183 on this to come. Comments and patches are
184 very much welcome.
b1897d4d 185
186 * Class::MOP
3e86c902 187 - All Class::MOP::* accessors are no longer
188 re-generated in the bootstrap, instead
6d2118a4 189 they are aliased from the originals
6d2118a4 190 - fixed tests to reflect
b1897d4d 191 - added Class::MOP::Method (and its subclasses)
192 to the bootstrap
193 - adjusted tests for this
86482605 194 - added the Class::MOP::Instance attributes
195 to the bootstrap
b1897d4d 196
197 * Class::MOP::Method
198 *** API CHANGE ***
199 - methods are no longer blessed CODE refs
200 but are actual objects which can be CODE-ified
201 - adjusted tests to compensate
86482605 202 - adjusted docs for this
b1897d4d 203
204 * Class::MOP::Class
205 - changed how methods are dealt with to
206 encapsulate most of the work into the
207 &get_method_map method
208 - made several adjustments for the change
209 in Class::MOP::Method
210 - &add_attribute now checks if you are adding
211 a duplicate name, and properly removes the
212 old one before installing the new one
213 - added tests for this
86482605 214 - adjusted docs for this
b1897d4d 215
216 * Class::MOP::Class::Immutable
217 - added caching of &get_method_map
218 - fixed issue with &get_package_symbol
219 - cleaned up the methods that die (patch by David Wheeler)
220
221 * Class::MOP::Package
222 - added filtering capabilities to
223 &list_all_package_symbols
224
a549ce50 2250.34 Sat. Aug. 26, 2006
c4260b45 226 * Class::MOP::Class
227 - added the %:methods attribute, which like
228 the $:version and such just actually goes
229 to the symbol table to get it's stuff.
230 However, it makes the MOP more complete.
88dd563c 231 ** API CHANGE **
232 - The &create method now requires that all
233 but the package name now is passed in as
234 named parameters. See docs for more info.
235 - updated docs and tests for this
c4260b45 236
237 * Class::MOP::Object
238 - added &dump method to easily Data::Dumper
239 an object
240
241 * Class::MOP
242 - cleaned up the initialization of attributes
243 which do not store things in the instance
244 - added the %:methods attribute definition to
245 the bootstrap
88dd563c 246
247 ~ lots of misc. test cleanup
c4260b45 248
56e8dd5d 2490.33 Sat. Aug. 19, 2006
be7677c7 250 * Class::MOP::Class
251 - moved the metaclass cache out of here
252 and it is now in Class::MOP itself.
56e8dd5d 253
254 * Class::MOP
255 - moved all the metaclass cache stuff here
256 - fixed all tests for this
be7677c7 257
148b4697 258 * Class::MOP::Attribute
259 - reference values (other than CODE refs)
260 are no longer allowed for defaults
261 - added tests for this
56dcfc1a 262
263 * Class::MOP::Package
264 - fixed an issue with perl 5.8.1 and how it deals
e3a2c885 265 with symbol tables. The namespace hash is now
266 always reloaded from the symbol table.
267
268 ~ lots of misc. documentation cleanup
1396f86b 269
716c5765 2700.32 Sat. Aug. 12, 2006
6e57504d 271 + added Class::MOP::Object so that the
272 metamodel is more complete (and closer
273 to what Perl 6 will probably be).
274
9ca19585 275 * Class::MOP::Package
276 - refactored entire class, this is now
277 the primary gateway between the metaclass
278 and the Perl 5 symbol table
279 - added many tests for this
6e57504d 280 - this class is now a subclass of
281 Class::MOP::Object
716c5765 282 - added some tests to reflect this
9ca19585 283
284 * Class::MOP::Class
285 - refactored all symbol table access to
286 use Class::MOP::Package methods instead
f0480c45 287
288 * Class::MOP::Module
289 - adding the $:version attribute in the bootstrap
290 so that Module has a version as an attribute
291 - see comment in Class::MOP for details
292 - added the $:authority attribute to this module
293 as well as an &identifier method, to bring us
294 ever closer to Perl 6 goodness
716c5765 295 - I have added $AUTHORITY to all the modules
296 - added tests for this
9ca19585 297
f0480c45 298 * Class::MOP::Instance
299 - added &deinitialize_slot for removing slots
300 from an instance
301 - added tests for this
9ca19585 302
303 * Class::MOP::Attribute
304 - added support for &deinitialize_slot for removing
305 slots from an instance
306 - added tests for this
307
1a09d9cc 3080.31 Sat. July 15, 2006
309
b679e644 310 * Class::MOP::Class
311 - added &find_method_by_name to locate a method
312 anywhere within the class hierarchy
313
314 * Class::MOP::Attribute
315 - added &set_value and &get_value for getting
316 the value of the attribute for a particular
317 instance.
318
373a16ae 3190.30 Wed. July 5, 2006
320 ---------------------------------------
321 This is the first version of Class::MOP
322 to introduce the immutable features which
323 will be used for optimizating the MOP.
324 This support should still be considered
325 experimental, but moving towards stability.
326 ---------------------------------------
e0a82090 327
373a16ae 328 * Created Class::MOP::Class::Immutable
be960ba1 329
373a16ae 330 * Created the Class::MOP::Package and
331 Class::MOP::Module classes to more
332 closely conform to Perl 6's meta-model
e0a82090 333
334 * Class::MOP::Class
335 - now inherits from Class::MOP::Module
336 - several methods moved to ::Module and
337 ::Package and now inherited
338 - added tests for this
c0cbf4d9 339
340 * Class::MOP::Instance
341 - added an is_inlinable method to allow other
342 classes to check before they attempt to optimize.
be960ba1 343 - added an inline_create_instance to inline
344 instance creation (of course)
345
2ba153a9 346 ** API CHANGE **
347 - the Class::MOP::Class::*_package_variable
348 methods are all now methods of Class::MOP::Package
349 and called *_package_symbol instead. This is
350 because they are now more general purpose symbol
351 table manipulation methods.
e0a82090 352
cdfaa4cc 3530.29_02 Thurs. June 22, 2006
354 ++ DEVELOPER RELEASE ++
df7b4119 355 * Class::MOP::Class
356 - small change in &create so that it behaves
357 properly when inherited
cdfaa4cc 358 - small fix to &clone_instance
df7b4119 359
667cecf3 3600.29_01 Fri. May 12, 2006
361 ++ DEVELOPER RELEASE ++
362 - This release works in combination with
363 Moose 0.09_01, it is a developer release
364 because it introduces a new instance
365 sub-protocol and has not yet been
366 optimized.
367
40483095 368 * Class::MOP::Class
369 - anon-classes are now properly garbage collected
370 - added tests for this
195f5bf8 371 - improved method modifier wrapping
40483095 372
2bab2be6 373 * Class::MOP::Instance
1becdfcc 374 - added new instance protocol
2bab2be6 375 - added tests for this
376 - changed all relevant modules and examples
377 - Class::MOP::Class
378 - Class::MOP::Attribute
379 - examples/*
380
1becdfcc 381 * metaclass
382 - you no longer need to specify the metaclass
383 itself, if it is not there, Class::MOP::Class
384 is just assumed
385 - updated tests for this
386
387 * examples/
388 - added ArrayBasedStorage example to show
389 instance storage using ARRAY refs instead of
390 HASH refs.
391 - added tests for this
392 - InsideOutClass is totally revised using the
393 new instance protocol
394 - added more tests for this
395
93b4e576 3960.26 Mon. April 24, 2006
e7f732e4 397 * Class::MOP::Class
398 - added find_attribute_by_name method
399 - added tests and docs for this
56a0b530 400 - some small optimizations
401
402 * Class::MOP::Attribute
403 - some small optimizations
e7f732e4 404
46666f33 4050.25 Thurs. April 20, 2006
587aca23 406 * Class::MOP::Class
407 - added create_anon_class for creating anonymous classes
408 - added tests for this
409 - added get_all_metaclasses, get_all_metaclass_names
410 and get_all_metaclass_instances method to allow
411 access to all the cached metaclass objects.
bd4e03f9 412 - attribute slot initialization is now the responsibility
413 of the attribute itself, and construct_instance now
414 delegates appropriately
415
416 * Class::MOP::Attribute
417 - attribute slot initialization is now the responsibility
418 of the attribute itself, so we added a method for it
419 called initialize_instance_slot
fed4cee7 420
421 * examples/
422 - adjusted all the examples to use the new attribute
423 initialize_instance_slot method
587aca23 424
1daaa2b2 4250.24 Tues. April 11, 2006
8c936afc 426 * Class::MOP::Class
427 - cleaned up how the before/after/around method
428 modifiers get named with Sub::Name
429
b9dfbf78 4300.23 Thurs. March 30, 2006
a977cf65 431 * Class::MOP::Class
432 - fixed the way attribute defaults are handled
433 during instance construction (bug found by chansen)
b9dfbf78 434
435 * Class::MOP::Attribute
436 - read-only accessors ('reader') will now die if
437 passed more than one argument (attempting to write
438 to them basically)
439 - added tests for this
440 - adjusted all /example files to comply
a977cf65 441
f9eba090 4420.22 Mon. March 20, 2006
0eff2c16 443 * Class::MOP::Class
444 - localized $@ in the *_package_variable functions
445 because otherwise, it does ugly things in Moose.
446 - added test case for this
447
1988e85e 4480.21 Wed. March 15, 2006
2f6d5412 449 * Class::MOP::Class
450 - fixed issue where metaclasses are reaped from
451 our cache in global destruction, and so are not
452 available in DESTORY calls
453
96ceced8 4540.20 Thurs. March 2, 2006
d3cb0d4a 455 - removed the dependency for Clone since
456 we no longer to deep-cloning by default.
a4258ffd 457
458 * Class::MOP::Method
96ceced8 459 - added &package_name, &name and
460 &fully_qualified_name methods, some of
a4258ffd 461 which were formerly private subs in
462 Class::MOP::Class
463
464 * Class::MOP::Method::Wrapped
465 - allows for a method to be wrapped with
466 before, after and around modifiers
467 - added tests and docs for this feature
d3cb0d4a 468
469 * Class::MOP::Class
58d75218 470 - improved &get_package_symbol
96ceced8 471 - &version and &superclasses now use it
a4258ffd 472 - methods are now blessed into Class::MOP::Method
473 whenever possible
a4258ffd 474 - added methods to install CLOS-style method modifiers
475 - &add_before_method_modifier
476 - &add_after_method_modifier
477 - &add_around_method_modifier
478 - added tests and docs for these
96ceced8 479 - added &find_next_method_by_name which finds the
480 equivalent of SUPER::method_name
d3cb0d4a 481
1c020571 4820.12 Thurs. Feb 23, 2006
d89c0fad 483 - reduced the dependency on B, no need to always
484 have the latest
485
1c020571 486 * examples/
487 - added docs to the C3 method dispatch order test
488 - fixed missing Algorithm::C3 dependency by making
489 the test skip if it is not installed
490
0dea7280 4910.11 Mon Feb. 20, 2006
f3f5bd34 492 * examples/
493 - added example of changing method dispatch order to C3
a27ae83f 494
495 * Class::MOP::Class
19d4b5b8 496 - changed how clone_instance behaves, it now only does a
497 shallow clone (see docs for more details)
a27ae83f 498 - added docs and tests
f3f5bd34 499
3bf7644b 5000.10 Tues Feb. 14, 2006
501 ** This release was mostly about writing more tests and
502 cleaning out old and dusty code, the MOP should now
503 be considered "ready to use".
504
22286063 505 - adding more tests to get coverage up a little higher,
506 mostly testing errors and edge cases.
507 - test coverage is now at 99%
aa448b16 508
509 * Class::MOP
510 - no longer optionally exports to UNIVERSAL::meta or
511 creates a custom metaclass generator, use the
512 metaclass pragma instead.
22286063 513
514 * Class::MOP::Class
515 - fixed a number of minor issues which came up in the
516 error/edge-case tests
517
518 * Class::MOP::Attribute
519 - fixed a number of minor issues which came up in the
520 error/edge-case tests
521
0b8eb325 522 * examples/
ea263060 523 - fixing the AttributesWithHistory example, it was broken.
663f8198 524
550d56db 5250.06 Thurs Feb. 9, 2006
677eb158 526 * metaclass
550d56db 527 - adding new metaclass pragma to make setting up the
677eb158 528 metaclass a little more straightforward
7b31baf4 529
530 * Class::MOP
531 - clean up bootstrapping to include more complete
532 attribute definitions for Class::MOP::Class and
533 Class::MOP::Attribute (accessors, readers, writers,
534 etc.) ... it is redundant, but is useful meta-info
535 to have around.
677eb158 536
99e5b7e8 537 * Class::MOP::Class
538 - fixing minor meta-circularity issue with &meta, it
539 is now more useful for subclasses
7b31baf4 540 - added &get_attribute_map as an accessor for the
541 hash of attribute meta objects
c9e77dbb 542 - &compute_all_applicable_attributes now just returns
543 the attribute meta-object, rather than the HASH ref
544 since all the same info can be gotten from the
545 attribute meta-object itself
546 - updated docs & tests to reflect
5f3c057a 547 - added &clone_instance method which does a deep clone
548 of the instance structure created by &construct_instance
549 - added docs & tests for this
550d56db 550 - added Clone as a dependency
5f3c057a 551 - added &new_object and &clone_object convience methods to
552 return blessed new or cloned instances
2a7575a6 553 - they handle Class::MOP::Class singletons correctly too
5f3c057a 554 - added docs & tests for this
2a7575a6 555 - cleaned up the &constuct_class_instance so that it behaves
556 more like &construct_instance (and managed the singletons too)
550d56db 557 - added the &check_metaclass_compatibility method to make sure
558 that metaclasses are upward and downward compatible.
559 - added tests and docs for this
5f3c057a 560
99e5b7e8 561 * examples/
562 - adjusting code to use the &Class::MOP::Class::meta
563 fix detailed above
677eb158 564 - adjusting code to use the metaclass pragma
99e5b7e8 565
aa9c883e 5660.05 Sat Feb. 4, 2006
2e41896e 567 * Class::MOP::Class
568 - added the &attribute_metaclass and &method_metaclass
351bd7d4 569 attributes which contain a metaclass name to use for
2e41896e 570 attributes/methods respectively
351bd7d4 571
572 * Class::MOP
573 - bootstrap additional attributes for Class::MOP::Class
2e41896e 574
575 * examples/
576 - adjusted the example code and tests to use the new
577 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 578 - added new example:
579 - LazyClass
2e41896e 580
d7c2cbe3 5810.04 Fri Feb. 3, 2006
d6fbcd05 582 * Class::MOP::Class
583 - some documentation suggestions from #perl6
584
585 * Class::MOP::Attribute
586 - improved error messages
587
588 * examples/
589 - added new examples:
590 - AttributesWithHistory
d7c2cbe3 591 - ClassEncapsultedAttributes
343203ee 592
9ec169fe 5930.03 Fri Feb. 3, 2006
594 - converted to Module::Build instead of EU::MM
595
596 * Class::MOP::Attribute
597 - refactored method generation code
598 - attributes are now associated with class directly
599
f71f4295 600 * examples/
9ec169fe 601 - refactored the InsideOut example to take advantage
602 of the Class::MOP::Attribute refactoring
f71f4295 603 - changed example files to .pod files and hide thier
604 package names from PAUSE (I don't want to own these
605 namespaces really, they are just examples)
9ec169fe 606
a57c7fa2 6070.02 Thurs Feb. 2, 2006
608 - moving examples from t/lib/* to examples/*
609 - adding POD documentation to the examples
610
a2e85e6c 6110.01 Thurs Feb. 2, 2006
92af7fdf 612 - Initial release