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