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