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