1 Revision history for Perl extension Class-MOP.
5 - Make is_class_loaded without any arguments fail loudly
7 - Make load_class throw more standard error messages when loading single
11 - Stop add_method from behaving differently under the debugger
16 - Any method which takes a method name as an argument now allows names
17 which are false (like "0"), but the name must be defined and not be an
18 empty string. (Dave Rolsky)
21 - Deprecated get_attribute_map as a public method. You can use a
22 combination of get_attribute_list and get_attribute instead. (Dave
25 0.94 Tue, Sep 22, 2009
26 * Class::MOP::Attribute
27 - Introduce set_raw_value and get_raw_value, side effect free variants
28 of {get,set}_value. These don't do anything useful in Class::MOP but
29 have different behavior that set_value and get_value for Moose
30 attributes. (nothingmuch)
32 0.93 Tue, Sep 15, 2009
34 - The load_class function just returns true, since it's return value was
35 confusing (either a metaclass object or a class name). It either loads
36 a class or dies trying. In the future, this may change to not return
37 anything, since there's no point in checking its return
38 value. Addresses RT #45883. (Dave Rolsky)
40 * Class::MOP::Class::Trait::Immutable
41 - When throwing an error because of an immutable method, include that
42 method's name. Addresses RT #49680. (Shawn M Moore)
45 - Adding the same sub reference to multiple packages failed to update
46 the method map properly. RT #48985. Reported by Paul Mooney. (Dave
48 - The get_method_map method is now private (and called as
49 _full_method_map or _method_map). The public version is available as a
50 deprecated method. (Dave Rolsky)
52 0.92_01 Thu, Sep 10, 2009
54 - Backwards compatibility tweaks to XS for 5.8.1. (Goro Fuji)
57 - Make sure XS code handles magical scalars correctly. (Goro Fuji)
60 - Documented the immutable_options method, which is useful if you need
61 to make a class mutable temporarily, and then nede to restore
62 immutability. (Dave Rolsky)
65 - Deprecated features have been moved to their own module,
66 Class::MOP::Deprecated, for easier deprecation management. (Goro Fuji)
71 - Move get_method_map and its various scaffolding into Package. (hdp)
74 - Allow Class::MOP::Method->wrap to take a Class::MOP::Method object as
75 the first argument, rather than just a coderef. (doy)
77 * Class::MOP::Attribute
79 - Allow attribute names to be false (while still requiring them to be
83 * Class::MOP::Method::Wrapped
84 - Fixing variable usage issues with the patch from previous
85 version, not properly using lexicals in the for
89 Japan Perl Association has sponsored Goro Fuji to improve startup
90 performance of Class::MOP and Moose. These enhancements may break
91 backwards compatibility if you're doing (or using) complex
92 metaprogramming, so, as always, test your code!
93 http://blog.perlassociation.org/2009/07/jpa-sponsors-moose-class-mop-work.html
97 - Anonymous classes were not completely destroyed when they went
98 out of scope, leading to a memory leak. RT #47480. (Goro
102 - The get_method, has_method, and add_method methods no longer
103 use get_method_map. Method objects are instantiated
104 lazily. This significantly improves Class::MOP's load
108 - Inline fewer metaclass-level constructors since the ones we
109 have are perfectly fine. This reduces the number of string
112 * Class::MOP::Method::Wrapped
113 - If a method modifier set $_, this caused the modifier to blow
114 up, because of some weird internals. (Jeremy Stashewsky)
118 * Class::MOP::Class::Immutable::Trait
119 - Made the Trait act like a role with a bunch of "around"
120 modifiers, rather than sticking it in the inheritance
121 hierarchy. This fixes various problems that caused with
122 metaclass compatibility, which broke Fey::ORM.
125 - Allow a blessed code reference as the method body. Fixes a
126 problem interaction with MooseX::Types. (ash)
128 * Class::MOP::Instance
129 - add inline version of rebless_instance_structure. (doy)
130 - change inline_slot_access to use single quotes (gphat)
132 0.88 Tue, Jun 23, 2009
134 - Moved the __INSTANCE__ parameter to _construct_instance from
136 - Fixed some issues involving metaclasses of metaclasses and
139 0.87 Sun, Jun 21, 2009
141 - Made sure to always local-ize $@ and $SIG{__DIE__} before
142 calling an eval. Fixes RT #45973.
145 - Synced docs about immutability with the current reality (which
146 changed back in 0.82_01)
147 - Removed the immutable_transformer method, which had been
148 returning undef since 0.82_01 anyway.
151 - Got rid of tests which needed Moose and improved testing of
152 constructor/destructor inlining warnings. Fixes RT #47119.
154 0.86 Tue, Jun 16, 2009
156 - If you redefined a subroutine at runtime and then wrapped it
157 with a method modifier, the modifier could in some cases wrap
158 the original version of the subroutine. Fixes RT #46957.
161 - make_immutable issues a warning instead of overriding an
162 existing DESTROY method (Dylan William Hardison). Fixes RT
165 0.85 Sat, Jun 6, 2009
166 * Class::MOP::Attribute
167 - Allow default values to be Class::MOP::Methods. (Florian
169 - Test the above. (Rhesa Rozendaal)
170 - Tweak original commit so the intent matches the accepted
171 behavior (Nicholas Perez)
174 - Localize $SIG{__DIE__} inside _try_load_one_class (Sartak)
177 - Add direct_subclasses method (Sartak)
178 - Tests for subclasses and direct_subclasses (Sartak)
179 - subname is no longer used unconditionally in add_method, but
180 only if the code reference's name is '__ANON__' (nothingmuch)
181 - Add a hook for _superclasses_updated (Sartak)
184 - Remove long, old warning about possibly outdated modules
187 0.84 Tue, May 12, 2009
189 - Depend on Text::Exception 0.27 to avoid failing tests ond old
193 - Made is_class_loaded a little stricter. It was reporting that
194 a class was loaded if it merely had an @ISA variable in its
195 stash. Now it checks that the @ISA var has elements in it.
196 - Deprecate in_global_destruction and subname re-exporting
200 - Explicitly use Devel::GlobalDestruction and Sub::Name
203 * Class::MOP::Package
204 - Disable prototype mismatch warnings for add_package_symbol.
207 - Add test for finding methods from $meta->name->meta before immutable,
210 0.83 Mon, April 27, 2009
212 - Fix segfault when calling get_method_map on a metaclass for an empty
215 0.82_02 Fri, April 24, 2009
216 * Class::MOP::Method::Inlined
217 - Don't inline if the expected method is not defined at all (happens with
218 e.g. Moose::Object::_new is the expected method due to an overridden
221 - Some tests were trying to load Class::MOP::Immutable, which
222 was removed in 0.82_01.
224 0.82_01 Thu, April 23, 2009
225 * Class::MOP::Immutable (and others)
226 - Refactor the immutability system to use a pre-defined class
227 for the immutable metaclass of Class::MOP::Class::Immutable::$class
228 - Rather than generating methods into this class every time, use
229 a Trait (basic mixin) to supply the cached methods
230 - Remove the hack that returns the mutable metaclass for
231 metacircularity in order to provide consistent meta-metaclasses
232 for the Moose compatibility handling code
233 (mst broke it, nothingmuch fixed it)
235 0.82 Mon, April 20, 2009
237 - The deprecation wrappers for some renamed methods were not
238 passing arguments to the new method. (nothingmuch)
240 * Class::MOP::Immutable
241 - Warn during immutablization if the local class provides its own
242 constructor, to parallel the warning in Moose when a superclass
243 provides its own constructor (doy)
245 0.81 Tue, April 7, 2009
248 * Class::MOP::Instance
249 * Class::MOP::Attribute
250 * Class::MOP::Method::Accessor
251 * Class::MOP::Method::Constructor
252 - Include stack traces in the deprecation warnings introduced in
253 0.80_01. (Florian Ragwitz)
256 - Avoid c compiler warnings by declaring some unused function
257 arguments. (Florian Ragwitz)
259 0.80_01 Sun, April 5, 2009
261 - Make sure to preserve any compiler flags already defined in
262 Config.pm. Patch by Vincent Pit. RT #44739.
264 * Many methods have been renamed with a leading underscore, and a
265 few have been deprecated entirely. The methods with a leading
266 underscore are considered "internals only". People writing
267 subclasses or extensions to Class::MOP should feel free to
268 override them, but they are not for "public" use.
271 - construct_class_instance => _construct_class_instance (use new_object)
272 - construct_instance => _construct_instance (use new_object)
273 - check_metaclass_compatibility => _check_metaclass_compatibility
274 - create_meta_instance => _create_meta_instance (use get_meta_instance)
275 - clone_instance => _clone_instance (use clone_object)
276 - compute_all_applicable_methods is deprecated, use get_all_methods
277 - compute_all_applicable_attributes is deprecated, use get_all_attributes
279 - Class::MOP::Instance
280 - bless_instance_structure is deprecated and will be removed
284 - create has been renamed to _instantiate_module. This method
285 does not construct an object, it evals some code that
286 creates the relevant package in Perl's symbol table.
288 - Class::MOP::Method::Accessor
289 - initialize_body => _initialize_body (this is always called
290 when an object is constructed)
291 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
293 - Class::MOP::Method::Constructor
294 - initialize_body => _initialize_body (this is always called
295 when an object is constructed)
296 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
297 - attributes => _attributes
298 - meta_instance => _meta_instance
300 0.80 Wed, April 1, 2009
302 - Call user_class->meta in fewer places, with the eventual goal
303 of allowing the user to rename or exclude ->meta
304 altogether. Instead uses Class::MOP::class_of. (Sartak)
307 - New class_of function that should be used to retrieve a
308 metaclass. This is unlike get_metaclass_by_name in that it
309 accepts instances, not just class names. (Sartak)
312 - load_first_existing_class didn't actually load the first
313 existing class; instead, it loaded the first existing and
314 compiling class. It now throws an error if a class exists (in
315 @INC) but fails to compile. (hdp)
319 - we had some semi-buggy code that purported to provide a
320 HAS_ISAREV based on whether mro had get_isarev (due to an
321 oversight, it always returned 1). Since mro and MRO::Compat
322 have always had get_isarev, HAS_ISAREV was pointless. This
323 insight simplified the subclasses method by deleting the
324 pure-perl fallback. HAS_ISAREV is now deprecated. (Sartak)
326 0.79 Fri, March 29, 2009
327 * No changes from 0.78_02.
329 0.78_02 Thu, March 26, 2009
331 * Class::MOP::Immutable
332 - A big backwards-incompatible refactoring of the Immutable API,
333 and the make_immutable/make_mutable pieces of the Class
334 API. The core __PACKAGE__->meta->make_immutable API remains
335 the same, however, so this should only affect the most
339 - The XS code used a macro, XSPROTO, that's only in 5.10.x. This
340 has been fixed to be backwards compatible with 5.8.x.
343 - Add a hook for rebless_instance_away (Sartak)
344 - Use blessed instead of ref to get an instance's class name
345 in rebless_instance. (Sartak)
347 0.78_01 Wed, March 18, 2009
349 - Revised and reorganized all of the API documentation. All
350 classes now have (more or less) complete API documentation.
353 * Class::MOP::Instance
354 - Reblessing into a package that supports overloading wasn't
355 properly adding overload magic to the object due to a bug
356 in (at least) 5.8.8. We now use $_[1] directly which seems
357 to set the magic properly. (Sartak)
359 * Class::MOP::Attribute
360 - The process_accessors method is now private. A public alias
361 exists (and will stick around for a few releases), but it
362 warns that calling the public method is deprecated.
364 * Class::MOP::Method::Generated
365 - Removed the new and _new methods, since this is an abstract
366 base class, and all existing subclasses implement their own
370 - Stop is_class_loaded from thinking a class is loaded if it
371 only has an empty GV (Florian Ragwitz).
372 - Add a test for this (Yappo).
373 - Refactor get_all_package_symbols to allow short-circuiting
375 - Use this in is_class_loaded (Florian Ragwitz).
376 - Stop segfaulting when trying to get the name from a sub that's
377 still being compiled (Florian Ragwitz).
378 - Add tests for this (Florian Ragwitz).
379 - Prefix all public symbols with "mop_" (Florian Ragwitz).
380 - Clean up and simplify prehashing of hash keys (Florian Ragwitz).
381 - Simplify creating simple xs reader methods (Florian Ragwitz).
382 - Make everything compile with c++ compilers (Florian Ragwitz).
383 - Upgrade ppport.h from 3.14 to 3.17 (Florian Ragwitz).
386 - Remove optional test plans for tests depending on Sub::Name as
387 we have a hard dependency on Sub::Name anyway (Florian Ragwitz).
390 - Rebuild all c code if mop.h has changed (Florian Ragwitz)
392 0.78 Mon, February 23, 2009
393 * No changes from 0.77_01
395 0.77_01 Sun, February 22, 2009
397 - This package now requires its XS components. Not using
398 Sub::Name lead to different behavior and bugginess in the pure
399 Perl version of the code. A Moose test would fail when run
400 against the pure Perl version of this code.
402 * Class::MOP::Instance
403 - The inline_* methods now quote attribute names themselves, and
404 don't expect to receive a quoted value.
407 0.77 Sat, February 14, 2009
409 - Avoid assertion errors on debugging perls in is_class_loaded
413 - Fixed various corner cases where is_class_loaded incorrectly
414 returned true for a class that wasn't really loaded. (Dave
418 - Add get_all_method_names (Sartak)
419 - Add a wrapped_method_metaclass attribute (Florian Ragwitz)
421 * Class::MOP::Package
422 - Disable deprecated get_all_package_symbols in list
423 context. (Florian Ragwitz)
426 - Make sure we generate a BSD-compatible Makefile (Florian
430 - The misspelled "check_metaclass_compatability" method we've
431 kept around for backwards compat_i_bility will be removed in a
432 near future release. You've been warned.
434 0.76 Thu, January 22, 2009
435 * Class::MOP::Method::Generated
436 - Added new private methods to support code generation, which
437 are being used by Moose and can be used by MooseX
439 - Generated methods are now generated with a #line directive
440 reflecting the source of the generated method. (nothingmuch)
443 - Clarified documentation of methods that return
444 Class::MOP::Method objects. (doy)
447 - Clarified documentation of the metaclass cache methods. (Sartak)
450 - Add test showing how the xs Class::MOP::is_class_loaded can
451 be made to operate differently to the pure perl version (t0m)
453 0.75 Wed, December 31, 2008
455 - A class that was made immutable and then mutable could end up
456 sharing an immutable transformer object
457 (Class::MOP::Immutable) with other classes, leading to all
458 sorts of odd bugs. Reported by t0m. (Dave Rolsky)
460 0.74 Tue, December 25, 2008
462 - Add an xs implementation of Class::MOP::is_class_loaded (closes
463 RT#41862). Based on a patch by Goro Fuji. (Florian Ragwitz)
464 - Changed internals to make prehashing of hash keys easier and less
465 error-prone. (Florian Ragwitz)
467 - Fix documentation to show that around modifiers happen on both
468 sides of the modified method. (Dave Rolsky)
470 0.73 Tue, December 16, 2008
472 - Don't use Perl_mro_meta_init. It's not part of the public perl
473 api. Fixes failures to build on Win32 (RT #41750). (Florian
475 * t/082_get_code_info.t
476 - Add $^P &= ~0x200; (per Ovid's suggestion) in order to not
477 munger anonymous subs when under -d and so making the tests
478 succeed in that case.
480 0.72 Mon, December 8, 2008
481 * Class::MOP::Package
482 - Pass options to _new, so subclass' attributes can be
485 - In the docs, indicate that package_name and name are required
486 when calling ->wrap (Stefan O'Rear)
488 0.71_02 Fri, December 5, 2008
489 * Class::MOP::Immutable
490 - Added a new attribute, inlined_constructor, which is true if
491 the constructor was inlined.
492 * Class::MOP::Package
493 - Make get_all_package_symbols return a hash ref in scalar
494 context and deprecate calling it in list context with a
495 warning. (Florian Ragwitz)
497 - Various improvements and refactoring, making things more robust and
498 easier to maintain. (Florian Ragwitz)
500 0.71_01 Wed, December 3, 2008
502 - Add an "execute" method to invoke the body so
503 we can avoid using the coderef overload (Sartak)
504 * Class::MOP::Immutable
505 - When we memoize methods, get their results lazily
506 to remove some compile-time cost (Sartak)
507 - Small speedup from eliminating several method
510 - Some small internal tweaks to try to reduce the number of
511 times we call get_method_map when bootstrapping the MOP. This
512 might make loading Class::MOP (and Moose) a little
513 faster. (Dave Rolsky)
514 - Implemented an optional XS version of get_method_map. Mostly
515 taken from a patch by Goro Fuji (rt.cpan.org #41080), with
516 help form Florian Ragwitz. (Dave Rolsky)
517 - Make the behaviour of of get_all_package_symbols (and
518 therefore get_method_map) consistent for stub methods. Report
519 and test by Goro Fuji (rt.cpan.org #41255). (Florian Ragwitz)
521 0.71 Wed November 26, 2008
524 - Actual package creation has moved upward from
525 Class to Module so that Moose roles can share
528 0.70_01 Mon, November 19, 2008
530 - Fixes for failures with blead (Florian Ragwitz)
531 - Silenced compiler warnings (Florian Ragwitz)
533 0.70 Fri, November 14, 2008
535 - Fixed an odd corner case where the XS version of
536 get_all_package_symbols could cause a segfault. This only
537 happened with inlined constants in Perl 5.10.0 (Florian
540 0.69 Fri, November 7, 2008
541 * Class::MOP::Method::Wrapped
542 - Added introspection methods for method modifiers (Dave Rolsky)
545 0.68 Fri October 24, 2008
547 - Make load_class require by file name instead of module name.
548 This stops confusing error messages when loading '__PACKAGE__'.
550 - Add load_one_class_of function to enable you to load one of a
551 list of classes, rather than having to call load_class multiple
552 times in an eval. (t0m)
554 0.67 Tue October 14, 2008
556 - Call a method on the class after setting the superclass list
557 so that we can get Perl to detect cycles before MRO::Compat
558 spirals into an infinite loop (sartak)
559 - Reported by Schwern, [rt.cpan.org #39001]
560 - In create(), pass unused options on to initialize()
561 - added test for this
563 0.66 Sat September 20, 2008
564 !! This release has an incompatible change regarding !!
565 introspection of a class's method with Class::MOP::Class !!
568 - We (us maintainers) now run all tests with XS and then without
569 XS, which should help us catch skew between the XS/pure Perl
573 ! The alias_method method has been deprecated. It now simply
574 calls add_method instead. There is no distinction between
575 aliased methods and "real" methods.
577 This means that methods added via alias_method now show up as
578 part of the class's method list/map. This is a backwards
579 incompatible change, but seems unlikely to break any
580 code. Famous last words. (Dave Rolsky)
583 - Fixed the spelling of "compatibility", but we still have a
584 "check_metaclass_compatability" method for backwards
587 0.65 Mon September 1, 2008
588 For those not following the series of dev releases, the changes
589 from 0.64 from 0.65 can mostly be summed up as a lot performance
590 improvements by nothingmuch, including new optional XS versions of
591 some methods. Also, Class::MOP now works _without_ any XS modules,
592 for sad systems without a compiler.
595 - Added name and package_name XS accessors, and make sure all
596 the XS and Perl versions work the same way. (Dave Rolsky)
599 - The XS versions of various methods just returned undef when
600 called class methods, rather than dying like the pure Perl
601 versions. (Dave Rolsky)
603 0.64_07 Fri August 29, 2008
605 - Silenced warnings that managed to break Moose tests when XS
606 was loaded. (Dave Rolsky)
607 - Some XS versions of methods were ignored because of typos in
608 MOP.xs. (Dave Rolsky)
610 0.64_06 Mon August 25, 2008
611 * Class::MOP (MOP.xs)
612 - Another MS VC++ fix, cannot declare a variable in the middle
613 of a scope (Taro Nishino).
615 0.64_05 Sun August 24, 2008
617 - None of the dev releases actually loaded the XS properly, but
618 we silently fell back to the pure Perl version of the
621 * Class::MOP (MOP.xs)
622 - Replaced some code that used functions not available on Visual
623 C++ with some Perl XS API bits (Dave Rolsky).
625 0.64_04 Sat August 23, 2008
627 - Workaround a bug in 5.8.1's goto sub (nothingmuch)
629 * pod.t and pod_coveraget.t
630 - These are no longer shipped with the tarball because of bogus
631 failures from CPAN testers. (Dave Rolsky)
633 0.64_03 Thu August 21, 2008
634 * Class::MOP::Package
635 - Some (legit) code was misparsed by earlier 5.8.x
636 releases. (nothingmuch)
639 - Fix a constant in void context warning (nothingmuch)
641 0.64_02 Thu August 21, 2008
642 * Makefile.PL and Class::MOP
643 - Explicitly require Perl 5.8.0+ (Dave Rolsky)
646 - Add missing prereqs that got lost in the switch away from
649 * Class::MOP::Instance
650 - New method - get_all_attributes (nothingmuch)
652 0.64_01 Wed August 20, 2008
654 - We now check to see if you have a compiler. If you don't, the
655 module installs without some XS bits, but will work the same
656 as with XS. This should make it easier to install on platforms
657 without a compiler (like Windows). (Dave Rolsky)
660 - Perl 6 style attribute naming replaced with sane style ('methods', not
661 '%!methods'). These changes should not impact any existing API uses.
665 - Quite a number of optimizations based on profiling, including
666 allowing constructors to take hash references instead of
667 hashes, duplicating some frequently used code in XS, and
668 making constructors immutable. These changes should not impact
669 any existing API uses. (nothingmuch)
672 - Constructors now respect the meta attributes of their subclasses,
673 facilitating MOP extensibility. More related changes will happen in the
674 next several releases. (nothingmuch)
677 - New method - get_all_methods, replaces the deprecated
678 compute_all_applicable_methods. get_all_attributes provided for
679 consistency (nothingmuch)
680 - New method - wrap_method was refactored out of get_method_map
682 - New API for meta instance invalidation - invalidate_meta_instance,
683 invalidate_meta_instances, add_dependent_meta_instance,
684 remove_dependent_meta_instance, called automatically when attribute
685 definitions change and allows notification of dependent subclasses.
688 0.64 Sun August 3, 2008
689 * Class::MOP::Immutable
690 - fixing subtle edge case in immutable when you
692 - clean up option processing (nothingmuch)
694 * Class::MOP::Instance
695 - inlined initialize slot didn't match
696 non-inlined (nothingmuch)
698 0.63 Mon July 7, 2008
700 - load_class will initialize a metaclass even if
701 the class is already loaded (sartak)
702 - load_class now returns the metaclass instance
703 instead of just 1 (sartak)
706 - better error messages (sartak and Dave Rolsky)
708 0.62 Wed June 18, 2008
709 - in is_class_loaded, recognize scalar references (as opposed to globs) in
710 the symbol table as methods (these are optimized constant subs)
712 0.61 Fri. June 13, 2008
713 - Okay, lets give this another try and see if PAUSE
714 recognizes it correct this time.
716 0.60 Thurs. Jun 12, 2008
717 - Fixed a version number issue by bumping all modules
720 0.59 Thurs. Jun 12, 2008
721 !! Several fixes resulting in yet another 25-30% speedup !!
724 - now stores the instance of the instance
725 metaclass to avoid needless recomputation
726 and deletes it when the cache is blown
727 - introduce methods to query Class::MOP::Class for
728 the options used to make it immutable as well as
729 the proper immutable transformer. (groditi)
731 * Class::MOP::Package
732 - {add, has, get, remove}_package_symbol all
733 now accept a HASH ref argument as well as the
734 string. All internal usages now use the HASH
738 - MOP.xs does sanity checks on the coderef
740 - is_class_loaded check now uses code that
741 was improved in Moose's ClassName type
743 - nonsensical (undef, empty, reference) class
744 names now throw a more direct error in
746 - tests for this and other aspects of
752 Class::MOP::Method::Wrapped
753 Class::MOP::Attribute
754 - switched usage of reftype to ref because
757 0.58 Thurs. May 29, 2008
758 (late night release engineering)--
760 - fixing the version is META.yml, no functional
761 changes in this release
763 0.57 Wed. May 28, 2008
764 !! Several speedups resulting in 20-25% speedups !!
765 || (thanks to konobi, groditi, mst & CataMoose) !!
768 - made get_method_map use list_all_package_symbols
769 instead of manually grabbing each symbol
770 - streamlining &initialize somewhat, since it gets
773 * Class::MOP::Package
774 - made {get, has}_package_symbol not call
776 - inlining a few calls to &name with
777 direct HASH access key access
778 - added get_all_package_symbols to fetch
779 a HASH of items based on a type filter
780 similar to list_all_package_symbols
781 - added tests for this
784 Class::MOP::Method::Constructor
785 Class::MOP::Method::Generated
786 Class::MOP::Method::Accessor
787 - added more descriptive error message to help
788 keep people from wasting time tracking an error
789 that is easily fixed by upgrading.
791 * Class::MOP::Immutable
792 - Don't inline a destructor unless the user actually
794 - added tests for this
796 0.56 Saturday, May 24, 2008
798 - we now get the &check_package_cache_flag
799 function from MRO::Compat
800 - All XS based functionality now has a
801 Pure Perl alternative
802 - the CLASS_MOP_NO_XS environment variable
803 can now be used to force non-XS versions
806 * Class::MOP::Attribute
807 - add has_read_method and has_write_method
808 - get_{read,write}_method_ref now wraps the
809 anon-sub ref in the method metaclass when
811 - added tests for this
813 * Class::MOP::Immutable
814 - added the ability to "wrap" methods when
815 making the class immutable
818 - now handling the edge case of ->meta->identifier
819 dying by wrapping add_package_symbol to specifically
820 allow for it to work.
821 - added tests for this
823 * Class::MOP::Attribute
825 Class::MOP::Immutable
826 - any time a method meta object is constructed
827 we make sure to pass the correct package and
828 method name information
831 Class::MOP::Method::Wrapped
832 Class::MOP::Method::Generated
833 Class::MOP::Method::Accessor
834 Class::MOP::Method::Consructor
835 - the &wrap constructor method now requires that a
836 'package_name' and 'name' attribute are passed. This
837 is to help support the no-XS version, and will
838 throw an error if these are not supplied.
839 - all these classes are now bootstrapped properly
840 and now store the package_name and name attributes
843 ~ Build.PL has been removed since the
844 Module::Install support has been removed
846 0.55 Mon. April 28, 2008
847 - All classes now have proper C3 MRO support
848 - added MRO::Compat as a dependency to allow
849 for the C3 MRO support to Just Work in all
853 - rebless_instance now returns the instance
854 it has just blessed, this is mostly to
856 - set the attr correctly in rebless_instance
857 when it has no init_arg
858 - tweaked &linear_isa and &class_precedence_list
859 to support c3 classes.
861 0.54 Fri. March, 14, 2008
864 - making sure that load_class never gets
865 passed a value from @_ or $_ to squash
866 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
869 - make_{immutable,mutable} now return 1
871 - improved error handling in ->create method
872 - rebless_instance now takes extra params which
873 will be used to populate values
874 - added tests for this
877 - localizing the Data::Dumper configurations so
878 that it does not pollute others (RT #33509)
884 Class::MOP::Attribute
885 - these classes no longer define their own ->meta,
886 but instead just inherit from Class::MOP::Object
888 * Class::MOP::Instance
889 Class::MOP::Immutable
890 - these classes now inherit from Class::MOP::Object
893 - fixed the filename length on several
894 test files so we install on VMS better
896 - fixed incorrect use of catdir when it
897 should be catfile (RT #32385)
899 0.53 Thurs. Feb. 14, 1008
900 ~~ several doc. fixes and updates ~~
903 Class::MOP::Method::Constructor
904 Class::MOP::Attribute
905 - making init_arg accept an undefined value
906 to indicate that no constructor args can
907 be passed (thanks to nothingmuch)
908 - added tests for this
909 - added attribute initializer attribute (rjbs)
912 - making this use the new init_arg => undef
913 feature instead of the silly hack from
914 before (thanks to nothingmuch)
916 0.52 Tues. Jan. 22, 2008
918 - fixed bug in rebless_instance
921 * Class::MOP::Method::Constructor
922 - removed assumptions about the existence of
925 0.51 Mon. Jan. 14, 2008
926 ~~~ some misc. doc. fixes ~~~
927 ~~ updated copyright dates ~~
930 - now sets the IS_RUNNING_ON_5_10
931 constant so that we can take advantage
932 of some of the nice bits of 5.10
935 - uses the IS_RUNNING_ON_5_10 flag to
936 optimize the &linearized_isa method
937 and avoid the hack/check for circular
938 inheritence in &class_precedence_list
939 - added rebless_instance method (Sartak)
940 - added tests for this
942 * Class::MOP::Immutable
943 - the immutable class now keeps track of
944 the transformer which immutablized it
946 * Class::MOP::Instance
947 - added rebless_instance_structure method (Sartak)
948 - added tests for this
950 0.50 Fri. Dec. 21, 2007
952 - fixed bug in immutable to make sure that
953 transformation arguments are saved
955 - added tests for this
957 * Class::MOP::Immutable
958 - fixed a bug (see above)
960 * Class::MOP::Attribute
963 0.49 Fri. Dec. 14, 2007
964 !! Class::MOP now loads 2 x faster !!
965 !! with XS speedups (thanks konobi) !!
968 - removed the dependency on B
969 - added two XS functions (thanks konobi)
970 - get_code_info($code) which replaces all
971 the B fiddling we were doing with
972 faster/leaner XS level fiddling
973 - check_package_cache_flag($pkg_name) which
974 returns the PL_sub_generation variable to
975 be used to help manage method caching.
978 In 5.10 or greater this will actually
979 use the mro::get_pkg_gen instead to give
980 even more accurate caching information.
981 blblack++ for that stuff :)
984 - added the &subclasses method (thanks rlb)
985 - added the update_package_cache_flag and
986 reset_package_cache_flag which help keep
987 track of when we need to re-fetch the
989 - Several small improvements to take advantage
990 of the new method map caching features
992 0.48 Mon. Nov. 26, 2007
993 * Class::MOP::Attribute
994 - fixed get_read/write_method to handle the
995 HASH ref case, which makes the
996 get_read/write_method_ref handle it too.
997 - added more tests for this
999 0.47 Sat. Nov. 24, 2007
1000 * Class::MOP::Attribute
1001 - fixed misspelling in get_write_method_ref
1002 - added more tests for this
1004 0.46 Fri. Nov. 23, 2007
1006 - added the linearized_isa method instead of constantly
1007 pruning duplicate classes (this will be even more
1008 useful in the 5.10-compat version coming soon)
1010 * Class::MOP::Attribute
1011 - added the get_read_method_ref and get_write_method_ref
1012 methods which allow you to retrieve a CODE ref which
1013 can always be used to read or write an attribute.
1015 0.45 Thurs. Nov. 13, 2007
1016 * Class::MOP::Attribute
1017 - Fix error message on confess (groditi)
1019 0.44 Thurs. Nov. 13, 2007
1020 - Apparently I didn't make dist correctly (groditi)
1022 0.43 Thurs. Nov. 13, 2007
1024 - Add support for the 'builder' attribute (groditi)
1027 - optimise metaclass-already-exists check in
1028 construct_class_instance (groditi)
1029 - duplicate check into initialize to save a
1030 call through (groditi)
1032 * Class::MOP::Attribute
1033 - Add support for the 'builder' attribute (groditi)
1034 - Make predicates check for the existence of a value, not whether
1035 it is defined (groditi)
1037 * Class::MOP::Instance
1038 - Make predicates check for the existence of a value, not whether
1039 it is defined (groditi)
1041 * Class::MOP::Method::Accessor
1042 - made this a subclass of Class::MOP::Method::Generated
1043 - removed the relevant attributes
1045 * Class::MOP::Method::Constructor
1046 - fixed the cached values we had to be more sane
1047 - made this a subclass of Class::MOP::Method::Generated
1048 - fixed generated constructor so it properly handles
1050 - added tests for this
1051 - added the option to allow for both inlined and
1052 non-inlined constructors.
1053 - Update inlined methods for builder and predicate changes (groditi)
1055 * Class::MOP::Method::Generated
1056 - added this class as an abstract base for the
1057 Class::MOP::Method::{Constructor,Accessor} classes
1058 - added tests for this
1061 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
1062 - Tests for new predicate behavior (and corrections to old tests) (groditi)
1065 - Update ArrayRef based class example to work with predicate changes
1067 0.42 Mon. July 16, 2007
1068 !!! Horray for mst, he fixed it !!!
1070 * Class::MOP::Package
1071 - alter symbol table handling to deal with 5.8.x and 5.9.x
1074 - Get rid of the crappy workaround from 0.40/41
1076 0.41 Sun. July 15, 2007
1078 Arghh!!! My TODO test didn't work, so I handle
1079 it manually now so that people can use this
1080 with 5.9.5/bleadperl without issue.
1082 0.40 Tues, July 3, 2007
1084 ~ marked a test in 003_methods.t as TODO
1085 for perl 5.9.5 (this test is irrelvant to
1086 the module functioning on 5.9.5 for the most
1089 0.39 Mon. June 18, 2007
1090 * Class::MOP::Immutable
1091 - added make_metaclass_mutable + docs (groditi)
1092 - removed unused variable
1093 - added create_immutable_transformer
1094 necessary for sane overloading of immutable behavior
1095 - tests for this (groditi)
1098 - Immutability can now be undone,
1099 added make_mutable + tests + docs (groditi)
1100 - Massive changes to the way Immutable is done
1101 for details see comments next to make_immutable
1102 This fixes a bug where custom metaclasses broke
1103 when made immutable. We are now keeping one immutable
1104 metaclass instance per metaclass instead of just one
1105 to prevent isa hierarchy corruption. Memory use will go
1106 up, but I suspect it will be neglible.
1107 - New tests added for this behavior. (groditi)
1109 0.38 Thurs. May 31, 2007
1110 ~~ More documentation updates ~~
1112 * Class::MOP::Package
1113 - we now deal with stub methods properly
1114 - added tests for this
1115 - fixed some tests failing on 5.9.5 (thanks blblack)
1117 * Class::MOP::Attribute
1118 - added get_read_method and get_write_method
1119 thanks to groditi for this code, tests
1121 - added tests and POD for this
1124 - fixed RT issue #27329, clone object now
1125 handles undef values correctly.
1126 - added tests for this
1127 - Corrected anon-class handling so that they
1128 will not get reaped when instances still
1129 exist which need to reference them. This is
1130 the correct behavior, hopefully this is an
1131 obscure enough feature that there are not too
1132 many work arounds out in the wild.
1133 - added tests for this by groditi
1134 - updated docs to explain this
1137 - load custom metaclasses automatically (thanks groditi)
1138 - added tests for this behavior
1140 0.37 Sat. March 10, 2007
1141 ~~ Many, many documentation updates ~~
1144 - added &load_class and &is_class_loaded
1145 - added tests and docs for these
1147 * Class::MOP::Attribute
1148 - default now checks the instance with defined to
1149 avoid setting off bool-overloads (found by Carl Franks)
1153 - bad name in a test, causing meaningless failuress.
1158 ~~ GLOBAL CHANGES ~~
1159 - All attribute names are now consistent and follow Perl 6
1160 style (prefixed with the sigil, and ! as the twigil for
1161 private attrs). This should not affect any code, unless
1162 you broke encapsulation, in which case, it is your problem
1165 !! Class::MOP::Class::Immutable has been removed
1167 * Class::MOP::Method::Constructor
1168 - this has been moved out of Class::MOP::Class::Immutable
1169 and is a proper subclass of Class::MOP::Method now.
1172 - this module now uses Class::MOP::Immutable for the
1173 immutable transformation instead of
1174 Class::MOP::Class::Immutable.
1176 + Class::MOP::Immutable
1177 - this module now controls the transformation from a mutable
1178 to an immutable version of the class. Docs for this will
1179 be coming eventually.
1182 0.36 Sun. Nov. 5, 2006
1184 - added a few 'no warnings' lines to keep annoying
1185 (and meaningless) warnings from chirping during
1189 - some more bootstrapping is now done on the new
1192 * Class::MOP::Class::Immutable
1194 - constructor generation is now handled by
1195 the Class::MOP::Method::Constructor class
1197 * Class::MOP::Method::Constructor
1198 - created this to handle constructor generation
1199 in Class::MOP::Class::Immutable
1201 * Class::MOP::Attribute
1203 - attributes now delegate to the
1204 Class::MOP::Method::Accessor to generate
1207 * Class::MOP::Method::Accessor
1208 - all accessor generation functions from
1209 Class::MOP::Attribute have been moved here
1211 0.35 Sat. Sept. 30, 2006
1213 * scripts/class_browser.pl
1214 - initial prototype of a class browser, more
1215 on this to come. Comments and patches are
1219 - All Class::MOP::* accessors are no longer
1220 re-generated in the bootstrap, instead
1221 they are aliased from the originals
1222 - fixed tests to reflect
1223 - added Class::MOP::Method (and its subclasses)
1225 - adjusted tests for this
1226 - added the Class::MOP::Instance attributes
1229 * Class::MOP::Method
1231 - methods are no longer blessed CODE refs
1232 but are actual objects which can be CODE-ified
1233 - adjusted tests to compensate
1234 - adjusted docs for this
1237 - changed how methods are dealt with to
1238 encapsulate most of the work into the
1239 &get_method_map method
1240 - made several adjustments for the change
1241 in Class::MOP::Method
1242 - &add_attribute now checks if you are adding
1243 a duplicate name, and properly removes the
1244 old one before installing the new one
1245 - added tests for this
1246 - adjusted docs for this
1248 * Class::MOP::Class::Immutable
1249 - added caching of &get_method_map
1250 - fixed issue with &get_package_symbol
1251 - cleaned up the methods that die (patch by David Wheeler)
1253 * Class::MOP::Package
1254 - added filtering capabilities to
1255 &list_all_package_symbols
1257 0.34 Sat. Aug. 26, 2006
1259 - added the %:methods attribute, which like
1260 the $:version and such just actually goes
1261 to the symbol table to get it's stuff.
1262 However, it makes the MOP more complete.
1264 - The &create method now requires that all
1265 but the package name now is passed in as
1266 named parameters. See docs for more info.
1267 - updated docs and tests for this
1269 * Class::MOP::Object
1270 - added &dump method to easily Data::Dumper
1274 - cleaned up the initialization of attributes
1275 which do not store things in the instance
1276 - added the %:methods attribute definition to
1279 ~ lots of misc. test cleanup
1281 0.33 Sat. Aug. 19, 2006
1283 - moved the metaclass cache out of here
1284 and it is now in Class::MOP itself.
1287 - moved all the metaclass cache stuff here
1288 - fixed all tests for this
1290 * Class::MOP::Attribute
1291 - reference values (other than CODE refs)
1292 are no longer allowed for defaults
1293 - added tests for this
1295 * Class::MOP::Package
1296 - fixed an issue with perl 5.8.1 and how it deals
1297 with symbol tables. The namespace hash is now
1298 always reloaded from the symbol table.
1300 ~ lots of misc. documentation cleanup
1302 0.32 Sat. Aug. 12, 2006
1303 + added Class::MOP::Object so that the
1304 metamodel is more complete (and closer
1305 to what Perl 6 will probably be).
1307 * Class::MOP::Package
1308 - refactored entire class, this is now
1309 the primary gateway between the metaclass
1310 and the Perl 5 symbol table
1311 - added many tests for this
1312 - this class is now a subclass of
1314 - added some tests to reflect this
1317 - refactored all symbol table access to
1318 use Class::MOP::Package methods instead
1320 * Class::MOP::Module
1321 - adding the $:version attribute in the bootstrap
1322 so that Module has a version as an attribute
1323 - see comment in Class::MOP for details
1324 - added the $:authority attribute to this module
1325 as well as an &identifier method, to bring us
1326 ever closer to Perl 6 goodness
1327 - I have added $AUTHORITY to all the modules
1328 - added tests for this
1330 * Class::MOP::Instance
1331 - added &deinitialize_slot for removing slots
1333 - added tests for this
1335 * Class::MOP::Attribute
1336 - added support for &deinitialize_slot for removing
1337 slots from an instance
1338 - added tests for this
1340 0.31 Sat. July 15, 2006
1343 - added &find_method_by_name to locate a method
1344 anywhere within the class hierarchy
1346 * Class::MOP::Attribute
1347 - added &set_value and &get_value for getting
1348 the value of the attribute for a particular
1351 0.30 Wed. July 5, 2006
1352 ---------------------------------------
1353 This is the first version of Class::MOP
1354 to introduce the immutable features which
1355 will be used for optimizating the MOP.
1356 This support should still be considered
1357 experimental, but moving towards stability.
1358 ---------------------------------------
1360 * Created Class::MOP::Class::Immutable
1362 * Created the Class::MOP::Package and
1363 Class::MOP::Module classes to more
1364 closely conform to Perl 6's meta-model
1367 - now inherits from Class::MOP::Module
1368 - several methods moved to ::Module and
1369 ::Package and now inherited
1370 - added tests for this
1372 * Class::MOP::Instance
1373 - added an is_inlinable method to allow other
1374 classes to check before they attempt to optimize.
1375 - added an inline_create_instance to inline
1376 instance creation (of course)
1379 - the Class::MOP::Class::*_package_variable
1380 methods are all now methods of Class::MOP::Package
1381 and called *_package_symbol instead. This is
1382 because they are now more general purpose symbol
1383 table manipulation methods.
1385 0.29_02 Thurs. June 22, 2006
1386 ++ DEVELOPER RELEASE ++
1388 - small change in &create so that it behaves
1389 properly when inherited
1390 - small fix to &clone_instance
1392 0.29_01 Fri. May 12, 2006
1393 ++ DEVELOPER RELEASE ++
1394 - This release works in combination with
1395 Moose 0.09_01, it is a developer release
1396 because it introduces a new instance
1397 sub-protocol and has not yet been
1401 - anon-classes are now properly garbage collected
1402 - added tests for this
1403 - improved method modifier wrapping
1405 * Class::MOP::Instance
1406 - added new instance protocol
1407 - added tests for this
1408 - changed all relevant modules and examples
1410 - Class::MOP::Attribute
1414 - you no longer need to specify the metaclass
1415 itself, if it is not there, Class::MOP::Class
1417 - updated tests for this
1420 - added ArrayBasedStorage example to show
1421 instance storage using ARRAY refs instead of
1423 - added tests for this
1424 - InsideOutClass is totally revised using the
1425 new instance protocol
1426 - added more tests for this
1428 0.26 Mon. April 24, 2006
1430 - added find_attribute_by_name method
1431 - added tests and docs for this
1432 - some small optimizations
1434 * Class::MOP::Attribute
1435 - some small optimizations
1437 0.25 Thurs. April 20, 2006
1439 - added create_anon_class for creating anonymous classes
1440 - added tests for this
1441 - added get_all_metaclasses, get_all_metaclass_names
1442 and get_all_metaclass_instances method to allow
1443 access to all the cached metaclass objects.
1444 - attribute slot initialization is now the responsibility
1445 of the attribute itself, and construct_instance now
1446 delegates appropriately
1448 * Class::MOP::Attribute
1449 - attribute slot initialization is now the responsibility
1450 of the attribute itself, so we added a method for it
1451 called initialize_instance_slot
1454 - adjusted all the examples to use the new attribute
1455 initialize_instance_slot method
1457 0.24 Tues. April 11, 2006
1459 - cleaned up how the before/after/around method
1460 modifiers get named with Sub::Name
1462 0.23 Thurs. March 30, 2006
1464 - fixed the way attribute defaults are handled
1465 during instance construction (bug found by chansen)
1467 * Class::MOP::Attribute
1468 - read-only accessors ('reader') will now die if
1469 passed more than one argument (attempting to write
1471 - added tests for this
1472 - adjusted all /example files to comply
1474 0.22 Mon. March 20, 2006
1476 - localized $@ in the *_package_variable functions
1477 because otherwise, it does ugly things in Moose.
1478 - added test case for this
1480 0.21 Wed. March 15, 2006
1482 - fixed issue where metaclasses are reaped from
1483 our cache in global destruction, and so are not
1484 available in DESTORY calls
1486 0.20 Thurs. March 2, 2006
1487 - removed the dependency for Clone since
1488 we no longer to deep-cloning by default.
1490 * Class::MOP::Method
1491 - added &package_name, &name and
1492 &fully_qualified_name methods, some of
1493 which were formerly private subs in
1496 * Class::MOP::Method::Wrapped
1497 - allows for a method to be wrapped with
1498 before, after and around modifiers
1499 - added tests and docs for this feature
1502 - improved &get_package_symbol
1503 - &version and &superclasses now use it
1504 - methods are now blessed into Class::MOP::Method
1506 - added methods to install CLOS-style method modifiers
1507 - &add_before_method_modifier
1508 - &add_after_method_modifier
1509 - &add_around_method_modifier
1510 - added tests and docs for these
1511 - added &find_next_method_by_name which finds the
1512 equivalent of SUPER::method_name
1514 0.12 Thurs. Feb 23, 2006
1515 - reduced the dependency on B, no need to always
1519 - added docs to the C3 method dispatch order test
1520 - fixed missing Algorithm::C3 dependency by making
1521 the test skip if it is not installed
1523 0.11 Mon Feb. 20, 2006
1525 - added example of changing method dispatch order to C3
1528 - changed how clone_instance behaves, it now only does a
1529 shallow clone (see docs for more details)
1530 - added docs and tests
1532 0.10 Tues Feb. 14, 2006
1533 ** This release was mostly about writing more tests and
1534 cleaning out old and dusty code, the MOP should now
1535 be considered "ready to use".
1537 - adding more tests to get coverage up a little higher,
1538 mostly testing errors and edge cases.
1539 - test coverage is now at 99%
1542 - no longer optionally exports to UNIVERSAL::meta or
1543 creates a custom metaclass generator, use the
1544 metaclass pragma instead.
1547 - fixed a number of minor issues which came up in the
1548 error/edge-case tests
1550 * Class::MOP::Attribute
1551 - fixed a number of minor issues which came up in the
1552 error/edge-case tests
1555 - fixing the AttributesWithHistory example, it was broken.
1557 0.06 Thurs Feb. 9, 2006
1559 - adding new metaclass pragma to make setting up the
1560 metaclass a little more straightforward
1563 - clean up bootstrapping to include more complete
1564 attribute definitions for Class::MOP::Class and
1565 Class::MOP::Attribute (accessors, readers, writers,
1566 etc.) ... it is redundant, but is useful meta-info
1570 - fixing minor meta-circularity issue with &meta, it
1571 is now more useful for subclasses
1572 - added &get_attribute_map as an accessor for the
1573 hash of attribute meta objects
1574 - &compute_all_applicable_attributes now just returns
1575 the attribute meta-object, rather than the HASH ref
1576 since all the same info can be gotten from the
1577 attribute meta-object itself
1578 - updated docs & tests to reflect
1579 - added &clone_instance method which does a deep clone
1580 of the instance structure created by &construct_instance
1581 - added docs & tests for this
1582 - added Clone as a dependency
1583 - added &new_object and &clone_object convience methods to
1584 return blessed new or cloned instances
1585 - they handle Class::MOP::Class singletons correctly too
1586 - added docs & tests for this
1587 - cleaned up the &constuct_class_instance so that it behaves
1588 more like &construct_instance (and managed the singletons too)
1589 - added the &check_metaclass_compatibility method to make sure
1590 that metaclasses are upward and downward compatible.
1591 - added tests and docs for this
1594 - adjusting code to use the &Class::MOP::Class::meta
1596 - adjusting code to use the metaclass pragma
1598 0.05 Sat Feb. 4, 2006
1600 - added the &attribute_metaclass and &method_metaclass
1601 attributes which contain a metaclass name to use for
1602 attributes/methods respectively
1605 - bootstrap additional attributes for Class::MOP::Class
1608 - adjusted the example code and tests to use the new
1609 &attribute_metaclass feature of Class::MOP::Class
1610 - added new example:
1613 0.04 Fri Feb. 3, 2006
1615 - some documentation suggestions from #perl6
1617 * Class::MOP::Attribute
1618 - improved error messages
1621 - added new examples:
1622 - AttributesWithHistory
1623 - ClassEncapsultedAttributes
1625 0.03 Fri Feb. 3, 2006
1626 - converted to Module::Build instead of EU::MM
1628 * Class::MOP::Attribute
1629 - refactored method generation code
1630 - attributes are now associated with class directly
1633 - refactored the InsideOut example to take advantage
1634 of the Class::MOP::Attribute refactoring
1635 - changed example files to .pod files and hide thier
1636 package names from PAUSE (I don't want to own these
1637 namespaces really, they are just examples)
1639 0.02 Thurs Feb. 2, 2006
1640 - moving examples from t/lib/* to examples/*
1641 - adding POD documentation to the examples
1643 0.01 Thurs Feb. 2, 2006