some speed gains
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
b817e248 2
9b522fc4 30.59
4
5 * Class::MOP::Class
6 - now stores the instance of the instance
7 metaclass to avoid needless recomputation
8
9 * Class::MOP
10 Class::MOP::Class
11 Class::MOP::Method
12 Class::MOP::Method::Wrapped
13 Class::MOP::Attribute
14 - switched usage of reftype to ref because
15 it is much faster
16
352c364f 170.58 Thurs. May 29, 2008
62781d9f 18 (late night release engineering)--
19
20 - fixing the version is META.yml, no functional
21 changes in this release
22
de0f9e1c 230.57 Wed. May 28, 2008
24 !! Seveal speedups resulting in 20-25% speedups !!
25 || (thanks to konobi, groditi, mst & CataMoose) !!
26
ae234dc6 27 * Class::MOP::Class
28 - made get_method_map use list_all_package_symbols
29 instead of manually grabbing each symbol
de0f9e1c 30 - streamlining &initialize somewhat, since it gets
31 called so much
ae234dc6 32
33 * Class::MOP::Package
34 - made {get, has}_package_symbol not call
35 &namespace so much
de0f9e1c 36 - inlining a few calls to &name with
37 direct HASH access key access
ae234dc6 38 - added get_all_package_symbols to fetch
39 a HASH of items based on a type filter
40 similar to list_all_package_symbols
41 - added tests for this
42
32202ce2 43 * Class::MOP::Method
44 Class::MOP::Method::Constructor
45 Class::MOP::Method::Generated
46 Class::MOP::Method::Accessor
47 - added more descriptive error message to help
48 keep people from wasting time tracking an error
47e20ba2 49 that is easily fixed by upgrading.
32202ce2 50
b4009dc1 510.56 Saturday, May 24, 2008
11b56828 52 * Class::MOP
53 - we now get the &check_package_cache_flag
54 function from MRO::Compat
d7d3f3cb 55 - All XS based functionality now has a
56 Pure Perl alternative
6c34db07 57 - the CLASS_MOP_NO_XS environment variable
d7d3f3cb 58 can now be used to force non-XS versions
6c34db07 59 to always be used
11b56828 60
9e517e01 61 * Class::MOP::Attribute
62 - add has_read_method and has_write_method
d7d3f3cb 63 - get_{read,write}_method_ref now wraps the
def5c0b5 64 anon-sub ref in the method metaclass when
65 possible
66 - added tests for this
d7d3f3cb 67
5f3efd66 68 * Class::MOP::Immutable
d7d3f3cb 69 - added the ability to "wrap" methods when
5f3efd66 70 making the class immutable
d7d3f3cb 71
5f3efd66 72 * Class::MOP::Class
daf8d8bc 73 - now handling the edge case of ->meta->identifier
d7d3f3cb 74 dying by wrapping add_package_symbol to specifically
5f3efd66 75 allow for it to work.
76 - added tests for this
d7d3f3cb 77
78 * Class::MOP::Attribute
6c34db07 79 Class::MOP::Class
d7d3f3cb 80 Class::MOP::Immutable
6c34db07 81 - any time a method meta object is constructed
d7d3f3cb 82 we make sure to pass the correct package and
6c34db07 83 method name information
d7d3f3cb 84
6c34db07 85 * Class::MOP::Method
86 Class::MOP::Method::Wrapped
87 Class::MOP::Method::Generated
88 Class::MOP::Method::Accessor
d7d3f3cb 89 Class::MOP::Method::Consructor
90 - the &wrap constructor method now requires that a
91 'package_name' and 'name' attribute are passed. This
92 is to help support the no-XS version, and will
93 throw an error if these are not supplied.
6c34db07 94 - all these classes are now bootstrapped properly
95 and now store the package_name and name attributes
d7d3f3cb 96 correctly as well
97
98 ~ Build.PL has been removed since the
99 Module::Install support has been removed
9e517e01 100
8adaad20 1010.55 Mon. April 28, 2008
102 - All classes now have proper C3 MRO support
103 - added MRO::Compat as a dependency to allow
104 for the C3 MRO support to Just Work in all
105 perl versions
d7d3f3cb 106
830b326c 107 * Class::MOP::Class
d7d3f3cb 108 - rebless_instance now returns the instance
109 it has just blessed, this is mostly to
830b326c 110 facilitate chaining
d7d3f3cb 111 - set the attr correctly in rebless_instance
6e2a700f 112 when it has no init_arg
77a143ba 113 - tweaked &linear_isa and &class_precedence_list
114 to support c3 classes.
830b326c 115
e0db39d2 1160.54 Fri. March, 14, 2008
8861fab2 117 * Class::MOP
214e4bd7 118 metaclass.pm
8861fab2 119 - making sure that load_class never gets
d7d3f3cb 120 passed a value from @_ or $_ to squash
8861fab2 121 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
122
09c6e1d2 123 * Class::MOP::Class
124 - make_{immutable,mutable} now return 1
125 (cause Sartak asked)
d7b2249e 126 - improved error handling in ->create method
d7d3f3cb 127 - rebless_instance now takes extra params which
128 will be used to populate values
214e4bd7 129 - added tests for this
d7d3f3cb 130
acce7fd6 131 * Class::MOP::Object
d7d3f3cb 132 - localizing the Data::Dumper configurations so
133 that it does not pollute others (RT #33509)
134
d7b2249e 135 * Class::MOP::Class
136 Class::MOP::Package
137 Class::MOP::Module
138 Class::MOP::Method
139 Class::MOP::Attribute
d7d3f3cb 140 - these classes no longer define their own ->meta,
141 but instead just inherit from Class::MOP::Object
142
d7b2249e 143 * Class::MOP::Instance
d7d3f3cb 144 Class::MOP::Immutable
d7b2249e 145 - these classes now inherit from Class::MOP::Object
d7d3f3cb 146
10dd437b 147 * t/
d7d3f3cb 148 - fixed the filename length on several
10dd437b 149 test files so we install on VMS better
150 (RT #32295)
d7d3f3cb 151 - fixed incorrect use of catdir when it
10dd437b 152 should be catfile (RT #32385)
153
2491730f 1540.53 Thurs. Feb. 14, 1008
7a536297 155 ~~ several doc. fixes and updates ~~
d7d3f3cb 156
0c6f4c4a 157 * Class::MOP::Class
158 Class::MOP::Method::Constructor
159 Class::MOP::Attribute
160 - making init_arg accept an undefined value
d7d3f3cb 161 to indicate that no constructor args can
0c6f4c4a 162 be passed (thanks to nothingmuch)
163 - added tests for this
339264d8 164 - added attribute initializer attribute (rjbs)
d7d3f3cb 165
0c6f4c4a 166 * Class::MOP.
167 - making this use the new init_arg => undef
d7d3f3cb 168 feature instead of the silly hack from
0c6f4c4a 169 before (thanks to nothingmuch)
ad074154 170
3e8e8f07 1710.52 Tues. Jan. 22, 2008
2a2b8458 172 * Class::MOP::Class
d7d3f3cb 173 - fixed bug in rebless_instance
2a2b8458 174 (discovered by ash)
175
176 * Class::MOP::Method::Constructor
d7d3f3cb 177 - removed assumptions about the existence of
2a2b8458 178 a &meta method
179
656ce3ba 1800.51 Mon. Jan. 14, 2008
69e3ab0a 181 ~~~ some misc. doc. fixes ~~~
182 ~~ updated copyright dates ~~
d7d3f3cb 183
c1d5345a 184 * Class::MOP
d7d3f3cb 185 - now sets the IS_RUNNING_ON_5_10
c1d5345a 186 constant so that we can take advantage
187 of some of the nice bits of 5.10
d7d3f3cb 188
c1d5345a 189 * Class::MOP::Class
d7d3f3cb 190 - uses the IS_RUNNING_ON_5_10 flag to
191 optimize the &linearized_isa method
c1d5345a 192 and avoid the hack/check for circular
d7d3f3cb 193 inheritence in &class_precedence_list
3d9e4646 194 - added rebless_instance method (Sartak)
195 - added tests for this
d7d3f3cb 196
197 * Class::MOP::Immutable
198 - the immutable class now keeps track of
c1d5345a 199 the transformer which immutablized it
69e3ab0a 200
3d9e4646 201 * Class::MOP::Instance
202 - added rebless_instance_structure method (Sartak)
203 - added tests for this
204
a780a6ff 2050.50 Fri. Dec. 21, 2007
6ff0d647 206 * Class::MOP::Class
d7d3f3cb 207 - fixed bug in immutable to make sure that
208 transformation arguments are saved
6ff0d647 209 correctly (mst)
b6bcc3a5 210 - added tests for this
d7d3f3cb 211
6ff0d647 212 * Class::MOP::Immutable
213 - fixed a bug (see above)
d7d3f3cb 214
6ff0d647 215 * Class::MOP::Attribute
216 - some doc updates
217
30b8af04 2180.49 Fri. Dec. 14, 2007
b6bcc3a5 219 !! Class::MOP now loads 2 x faster !!
30b8af04 220 !! with XS speedups (thanks konobi) !!
d7d3f3cb 221
30b8af04 222 * Class::MOP
223 - removed the dependency on B
224 - added two XS functions (thanks konobi)
225 - get_code_info($code) which replaces all
226 the B fiddling we were doing with
227 faster/leaner XS level fiddling
d7d3f3cb 228 - check_package_cache_flag($pkg_name) which
229 returns the PL_sub_generation variable to
30b8af04 230 be used to help manage method caching.
d7d3f3cb 231
232 NOTE:
233 In 5.10 or greater this will actually
234 use the mro::get_pkg_gen instead to give
235 even more accurate caching information.
30b8af04 236 blblack++ for that stuff :)
d7d3f3cb 237
6c9f390e 238 * Class::MOP::Class
239 - added the &subclasses method (thanks rlb)
d7d3f3cb 240 - added the update_package_cache_flag and
241 reset_package_cache_flag which help keep
242 track of when we need to re-fetch the
243 method map.
30b8af04 244 - Several small improvements to take advantage
245 of the new method map caching features
4c4a6c41 246
1b8b3e09 2470.48 Mon. Nov. 26, 2007
d14f6cbe 248 * Class::MOP::Attribute
d7d3f3cb 249 - fixed get_read/write_method to handle the
250 HASH ref case, which makes the
d14f6cbe 251 get_read/write_method_ref handle it too.
252 - added more tests for this
253
742fb371 2540.47 Sat. Nov. 24, 2007
255 * Class::MOP::Attribute
256 - fixed misspelling in get_write_method_ref
78d9bb38 257 - added more tests for this
742fb371 258
fe7c0b15 2590.46 Fri. Nov. 23, 2007
b7bdffc3 260 * Class::MOP::Class
d7d3f3cb 261 - added the linearized_isa method instead of constantly
262 pruning duplicate classes (this will be even more
b7bdffc3 263 useful in the 5.10-compat version coming soon)
d7d3f3cb 264
5da16d1b 265 * Class::MOP::Attribute
266 - added the get_read_method_ref and get_write_method_ref
d7d3f3cb 267 methods which allow you to retrieve a CODE ref which
5da16d1b 268 can always be used to read or write an attribute.
b7bdffc3 269
1a5cc82e 2700.45 Thurs. Nov. 13, 2007
232c4e13 271 * Class::MOP::Attribute
272 - Fix error message on confess (groditi)
273
544143b2 2740.44 Thurs. Nov. 13, 2007
275 - Apparently I didn't make dist correctly (groditi)
276
c0aeeb91 2770.43 Thurs. Nov. 13, 2007
b08fd50c 278 * Class::MOP
1d68af04 279 - Add support for the 'builder' attribute (groditi)
280
b08fd50c 281 * Class::MOP::Class
d7d3f3cb 282 - optimise metaclass-already-exists check in
b08fd50c 283 construct_class_instance (groditi)
d7d3f3cb 284 - duplicate check into initialize to save a
b08fd50c 285 call through (groditi)
286
1d68af04 287 * Class::MOP::Attribute
288 - Add support for the 'builder' attribute (groditi)
d7d3f3cb 289 - Make predicates check for the existence of a value, not whether
b08fd50c 290 it is defined (groditi)
8768ecf3 291
292 * Class::MOP::Instance
d7d3f3cb 293 - Make predicates check for the existence of a value, not whether
b08fd50c 294 it is defined (groditi)
8768ecf3 295
d7d3f3cb 296 * Class::MOP::Method::Accessor
565f0cbb 297 - made this a subclass of Class::MOP::Method::Generated
298 - removed the relevant attributes
299
300 * Class::MOP::Method::Constructor
301 - fixed the cached values we had to be more sane
302 - made this a subclass of Class::MOP::Method::Generated
d7d3f3cb 303 - fixed generated constructor so it properly handles
565f0cbb 304 subclasses now.
305 - added tests for this
d7d3f3cb 306 - added the option to allow for both inlined and
565f0cbb 307 non-inlined constructors.
b08fd50c 308 - Update inlined methods for builder and predicate changes (groditi)
565f0cbb 309
310 * Class::MOP::Method::Generated
d7d3f3cb 311 - added this class as an abstract base for the
565f0cbb 312 Class::MOP::Method::{Constructor,Accessor} classes
313 - added tests for this
314
b08fd50c 315 *t/
316 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
317 - Tests for new predicate behavior (and corrections to old tests) (groditi)
318
319 *examples/
320 - Update ArrayRef based class example to work with predicate changes
321
367183c4 3220.42 Mon. July 16, 2007
9195ddff 323 !!! Horray for mst, he fixed it !!!
324
92af7fdf 325 * Class::MOP::Package
326 - alter symbol table handling to deal with 5.8.x and 5.9.x
d7d3f3cb 327
92af7fdf 328 * t/
9195ddff 329 - Get rid of the crappy workaround from 0.40/41
92af7fdf 330
829f7554 3310.41 Sun. July 15, 2007
332 * t/
333 Arghh!!! My TODO test didn't work, so I handle
d7d3f3cb 334 it manually now so that people can use this
829f7554 335 with 5.9.5/bleadperl without issue.
336
1d7205b8 3370.40 Tues, July 3, 2007
9f88b8ff 338 * t/
d7d3f3cb 339 ~ marked a test in 003_methods.t as TODO
340 for perl 5.9.5 (this test is irrelvant to
341 the module functioning on 5.9.5 for the most
1d7205b8 342 part anyway)
9f88b8ff 343
28acb786 3440.39 Mon. June 18, 2007
b817e248 345 * Class::MOP::Immutable
0ac992ee 346 - added make_metaclass_mutable + docs (groditi)
347 - removed unused variable
d9586da2 348 - added create_immutable_transformer
349 necessary for sane overloading of immutable behavior
d7d3f3cb 350 - tests for this (groditi)
0ac992ee 351
352 * Class::MOP::Class
353 - Immutability can now be undone,
354 added make_mutable + tests + docs (groditi)
04dd7510 355 - Massive changes to the way Immutable is done
356 for details see comments next to make_immutable
357 This fixes a bug where custom metaclasses broke
d7d3f3cb 358 when made immutable. We are now keeping one immutable
359 metaclass instance per metaclass instead of just one
04dd7510 360 to prevent isa hierarchy corruption. Memory use will go
361 up, but I suspect it will be neglible.
362 - New tests added for this behavior. (groditi)
7c90a1a8 363
c0fcd6ab 3640.38 Thurs. May 31, 2007
823a5d31 365 ~~ More documentation updates ~~
d7d3f3cb 366
823a5d31 367 * Class::MOP::Package
368 - we now deal with stub methods properly
369 - added tests for this
c0fcd6ab 370 - fixed some tests failing on 5.9.5 (thanks blblack)
d7d3f3cb 371
b25109b1 372 * Class::MOP::Attribute
373 - added get_read_method and get_write_method
d7d3f3cb 374 thanks to groditi for this code, tests
c81de280 375 and docs.
b25109b1 376 - added tests and POD for this
d7d3f3cb 377
795a0c8b 378 * Class::MOP::Class
d7d3f3cb 379 - fixed RT issue #27329, clone object now
795a0c8b 380 handles undef values correctly.
381 - added tests for this
d7d3f3cb 382 - Corrected anon-class handling so that they
383 will not get reaped when instances still
384 exist which need to reference them. This is
385 the correct behavior, hopefully this is an
386 obscure enough feature that there are not too
d4ba1677 387 many work arounds out in the wild.
d7d3f3cb 388 - added tests for this by groditi
95514cb4 389 - updated docs to explain this
390
391 * metaclass
c0fcd6ab 392 - load custom metaclasses automatically (thanks groditi)
f2266181 393 - added tests for this behavior
a06797b0 394
3dc99d93 3950.37 Sat. March 10, 2007
448b6e55 396 ~~ Many, many documentation updates ~~
d7d3f3cb 397
448b6e55 398 * Class::MOP
d7d3f3cb 399 - added &load_class and &is_class_loaded
448b6e55 400 - added tests and docs for these
2367814a 401
9363ea89 402 * Class::MOP::Attribute
d7d3f3cb 403 - default now checks the instance with defined to
9363ea89 404 avoid setting off bool-overloads (found by Carl Franks)
405
c23184fc 4060.37_002
d7d3f3cb 407 * /t
408 - bad name in a test, causing meaningless failuress.
c23184fc 409 No other changes.
410
4110.37_001
d7d3f3cb 412
c23184fc 413 ~~ GLOBAL CHANGES ~~
d7d3f3cb 414 - All attribute names are now consistent and follow Perl 6
415 style (prefixed with the sigil, and ! as the twigil for
416 private attrs). This should not affect any code, unless
417 you broke encapsulation, in which case, it is your problem
c23184fc 418 anyway.
d7d3f3cb 419
c23184fc 420 !! Class::MOP::Class::Immutable has been removed
d7d3f3cb 421
c23184fc 422 * Class::MOP::Method::Constructor
d7d3f3cb 423 - this has been moved out of Class::MOP::Class::Immutable
c23184fc 424 and is a proper subclass of Class::MOP::Method now.
d7d3f3cb 425
c23184fc 426 * Class::MOP::Class
d7d3f3cb 427 - this module now uses Class::MOP::Immutable for the
428 immutable transformation instead of
c23184fc 429 Class::MOP::Class::Immutable.
d7d3f3cb 430
431 + Class::MOP::Immutable
432 - this module now controls the transformation from a mutable
433 to an immutable version of the class. Docs for this will
c23184fc 434 be coming eventually.
d7d3f3cb 435
c23184fc 436
cdc1ecba 4370.36 Sun. Nov. 5, 2006
a651e249 438 * Class::MOP::Class
d7d3f3cb 439 - added a few 'no warnings' lines to keep annoying
440 (and meaningless) warnings from chirping during
a651e249 441 global destruction.
d7d3f3cb 442
0870928c 443 * Class::MOP
d7d3f3cb 444 - some more bootstrapping is now done on the new
0870928c 445 classes
d7d3f3cb 446
0870928c 447 * Class::MOP::Class::Immutable
d7d3f3cb 448 *** API CHANGE ***
449 - constructor generation is now handled by
0870928c 450 the Class::MOP::Method::Constructor class
d7d3f3cb 451
0870928c 452 * Class::MOP::Method::Constructor
d7d3f3cb 453 - created this to handle constructor generation
0870928c 454 in Class::MOP::Class::Immutable
d7d3f3cb 455
0870928c 456 * Class::MOP::Attribute
d7d3f3cb 457 *** API CHANGE ***
458 - attributes now delegate to the
459 Class::MOP::Method::Accessor to generate
0870928c 460 accessors
d7d3f3cb 461
0870928c 462 * Class::MOP::Method::Accessor
d7d3f3cb 463 - all accessor generation functions from
0870928c 464 Class::MOP::Attribute have been moved here
a651e249 465
80f00c79 4660.35 Sat. Sept. 30, 2006
8745cf22 467
468 * scripts/class_browser.pl
d7d3f3cb 469 - initial prototype of a class browser, more
470 on this to come. Comments and patches are
8745cf22 471 very much welcome.
b1897d4d 472
473 * Class::MOP
d7d3f3cb 474 - All Class::MOP::* accessors are no longer
475 re-generated in the bootstrap, instead
6d2118a4 476 they are aliased from the originals
6d2118a4 477 - fixed tests to reflect
d7d3f3cb 478 - added Class::MOP::Method (and its subclasses)
b1897d4d 479 to the bootstrap
480 - adjusted tests for this
86482605 481 - added the Class::MOP::Instance attributes
482 to the bootstrap
d7d3f3cb 483
b1897d4d 484 * Class::MOP::Method
485 *** API CHANGE ***
486 - methods are no longer blessed CODE refs
487 but are actual objects which can be CODE-ified
488 - adjusted tests to compensate
d7d3f3cb 489 - adjusted docs for this
b1897d4d 490
491 * Class::MOP::Class
d7d3f3cb 492 - changed how methods are dealt with to
493 encapsulate most of the work into the
b1897d4d 494 &get_method_map method
495 - made several adjustments for the change
496 in Class::MOP::Method
d7d3f3cb 497 - &add_attribute now checks if you are adding
498 a duplicate name, and properly removes the
b1897d4d 499 old one before installing the new one
500 - added tests for this
86482605 501 - adjusted docs for this
d7d3f3cb 502
b1897d4d 503 * Class::MOP::Class::Immutable
504 - added caching of &get_method_map
505 - fixed issue with &get_package_symbol
506 - cleaned up the methods that die (patch by David Wheeler)
d7d3f3cb 507
b1897d4d 508 * Class::MOP::Package
d7d3f3cb 509 - added filtering capabilities to
b1897d4d 510 &list_all_package_symbols
511
a549ce50 5120.34 Sat. Aug. 26, 2006
c4260b45 513 * Class::MOP::Class
514 - added the %:methods attribute, which like
d7d3f3cb 515 the $:version and such just actually goes
516 to the symbol table to get it's stuff.
c4260b45 517 However, it makes the MOP more complete.
88dd563c 518 ** API CHANGE **
d7d3f3cb 519 - The &create method now requires that all
520 but the package name now is passed in as
88dd563c 521 named parameters. See docs for more info.
522 - updated docs and tests for this
d7d3f3cb 523
c4260b45 524 * Class::MOP::Object
d7d3f3cb 525 - added &dump method to easily Data::Dumper
c4260b45 526 an object
d7d3f3cb 527
c4260b45 528 * Class::MOP
d7d3f3cb 529 - cleaned up the initialization of attributes
530 which do not store things in the instance
c4260b45 531 - added the %:methods attribute definition to
532 the bootstrap
d7d3f3cb 533
88dd563c 534 ~ lots of misc. test cleanup
c4260b45 535
56e8dd5d 5360.33 Sat. Aug. 19, 2006
be7677c7 537 * Class::MOP::Class
d7d3f3cb 538 - moved the metaclass cache out of here
be7677c7 539 and it is now in Class::MOP itself.
d7d3f3cb 540
56e8dd5d 541 * Class::MOP
542 - moved all the metaclass cache stuff here
543 - fixed all tests for this
be7677c7 544
148b4697 545 * Class::MOP::Attribute
d7d3f3cb 546 - reference values (other than CODE refs)
148b4697 547 are no longer allowed for defaults
548 - added tests for this
d7d3f3cb 549
56dcfc1a 550 * Class::MOP::Package
d7d3f3cb 551 - fixed an issue with perl 5.8.1 and how it deals
552 with symbol tables. The namespace hash is now
553 always reloaded from the symbol table.
e3a2c885 554
555 ~ lots of misc. documentation cleanup
1396f86b 556
716c5765 5570.32 Sat. Aug. 12, 2006
d7d3f3cb 558 + added Class::MOP::Object so that the
6e57504d 559 metamodel is more complete (and closer
560 to what Perl 6 will probably be).
561
9ca19585 562 * Class::MOP::Package
d7d3f3cb 563 - refactored entire class, this is now
9ca19585 564 the primary gateway between the metaclass
565 and the Perl 5 symbol table
566 - added many tests for this
d7d3f3cb 567 - this class is now a subclass of
6e57504d 568 Class::MOP::Object
716c5765 569 - added some tests to reflect this
d7d3f3cb 570
9ca19585 571 * Class::MOP::Class
d7d3f3cb 572 - refactored all symbol table access to
9ca19585 573 use Class::MOP::Package methods instead
d7d3f3cb 574
f0480c45 575 * Class::MOP::Module
576 - adding the $:version attribute in the bootstrap
577 so that Module has a version as an attribute
578 - see comment in Class::MOP for details
d7d3f3cb 579 - added the $:authority attribute to this module
580 as well as an &identifier method, to bring us
581 ever closer to Perl 6 goodness
582 - I have added $AUTHORITY to all the modules
716c5765 583 - added tests for this
d7d3f3cb 584
f0480c45 585 * Class::MOP::Instance
d7d3f3cb 586 - added &deinitialize_slot for removing slots
f0480c45 587 from an instance
d7d3f3cb 588 - added tests for this
589
590 * Class::MOP::Attribute
9ca19585 591 - added support for &deinitialize_slot for removing
592 slots from an instance
593 - added tests for this
594
1a09d9cc 5950.31 Sat. July 15, 2006
596
b679e644 597 * Class::MOP::Class
598 - added &find_method_by_name to locate a method
d7d3f3cb 599 anywhere within the class hierarchy
600
b679e644 601 * Class::MOP::Attribute
d7d3f3cb 602 - added &set_value and &get_value for getting
603 the value of the attribute for a particular
b679e644 604 instance.
605
373a16ae 6060.30 Wed. July 5, 2006
607 ---------------------------------------
d7d3f3cb 608 This is the first version of Class::MOP
373a16ae 609 to introduce the immutable features which
d7d3f3cb 610 will be used for optimizating the MOP.
373a16ae 611 This support should still be considered
612 experimental, but moving towards stability.
613 ---------------------------------------
d7d3f3cb 614
615 * Created Class::MOP::Class::Immutable
616
617 * Created the Class::MOP::Package and
618 Class::MOP::Module classes to more
373a16ae 619 closely conform to Perl 6's meta-model
e0a82090 620
621 * Class::MOP::Class
622 - now inherits from Class::MOP::Module
d7d3f3cb 623 - several methods moved to ::Module and
e0a82090 624 ::Package and now inherited
625 - added tests for this
d7d3f3cb 626
c0cbf4d9 627 * Class::MOP::Instance
d7d3f3cb 628 - added an is_inlinable method to allow other
c0cbf4d9 629 classes to check before they attempt to optimize.
d7d3f3cb 630 - added an inline_create_instance to inline
631 instance creation (of course)
632
2ba153a9 633 ** API CHANGE **
d7d3f3cb 634 - the Class::MOP::Class::*_package_variable
2ba153a9 635 methods are all now methods of Class::MOP::Package
d7d3f3cb 636 and called *_package_symbol instead. This is
637 because they are now more general purpose symbol
638 table manipulation methods.
e0a82090 639
cdfaa4cc 6400.29_02 Thurs. June 22, 2006
641 ++ DEVELOPER RELEASE ++
df7b4119 642 * Class::MOP::Class
d7d3f3cb 643 - small change in &create so that it behaves
df7b4119 644 properly when inherited
cdfaa4cc 645 - small fix to &clone_instance
df7b4119 646
667cecf3 6470.29_01 Fri. May 12, 2006
648 ++ DEVELOPER RELEASE ++
d7d3f3cb 649 - This release works in combination with
667cecf3 650 Moose 0.09_01, it is a developer release
d7d3f3cb 651 because it introduces a new instance
652 sub-protocol and has not yet been
653 optimized.
667cecf3 654
40483095 655 * Class::MOP::Class
656 - anon-classes are now properly garbage collected
d7d3f3cb 657 - added tests for this
658 - improved method modifier wrapping
40483095 659
2bab2be6 660 * Class::MOP::Instance
1becdfcc 661 - added new instance protocol
2bab2be6 662 - added tests for this
663 - changed all relevant modules and examples
664 - Class::MOP::Class
665 - Class::MOP::Attribute
666 - examples/*
667
1becdfcc 668 * metaclass
669 - you no longer need to specify the metaclass
670 itself, if it is not there, Class::MOP::Class
671 is just assumed
672 - updated tests for this
673
674 * examples/
d7d3f3cb 675 - added ArrayBasedStorage example to show
1becdfcc 676 instance storage using ARRAY refs instead of
d7d3f3cb 677 HASH refs.
1becdfcc 678 - added tests for this
d7d3f3cb 679 - InsideOutClass is totally revised using the
1becdfcc 680 new instance protocol
681 - added more tests for this
682
93b4e576 6830.26 Mon. April 24, 2006
e7f732e4 684 * Class::MOP::Class
685 - added find_attribute_by_name method
686 - added tests and docs for this
56a0b530 687 - some small optimizations
688
689 * Class::MOP::Attribute
690 - some small optimizations
e7f732e4 691
46666f33 6920.25 Thurs. April 20, 2006
587aca23 693 * Class::MOP::Class
694 - added create_anon_class for creating anonymous classes
695 - added tests for this
696 - added get_all_metaclasses, get_all_metaclass_names
697 and get_all_metaclass_instances method to allow
698 access to all the cached metaclass objects.
bd4e03f9 699 - attribute slot initialization is now the responsibility
d7d3f3cb 700 of the attribute itself, and construct_instance now
bd4e03f9 701 delegates appropriately
d7d3f3cb 702
bd4e03f9 703 * Class::MOP::Attribute
704 - attribute slot initialization is now the responsibility
705 of the attribute itself, so we added a method for it
706 called initialize_instance_slot
d7d3f3cb 707
fed4cee7 708 * examples/
d7d3f3cb 709 - adjusted all the examples to use the new attribute
710 initialize_instance_slot method
587aca23 711
1daaa2b2 7120.24 Tues. April 11, 2006
8c936afc 713 * Class::MOP::Class
d7d3f3cb 714 - cleaned up how the before/after/around method
8c936afc 715 modifiers get named with Sub::Name
716
b9dfbf78 7170.23 Thurs. March 30, 2006
a977cf65 718 * Class::MOP::Class
d7d3f3cb 719 - fixed the way attribute defaults are handled
a977cf65 720 during instance construction (bug found by chansen)
d7d3f3cb 721
b9dfbf78 722 * Class::MOP::Attribute
d7d3f3cb 723 - read-only accessors ('reader') will now die if
b9dfbf78 724 passed more than one argument (attempting to write
725 to them basically)
726 - added tests for this
d7d3f3cb 727 - adjusted all /example files to comply
a977cf65 728
f9eba090 7290.22 Mon. March 20, 2006
0eff2c16 730 * Class::MOP::Class
731 - localized $@ in the *_package_variable functions
732 because otherwise, it does ugly things in Moose.
733 - added test case for this
734
1988e85e 7350.21 Wed. March 15, 2006
2f6d5412 736 * Class::MOP::Class
d7d3f3cb 737 - fixed issue where metaclasses are reaped from
2f6d5412 738 our cache in global destruction, and so are not
739 available in DESTORY calls
740
96ceced8 7410.20 Thurs. March 2, 2006
d7d3f3cb 742 - removed the dependency for Clone since
d3cb0d4a 743 we no longer to deep-cloning by default.
d7d3f3cb 744
a4258ffd 745 * Class::MOP::Method
d7d3f3cb 746 - added &package_name, &name and
747 &fully_qualified_name methods, some of
748 which were formerly private subs in
a4258ffd 749 Class::MOP::Class
d7d3f3cb 750
a4258ffd 751 * Class::MOP::Method::Wrapped
d7d3f3cb 752 - allows for a method to be wrapped with
753 before, after and around modifiers
a4258ffd 754 - added tests and docs for this feature
d3cb0d4a 755
756 * Class::MOP::Class
58d75218 757 - improved &get_package_symbol
96ceced8 758 - &version and &superclasses now use it
a4258ffd 759 - methods are now blessed into Class::MOP::Method
760 whenever possible
d7d3f3cb 761 - added methods to install CLOS-style method modifiers
a4258ffd 762 - &add_before_method_modifier
d7d3f3cb 763 - &add_after_method_modifier
a4258ffd 764 - &add_around_method_modifier
765 - added tests and docs for these
d7d3f3cb 766 - added &find_next_method_by_name which finds the
96ceced8 767 equivalent of SUPER::method_name
d3cb0d4a 768
1c020571 7690.12 Thurs. Feb 23, 2006
d7d3f3cb 770 - reduced the dependency on B, no need to always
d89c0fad 771 have the latest
772
1c020571 773 * examples/
774 - added docs to the C3 method dispatch order test
d7d3f3cb 775 - fixed missing Algorithm::C3 dependency by making
1c020571 776 the test skip if it is not installed
777
0dea7280 7780.11 Mon Feb. 20, 2006
f3f5bd34 779 * examples/
780 - added example of changing method dispatch order to C3
d7d3f3cb 781
a27ae83f 782 * Class::MOP::Class
19d4b5b8 783 - changed how clone_instance behaves, it now only does a
784 shallow clone (see docs for more details)
a27ae83f 785 - added docs and tests
f3f5bd34 786
3bf7644b 7870.10 Tues Feb. 14, 2006
d7d3f3cb 788 ** This release was mostly about writing more tests and
789 cleaning out old and dusty code, the MOP should now
3bf7644b 790 be considered "ready to use".
791
22286063 792 - adding more tests to get coverage up a little higher,
793 mostly testing errors and edge cases.
794 - test coverage is now at 99%
d7d3f3cb 795
aa448b16 796 * Class::MOP
797 - no longer optionally exports to UNIVERSAL::meta or
d7d3f3cb 798 creates a custom metaclass generator, use the
aa448b16 799 metaclass pragma instead.
22286063 800
d7d3f3cb 801 * Class::MOP::Class
802 - fixed a number of minor issues which came up in the
803 error/edge-case tests
804
805 * Class::MOP::Attribute
806 - fixed a number of minor issues which came up in the
22286063 807 error/edge-case tests
d7d3f3cb 808
0b8eb325 809 * examples/
ea263060 810 - fixing the AttributesWithHistory example, it was broken.
663f8198 811
550d56db 8120.06 Thurs Feb. 9, 2006
677eb158 813 * metaclass
d7d3f3cb 814 - adding new metaclass pragma to make setting up the
677eb158 815 metaclass a little more straightforward
d7d3f3cb 816
7b31baf4 817 * Class::MOP
d7d3f3cb 818 - clean up bootstrapping to include more complete
819 attribute definitions for Class::MOP::Class and
820 Class::MOP::Attribute (accessors, readers, writers,
7b31baf4 821 etc.) ... it is redundant, but is useful meta-info
822 to have around.
677eb158 823
99e5b7e8 824 * Class::MOP::Class
d7d3f3cb 825 - fixing minor meta-circularity issue with &meta, it
99e5b7e8 826 is now more useful for subclasses
d7d3f3cb 827 - added &get_attribute_map as an accessor for the
7b31baf4 828 hash of attribute meta objects
c9e77dbb 829 - &compute_all_applicable_attributes now just returns
830 the attribute meta-object, rather than the HASH ref
d7d3f3cb 831 since all the same info can be gotten from the
c9e77dbb 832 attribute meta-object itself
833 - updated docs & tests to reflect
5f3c057a 834 - added &clone_instance method which does a deep clone
835 of the instance structure created by &construct_instance
836 - added docs & tests for this
550d56db 837 - added Clone as a dependency
5f3c057a 838 - added &new_object and &clone_object convience methods to
839 return blessed new or cloned instances
2a7575a6 840 - they handle Class::MOP::Class singletons correctly too
5f3c057a 841 - added docs & tests for this
2a7575a6 842 - cleaned up the &constuct_class_instance so that it behaves
843 more like &construct_instance (and managed the singletons too)
550d56db 844 - added the &check_metaclass_compatibility method to make sure
845 that metaclasses are upward and downward compatible.
846 - added tests and docs for this
d7d3f3cb 847
99e5b7e8 848 * examples/
849 - adjusting code to use the &Class::MOP::Class::meta
850 fix detailed above
677eb158 851 - adjusting code to use the metaclass pragma
d7d3f3cb 852
aa9c883e 8530.05 Sat Feb. 4, 2006
2e41896e 854 * Class::MOP::Class
855 - added the &attribute_metaclass and &method_metaclass
d7d3f3cb 856 attributes which contain a metaclass name to use for
2e41896e 857 attributes/methods respectively
d7d3f3cb 858
351bd7d4 859 * Class::MOP
d7d3f3cb 860 - bootstrap additional attributes for Class::MOP::Class
861
2e41896e 862 * examples/
863 - adjusted the example code and tests to use the new
864 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 865 - added new example:
866 - LazyClass
2e41896e 867
d7c2cbe3 8680.04 Fri Feb. 3, 2006
d6fbcd05 869 * Class::MOP::Class
870 - some documentation suggestions from #perl6
d7d3f3cb 871
d6fbcd05 872 * Class::MOP::Attribute
d7d3f3cb 873 - improved error messages
874
d6fbcd05 875 * examples/
876 - added new examples:
877 - AttributesWithHistory
d7c2cbe3 878 - ClassEncapsultedAttributes
343203ee 879
9ec169fe 8800.03 Fri Feb. 3, 2006
881 - converted to Module::Build instead of EU::MM
d7d3f3cb 882
9ec169fe 883 * Class::MOP::Attribute
884 - refactored method generation code
885 - attributes are now associated with class directly
d7d3f3cb 886
f71f4295 887 * examples/
d7d3f3cb 888 - refactored the InsideOut example to take advantage
9ec169fe 889 of the Class::MOP::Attribute refactoring
f71f4295 890 - changed example files to .pod files and hide thier
891 package names from PAUSE (I don't want to own these
892 namespaces really, they are just examples)
9ec169fe 893
a57c7fa2 8940.02 Thurs Feb. 2, 2006
895 - moving examples from t/lib/* to examples/*
896 - adding POD documentation to the examples
897
a2e85e6c 8980.01 Thurs Feb. 2, 2006
92af7fdf 899 - Initial release