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