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