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