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