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