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