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