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