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