return early if a package's stash is empty in get_method_map
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
b817e248 2
8dd10256 30.82_02 Fri, April 24, 2009
ab07b752 4 * Class::MOP::Method::Inlined
5 - Don't inline if the expected method is not defined at all (happens with
6 e.g. Moose::Object::_new is the expected method due to an overridden
7 name)
bfaf96f4 8 * Tests
9 - Some tests were trying to load Class::MOP::Immutable, which
10 was removed in 0.82_01.
11
a2619b52 120.82_01 Thu, April 23, 2009
abf9add2 13 * Class::MOP::Immutable (and others)
14 - Refactor the immutability system to use a pre-defined class
15 for the immutable metaclass of Class::MOP::Class::Immutable::$class
16 - Rather than generating methods into this class every time, use
17 a Trait (basic mixin) to supply the cached methods
18 - Remove the hack that returns the mutable metaclass for
19 metacircularity in order to provide consistent meta-metaclasses
20 for the Moose compatibility handling code
f56e2a2e 21 (mst broke it, nothingmuch fixed it)
a2619b52 22
a9a053ab 230.82 Mon, April 20, 2009
6630c615 24 * Various
23378ff6 25 - The deprecation wrappers for some renamed methods were not
6630c615 26 passing arguments to the new method. (nothingmuch)
27
3fae1320 28 * Class::MOP::Immutable
29 - Warn during immutablization if the local class provides its own
30 constructor, to parallel the warning in Moose when a superclass
31 provides its own constructor (doy)
32
a2baa8d4 330.81 Tue, April 7, 2009
6e5d17d2 34 * Class::MOP
35 * Class::MOP::Class
36 * Class::MOP::Instance
37 * Class::MOP::Attribute
38 * Class::MOP::Method::Accessor
39 * Class::MOP::Method::Constructor
a2baa8d4 40 - Include stack traces in the deprecation warnings introduced in
41 0.80_01. (Florian Ragwitz)
6e5d17d2 42
43 * MOP.xs
a2baa8d4 44 - Avoid c compiler warnings by declaring some unused function
45 arguments. (Florian Ragwitz)
6e5d17d2 46
93bd804c 470.80_01 Sun, April 5, 2009
72bc0a47 48 * Makefile.PL
49 - Make sure to preserve any compiler flags already defined in
50 Config.pm. Patch by Vincent Pit. RT #44739.
51
47ce35ba 52 * Many methods have been renamed with a leading underscore, and a
53 few have been deprecated entirely. The methods with a leading
54 underscore are consider "internals only". People writing
55 subclasses or extensions to Class::MOP should feel free to
56 override them, but they are not for "public" use.
d0454293 57
58 - Class::MOP::Class
59 - construct_class_instance => _construct_class_instance (use new_object)
60 - construct_instance => _construct_instance (use new_object)
61 - check_metaclass_compatibility => _check_metaclass_compatibility
62 - create_meta_instance => _create_meta_instance (use get_meta_instance)
63 - clone_instance => _clone_instance (use clone_object)
64 - compute_all_applicable_methods is deprecated, use get_all_methods
65 - compute_all_applicable_attributes is deprecated, use get_all_attributes
66
67 - Class::MOP::Instance
68 - bless_instance_structure is deprecated and will be removed
69 in a future release
70
71 - Class::MOP::Module
72 - create has been renamed to _instantiate_module. This method
73 does not construct an object, it evals some code that
74 creates the relevant package in Perl's symbol table.
75
76 - Class::MOP::Method::Accessor
77 - initialize_body => _initialize_body (this is always called
78 when an object is constructed)
79 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
80
81 - Class::MOP::Method::Constructor
82 - initialize_body => _initialize_body (this is always called
83 when an object is constructed)
84 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
85 - attributes => _attributes
86 - meta_instance => _meta_instance
87
416d180f 880.80 Wed, April 1, 2009
164bf00b 89 * Class::MOP::*
86c265e1 90 - Call user_class->meta in fewer places, with the eventual goal
91 of allowing the user to rename or exclude ->meta
386655ca 92 altogether. Instead uses Class::MOP::class_of. (Sartak)
164bf00b 93
94 * Class::MOP
95 - New class_of function that should be used to retrieve a
86c265e1 96 metaclass. This is unlike get_metaclass_by_name in that it
97 accepts instances, not just class names. (Sartak)
164bf00b 98
44da14be 99 * Class::MOP
86c265e1 100 - load_first_existing_class didn't actually load the first
101 existing class; instead, it loaded the first existing and
102 compiling class. It now throws an error if a class exists (in
103 @INC) but fails to compile. (hdp)
44da14be 104
ffd09845 105 * Class::MOP
86c265e1 106 * Class::MOP::Class
ffd09845 107 - we had some semi-buggy code that purported to provide a
86c265e1 108 HAS_ISAREV based on whether mro had get_isarev (due to an
109 oversight, it always returned 1). Since mro and MRO::Compat
110 have always had get_isarev, HAS_ISAREV was pointless. This
111 insight simplified the subclasses method by deleting the
112 pure-perl fallback. HAS_ISAREV is now deprecated. (Sartak)
ffd09845 113
d7fe2508 1140.79 Fri, March 29, 2009
115 * No changes from 0.78_02.
116
ee32b2fa 1170.78_02 Thu, March 26, 2009
2c1f5348 118 * Class::MOP::Class
ea501fb6 119 * Class::MOP::Immutable
120 - A big backwards-incompatible refactoring of the Immutable API,
8e374ce5 121 and the make_immutable/make_mutable pieces of the Class
122 API. The core __PACKAGE__->meta->make_immutable API remains
123 the same, however, so this should only affect the most
124 guts-digging code.
ea501fb6 125
f8fa5c25 126 * XS code
127 - The XS code used a macro, XSPROTO, that's only in 5.10.x. This
128 has been fixed to be backwards compatible with 5.8.x.
c5f65de9 129
130 * Class::MOP::Class
131 - Add a hook for rebless_instance_away (Sartak)
132 - Use blessed instead of ref to get an instance's class name
133 in rebless_instance. (Sartak)
f8fa5c25 134
1350.78_01 Wed, March 18, 2009
136 * Class::MOP::*
137 - Revised and reorganized all of the API documentation. All
138 classes now have (more or less) complete API documentation.
139
ea501fb6 140 * Class::MOP::Class
2c1f5348 141 * Class::MOP::Instance
142 - Reblessing into a package that supports overloading wasn't
143 properly adding overload magic to the object due to a bug
144 in (at least) 5.8.8. We now use $_[1] directly which seems
145 to set the magic properly. (Sartak)
9e9a0c94 146
45a183fb 147 * Class::MOP::Attribute
148 - The process_accessors method is now private. A public alias
149 exists (and will stick around for a few releases), but it
150 warns that calling the public method is deprecated.
151
0242e3f9 152 * Class::MOP::Method::Generated
153 - Removed the new and _new methods, since this is an abstract
154 base class, and all existing subclasses implement their own
155 constructors.
156
4e1aac01 157 * MOP.xs
158 - Stop is_class_loaded from thinking a class is loaded if it
159 only has an empty GV (Florian Ragwitz).
9e9a0c94 160 - Add a test for this (Yappo).
029b8969 161 - Refactor get_all_package_symbols to allow short-circuiting
162 (Florian Ragwitz).
9e9a0c94 163 - Use this in is_class_loaded (Florian Ragwitz).
029b8969 164 - Stop segfaulting when trying to get the name from a sub that's
165 still being compiled (Florian Ragwitz).
9e9a0c94 166 - Add tests for this (Florian Ragwitz).
d90a8e8f 167 - Prefix all public symbols with "mop_" (Florian Ragwitz).
ef7d3a1d 168 - Clean up and simplify prehashing of hash keys (Florian Ragwitz).
169 - Simplify creating simple xs reader methods (Florian Ragwitz).
4052ab27 170 - Make everything compile with c++ compilers (Florian Ragwitz).
08f3791a 171 - Upgrade ppport.h from 3.14 to 3.17 (Florian Ragwitz).
9e9a0c94 172
029b8969 173 * Tests
174 - Remove optional test plans for tests depending on Sub::Name as
90bd72aa 175 we have a hard dependency on Sub::Name anyway (Florian Ragwitz).
2c1f5348 176
ef7d3a1d 177 * Makefile.PL
178 - Rebuild all c code if mop.h has changed (Florian Ragwitz)
179
eca95e04 1800.78 Mon, February 23, 2009
47e735e0 181 * No changes from 0.77_01
eca95e04 182
d5f6699d 1830.77_01 Sun, February 22, 2009
4bfa5ddb 184 * Everything
185 - This package now requires its XS components. Not using
186 Sub::Name lead to different behavior and bugginess in the pure
d5f6699d 187 Perl version of the code. A Moose test would fail when run
188 against the pure Perl version of this code.
189
7ebb7bed 190 * Class::MOP::Instance
d5f6699d 191 - The inline_* methods now quote attribute names themselves, and
192 don't expect to receive a quoted value.
193
4bfa5ddb 194
8f3fba9b 1950.77 Sat, February 14, 2009
9c1dd83f 196 * MOP.xs
197 - Avoid assertion errors on debugging perls in is_class_loaded
198 (Florian Ragwitz)
199
3079a90e 200 * Class::MOP
201 - Fixed various corner cases where is_class_loaded incorrectly
202 returned true for a class that wasn't really loaded. (Dave
203 Rolsky)
204
668df632 205 * Class::MOP::Class
206 - Add get_all_method_names (Sartak)
9c1dd83f 207 - Add a wrapped_method_metaclass attribute (Florian Ragwitz)
668df632 208
a4bb3172 209 * Class::MOP::Package
c3c1917f 210 - Disable deprecated get_all_package_symbols in list
211 context. (Florian Ragwitz)
212
213 * Makefile.PL
214 - Make sure we generate a BSD-compatible Makefile (Florian
a4bb3172 215 Ragwitz)
216
8fd32374 217 * Class::MOP::Class
c5c8a954 218 - The misspelled "check_metaclass_compatability" method we've
8fd32374 219 kept around for backwards compat_i_bility will be removed in a
220 near future release. You've been warned.
221
8f3fba9b 2220.76 Thu, January 22, 2009
0b305028 223 * Class::MOP::Method::Generated
224 - Added new private methods to support code generation, which
225 are being used by Moose and can be used by MooseX
226 authors. (mst)
227 - Generated methods are now generated with a #line directive
228 reflecting the source of the generated method. (nothingmuch)
229
230 * Class::MOP::Class
231 - Clarified documentation of methods that return
232 Class::MOP::Method objects. (doy)
233
234 * Class::MOP
235 - Clarified documentation of the metaclass cache methods. (Sartak)
236
89f74416 237 * Tests
238 - Add test showing how the xs Class::MOP::is_class_loaded can
239 be made to operate differently to the pure perl version (t0m)
240
a0497979 2410.75 Wed, December 31, 2008
d89108ab 242 * Class::MOP::Class
243 - A class that was made immutable and then mutable could end up
244 sharing an immutable transformer object
245 (Class::MOP::Immutable) with other classes, leading to all
246 sorts of odd bugs. Reported by t0m. (Dave Rolsky)
247
c16a3087 2480.74 Tue, December 25, 2008
d14e06c3 249 * MOP.xs
250 - Add an xs implementation of Class::MOP::is_class_loaded (closes
251 RT#41862). Based on a patch by Goro Fuji. (Florian Ragwitz)
252 - Changed internals to make prehashing of hash keys easier and less
253 error-prone. (Florian Ragwitz)
254 * Class::MOP::Class
255 - Fix documentation to show that around modifiers happen on both
c6d9b1ff 256 sides of the modified method. (Dave Rolsky)
d14e06c3 257
2b5fafa1 2580.73 Tue, December 16, 2008
c0757d65 259 * MOP.xs
2b5fafa1 260 - Don't use Perl_mro_meta_init. It's not part of the public perl
261 api. Fixes failures to build on Win32 (RT #41750). (Florian
262 Ragwitz)
351e5029 263 * t/082_get_code_info.t
2b5fafa1 264 - Add $^P &= ~0x200; (per Ovid's suggestion) in order to not
265 munger anonymous subs when under -d and so making the tests
266 succeed in that case.
351e5029 267
8704ee6d 2680.72 Mon, December 8, 2008
6a6f7a2f 269 * Class::MOP::Package
270 - Pass options to _new, so subclass' attributes can be
271 initialized (Sartak)
aa906e42 272 * Class::MOP::Method
adb2b128 273 - In the docs, indicate that package_name and name are required
274 when calling ->wrap (Stefan O'Rear)
6a6f7a2f 275
6b5ac420 2760.71_02 Fri, December 5, 2008
62a0a0f3 277 * Class::MOP::Immutable
278 - Added a new attribute, inlined_constructor, which is true if
279 the constructor was inlined.
fdc6771b 280 * Class::MOP::Package
281 - Make get_all_package_symbols return a hash ref in scalar
282 context and deprecate calling it in list context with a
283 warning. (Florian Ragwitz)
284 * MOP.xs
285 - Various improvements and refactoring, making things more robust and
286 easier to maintain. (Florian Ragwitz)
62a0a0f3 287
34147f49 2880.71_01 Wed, December 3, 2008
25a5f083 289 * Class::MOP::Method
290 - Add an "execute" method to invoke the body so
291 we can avoid using the coderef overload (Sartak)
41885bab 292 * Class::MOP::Immutable
9ec62360 293 - When we memoize methods, get their results lazily
294 to remove some compile-time cost (Sartak)
41885bab 295 - Small speedup from eliminating several method
296 calls (Sartak)
05e183d1 297 * Class::MOP::Class
298 - Some small internal tweaks to try to reduce the number of
299 times we call get_method_map when bootstrapping the MOP. This
300 might make loading Class::MOP (and Moose) a little
301 faster. (Dave Rolsky)
52e5f955 302 - Implemented an optional XS version of get_method_map. Mostly
303 taken from a patch by Goro Fuji (rt.cpan.org #41080), with
304 help form Florian Ragwitz. (Dave Rolsky)
7ef2f4b7 305 - Make the behaviour of of get_all_package_symbols (and
306 therefore get_method_map) consistent for stub methods. Report
307 and test by Goro Fuji (rt.cpan.org #41255). (Florian Ragwitz)
25a5f083 308
96185d43 3090.71 Wed November 26, 2008
d652fbd5 310 * Class::MOP::Class
311 * Class::MOP::Module
312 - Actual package creation has moved upward from
313 Class to Module so that Moose roles can share
314 the code (Sartak)
315
88b8ac17 3160.70_01 Mon, November 19, 2008
317 * Class::MOP
318 - Fixes for failures with blead (Florian Ragwitz)
319 - Silenced compiler warnings (Florian Ragwitz)
320
3210.70 Fri, November 14, 2008
7329b9e2 322 * Class::MOP
323 - Fixed an odd corner case where the XS version of
9b1760fc 324 get_all_package_symbols could cause a segfault. This only
7329b9e2 325 happened with inlined constants in Perl 5.10.0 (Florian
326 Ragwitz)
7329b9e2 327
52c685d3 3280.69 Fri, November 7, 2008
b88aa2e8 329 * Class::MOP::Method::Wrapped
330 - Added introspection methods for method modifiers (Dave Rolsky)
331
332
4a9e02e8 3330.68 Fri October 24, 2008
dfbc4d4c 334 * Class::MOP
335 - Make load_class require by file name instead of module name.
336 This stops confusing error messages when loading '__PACKAGE__'.
337 (Florian Ragwitz)
5a24cf8a 338 - Add load_one_class_of function to enable you to load one of a
339 list of classes, rather than having to call load_class multiple
340 times in an eval. (t0m)
dfbc4d4c 341
5f5ee28a 3420.67 Tue October 14, 2008
2e7eb96b 343 * Class::MOP::Class
344 - Call a method on the class after setting the superclass list
345 so that we can get Perl to detect cycles before MRO::Compat
346 spirals into an infinite loop (sartak)
347 - Reported by Schwern, [rt.cpan.org #39001]
34d04967 348 - In create(), pass unused options on to initialize()
349 - added test for this
2e7eb96b 350
34d04967 3510.66 Sat September 20, 2008
fe05cbbe 352 !! This release has an incompatible change regarding !!
353 introspection of a class's method with Class::MOP::Class !!
354
9e9e6b8f 355 * Tests and XS
356 - We (us maintainers) now run all tests with XS and then without
357 XS, which should help us catch skew between the XS/pure Perl
e073e667 358 code. (Dave Rolsky)
9e9e6b8f 359
91b73829 360 * Class::MOP::Class
fe05cbbe 361 ! The alias_method method has been deprecated. It now simply
1190621f 362 calls add_method instead. There is no distinction between
363 aliased methods and "real" methods.
fe05cbbe 364
365 This means that methods added via alias_method now show up as
7143219b 366 part of the class's method list/map. This is a backwards
fe05cbbe 367 incompatible change, but seems unlikely to break any
368 code. Famous last words. (Dave Rolsky)
91b73829 369
155f0cba 370 * Class::MOP::Class
371 - Fixed the spelling of "compatibility", but we still have a
372 "check_metaclass_compatability" method for backwards
373 compatibility.
9e9e6b8f 374
94278c1b 3750.65 Mon September 1, 2008
376 For those not following the series of dev releases, the changes
8b9106cf 377 from 0.64 from 0.65 can mostly be summed up as a lot performance
94278c1b 378 improvements by nothingmuch, including new optional XS versions of
379 some methods. Also, Class::MOP now works _without_ any XS modules,
380 for sad systems without a compiler.
381
988fb42e 382 * Class::MOP::Method
383 - Added name and package_name XS accessors, and make sure all
384 the XS and Perl versions work the same way. (Dave Rolsky)
385
386 * MOP.xs
387 - The XS versions of various methods just returned undef when
388 called class methods, rather than dying like the pure Perl
389 versions. (Dave Rolsky)
390
13ac653a 3910.64_07 Fri August 29, 2008
400982e3 392 * Class::MOP
13ac653a 393 - Silenced warnings that managed to break Moose tests when XS
394 was loaded. (Dave Rolsky)
395 - Some XS versions of methods were ignored because of typos in
396 MOP.xs. (Dave Rolsky)
400982e3 397
13ac653a 3980.64_06 Mon August 25, 2008
9457b596 399 * Class::MOP (MOP.xs)
400 - Another MS VC++ fix, cannot declare a variable in the middle
401 of a scope (Taro Nishino).
402
4030.64_05 Sun August 24, 2008
2a755fe8 404 * Class::MOP
405 - None of the dev releases actually loaded the XS properly, but
406 we silently fell back to the pure Perl version of the
407 code. (Dave Rolsky)
408
409 * Class::MOP (MOP.xs)
410 - Replaced some code that used functions not available on Visual
411 C++ with some Perl XS API bits (Dave Rolsky).
412
f65af096 4130.64_04 Sat August 23, 2008
9ebc265d 414 * Class::MOP::Class
f65af096 415 - Workaround a bug in 5.8.1's goto sub (nothingmuch)
416
417 * pod.t and pod_coveraget.t
418 - These are no longer shipped with the tarball because of bogus
419 failures from CPAN testers. (Dave Rolsky)
9ebc265d 420
df7077cd 4210.64_03 Thu August 21, 2008
422 * Class::MOP::Package
423 - Some (legit) code was misparsed by earlier 5.8.x
424 releases. (nothingmuch)
425
426 * Class::MOP
427 - Fix a constant in void context warning (nothingmuch)
428
09ed1ec5 4290.64_02 Thu August 21, 2008
64c591d3 430 * Makefile.PL and Class::MOP
4dde2f23 431 - Explicitly require Perl 5.8.0+ (Dave Rolsky)
432
433 * Makefile.PL
434 - Add missing prereqs that got lost in the switch away from
435 Module::Install.
64c591d3 436
09ed1ec5 437 * Class::MOP::Instance
438 - New method - get_all_attributes (nothingmuch)
439
4400.64_01 Wed August 20, 2008
f125b31e 441 * Makefile.PL
442 - We now check to see if you have a compiler. If you don't, the
443 module installs without some XS bits, but will work the same
444 as with XS. This should make it easier to install on platforms
445 without a compiler (like Windows). (Dave Rolsky)
2e5c1a3f 446
40b3c18f 447 * many modules
7f799c13 448 - Perl 6 style attribute naming replaced with sane style ('methods', not
449 '%!methods'). These changes should not impact any existing API uses.
450 (nothingmuch).
451
452 * many modules
40b3c18f 453 - Quite a number of optimizations based on profiling, including
454 allowing constructors to take hash references instead of
455 hashes, duplicating some frequently used code in XS, and
456 making constructors immutable. These changes should not impact
457 any existing API uses. (nothingmuch)
458
7f799c13 459 * Many modules
460 - Constructors now respect the meta attributes of their subclasses,
461 facilitating MOP extensibility. More related changes will happen in the
462 next several releases. (nothingmuch)
463
40b3c18f 464 * Class::MOP::Class
7f799c13 465 - New method - get_all_methods, replaces the deprecated
466 compute_all_applicable_methods. get_all_attributes provided for
467 consistency (nothingmuch)
468 - New method - wrap_method was refactored out of get_method_map
469 (nothingmuch)
470 - New API for meta instance invalidation - invalidate_meta_instance,
471 invalidate_meta_instances, add_dependent_meta_instance,
472 remove_dependent_meta_instance, called automatically when attribute
473 definitions change and allows notification of dependent subclasses.
474 (nothingmuch)
40b3c18f 475
7202116b 4760.64 Sun August 3, 2008
84bc89b3 477 * Class::MOP::Immutable
7202116b 478 - fixing subtle edge case in immutable when you
84bc89b3 479 call ->meta (stevan)
7202116b 480 - clean up option processing (nothingmuch)
481
482 * Class::MOP::Instance
483 - inlined initialize slot didn't match
484 non-inlined (nothingmuch)
84bc89b3 485
f079b1eb 4860.63 Mon July 7, 2008
07940968 487 * Class::MOP
488 - load_class will initialize a metaclass even if
489 the class is already loaded (sartak)
490 - load_class now returns the metaclass instance
491 instead of just 1 (sartak)
6e1c8b63 492
f079b1eb 493 * elsewhere
494 - better error messages (sartak and Dave Rolsky)
495
ebce5539 4960.62 Wed June 18, 2008
1377b506 497 - in is_class_loaded, recognize scalar references (as opposed to globs) in
498 the symbol table as methods (these are optimized constant subs)
499
70ad0655 5000.61 Fri. June 13, 2008
501 - Okay, lets give this another try and see if PAUSE
502 recognizes it correct this time.
a023763e 503
5040.60 Thurs. Jun 12, 2008
809a26fc 505 - Fixed a version number issue by bumping all modules
506 to 0.60.
8c5cc782 507
5080.59 Thurs. Jun 12, 2008
d1dba7a1 509 !! Several fixes resulting in yet another 25-30% speedup !!
9b522fc4 510
511 * Class::MOP::Class
512 - now stores the instance of the instance
513 metaclass to avoid needless recomputation
8b49a472 514 and deletes it when the cache is blown
119f3a92 515 - introduce methods to query Class::MOP::Class for
516 the options used to make it immutable as well as
517 the proper immutable transformer. (groditi)
8b49a472 518
519 * Class::MOP::Package
520 - {add, has, get, remove}_package_symbol all
521 now accept a HASH ref argument as well as the
522 string. All internal usages now use the HASH
523 ref version.
f6dc69d2 524
525 * Class::MOP
526 - MOP.xs does sanity checks on the coderef
527 to avoid a segfault
26fcef27 528 - is_class_loaded check now uses code that
529 was improved in Moose's ClassName type
ab5e2f48 530 check (Sartak)
531 - nonsensical (undef, empty, reference) class
532 names now throw a more direct error in
533 load_class (Sartak)
3f7759c1 534 - tests for this and other aspects of
535 load_class (Sartak)
9b522fc4 536
537 * Class::MOP
538 Class::MOP::Class
539 Class::MOP::Method
540 Class::MOP::Method::Wrapped
541 Class::MOP::Attribute
542 - switched usage of reftype to ref because
543 it is much faster
544
352c364f 5450.58 Thurs. May 29, 2008
62781d9f 546 (late night release engineering)--
547
548 - fixing the version is META.yml, no functional
549 changes in this release
550
de0f9e1c 5510.57 Wed. May 28, 2008
d1dba7a1 552 !! Several speedups resulting in 20-25% speedups !!
de0f9e1c 553 || (thanks to konobi, groditi, mst & CataMoose) !!
554
ae234dc6 555 * Class::MOP::Class
556 - made get_method_map use list_all_package_symbols
557 instead of manually grabbing each symbol
de0f9e1c 558 - streamlining &initialize somewhat, since it gets
559 called so much
ae234dc6 560
561 * Class::MOP::Package
562 - made {get, has}_package_symbol not call
563 &namespace so much
de0f9e1c 564 - inlining a few calls to &name with
565 direct HASH access key access
ae234dc6 566 - added get_all_package_symbols to fetch
567 a HASH of items based on a type filter
568 similar to list_all_package_symbols
569 - added tests for this
570
32202ce2 571 * Class::MOP::Method
572 Class::MOP::Method::Constructor
573 Class::MOP::Method::Generated
574 Class::MOP::Method::Accessor
575 - added more descriptive error message to help
576 keep people from wasting time tracking an error
47e20ba2 577 that is easily fixed by upgrading.
32202ce2 578
d1dba7a1 579 * Class::MOP::Immutable
580 - Don't inline a destructor unless the user actually
581 needs one
582 - added tests for this
583
b4009dc1 5840.56 Saturday, May 24, 2008
11b56828 585 * Class::MOP
586 - we now get the &check_package_cache_flag
587 function from MRO::Compat
d7d3f3cb 588 - All XS based functionality now has a
589 Pure Perl alternative
6c34db07 590 - the CLASS_MOP_NO_XS environment variable
d7d3f3cb 591 can now be used to force non-XS versions
6c34db07 592 to always be used
11b56828 593
9e517e01 594 * Class::MOP::Attribute
595 - add has_read_method and has_write_method
d7d3f3cb 596 - get_{read,write}_method_ref now wraps the
def5c0b5 597 anon-sub ref in the method metaclass when
598 possible
599 - added tests for this
d7d3f3cb 600
5f3efd66 601 * Class::MOP::Immutable
d7d3f3cb 602 - added the ability to "wrap" methods when
5f3efd66 603 making the class immutable
d7d3f3cb 604
5f3efd66 605 * Class::MOP::Class
daf8d8bc 606 - now handling the edge case of ->meta->identifier
d7d3f3cb 607 dying by wrapping add_package_symbol to specifically
5f3efd66 608 allow for it to work.
609 - added tests for this
d7d3f3cb 610
611 * Class::MOP::Attribute
6c34db07 612 Class::MOP::Class
d7d3f3cb 613 Class::MOP::Immutable
6c34db07 614 - any time a method meta object is constructed
d7d3f3cb 615 we make sure to pass the correct package and
6c34db07 616 method name information
d7d3f3cb 617
6c34db07 618 * Class::MOP::Method
619 Class::MOP::Method::Wrapped
620 Class::MOP::Method::Generated
621 Class::MOP::Method::Accessor
d7d3f3cb 622 Class::MOP::Method::Consructor
623 - the &wrap constructor method now requires that a
624 'package_name' and 'name' attribute are passed. This
625 is to help support the no-XS version, and will
626 throw an error if these are not supplied.
6c34db07 627 - all these classes are now bootstrapped properly
628 and now store the package_name and name attributes
d7d3f3cb 629 correctly as well
630
631 ~ Build.PL has been removed since the
632 Module::Install support has been removed
9e517e01 633
8adaad20 6340.55 Mon. April 28, 2008
635 - All classes now have proper C3 MRO support
636 - added MRO::Compat as a dependency to allow
637 for the C3 MRO support to Just Work in all
638 perl versions
d7d3f3cb 639
830b326c 640 * Class::MOP::Class
d7d3f3cb 641 - rebless_instance now returns the instance
642 it has just blessed, this is mostly to
830b326c 643 facilitate chaining
d7d3f3cb 644 - set the attr correctly in rebless_instance
6e2a700f 645 when it has no init_arg
77a143ba 646 - tweaked &linear_isa and &class_precedence_list
647 to support c3 classes.
830b326c 648
e0db39d2 6490.54 Fri. March, 14, 2008
8861fab2 650 * Class::MOP
214e4bd7 651 metaclass.pm
8861fab2 652 - making sure that load_class never gets
d7d3f3cb 653 passed a value from @_ or $_ to squash
8861fab2 654 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
655
09c6e1d2 656 * Class::MOP::Class
657 - make_{immutable,mutable} now return 1
658 (cause Sartak asked)
d7b2249e 659 - improved error handling in ->create method
d7d3f3cb 660 - rebless_instance now takes extra params which
661 will be used to populate values
214e4bd7 662 - added tests for this
d7d3f3cb 663
acce7fd6 664 * Class::MOP::Object
d7d3f3cb 665 - localizing the Data::Dumper configurations so
666 that it does not pollute others (RT #33509)
667
d7b2249e 668 * Class::MOP::Class
669 Class::MOP::Package
670 Class::MOP::Module
671 Class::MOP::Method
672 Class::MOP::Attribute
d7d3f3cb 673 - these classes no longer define their own ->meta,
674 but instead just inherit from Class::MOP::Object
675
d7b2249e 676 * Class::MOP::Instance
d7d3f3cb 677 Class::MOP::Immutable
d7b2249e 678 - these classes now inherit from Class::MOP::Object
d7d3f3cb 679
10dd437b 680 * t/
d7d3f3cb 681 - fixed the filename length on several
10dd437b 682 test files so we install on VMS better
683 (RT #32295)
d7d3f3cb 684 - fixed incorrect use of catdir when it
10dd437b 685 should be catfile (RT #32385)
686
2491730f 6870.53 Thurs. Feb. 14, 1008
7a536297 688 ~~ several doc. fixes and updates ~~
d7d3f3cb 689
0c6f4c4a 690 * Class::MOP::Class
691 Class::MOP::Method::Constructor
692 Class::MOP::Attribute
693 - making init_arg accept an undefined value
d7d3f3cb 694 to indicate that no constructor args can
0c6f4c4a 695 be passed (thanks to nothingmuch)
696 - added tests for this
339264d8 697 - added attribute initializer attribute (rjbs)
d7d3f3cb 698
0c6f4c4a 699 * Class::MOP.
700 - making this use the new init_arg => undef
d7d3f3cb 701 feature instead of the silly hack from
0c6f4c4a 702 before (thanks to nothingmuch)
ad074154 703
3e8e8f07 7040.52 Tues. Jan. 22, 2008
2a2b8458 705 * Class::MOP::Class
d7d3f3cb 706 - fixed bug in rebless_instance
2a2b8458 707 (discovered by ash)
708
709 * Class::MOP::Method::Constructor
d7d3f3cb 710 - removed assumptions about the existence of
2a2b8458 711 a &meta method
712
656ce3ba 7130.51 Mon. Jan. 14, 2008
69e3ab0a 714 ~~~ some misc. doc. fixes ~~~
715 ~~ updated copyright dates ~~
d7d3f3cb 716
c1d5345a 717 * Class::MOP
d7d3f3cb 718 - now sets the IS_RUNNING_ON_5_10
c1d5345a 719 constant so that we can take advantage
720 of some of the nice bits of 5.10
d7d3f3cb 721
c1d5345a 722 * Class::MOP::Class
d7d3f3cb 723 - uses the IS_RUNNING_ON_5_10 flag to
724 optimize the &linearized_isa method
c1d5345a 725 and avoid the hack/check for circular
d7d3f3cb 726 inheritence in &class_precedence_list
3d9e4646 727 - added rebless_instance method (Sartak)
728 - added tests for this
d7d3f3cb 729
730 * Class::MOP::Immutable
731 - the immutable class now keeps track of
c1d5345a 732 the transformer which immutablized it
69e3ab0a 733
3d9e4646 734 * Class::MOP::Instance
735 - added rebless_instance_structure method (Sartak)
736 - added tests for this
737
a780a6ff 7380.50 Fri. Dec. 21, 2007
6ff0d647 739 * Class::MOP::Class
d7d3f3cb 740 - fixed bug in immutable to make sure that
741 transformation arguments are saved
6ff0d647 742 correctly (mst)
b6bcc3a5 743 - added tests for this
d7d3f3cb 744
6ff0d647 745 * Class::MOP::Immutable
746 - fixed a bug (see above)
d7d3f3cb 747
6ff0d647 748 * Class::MOP::Attribute
749 - some doc updates
750
30b8af04 7510.49 Fri. Dec. 14, 2007
b6bcc3a5 752 !! Class::MOP now loads 2 x faster !!
30b8af04 753 !! with XS speedups (thanks konobi) !!
d7d3f3cb 754
30b8af04 755 * Class::MOP
756 - removed the dependency on B
757 - added two XS functions (thanks konobi)
758 - get_code_info($code) which replaces all
759 the B fiddling we were doing with
760 faster/leaner XS level fiddling
d7d3f3cb 761 - check_package_cache_flag($pkg_name) which
762 returns the PL_sub_generation variable to
30b8af04 763 be used to help manage method caching.
d7d3f3cb 764
765 NOTE:
766 In 5.10 or greater this will actually
767 use the mro::get_pkg_gen instead to give
768 even more accurate caching information.
30b8af04 769 blblack++ for that stuff :)
d7d3f3cb 770
6c9f390e 771 * Class::MOP::Class
772 - added the &subclasses method (thanks rlb)
d7d3f3cb 773 - added the update_package_cache_flag and
774 reset_package_cache_flag which help keep
775 track of when we need to re-fetch the
776 method map.
30b8af04 777 - Several small improvements to take advantage
778 of the new method map caching features
4c4a6c41 779
1b8b3e09 7800.48 Mon. Nov. 26, 2007
d14f6cbe 781 * Class::MOP::Attribute
d7d3f3cb 782 - fixed get_read/write_method to handle the
783 HASH ref case, which makes the
d14f6cbe 784 get_read/write_method_ref handle it too.
785 - added more tests for this
786
742fb371 7870.47 Sat. Nov. 24, 2007
788 * Class::MOP::Attribute
789 - fixed misspelling in get_write_method_ref
78d9bb38 790 - added more tests for this
742fb371 791
fe7c0b15 7920.46 Fri. Nov. 23, 2007
b7bdffc3 793 * Class::MOP::Class
d7d3f3cb 794 - added the linearized_isa method instead of constantly
795 pruning duplicate classes (this will be even more
b7bdffc3 796 useful in the 5.10-compat version coming soon)
d7d3f3cb 797
5da16d1b 798 * Class::MOP::Attribute
799 - added the get_read_method_ref and get_write_method_ref
d7d3f3cb 800 methods which allow you to retrieve a CODE ref which
5da16d1b 801 can always be used to read or write an attribute.
b7bdffc3 802
1a5cc82e 8030.45 Thurs. Nov. 13, 2007
232c4e13 804 * Class::MOP::Attribute
805 - Fix error message on confess (groditi)
806
544143b2 8070.44 Thurs. Nov. 13, 2007
808 - Apparently I didn't make dist correctly (groditi)
809
c0aeeb91 8100.43 Thurs. Nov. 13, 2007
b08fd50c 811 * Class::MOP
1d68af04 812 - Add support for the 'builder' attribute (groditi)
813
b08fd50c 814 * Class::MOP::Class
d7d3f3cb 815 - optimise metaclass-already-exists check in
b08fd50c 816 construct_class_instance (groditi)
d7d3f3cb 817 - duplicate check into initialize to save a
b08fd50c 818 call through (groditi)
819
1d68af04 820 * Class::MOP::Attribute
821 - Add support for the 'builder' attribute (groditi)
d7d3f3cb 822 - Make predicates check for the existence of a value, not whether
b08fd50c 823 it is defined (groditi)
8768ecf3 824
825 * Class::MOP::Instance
d7d3f3cb 826 - Make predicates check for the existence of a value, not whether
b08fd50c 827 it is defined (groditi)
8768ecf3 828
d7d3f3cb 829 * Class::MOP::Method::Accessor
565f0cbb 830 - made this a subclass of Class::MOP::Method::Generated
831 - removed the relevant attributes
832
833 * Class::MOP::Method::Constructor
834 - fixed the cached values we had to be more sane
835 - made this a subclass of Class::MOP::Method::Generated
d7d3f3cb 836 - fixed generated constructor so it properly handles
565f0cbb 837 subclasses now.
838 - added tests for this
d7d3f3cb 839 - added the option to allow for both inlined and
565f0cbb 840 non-inlined constructors.
b08fd50c 841 - Update inlined methods for builder and predicate changes (groditi)
565f0cbb 842
843 * Class::MOP::Method::Generated
d7d3f3cb 844 - added this class as an abstract base for the
565f0cbb 845 Class::MOP::Method::{Constructor,Accessor} classes
846 - added tests for this
847
b08fd50c 848 *t/
849 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
850 - Tests for new predicate behavior (and corrections to old tests) (groditi)
851
852 *examples/
853 - Update ArrayRef based class example to work with predicate changes
854
367183c4 8550.42 Mon. July 16, 2007
9195ddff 856 !!! Horray for mst, he fixed it !!!
857
92af7fdf 858 * Class::MOP::Package
859 - alter symbol table handling to deal with 5.8.x and 5.9.x
d7d3f3cb 860
92af7fdf 861 * t/
9195ddff 862 - Get rid of the crappy workaround from 0.40/41
92af7fdf 863
829f7554 8640.41 Sun. July 15, 2007
865 * t/
866 Arghh!!! My TODO test didn't work, so I handle
d7d3f3cb 867 it manually now so that people can use this
829f7554 868 with 5.9.5/bleadperl without issue.
869
1d7205b8 8700.40 Tues, July 3, 2007
9f88b8ff 871 * t/
d7d3f3cb 872 ~ marked a test in 003_methods.t as TODO
873 for perl 5.9.5 (this test is irrelvant to
874 the module functioning on 5.9.5 for the most
1d7205b8 875 part anyway)
9f88b8ff 876
28acb786 8770.39 Mon. June 18, 2007
b817e248 878 * Class::MOP::Immutable
0ac992ee 879 - added make_metaclass_mutable + docs (groditi)
880 - removed unused variable
d9586da2 881 - added create_immutable_transformer
882 necessary for sane overloading of immutable behavior
d7d3f3cb 883 - tests for this (groditi)
0ac992ee 884
885 * Class::MOP::Class
886 - Immutability can now be undone,
887 added make_mutable + tests + docs (groditi)
04dd7510 888 - Massive changes to the way Immutable is done
889 for details see comments next to make_immutable
890 This fixes a bug where custom metaclasses broke
d7d3f3cb 891 when made immutable. We are now keeping one immutable
892 metaclass instance per metaclass instead of just one
04dd7510 893 to prevent isa hierarchy corruption. Memory use will go
894 up, but I suspect it will be neglible.
895 - New tests added for this behavior. (groditi)
7c90a1a8 896
c0fcd6ab 8970.38 Thurs. May 31, 2007
823a5d31 898 ~~ More documentation updates ~~
d7d3f3cb 899
823a5d31 900 * Class::MOP::Package
901 - we now deal with stub methods properly
902 - added tests for this
c0fcd6ab 903 - fixed some tests failing on 5.9.5 (thanks blblack)
d7d3f3cb 904
b25109b1 905 * Class::MOP::Attribute
906 - added get_read_method and get_write_method
d7d3f3cb 907 thanks to groditi for this code, tests
c81de280 908 and docs.
b25109b1 909 - added tests and POD for this
d7d3f3cb 910
795a0c8b 911 * Class::MOP::Class
d7d3f3cb 912 - fixed RT issue #27329, clone object now
795a0c8b 913 handles undef values correctly.
914 - added tests for this
d7d3f3cb 915 - Corrected anon-class handling so that they
916 will not get reaped when instances still
917 exist which need to reference them. This is
918 the correct behavior, hopefully this is an
919 obscure enough feature that there are not too
d4ba1677 920 many work arounds out in the wild.
d7d3f3cb 921 - added tests for this by groditi
95514cb4 922 - updated docs to explain this
923
924 * metaclass
c0fcd6ab 925 - load custom metaclasses automatically (thanks groditi)
f2266181 926 - added tests for this behavior
a06797b0 927
3dc99d93 9280.37 Sat. March 10, 2007
448b6e55 929 ~~ Many, many documentation updates ~~
d7d3f3cb 930
448b6e55 931 * Class::MOP
d7d3f3cb 932 - added &load_class and &is_class_loaded
448b6e55 933 - added tests and docs for these
2367814a 934
9363ea89 935 * Class::MOP::Attribute
d7d3f3cb 936 - default now checks the instance with defined to
9363ea89 937 avoid setting off bool-overloads (found by Carl Franks)
938
c23184fc 9390.37_002
d7d3f3cb 940 * /t
941 - bad name in a test, causing meaningless failuress.
c23184fc 942 No other changes.
943
9440.37_001
d7d3f3cb 945
c23184fc 946 ~~ GLOBAL CHANGES ~~
d7d3f3cb 947 - All attribute names are now consistent and follow Perl 6
948 style (prefixed with the sigil, and ! as the twigil for
949 private attrs). This should not affect any code, unless
950 you broke encapsulation, in which case, it is your problem
c23184fc 951 anyway.
d7d3f3cb 952
c23184fc 953 !! Class::MOP::Class::Immutable has been removed
d7d3f3cb 954
c23184fc 955 * Class::MOP::Method::Constructor
d7d3f3cb 956 - this has been moved out of Class::MOP::Class::Immutable
c23184fc 957 and is a proper subclass of Class::MOP::Method now.
d7d3f3cb 958
c23184fc 959 * Class::MOP::Class
d7d3f3cb 960 - this module now uses Class::MOP::Immutable for the
961 immutable transformation instead of
c23184fc 962 Class::MOP::Class::Immutable.
d7d3f3cb 963
964 + Class::MOP::Immutable
965 - this module now controls the transformation from a mutable
966 to an immutable version of the class. Docs for this will
c23184fc 967 be coming eventually.
d7d3f3cb 968
c23184fc 969
cdc1ecba 9700.36 Sun. Nov. 5, 2006
a651e249 971 * Class::MOP::Class
d7d3f3cb 972 - added a few 'no warnings' lines to keep annoying
973 (and meaningless) warnings from chirping during
a651e249 974 global destruction.
d7d3f3cb 975
0870928c 976 * Class::MOP
d7d3f3cb 977 - some more bootstrapping is now done on the new
0870928c 978 classes
d7d3f3cb 979
0870928c 980 * Class::MOP::Class::Immutable
d7d3f3cb 981 *** API CHANGE ***
982 - constructor generation is now handled by
0870928c 983 the Class::MOP::Method::Constructor class
d7d3f3cb 984
0870928c 985 * Class::MOP::Method::Constructor
d7d3f3cb 986 - created this to handle constructor generation
0870928c 987 in Class::MOP::Class::Immutable
d7d3f3cb 988
0870928c 989 * Class::MOP::Attribute
d7d3f3cb 990 *** API CHANGE ***
991 - attributes now delegate to the
992 Class::MOP::Method::Accessor to generate
0870928c 993 accessors
d7d3f3cb 994
0870928c 995 * Class::MOP::Method::Accessor
d7d3f3cb 996 - all accessor generation functions from
0870928c 997 Class::MOP::Attribute have been moved here
a651e249 998
80f00c79 9990.35 Sat. Sept. 30, 2006
8745cf22 1000
1001 * scripts/class_browser.pl
d7d3f3cb 1002 - initial prototype of a class browser, more
1003 on this to come. Comments and patches are
8745cf22 1004 very much welcome.
b1897d4d 1005
1006 * Class::MOP
d7d3f3cb 1007 - All Class::MOP::* accessors are no longer
1008 re-generated in the bootstrap, instead
6d2118a4 1009 they are aliased from the originals
6d2118a4 1010 - fixed tests to reflect
d7d3f3cb 1011 - added Class::MOP::Method (and its subclasses)
b1897d4d 1012 to the bootstrap
1013 - adjusted tests for this
86482605 1014 - added the Class::MOP::Instance attributes
1015 to the bootstrap
d7d3f3cb 1016
b1897d4d 1017 * Class::MOP::Method
1018 *** API CHANGE ***
1019 - methods are no longer blessed CODE refs
1020 but are actual objects which can be CODE-ified
1021 - adjusted tests to compensate
d7d3f3cb 1022 - adjusted docs for this
b1897d4d 1023
1024 * Class::MOP::Class
d7d3f3cb 1025 - changed how methods are dealt with to
1026 encapsulate most of the work into the
b1897d4d 1027 &get_method_map method
1028 - made several adjustments for the change
1029 in Class::MOP::Method
d7d3f3cb 1030 - &add_attribute now checks if you are adding
1031 a duplicate name, and properly removes the
b1897d4d 1032 old one before installing the new one
1033 - added tests for this
86482605 1034 - adjusted docs for this
d7d3f3cb 1035
b1897d4d 1036 * Class::MOP::Class::Immutable
1037 - added caching of &get_method_map
1038 - fixed issue with &get_package_symbol
1039 - cleaned up the methods that die (patch by David Wheeler)
d7d3f3cb 1040
b1897d4d 1041 * Class::MOP::Package
d7d3f3cb 1042 - added filtering capabilities to
b1897d4d 1043 &list_all_package_symbols
1044
a549ce50 10450.34 Sat. Aug. 26, 2006
c4260b45 1046 * Class::MOP::Class
1047 - added the %:methods attribute, which like
d7d3f3cb 1048 the $:version and such just actually goes
1049 to the symbol table to get it's stuff.
c4260b45 1050 However, it makes the MOP more complete.
88dd563c 1051 ** API CHANGE **
d7d3f3cb 1052 - The &create method now requires that all
1053 but the package name now is passed in as
88dd563c 1054 named parameters. See docs for more info.
1055 - updated docs and tests for this
d7d3f3cb 1056
c4260b45 1057 * Class::MOP::Object
d7d3f3cb 1058 - added &dump method to easily Data::Dumper
c4260b45 1059 an object
d7d3f3cb 1060
c4260b45 1061 * Class::MOP
d7d3f3cb 1062 - cleaned up the initialization of attributes
1063 which do not store things in the instance
c4260b45 1064 - added the %:methods attribute definition to
1065 the bootstrap
d7d3f3cb 1066
88dd563c 1067 ~ lots of misc. test cleanup
c4260b45 1068
56e8dd5d 10690.33 Sat. Aug. 19, 2006
be7677c7 1070 * Class::MOP::Class
d7d3f3cb 1071 - moved the metaclass cache out of here
be7677c7 1072 and it is now in Class::MOP itself.
d7d3f3cb 1073
56e8dd5d 1074 * Class::MOP
1075 - moved all the metaclass cache stuff here
1076 - fixed all tests for this
be7677c7 1077
148b4697 1078 * Class::MOP::Attribute
d7d3f3cb 1079 - reference values (other than CODE refs)
148b4697 1080 are no longer allowed for defaults
1081 - added tests for this
d7d3f3cb 1082
56dcfc1a 1083 * Class::MOP::Package
d7d3f3cb 1084 - fixed an issue with perl 5.8.1 and how it deals
1085 with symbol tables. The namespace hash is now
1086 always reloaded from the symbol table.
e3a2c885 1087
1088 ~ lots of misc. documentation cleanup
1396f86b 1089
716c5765 10900.32 Sat. Aug. 12, 2006
d7d3f3cb 1091 + added Class::MOP::Object so that the
6e57504d 1092 metamodel is more complete (and closer
1093 to what Perl 6 will probably be).
1094
9ca19585 1095 * Class::MOP::Package
d7d3f3cb 1096 - refactored entire class, this is now
9ca19585 1097 the primary gateway between the metaclass
1098 and the Perl 5 symbol table
1099 - added many tests for this
d7d3f3cb 1100 - this class is now a subclass of
6e57504d 1101 Class::MOP::Object
716c5765 1102 - added some tests to reflect this
d7d3f3cb 1103
9ca19585 1104 * Class::MOP::Class
d7d3f3cb 1105 - refactored all symbol table access to
9ca19585 1106 use Class::MOP::Package methods instead
d7d3f3cb 1107
f0480c45 1108 * Class::MOP::Module
1109 - adding the $:version attribute in the bootstrap
1110 so that Module has a version as an attribute
1111 - see comment in Class::MOP for details
d7d3f3cb 1112 - added the $:authority attribute to this module
1113 as well as an &identifier method, to bring us
1114 ever closer to Perl 6 goodness
1115 - I have added $AUTHORITY to all the modules
716c5765 1116 - added tests for this
d7d3f3cb 1117
f0480c45 1118 * Class::MOP::Instance
d7d3f3cb 1119 - added &deinitialize_slot for removing slots
f0480c45 1120 from an instance
d7d3f3cb 1121 - added tests for this
1122
1123 * Class::MOP::Attribute
9ca19585 1124 - added support for &deinitialize_slot for removing
1125 slots from an instance
1126 - added tests for this
1127
1a09d9cc 11280.31 Sat. July 15, 2006
1129
b679e644 1130 * Class::MOP::Class
1131 - added &find_method_by_name to locate a method
d7d3f3cb 1132 anywhere within the class hierarchy
1133
b679e644 1134 * Class::MOP::Attribute
d7d3f3cb 1135 - added &set_value and &get_value for getting
1136 the value of the attribute for a particular
b679e644 1137 instance.
1138
373a16ae 11390.30 Wed. July 5, 2006
1140 ---------------------------------------
d7d3f3cb 1141 This is the first version of Class::MOP
373a16ae 1142 to introduce the immutable features which
d7d3f3cb 1143 will be used for optimizating the MOP.
373a16ae 1144 This support should still be considered
1145 experimental, but moving towards stability.
1146 ---------------------------------------
d7d3f3cb 1147
1148 * Created Class::MOP::Class::Immutable
1149
1150 * Created the Class::MOP::Package and
1151 Class::MOP::Module classes to more
373a16ae 1152 closely conform to Perl 6's meta-model
e0a82090 1153
1154 * Class::MOP::Class
1155 - now inherits from Class::MOP::Module
d7d3f3cb 1156 - several methods moved to ::Module and
e0a82090 1157 ::Package and now inherited
1158 - added tests for this
d7d3f3cb 1159
c0cbf4d9 1160 * Class::MOP::Instance
d7d3f3cb 1161 - added an is_inlinable method to allow other
c0cbf4d9 1162 classes to check before they attempt to optimize.
d7d3f3cb 1163 - added an inline_create_instance to inline
1164 instance creation (of course)
1165
2ba153a9 1166 ** API CHANGE **
d7d3f3cb 1167 - the Class::MOP::Class::*_package_variable
2ba153a9 1168 methods are all now methods of Class::MOP::Package
d7d3f3cb 1169 and called *_package_symbol instead. This is
1170 because they are now more general purpose symbol
1171 table manipulation methods.
e0a82090 1172
cdfaa4cc 11730.29_02 Thurs. June 22, 2006
1174 ++ DEVELOPER RELEASE ++
df7b4119 1175 * Class::MOP::Class
d7d3f3cb 1176 - small change in &create so that it behaves
df7b4119 1177 properly when inherited
cdfaa4cc 1178 - small fix to &clone_instance
df7b4119 1179
667cecf3 11800.29_01 Fri. May 12, 2006
1181 ++ DEVELOPER RELEASE ++
d7d3f3cb 1182 - This release works in combination with
667cecf3 1183 Moose 0.09_01, it is a developer release
d7d3f3cb 1184 because it introduces a new instance
1185 sub-protocol and has not yet been
1186 optimized.
667cecf3 1187
40483095 1188 * Class::MOP::Class
1189 - anon-classes are now properly garbage collected
d7d3f3cb 1190 - added tests for this
1191 - improved method modifier wrapping
40483095 1192
2bab2be6 1193 * Class::MOP::Instance
1becdfcc 1194 - added new instance protocol
2bab2be6 1195 - added tests for this
1196 - changed all relevant modules and examples
1197 - Class::MOP::Class
1198 - Class::MOP::Attribute
1199 - examples/*
1200
1becdfcc 1201 * metaclass
1202 - you no longer need to specify the metaclass
1203 itself, if it is not there, Class::MOP::Class
1204 is just assumed
1205 - updated tests for this
1206
1207 * examples/
d7d3f3cb 1208 - added ArrayBasedStorage example to show
1becdfcc 1209 instance storage using ARRAY refs instead of
d7d3f3cb 1210 HASH refs.
1becdfcc 1211 - added tests for this
d7d3f3cb 1212 - InsideOutClass is totally revised using the
1becdfcc 1213 new instance protocol
1214 - added more tests for this
1215
93b4e576 12160.26 Mon. April 24, 2006
e7f732e4 1217 * Class::MOP::Class
1218 - added find_attribute_by_name method
1219 - added tests and docs for this
56a0b530 1220 - some small optimizations
1221
1222 * Class::MOP::Attribute
1223 - some small optimizations
e7f732e4 1224
46666f33 12250.25 Thurs. April 20, 2006
587aca23 1226 * Class::MOP::Class
1227 - added create_anon_class for creating anonymous classes
1228 - added tests for this
1229 - added get_all_metaclasses, get_all_metaclass_names
1230 and get_all_metaclass_instances method to allow
1231 access to all the cached metaclass objects.
bd4e03f9 1232 - attribute slot initialization is now the responsibility
d7d3f3cb 1233 of the attribute itself, and construct_instance now
bd4e03f9 1234 delegates appropriately
d7d3f3cb 1235
bd4e03f9 1236 * Class::MOP::Attribute
1237 - attribute slot initialization is now the responsibility
1238 of the attribute itself, so we added a method for it
1239 called initialize_instance_slot
d7d3f3cb 1240
fed4cee7 1241 * examples/
d7d3f3cb 1242 - adjusted all the examples to use the new attribute
1243 initialize_instance_slot method
587aca23 1244
1daaa2b2 12450.24 Tues. April 11, 2006
8c936afc 1246 * Class::MOP::Class
d7d3f3cb 1247 - cleaned up how the before/after/around method
8c936afc 1248 modifiers get named with Sub::Name
1249
b9dfbf78 12500.23 Thurs. March 30, 2006
a977cf65 1251 * Class::MOP::Class
d7d3f3cb 1252 - fixed the way attribute defaults are handled
a977cf65 1253 during instance construction (bug found by chansen)
d7d3f3cb 1254
b9dfbf78 1255 * Class::MOP::Attribute
d7d3f3cb 1256 - read-only accessors ('reader') will now die if
b9dfbf78 1257 passed more than one argument (attempting to write
1258 to them basically)
1259 - added tests for this
d7d3f3cb 1260 - adjusted all /example files to comply
a977cf65 1261
f9eba090 12620.22 Mon. March 20, 2006
0eff2c16 1263 * Class::MOP::Class
1264 - localized $@ in the *_package_variable functions
1265 because otherwise, it does ugly things in Moose.
1266 - added test case for this
1267
1988e85e 12680.21 Wed. March 15, 2006
2f6d5412 1269 * Class::MOP::Class
d7d3f3cb 1270 - fixed issue where metaclasses are reaped from
2f6d5412 1271 our cache in global destruction, and so are not
1272 available in DESTORY calls
1273
96ceced8 12740.20 Thurs. March 2, 2006
d7d3f3cb 1275 - removed the dependency for Clone since
d3cb0d4a 1276 we no longer to deep-cloning by default.
d7d3f3cb 1277
a4258ffd 1278 * Class::MOP::Method
d7d3f3cb 1279 - added &package_name, &name and
1280 &fully_qualified_name methods, some of
1281 which were formerly private subs in
a4258ffd 1282 Class::MOP::Class
d7d3f3cb 1283
a4258ffd 1284 * Class::MOP::Method::Wrapped
d7d3f3cb 1285 - allows for a method to be wrapped with
1286 before, after and around modifiers
a4258ffd 1287 - added tests and docs for this feature
d3cb0d4a 1288
1289 * Class::MOP::Class
58d75218 1290 - improved &get_package_symbol
96ceced8 1291 - &version and &superclasses now use it
a4258ffd 1292 - methods are now blessed into Class::MOP::Method
1293 whenever possible
d7d3f3cb 1294 - added methods to install CLOS-style method modifiers
a4258ffd 1295 - &add_before_method_modifier
d7d3f3cb 1296 - &add_after_method_modifier
a4258ffd 1297 - &add_around_method_modifier
1298 - added tests and docs for these
d7d3f3cb 1299 - added &find_next_method_by_name which finds the
96ceced8 1300 equivalent of SUPER::method_name
d3cb0d4a 1301
1c020571 13020.12 Thurs. Feb 23, 2006
d7d3f3cb 1303 - reduced the dependency on B, no need to always
d89c0fad 1304 have the latest
1305
1c020571 1306 * examples/
1307 - added docs to the C3 method dispatch order test
d7d3f3cb 1308 - fixed missing Algorithm::C3 dependency by making
1c020571 1309 the test skip if it is not installed
1310
0dea7280 13110.11 Mon Feb. 20, 2006
f3f5bd34 1312 * examples/
1313 - added example of changing method dispatch order to C3
d7d3f3cb 1314
a27ae83f 1315 * Class::MOP::Class
19d4b5b8 1316 - changed how clone_instance behaves, it now only does a
1317 shallow clone (see docs for more details)
a27ae83f 1318 - added docs and tests
f3f5bd34 1319
3bf7644b 13200.10 Tues Feb. 14, 2006
d7d3f3cb 1321 ** This release was mostly about writing more tests and
1322 cleaning out old and dusty code, the MOP should now
3bf7644b 1323 be considered "ready to use".
1324
22286063 1325 - adding more tests to get coverage up a little higher,
1326 mostly testing errors and edge cases.
1327 - test coverage is now at 99%
d7d3f3cb 1328
aa448b16 1329 * Class::MOP
1330 - no longer optionally exports to UNIVERSAL::meta or
d7d3f3cb 1331 creates a custom metaclass generator, use the
aa448b16 1332 metaclass pragma instead.
22286063 1333
d7d3f3cb 1334 * Class::MOP::Class
1335 - fixed a number of minor issues which came up in the
1336 error/edge-case tests
1337
1338 * Class::MOP::Attribute
1339 - fixed a number of minor issues which came up in the
22286063 1340 error/edge-case tests
d7d3f3cb 1341
0b8eb325 1342 * examples/
ea263060 1343 - fixing the AttributesWithHistory example, it was broken.
663f8198 1344
550d56db 13450.06 Thurs Feb. 9, 2006
677eb158 1346 * metaclass
d7d3f3cb 1347 - adding new metaclass pragma to make setting up the
677eb158 1348 metaclass a little more straightforward
d7d3f3cb 1349
7b31baf4 1350 * Class::MOP
d7d3f3cb 1351 - clean up bootstrapping to include more complete
1352 attribute definitions for Class::MOP::Class and
1353 Class::MOP::Attribute (accessors, readers, writers,
7b31baf4 1354 etc.) ... it is redundant, but is useful meta-info
1355 to have around.
677eb158 1356
99e5b7e8 1357 * Class::MOP::Class
d7d3f3cb 1358 - fixing minor meta-circularity issue with &meta, it
99e5b7e8 1359 is now more useful for subclasses
d7d3f3cb 1360 - added &get_attribute_map as an accessor for the
7b31baf4 1361 hash of attribute meta objects
c9e77dbb 1362 - &compute_all_applicable_attributes now just returns
1363 the attribute meta-object, rather than the HASH ref
d7d3f3cb 1364 since all the same info can be gotten from the
c9e77dbb 1365 attribute meta-object itself
1366 - updated docs & tests to reflect
5f3c057a 1367 - added &clone_instance method which does a deep clone
1368 of the instance structure created by &construct_instance
1369 - added docs & tests for this
550d56db 1370 - added Clone as a dependency
5f3c057a 1371 - added &new_object and &clone_object convience methods to
1372 return blessed new or cloned instances
2a7575a6 1373 - they handle Class::MOP::Class singletons correctly too
5f3c057a 1374 - added docs & tests for this
2a7575a6 1375 - cleaned up the &constuct_class_instance so that it behaves
1376 more like &construct_instance (and managed the singletons too)
550d56db 1377 - added the &check_metaclass_compatibility method to make sure
1378 that metaclasses are upward and downward compatible.
1379 - added tests and docs for this
d7d3f3cb 1380
99e5b7e8 1381 * examples/
1382 - adjusting code to use the &Class::MOP::Class::meta
1383 fix detailed above
677eb158 1384 - adjusting code to use the metaclass pragma
d7d3f3cb 1385
aa9c883e 13860.05 Sat Feb. 4, 2006
2e41896e 1387 * Class::MOP::Class
1388 - added the &attribute_metaclass and &method_metaclass
d7d3f3cb 1389 attributes which contain a metaclass name to use for
2e41896e 1390 attributes/methods respectively
d7d3f3cb 1391
351bd7d4 1392 * Class::MOP
d7d3f3cb 1393 - bootstrap additional attributes for Class::MOP::Class
1394
2e41896e 1395 * examples/
1396 - adjusted the example code and tests to use the new
1397 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 1398 - added new example:
1399 - LazyClass
2e41896e 1400
d7c2cbe3 14010.04 Fri Feb. 3, 2006
d6fbcd05 1402 * Class::MOP::Class
1403 - some documentation suggestions from #perl6
d7d3f3cb 1404
d6fbcd05 1405 * Class::MOP::Attribute
d7d3f3cb 1406 - improved error messages
1407
d6fbcd05 1408 * examples/
1409 - added new examples:
1410 - AttributesWithHistory
d7c2cbe3 1411 - ClassEncapsultedAttributes
343203ee 1412
9ec169fe 14130.03 Fri Feb. 3, 2006
1414 - converted to Module::Build instead of EU::MM
d7d3f3cb 1415
9ec169fe 1416 * Class::MOP::Attribute
1417 - refactored method generation code
1418 - attributes are now associated with class directly
d7d3f3cb 1419
f71f4295 1420 * examples/
d7d3f3cb 1421 - refactored the InsideOut example to take advantage
9ec169fe 1422 of the Class::MOP::Attribute refactoring
f71f4295 1423 - changed example files to .pod files and hide thier
1424 package names from PAUSE (I don't want to own these
1425 namespaces really, they are just examples)
9ec169fe 1426
a57c7fa2 14270.02 Thurs Feb. 2, 2006
1428 - moving examples from t/lib/* to examples/*
1429 - adding POD documentation to the examples
1430
a2e85e6c 14310.01 Thurs Feb. 2, 2006
92af7fdf 1432 - Initial release