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