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