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