1 Revision history for Perl extension Class-MOP.
4 - Made is_class_loaded a little stricter. It was reporting that
5 a class was loaded if it merely had an @ISA variable in its
6 stash. Now it checks that the @ISA var has elements in it.
7 - Deprecate in_global_destruction and subname re-exporting
11 - Explicitly use Devel::GlobalDestruction and Sub::Name
15 - Disable prototype mismatch warnings for add_package_symbol.
18 0.83 Mon, April 27, 2009
20 - Fix segfault when calling get_method_map on a metaclass for an empty
23 0.82_02 Fri, April 24, 2009
24 * Class::MOP::Method::Inlined
25 - Don't inline if the expected method is not defined at all (happens with
26 e.g. Moose::Object::_new is the expected method due to an overridden
29 - Some tests were trying to load Class::MOP::Immutable, which
30 was removed in 0.82_01.
32 0.82_01 Thu, April 23, 2009
33 * Class::MOP::Immutable (and others)
34 - Refactor the immutability system to use a pre-defined class
35 for the immutable metaclass of Class::MOP::Class::Immutable::$class
36 - Rather than generating methods into this class every time, use
37 a Trait (basic mixin) to supply the cached methods
38 - Remove the hack that returns the mutable metaclass for
39 metacircularity in order to provide consistent meta-metaclasses
40 for the Moose compatibility handling code
41 (mst broke it, nothingmuch fixed it)
43 0.82 Mon, April 20, 2009
45 - The deprecation wrappers for some renamed methods were not
46 passing arguments to the new method. (nothingmuch)
48 * Class::MOP::Immutable
49 - Warn during immutablization if the local class provides its own
50 constructor, to parallel the warning in Moose when a superclass
51 provides its own constructor (doy)
53 0.81 Tue, April 7, 2009
56 * Class::MOP::Instance
57 * Class::MOP::Attribute
58 * Class::MOP::Method::Accessor
59 * Class::MOP::Method::Constructor
60 - Include stack traces in the deprecation warnings introduced in
61 0.80_01. (Florian Ragwitz)
64 - Avoid c compiler warnings by declaring some unused function
65 arguments. (Florian Ragwitz)
67 0.80_01 Sun, April 5, 2009
69 - Make sure to preserve any compiler flags already defined in
70 Config.pm. Patch by Vincent Pit. RT #44739.
72 * Many methods have been renamed with a leading underscore, and a
73 few have been deprecated entirely. The methods with a leading
74 underscore are consider "internals only". People writing
75 subclasses or extensions to Class::MOP should feel free to
76 override them, but they are not for "public" use.
79 - construct_class_instance => _construct_class_instance (use new_object)
80 - construct_instance => _construct_instance (use new_object)
81 - check_metaclass_compatibility => _check_metaclass_compatibility
82 - create_meta_instance => _create_meta_instance (use get_meta_instance)
83 - clone_instance => _clone_instance (use clone_object)
84 - compute_all_applicable_methods is deprecated, use get_all_methods
85 - compute_all_applicable_attributes is deprecated, use get_all_attributes
87 - Class::MOP::Instance
88 - bless_instance_structure is deprecated and will be removed
92 - create has been renamed to _instantiate_module. This method
93 does not construct an object, it evals some code that
94 creates the relevant package in Perl's symbol table.
96 - Class::MOP::Method::Accessor
97 - initialize_body => _initialize_body (this is always called
98 when an object is constructed)
99 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
101 - Class::MOP::Method::Constructor
102 - initialize_body => _initialize_body (this is always called
103 when an object is constructed)
104 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
105 - attributes => _attributes
106 - meta_instance => _meta_instance
108 0.80 Wed, April 1, 2009
110 - Call user_class->meta in fewer places, with the eventual goal
111 of allowing the user to rename or exclude ->meta
112 altogether. Instead uses Class::MOP::class_of. (Sartak)
115 - New class_of function that should be used to retrieve a
116 metaclass. This is unlike get_metaclass_by_name in that it
117 accepts instances, not just class names. (Sartak)
120 - load_first_existing_class didn't actually load the first
121 existing class; instead, it loaded the first existing and
122 compiling class. It now throws an error if a class exists (in
123 @INC) but fails to compile. (hdp)
127 - we had some semi-buggy code that purported to provide a
128 HAS_ISAREV based on whether mro had get_isarev (due to an
129 oversight, it always returned 1). Since mro and MRO::Compat
130 have always had get_isarev, HAS_ISAREV was pointless. This
131 insight simplified the subclasses method by deleting the
132 pure-perl fallback. HAS_ISAREV is now deprecated. (Sartak)
134 0.79 Fri, March 29, 2009
135 * No changes from 0.78_02.
137 0.78_02 Thu, March 26, 2009
139 * Class::MOP::Immutable
140 - A big backwards-incompatible refactoring of the Immutable API,
141 and the make_immutable/make_mutable pieces of the Class
142 API. The core __PACKAGE__->meta->make_immutable API remains
143 the same, however, so this should only affect the most
147 - The XS code used a macro, XSPROTO, that's only in 5.10.x. This
148 has been fixed to be backwards compatible with 5.8.x.
151 - Add a hook for rebless_instance_away (Sartak)
152 - Use blessed instead of ref to get an instance's class name
153 in rebless_instance. (Sartak)
155 0.78_01 Wed, March 18, 2009
157 - Revised and reorganized all of the API documentation. All
158 classes now have (more or less) complete API documentation.
161 * Class::MOP::Instance
162 - Reblessing into a package that supports overloading wasn't
163 properly adding overload magic to the object due to a bug
164 in (at least) 5.8.8. We now use $_[1] directly which seems
165 to set the magic properly. (Sartak)
167 * Class::MOP::Attribute
168 - The process_accessors method is now private. A public alias
169 exists (and will stick around for a few releases), but it
170 warns that calling the public method is deprecated.
172 * Class::MOP::Method::Generated
173 - Removed the new and _new methods, since this is an abstract
174 base class, and all existing subclasses implement their own
178 - Stop is_class_loaded from thinking a class is loaded if it
179 only has an empty GV (Florian Ragwitz).
180 - Add a test for this (Yappo).
181 - Refactor get_all_package_symbols to allow short-circuiting
183 - Use this in is_class_loaded (Florian Ragwitz).
184 - Stop segfaulting when trying to get the name from a sub that's
185 still being compiled (Florian Ragwitz).
186 - Add tests for this (Florian Ragwitz).
187 - Prefix all public symbols with "mop_" (Florian Ragwitz).
188 - Clean up and simplify prehashing of hash keys (Florian Ragwitz).
189 - Simplify creating simple xs reader methods (Florian Ragwitz).
190 - Make everything compile with c++ compilers (Florian Ragwitz).
191 - Upgrade ppport.h from 3.14 to 3.17 (Florian Ragwitz).
194 - Remove optional test plans for tests depending on Sub::Name as
195 we have a hard dependency on Sub::Name anyway (Florian Ragwitz).
198 - Rebuild all c code if mop.h has changed (Florian Ragwitz)
200 0.78 Mon, February 23, 2009
201 * No changes from 0.77_01
203 0.77_01 Sun, February 22, 2009
205 - This package now requires its XS components. Not using
206 Sub::Name lead to different behavior and bugginess in the pure
207 Perl version of the code. A Moose test would fail when run
208 against the pure Perl version of this code.
210 * Class::MOP::Instance
211 - The inline_* methods now quote attribute names themselves, and
212 don't expect to receive a quoted value.
215 0.77 Sat, February 14, 2009
217 - Avoid assertion errors on debugging perls in is_class_loaded
221 - Fixed various corner cases where is_class_loaded incorrectly
222 returned true for a class that wasn't really loaded. (Dave
226 - Add get_all_method_names (Sartak)
227 - Add a wrapped_method_metaclass attribute (Florian Ragwitz)
229 * Class::MOP::Package
230 - Disable deprecated get_all_package_symbols in list
231 context. (Florian Ragwitz)
234 - Make sure we generate a BSD-compatible Makefile (Florian
238 - The misspelled "check_metaclass_compatability" method we've
239 kept around for backwards compat_i_bility will be removed in a
240 near future release. You've been warned.
242 0.76 Thu, January 22, 2009
243 * Class::MOP::Method::Generated
244 - Added new private methods to support code generation, which
245 are being used by Moose and can be used by MooseX
247 - Generated methods are now generated with a #line directive
248 reflecting the source of the generated method. (nothingmuch)
251 - Clarified documentation of methods that return
252 Class::MOP::Method objects. (doy)
255 - Clarified documentation of the metaclass cache methods. (Sartak)
258 - Add test showing how the xs Class::MOP::is_class_loaded can
259 be made to operate differently to the pure perl version (t0m)
261 0.75 Wed, December 31, 2008
263 - A class that was made immutable and then mutable could end up
264 sharing an immutable transformer object
265 (Class::MOP::Immutable) with other classes, leading to all
266 sorts of odd bugs. Reported by t0m. (Dave Rolsky)
268 0.74 Tue, December 25, 2008
270 - Add an xs implementation of Class::MOP::is_class_loaded (closes
271 RT#41862). Based on a patch by Goro Fuji. (Florian Ragwitz)
272 - Changed internals to make prehashing of hash keys easier and less
273 error-prone. (Florian Ragwitz)
275 - Fix documentation to show that around modifiers happen on both
276 sides of the modified method. (Dave Rolsky)
278 0.73 Tue, December 16, 2008
280 - Don't use Perl_mro_meta_init. It's not part of the public perl
281 api. Fixes failures to build on Win32 (RT #41750). (Florian
283 * t/082_get_code_info.t
284 - Add $^P &= ~0x200; (per Ovid's suggestion) in order to not
285 munger anonymous subs when under -d and so making the tests
286 succeed in that case.
288 0.72 Mon, December 8, 2008
289 * Class::MOP::Package
290 - Pass options to _new, so subclass' attributes can be
293 - In the docs, indicate that package_name and name are required
294 when calling ->wrap (Stefan O'Rear)
296 0.71_02 Fri, December 5, 2008
297 * Class::MOP::Immutable
298 - Added a new attribute, inlined_constructor, which is true if
299 the constructor was inlined.
300 * Class::MOP::Package
301 - Make get_all_package_symbols return a hash ref in scalar
302 context and deprecate calling it in list context with a
303 warning. (Florian Ragwitz)
305 - Various improvements and refactoring, making things more robust and
306 easier to maintain. (Florian Ragwitz)
308 0.71_01 Wed, December 3, 2008
310 - Add an "execute" method to invoke the body so
311 we can avoid using the coderef overload (Sartak)
312 * Class::MOP::Immutable
313 - When we memoize methods, get their results lazily
314 to remove some compile-time cost (Sartak)
315 - Small speedup from eliminating several method
318 - Some small internal tweaks to try to reduce the number of
319 times we call get_method_map when bootstrapping the MOP. This
320 might make loading Class::MOP (and Moose) a little
321 faster. (Dave Rolsky)
322 - Implemented an optional XS version of get_method_map. Mostly
323 taken from a patch by Goro Fuji (rt.cpan.org #41080), with
324 help form Florian Ragwitz. (Dave Rolsky)
325 - Make the behaviour of of get_all_package_symbols (and
326 therefore get_method_map) consistent for stub methods. Report
327 and test by Goro Fuji (rt.cpan.org #41255). (Florian Ragwitz)
329 0.71 Wed November 26, 2008
332 - Actual package creation has moved upward from
333 Class to Module so that Moose roles can share
336 0.70_01 Mon, November 19, 2008
338 - Fixes for failures with blead (Florian Ragwitz)
339 - Silenced compiler warnings (Florian Ragwitz)
341 0.70 Fri, November 14, 2008
343 - Fixed an odd corner case where the XS version of
344 get_all_package_symbols could cause a segfault. This only
345 happened with inlined constants in Perl 5.10.0 (Florian
348 0.69 Fri, November 7, 2008
349 * Class::MOP::Method::Wrapped
350 - Added introspection methods for method modifiers (Dave Rolsky)
353 0.68 Fri October 24, 2008
355 - Make load_class require by file name instead of module name.
356 This stops confusing error messages when loading '__PACKAGE__'.
358 - Add load_one_class_of function to enable you to load one of a
359 list of classes, rather than having to call load_class multiple
360 times in an eval. (t0m)
362 0.67 Tue October 14, 2008
364 - Call a method on the class after setting the superclass list
365 so that we can get Perl to detect cycles before MRO::Compat
366 spirals into an infinite loop (sartak)
367 - Reported by Schwern, [rt.cpan.org #39001]
368 - In create(), pass unused options on to initialize()
369 - added test for this
371 0.66 Sat September 20, 2008
372 !! This release has an incompatible change regarding !!
373 introspection of a class's method with Class::MOP::Class !!
376 - We (us maintainers) now run all tests with XS and then without
377 XS, which should help us catch skew between the XS/pure Perl
381 ! The alias_method method has been deprecated. It now simply
382 calls add_method instead. There is no distinction between
383 aliased methods and "real" methods.
385 This means that methods added via alias_method now show up as
386 part of the class's method list/map. This is a backwards
387 incompatible change, but seems unlikely to break any
388 code. Famous last words. (Dave Rolsky)
391 - Fixed the spelling of "compatibility", but we still have a
392 "check_metaclass_compatability" method for backwards
395 0.65 Mon September 1, 2008
396 For those not following the series of dev releases, the changes
397 from 0.64 from 0.65 can mostly be summed up as a lot performance
398 improvements by nothingmuch, including new optional XS versions of
399 some methods. Also, Class::MOP now works _without_ any XS modules,
400 for sad systems without a compiler.
403 - Added name and package_name XS accessors, and make sure all
404 the XS and Perl versions work the same way. (Dave Rolsky)
407 - The XS versions of various methods just returned undef when
408 called class methods, rather than dying like the pure Perl
409 versions. (Dave Rolsky)
411 0.64_07 Fri August 29, 2008
413 - Silenced warnings that managed to break Moose tests when XS
414 was loaded. (Dave Rolsky)
415 - Some XS versions of methods were ignored because of typos in
416 MOP.xs. (Dave Rolsky)
418 0.64_06 Mon August 25, 2008
419 * Class::MOP (MOP.xs)
420 - Another MS VC++ fix, cannot declare a variable in the middle
421 of a scope (Taro Nishino).
423 0.64_05 Sun August 24, 2008
425 - None of the dev releases actually loaded the XS properly, but
426 we silently fell back to the pure Perl version of the
429 * Class::MOP (MOP.xs)
430 - Replaced some code that used functions not available on Visual
431 C++ with some Perl XS API bits (Dave Rolsky).
433 0.64_04 Sat August 23, 2008
435 - Workaround a bug in 5.8.1's goto sub (nothingmuch)
437 * pod.t and pod_coveraget.t
438 - These are no longer shipped with the tarball because of bogus
439 failures from CPAN testers. (Dave Rolsky)
441 0.64_03 Thu August 21, 2008
442 * Class::MOP::Package
443 - Some (legit) code was misparsed by earlier 5.8.x
444 releases. (nothingmuch)
447 - Fix a constant in void context warning (nothingmuch)
449 0.64_02 Thu August 21, 2008
450 * Makefile.PL and Class::MOP
451 - Explicitly require Perl 5.8.0+ (Dave Rolsky)
454 - Add missing prereqs that got lost in the switch away from
457 * Class::MOP::Instance
458 - New method - get_all_attributes (nothingmuch)
460 0.64_01 Wed August 20, 2008
462 - We now check to see if you have a compiler. If you don't, the
463 module installs without some XS bits, but will work the same
464 as with XS. This should make it easier to install on platforms
465 without a compiler (like Windows). (Dave Rolsky)
468 - Perl 6 style attribute naming replaced with sane style ('methods', not
469 '%!methods'). These changes should not impact any existing API uses.
473 - Quite a number of optimizations based on profiling, including
474 allowing constructors to take hash references instead of
475 hashes, duplicating some frequently used code in XS, and
476 making constructors immutable. These changes should not impact
477 any existing API uses. (nothingmuch)
480 - Constructors now respect the meta attributes of their subclasses,
481 facilitating MOP extensibility. More related changes will happen in the
482 next several releases. (nothingmuch)
485 - New method - get_all_methods, replaces the deprecated
486 compute_all_applicable_methods. get_all_attributes provided for
487 consistency (nothingmuch)
488 - New method - wrap_method was refactored out of get_method_map
490 - New API for meta instance invalidation - invalidate_meta_instance,
491 invalidate_meta_instances, add_dependent_meta_instance,
492 remove_dependent_meta_instance, called automatically when attribute
493 definitions change and allows notification of dependent subclasses.
496 0.64 Sun August 3, 2008
497 * Class::MOP::Immutable
498 - fixing subtle edge case in immutable when you
500 - clean up option processing (nothingmuch)
502 * Class::MOP::Instance
503 - inlined initialize slot didn't match
504 non-inlined (nothingmuch)
506 0.63 Mon July 7, 2008
508 - load_class will initialize a metaclass even if
509 the class is already loaded (sartak)
510 - load_class now returns the metaclass instance
511 instead of just 1 (sartak)
514 - better error messages (sartak and Dave Rolsky)
516 0.62 Wed June 18, 2008
517 - in is_class_loaded, recognize scalar references (as opposed to globs) in
518 the symbol table as methods (these are optimized constant subs)
520 0.61 Fri. June 13, 2008
521 - Okay, lets give this another try and see if PAUSE
522 recognizes it correct this time.
524 0.60 Thurs. Jun 12, 2008
525 - Fixed a version number issue by bumping all modules
528 0.59 Thurs. Jun 12, 2008
529 !! Several fixes resulting in yet another 25-30% speedup !!
532 - now stores the instance of the instance
533 metaclass to avoid needless recomputation
534 and deletes it when the cache is blown
535 - introduce methods to query Class::MOP::Class for
536 the options used to make it immutable as well as
537 the proper immutable transformer. (groditi)
539 * Class::MOP::Package
540 - {add, has, get, remove}_package_symbol all
541 now accept a HASH ref argument as well as the
542 string. All internal usages now use the HASH
546 - MOP.xs does sanity checks on the coderef
548 - is_class_loaded check now uses code that
549 was improved in Moose's ClassName type
551 - nonsensical (undef, empty, reference) class
552 names now throw a more direct error in
554 - tests for this and other aspects of
560 Class::MOP::Method::Wrapped
561 Class::MOP::Attribute
562 - switched usage of reftype to ref because
565 0.58 Thurs. May 29, 2008
566 (late night release engineering)--
568 - fixing the version is META.yml, no functional
569 changes in this release
571 0.57 Wed. May 28, 2008
572 !! Several speedups resulting in 20-25% speedups !!
573 || (thanks to konobi, groditi, mst & CataMoose) !!
576 - made get_method_map use list_all_package_symbols
577 instead of manually grabbing each symbol
578 - streamlining &initialize somewhat, since it gets
581 * Class::MOP::Package
582 - made {get, has}_package_symbol not call
584 - inlining a few calls to &name with
585 direct HASH access key access
586 - added get_all_package_symbols to fetch
587 a HASH of items based on a type filter
588 similar to list_all_package_symbols
589 - added tests for this
592 Class::MOP::Method::Constructor
593 Class::MOP::Method::Generated
594 Class::MOP::Method::Accessor
595 - added more descriptive error message to help
596 keep people from wasting time tracking an error
597 that is easily fixed by upgrading.
599 * Class::MOP::Immutable
600 - Don't inline a destructor unless the user actually
602 - added tests for this
604 0.56 Saturday, May 24, 2008
606 - we now get the &check_package_cache_flag
607 function from MRO::Compat
608 - All XS based functionality now has a
609 Pure Perl alternative
610 - the CLASS_MOP_NO_XS environment variable
611 can now be used to force non-XS versions
614 * Class::MOP::Attribute
615 - add has_read_method and has_write_method
616 - get_{read,write}_method_ref now wraps the
617 anon-sub ref in the method metaclass when
619 - added tests for this
621 * Class::MOP::Immutable
622 - added the ability to "wrap" methods when
623 making the class immutable
626 - now handling the edge case of ->meta->identifier
627 dying by wrapping add_package_symbol to specifically
628 allow for it to work.
629 - added tests for this
631 * Class::MOP::Attribute
633 Class::MOP::Immutable
634 - any time a method meta object is constructed
635 we make sure to pass the correct package and
636 method name information
639 Class::MOP::Method::Wrapped
640 Class::MOP::Method::Generated
641 Class::MOP::Method::Accessor
642 Class::MOP::Method::Consructor
643 - the &wrap constructor method now requires that a
644 'package_name' and 'name' attribute are passed. This
645 is to help support the no-XS version, and will
646 throw an error if these are not supplied.
647 - all these classes are now bootstrapped properly
648 and now store the package_name and name attributes
651 ~ Build.PL has been removed since the
652 Module::Install support has been removed
654 0.55 Mon. April 28, 2008
655 - All classes now have proper C3 MRO support
656 - added MRO::Compat as a dependency to allow
657 for the C3 MRO support to Just Work in all
661 - rebless_instance now returns the instance
662 it has just blessed, this is mostly to
664 - set the attr correctly in rebless_instance
665 when it has no init_arg
666 - tweaked &linear_isa and &class_precedence_list
667 to support c3 classes.
669 0.54 Fri. March, 14, 2008
672 - making sure that load_class never gets
673 passed a value from @_ or $_ to squash
674 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
677 - make_{immutable,mutable} now return 1
679 - improved error handling in ->create method
680 - rebless_instance now takes extra params which
681 will be used to populate values
682 - added tests for this
685 - localizing the Data::Dumper configurations so
686 that it does not pollute others (RT #33509)
692 Class::MOP::Attribute
693 - these classes no longer define their own ->meta,
694 but instead just inherit from Class::MOP::Object
696 * Class::MOP::Instance
697 Class::MOP::Immutable
698 - these classes now inherit from Class::MOP::Object
701 - fixed the filename length on several
702 test files so we install on VMS better
704 - fixed incorrect use of catdir when it
705 should be catfile (RT #32385)
707 0.53 Thurs. Feb. 14, 1008
708 ~~ several doc. fixes and updates ~~
711 Class::MOP::Method::Constructor
712 Class::MOP::Attribute
713 - making init_arg accept an undefined value
714 to indicate that no constructor args can
715 be passed (thanks to nothingmuch)
716 - added tests for this
717 - added attribute initializer attribute (rjbs)
720 - making this use the new init_arg => undef
721 feature instead of the silly hack from
722 before (thanks to nothingmuch)
724 0.52 Tues. Jan. 22, 2008
726 - fixed bug in rebless_instance
729 * Class::MOP::Method::Constructor
730 - removed assumptions about the existence of
733 0.51 Mon. Jan. 14, 2008
734 ~~~ some misc. doc. fixes ~~~
735 ~~ updated copyright dates ~~
738 - now sets the IS_RUNNING_ON_5_10
739 constant so that we can take advantage
740 of some of the nice bits of 5.10
743 - uses the IS_RUNNING_ON_5_10 flag to
744 optimize the &linearized_isa method
745 and avoid the hack/check for circular
746 inheritence in &class_precedence_list
747 - added rebless_instance method (Sartak)
748 - added tests for this
750 * Class::MOP::Immutable
751 - the immutable class now keeps track of
752 the transformer which immutablized it
754 * Class::MOP::Instance
755 - added rebless_instance_structure method (Sartak)
756 - added tests for this
758 0.50 Fri. Dec. 21, 2007
760 - fixed bug in immutable to make sure that
761 transformation arguments are saved
763 - added tests for this
765 * Class::MOP::Immutable
766 - fixed a bug (see above)
768 * Class::MOP::Attribute
771 0.49 Fri. Dec. 14, 2007
772 !! Class::MOP now loads 2 x faster !!
773 !! with XS speedups (thanks konobi) !!
776 - removed the dependency on B
777 - added two XS functions (thanks konobi)
778 - get_code_info($code) which replaces all
779 the B fiddling we were doing with
780 faster/leaner XS level fiddling
781 - check_package_cache_flag($pkg_name) which
782 returns the PL_sub_generation variable to
783 be used to help manage method caching.
786 In 5.10 or greater this will actually
787 use the mro::get_pkg_gen instead to give
788 even more accurate caching information.
789 blblack++ for that stuff :)
792 - added the &subclasses method (thanks rlb)
793 - added the update_package_cache_flag and
794 reset_package_cache_flag which help keep
795 track of when we need to re-fetch the
797 - Several small improvements to take advantage
798 of the new method map caching features
800 0.48 Mon. Nov. 26, 2007
801 * Class::MOP::Attribute
802 - fixed get_read/write_method to handle the
803 HASH ref case, which makes the
804 get_read/write_method_ref handle it too.
805 - added more tests for this
807 0.47 Sat. Nov. 24, 2007
808 * Class::MOP::Attribute
809 - fixed misspelling in get_write_method_ref
810 - added more tests for this
812 0.46 Fri. Nov. 23, 2007
814 - added the linearized_isa method instead of constantly
815 pruning duplicate classes (this will be even more
816 useful in the 5.10-compat version coming soon)
818 * Class::MOP::Attribute
819 - added the get_read_method_ref and get_write_method_ref
820 methods which allow you to retrieve a CODE ref which
821 can always be used to read or write an attribute.
823 0.45 Thurs. Nov. 13, 2007
824 * Class::MOP::Attribute
825 - Fix error message on confess (groditi)
827 0.44 Thurs. Nov. 13, 2007
828 - Apparently I didn't make dist correctly (groditi)
830 0.43 Thurs. Nov. 13, 2007
832 - Add support for the 'builder' attribute (groditi)
835 - optimise metaclass-already-exists check in
836 construct_class_instance (groditi)
837 - duplicate check into initialize to save a
838 call through (groditi)
840 * Class::MOP::Attribute
841 - Add support for the 'builder' attribute (groditi)
842 - Make predicates check for the existence of a value, not whether
843 it is defined (groditi)
845 * Class::MOP::Instance
846 - Make predicates check for the existence of a value, not whether
847 it is defined (groditi)
849 * Class::MOP::Method::Accessor
850 - made this a subclass of Class::MOP::Method::Generated
851 - removed the relevant attributes
853 * Class::MOP::Method::Constructor
854 - fixed the cached values we had to be more sane
855 - made this a subclass of Class::MOP::Method::Generated
856 - fixed generated constructor so it properly handles
858 - added tests for this
859 - added the option to allow for both inlined and
860 non-inlined constructors.
861 - Update inlined methods for builder and predicate changes (groditi)
863 * Class::MOP::Method::Generated
864 - added this class as an abstract base for the
865 Class::MOP::Method::{Constructor,Accessor} classes
866 - added tests for this
869 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
870 - Tests for new predicate behavior (and corrections to old tests) (groditi)
873 - Update ArrayRef based class example to work with predicate changes
875 0.42 Mon. July 16, 2007
876 !!! Horray for mst, he fixed it !!!
878 * Class::MOP::Package
879 - alter symbol table handling to deal with 5.8.x and 5.9.x
882 - Get rid of the crappy workaround from 0.40/41
884 0.41 Sun. July 15, 2007
886 Arghh!!! My TODO test didn't work, so I handle
887 it manually now so that people can use this
888 with 5.9.5/bleadperl without issue.
890 0.40 Tues, July 3, 2007
892 ~ marked a test in 003_methods.t as TODO
893 for perl 5.9.5 (this test is irrelvant to
894 the module functioning on 5.9.5 for the most
897 0.39 Mon. June 18, 2007
898 * Class::MOP::Immutable
899 - added make_metaclass_mutable + docs (groditi)
900 - removed unused variable
901 - added create_immutable_transformer
902 necessary for sane overloading of immutable behavior
903 - tests for this (groditi)
906 - Immutability can now be undone,
907 added make_mutable + tests + docs (groditi)
908 - Massive changes to the way Immutable is done
909 for details see comments next to make_immutable
910 This fixes a bug where custom metaclasses broke
911 when made immutable. We are now keeping one immutable
912 metaclass instance per metaclass instead of just one
913 to prevent isa hierarchy corruption. Memory use will go
914 up, but I suspect it will be neglible.
915 - New tests added for this behavior. (groditi)
917 0.38 Thurs. May 31, 2007
918 ~~ More documentation updates ~~
920 * Class::MOP::Package
921 - we now deal with stub methods properly
922 - added tests for this
923 - fixed some tests failing on 5.9.5 (thanks blblack)
925 * Class::MOP::Attribute
926 - added get_read_method and get_write_method
927 thanks to groditi for this code, tests
929 - added tests and POD for this
932 - fixed RT issue #27329, clone object now
933 handles undef values correctly.
934 - added tests for this
935 - Corrected anon-class handling so that they
936 will not get reaped when instances still
937 exist which need to reference them. This is
938 the correct behavior, hopefully this is an
939 obscure enough feature that there are not too
940 many work arounds out in the wild.
941 - added tests for this by groditi
942 - updated docs to explain this
945 - load custom metaclasses automatically (thanks groditi)
946 - added tests for this behavior
948 0.37 Sat. March 10, 2007
949 ~~ Many, many documentation updates ~~
952 - added &load_class and &is_class_loaded
953 - added tests and docs for these
955 * Class::MOP::Attribute
956 - default now checks the instance with defined to
957 avoid setting off bool-overloads (found by Carl Franks)
961 - bad name in a test, causing meaningless failuress.
967 - All attribute names are now consistent and follow Perl 6
968 style (prefixed with the sigil, and ! as the twigil for
969 private attrs). This should not affect any code, unless
970 you broke encapsulation, in which case, it is your problem
973 !! Class::MOP::Class::Immutable has been removed
975 * Class::MOP::Method::Constructor
976 - this has been moved out of Class::MOP::Class::Immutable
977 and is a proper subclass of Class::MOP::Method now.
980 - this module now uses Class::MOP::Immutable for the
981 immutable transformation instead of
982 Class::MOP::Class::Immutable.
984 + Class::MOP::Immutable
985 - this module now controls the transformation from a mutable
986 to an immutable version of the class. Docs for this will
987 be coming eventually.
990 0.36 Sun. Nov. 5, 2006
992 - added a few 'no warnings' lines to keep annoying
993 (and meaningless) warnings from chirping during
997 - some more bootstrapping is now done on the new
1000 * Class::MOP::Class::Immutable
1002 - constructor generation is now handled by
1003 the Class::MOP::Method::Constructor class
1005 * Class::MOP::Method::Constructor
1006 - created this to handle constructor generation
1007 in Class::MOP::Class::Immutable
1009 * Class::MOP::Attribute
1011 - attributes now delegate to the
1012 Class::MOP::Method::Accessor to generate
1015 * Class::MOP::Method::Accessor
1016 - all accessor generation functions from
1017 Class::MOP::Attribute have been moved here
1019 0.35 Sat. Sept. 30, 2006
1021 * scripts/class_browser.pl
1022 - initial prototype of a class browser, more
1023 on this to come. Comments and patches are
1027 - All Class::MOP::* accessors are no longer
1028 re-generated in the bootstrap, instead
1029 they are aliased from the originals
1030 - fixed tests to reflect
1031 - added Class::MOP::Method (and its subclasses)
1033 - adjusted tests for this
1034 - added the Class::MOP::Instance attributes
1037 * Class::MOP::Method
1039 - methods are no longer blessed CODE refs
1040 but are actual objects which can be CODE-ified
1041 - adjusted tests to compensate
1042 - adjusted docs for this
1045 - changed how methods are dealt with to
1046 encapsulate most of the work into the
1047 &get_method_map method
1048 - made several adjustments for the change
1049 in Class::MOP::Method
1050 - &add_attribute now checks if you are adding
1051 a duplicate name, and properly removes the
1052 old one before installing the new one
1053 - added tests for this
1054 - adjusted docs for this
1056 * Class::MOP::Class::Immutable
1057 - added caching of &get_method_map
1058 - fixed issue with &get_package_symbol
1059 - cleaned up the methods that die (patch by David Wheeler)
1061 * Class::MOP::Package
1062 - added filtering capabilities to
1063 &list_all_package_symbols
1065 0.34 Sat. Aug. 26, 2006
1067 - added the %:methods attribute, which like
1068 the $:version and such just actually goes
1069 to the symbol table to get it's stuff.
1070 However, it makes the MOP more complete.
1072 - The &create method now requires that all
1073 but the package name now is passed in as
1074 named parameters. See docs for more info.
1075 - updated docs and tests for this
1077 * Class::MOP::Object
1078 - added &dump method to easily Data::Dumper
1082 - cleaned up the initialization of attributes
1083 which do not store things in the instance
1084 - added the %:methods attribute definition to
1087 ~ lots of misc. test cleanup
1089 0.33 Sat. Aug. 19, 2006
1091 - moved the metaclass cache out of here
1092 and it is now in Class::MOP itself.
1095 - moved all the metaclass cache stuff here
1096 - fixed all tests for this
1098 * Class::MOP::Attribute
1099 - reference values (other than CODE refs)
1100 are no longer allowed for defaults
1101 - added tests for this
1103 * Class::MOP::Package
1104 - fixed an issue with perl 5.8.1 and how it deals
1105 with symbol tables. The namespace hash is now
1106 always reloaded from the symbol table.
1108 ~ lots of misc. documentation cleanup
1110 0.32 Sat. Aug. 12, 2006
1111 + added Class::MOP::Object so that the
1112 metamodel is more complete (and closer
1113 to what Perl 6 will probably be).
1115 * Class::MOP::Package
1116 - refactored entire class, this is now
1117 the primary gateway between the metaclass
1118 and the Perl 5 symbol table
1119 - added many tests for this
1120 - this class is now a subclass of
1122 - added some tests to reflect this
1125 - refactored all symbol table access to
1126 use Class::MOP::Package methods instead
1128 * Class::MOP::Module
1129 - adding the $:version attribute in the bootstrap
1130 so that Module has a version as an attribute
1131 - see comment in Class::MOP for details
1132 - added the $:authority attribute to this module
1133 as well as an &identifier method, to bring us
1134 ever closer to Perl 6 goodness
1135 - I have added $AUTHORITY to all the modules
1136 - added tests for this
1138 * Class::MOP::Instance
1139 - added &deinitialize_slot for removing slots
1141 - added tests for this
1143 * Class::MOP::Attribute
1144 - added support for &deinitialize_slot for removing
1145 slots from an instance
1146 - added tests for this
1148 0.31 Sat. July 15, 2006
1151 - added &find_method_by_name to locate a method
1152 anywhere within the class hierarchy
1154 * Class::MOP::Attribute
1155 - added &set_value and &get_value for getting
1156 the value of the attribute for a particular
1159 0.30 Wed. July 5, 2006
1160 ---------------------------------------
1161 This is the first version of Class::MOP
1162 to introduce the immutable features which
1163 will be used for optimizating the MOP.
1164 This support should still be considered
1165 experimental, but moving towards stability.
1166 ---------------------------------------
1168 * Created Class::MOP::Class::Immutable
1170 * Created the Class::MOP::Package and
1171 Class::MOP::Module classes to more
1172 closely conform to Perl 6's meta-model
1175 - now inherits from Class::MOP::Module
1176 - several methods moved to ::Module and
1177 ::Package and now inherited
1178 - added tests for this
1180 * Class::MOP::Instance
1181 - added an is_inlinable method to allow other
1182 classes to check before they attempt to optimize.
1183 - added an inline_create_instance to inline
1184 instance creation (of course)
1187 - the Class::MOP::Class::*_package_variable
1188 methods are all now methods of Class::MOP::Package
1189 and called *_package_symbol instead. This is
1190 because they are now more general purpose symbol
1191 table manipulation methods.
1193 0.29_02 Thurs. June 22, 2006
1194 ++ DEVELOPER RELEASE ++
1196 - small change in &create so that it behaves
1197 properly when inherited
1198 - small fix to &clone_instance
1200 0.29_01 Fri. May 12, 2006
1201 ++ DEVELOPER RELEASE ++
1202 - This release works in combination with
1203 Moose 0.09_01, it is a developer release
1204 because it introduces a new instance
1205 sub-protocol and has not yet been
1209 - anon-classes are now properly garbage collected
1210 - added tests for this
1211 - improved method modifier wrapping
1213 * Class::MOP::Instance
1214 - added new instance protocol
1215 - added tests for this
1216 - changed all relevant modules and examples
1218 - Class::MOP::Attribute
1222 - you no longer need to specify the metaclass
1223 itself, if it is not there, Class::MOP::Class
1225 - updated tests for this
1228 - added ArrayBasedStorage example to show
1229 instance storage using ARRAY refs instead of
1231 - added tests for this
1232 - InsideOutClass is totally revised using the
1233 new instance protocol
1234 - added more tests for this
1236 0.26 Mon. April 24, 2006
1238 - added find_attribute_by_name method
1239 - added tests and docs for this
1240 - some small optimizations
1242 * Class::MOP::Attribute
1243 - some small optimizations
1245 0.25 Thurs. April 20, 2006
1247 - added create_anon_class for creating anonymous classes
1248 - added tests for this
1249 - added get_all_metaclasses, get_all_metaclass_names
1250 and get_all_metaclass_instances method to allow
1251 access to all the cached metaclass objects.
1252 - attribute slot initialization is now the responsibility
1253 of the attribute itself, and construct_instance now
1254 delegates appropriately
1256 * Class::MOP::Attribute
1257 - attribute slot initialization is now the responsibility
1258 of the attribute itself, so we added a method for it
1259 called initialize_instance_slot
1262 - adjusted all the examples to use the new attribute
1263 initialize_instance_slot method
1265 0.24 Tues. April 11, 2006
1267 - cleaned up how the before/after/around method
1268 modifiers get named with Sub::Name
1270 0.23 Thurs. March 30, 2006
1272 - fixed the way attribute defaults are handled
1273 during instance construction (bug found by chansen)
1275 * Class::MOP::Attribute
1276 - read-only accessors ('reader') will now die if
1277 passed more than one argument (attempting to write
1279 - added tests for this
1280 - adjusted all /example files to comply
1282 0.22 Mon. March 20, 2006
1284 - localized $@ in the *_package_variable functions
1285 because otherwise, it does ugly things in Moose.
1286 - added test case for this
1288 0.21 Wed. March 15, 2006
1290 - fixed issue where metaclasses are reaped from
1291 our cache in global destruction, and so are not
1292 available in DESTORY calls
1294 0.20 Thurs. March 2, 2006
1295 - removed the dependency for Clone since
1296 we no longer to deep-cloning by default.
1298 * Class::MOP::Method
1299 - added &package_name, &name and
1300 &fully_qualified_name methods, some of
1301 which were formerly private subs in
1304 * Class::MOP::Method::Wrapped
1305 - allows for a method to be wrapped with
1306 before, after and around modifiers
1307 - added tests and docs for this feature
1310 - improved &get_package_symbol
1311 - &version and &superclasses now use it
1312 - methods are now blessed into Class::MOP::Method
1314 - added methods to install CLOS-style method modifiers
1315 - &add_before_method_modifier
1316 - &add_after_method_modifier
1317 - &add_around_method_modifier
1318 - added tests and docs for these
1319 - added &find_next_method_by_name which finds the
1320 equivalent of SUPER::method_name
1322 0.12 Thurs. Feb 23, 2006
1323 - reduced the dependency on B, no need to always
1327 - added docs to the C3 method dispatch order test
1328 - fixed missing Algorithm::C3 dependency by making
1329 the test skip if it is not installed
1331 0.11 Mon Feb. 20, 2006
1333 - added example of changing method dispatch order to C3
1336 - changed how clone_instance behaves, it now only does a
1337 shallow clone (see docs for more details)
1338 - added docs and tests
1340 0.10 Tues Feb. 14, 2006
1341 ** This release was mostly about writing more tests and
1342 cleaning out old and dusty code, the MOP should now
1343 be considered "ready to use".
1345 - adding more tests to get coverage up a little higher,
1346 mostly testing errors and edge cases.
1347 - test coverage is now at 99%
1350 - no longer optionally exports to UNIVERSAL::meta or
1351 creates a custom metaclass generator, use the
1352 metaclass pragma instead.
1355 - fixed a number of minor issues which came up in the
1356 error/edge-case tests
1358 * Class::MOP::Attribute
1359 - fixed a number of minor issues which came up in the
1360 error/edge-case tests
1363 - fixing the AttributesWithHistory example, it was broken.
1365 0.06 Thurs Feb. 9, 2006
1367 - adding new metaclass pragma to make setting up the
1368 metaclass a little more straightforward
1371 - clean up bootstrapping to include more complete
1372 attribute definitions for Class::MOP::Class and
1373 Class::MOP::Attribute (accessors, readers, writers,
1374 etc.) ... it is redundant, but is useful meta-info
1378 - fixing minor meta-circularity issue with &meta, it
1379 is now more useful for subclasses
1380 - added &get_attribute_map as an accessor for the
1381 hash of attribute meta objects
1382 - &compute_all_applicable_attributes now just returns
1383 the attribute meta-object, rather than the HASH ref
1384 since all the same info can be gotten from the
1385 attribute meta-object itself
1386 - updated docs & tests to reflect
1387 - added &clone_instance method which does a deep clone
1388 of the instance structure created by &construct_instance
1389 - added docs & tests for this
1390 - added Clone as a dependency
1391 - added &new_object and &clone_object convience methods to
1392 return blessed new or cloned instances
1393 - they handle Class::MOP::Class singletons correctly too
1394 - added docs & tests for this
1395 - cleaned up the &constuct_class_instance so that it behaves
1396 more like &construct_instance (and managed the singletons too)
1397 - added the &check_metaclass_compatibility method to make sure
1398 that metaclasses are upward and downward compatible.
1399 - added tests and docs for this
1402 - adjusting code to use the &Class::MOP::Class::meta
1404 - adjusting code to use the metaclass pragma
1406 0.05 Sat Feb. 4, 2006
1408 - added the &attribute_metaclass and &method_metaclass
1409 attributes which contain a metaclass name to use for
1410 attributes/methods respectively
1413 - bootstrap additional attributes for Class::MOP::Class
1416 - adjusted the example code and tests to use the new
1417 &attribute_metaclass feature of Class::MOP::Class
1418 - added new example:
1421 0.04 Fri Feb. 3, 2006
1423 - some documentation suggestions from #perl6
1425 * Class::MOP::Attribute
1426 - improved error messages
1429 - added new examples:
1430 - AttributesWithHistory
1431 - ClassEncapsultedAttributes
1433 0.03 Fri Feb. 3, 2006
1434 - converted to Module::Build instead of EU::MM
1436 * Class::MOP::Attribute
1437 - refactored method generation code
1438 - attributes are now associated with class directly
1441 - refactored the InsideOut example to take advantage
1442 of the Class::MOP::Attribute refactoring
1443 - changed example files to .pod files and hide thier
1444 package names from PAUSE (I don't want to own these
1445 namespaces really, they are just examples)
1447 0.02 Thurs Feb. 2, 2006
1448 - moving examples from t/lib/* to examples/*
1449 - adding POD documentation to the examples
1451 0.01 Thurs Feb. 2, 2006