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