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