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