1 Revision history for Perl extension Class-MOP.
6 - Reblessing into a package that supports overloading wasn't
7 properly adding overload magic to the object due to a bug
8 in (at least) 5.8.8. We now use $_[1] directly which seems
9 to set the magic properly. (Sartak)
12 - Stop is_class_loaded from thinking a class is loaded if it
13 only has an empty GV (Florian Ragwitz).
14 - Add a test for this (Yappo).
15 - Refactor get_all_package_symbols to allow short-circuiting
17 - Use this in is_class_loaded (Florian Ragwitz).
18 - Stop segfaulting when trying to get the name from a sub that's
19 still being compiled (Florian Ragwitz).
20 - Add tests for this (Florian Ragwitz).
21 - Prefix all public symbols with "mop_" (Florian Ragwitz).
24 - Remove optional test plans for tests depending on Sub::Name as
25 we have a hard dependency on Sub::Name anyway (Florian Ragwitz).
27 0.78 Mon, February 23, 2009
28 * No changes from 0.77_01
30 0.77_01 Sun, February 22, 2009
32 - This package now requires its XS components. Not using
33 Sub::Name lead to different behavior and bugginess in the pure
34 Perl version of the code. A Moose test would fail when run
35 against the pure Perl version of this code.
37 * Class::MOP::Instance
38 - The inline_* methods now quote attribute names themselves, and
39 don't expect to receive a quoted value.
42 0.77 Sat, February 14, 2009
44 - Avoid assertion errors on debugging perls in is_class_loaded
48 - Fixed various corner cases where is_class_loaded incorrectly
49 returned true for a class that wasn't really loaded. (Dave
53 - Add get_all_method_names (Sartak)
54 - Add a wrapped_method_metaclass attribute (Florian Ragwitz)
57 - Disable deprecated get_all_package_symbols in list
58 context. (Florian Ragwitz)
61 - Make sure we generate a BSD-compatible Makefile (Florian
65 - The misspelled "check_metaclass_compatability" method we've
66 kept around for backwards compat_i_bility will be removed in a
67 near future release. You've been warned.
69 0.76 Thu, January 22, 2009
70 * Class::MOP::Method::Generated
71 - Added new private methods to support code generation, which
72 are being used by Moose and can be used by MooseX
74 - Generated methods are now generated with a #line directive
75 reflecting the source of the generated method. (nothingmuch)
78 - Clarified documentation of methods that return
79 Class::MOP::Method objects. (doy)
82 - Clarified documentation of the metaclass cache methods. (Sartak)
85 - Add test showing how the xs Class::MOP::is_class_loaded can
86 be made to operate differently to the pure perl version (t0m)
88 0.75 Wed, December 31, 2008
90 - A class that was made immutable and then mutable could end up
91 sharing an immutable transformer object
92 (Class::MOP::Immutable) with other classes, leading to all
93 sorts of odd bugs. Reported by t0m. (Dave Rolsky)
95 0.74 Tue, December 25, 2008
97 - Add an xs implementation of Class::MOP::is_class_loaded (closes
98 RT#41862). Based on a patch by Goro Fuji. (Florian Ragwitz)
99 - Changed internals to make prehashing of hash keys easier and less
100 error-prone. (Florian Ragwitz)
102 - Fix documentation to show that around modifiers happen on both
103 sides of the modified method. (Dave Rolsky)
105 0.73 Tue, December 16, 2008
107 - Don't use Perl_mro_meta_init. It's not part of the public perl
108 api. Fixes failures to build on Win32 (RT #41750). (Florian
110 * t/082_get_code_info.t
111 - Add $^P &= ~0x200; (per Ovid's suggestion) in order to not
112 munger anonymous subs when under -d and so making the tests
113 succeed in that case.
115 0.72 Mon, December 8, 2008
116 * Class::MOP::Package
117 - Pass options to _new, so subclass' attributes can be
120 - In the docs, indicate that package_name and name are required
121 when calling ->wrap (Stefan O'Rear)
123 0.71_02 Fri, December 5, 2008
124 * Class::MOP::Immutable
125 - Added a new attribute, inlined_constructor, which is true if
126 the constructor was inlined.
127 * Class::MOP::Package
128 - Make get_all_package_symbols return a hash ref in scalar
129 context and deprecate calling it in list context with a
130 warning. (Florian Ragwitz)
132 - Various improvements and refactoring, making things more robust and
133 easier to maintain. (Florian Ragwitz)
135 0.71_01 Wed, December 3, 2008
137 - Add an "execute" method to invoke the body so
138 we can avoid using the coderef overload (Sartak)
139 * Class::MOP::Immutable
140 - When we memoize methods, get their results lazily
141 to remove some compile-time cost (Sartak)
142 - Small speedup from eliminating several method
145 - Some small internal tweaks to try to reduce the number of
146 times we call get_method_map when bootstrapping the MOP. This
147 might make loading Class::MOP (and Moose) a little
148 faster. (Dave Rolsky)
149 - Implemented an optional XS version of get_method_map. Mostly
150 taken from a patch by Goro Fuji (rt.cpan.org #41080), with
151 help form Florian Ragwitz. (Dave Rolsky)
152 - Make the behaviour of of get_all_package_symbols (and
153 therefore get_method_map) consistent for stub methods. Report
154 and test by Goro Fuji (rt.cpan.org #41255). (Florian Ragwitz)
156 0.71 Wed November 26, 2008
159 - Actual package creation has moved upward from
160 Class to Module so that Moose roles can share
163 0.70_01 Mon, November 19, 2008
165 - Fixes for failures with blead (Florian Ragwitz)
166 - Silenced compiler warnings (Florian Ragwitz)
168 0.70 Fri, November 14, 2008
170 - Fixed an odd corner case where the XS version of
171 get_all_package_symbols could cause a segfault. This only
172 happened with inlined constants in Perl 5.10.0 (Florian
175 0.69 Fri, November 7, 2008
176 * Class::MOP::Method::Wrapped
177 - Added introspection methods for method modifiers (Dave Rolsky)
180 0.68 Fri October 24, 2008
182 - Make load_class require by file name instead of module name.
183 This stops confusing error messages when loading '__PACKAGE__'.
185 - Add load_one_class_of function to enable you to load one of a
186 list of classes, rather than having to call load_class multiple
187 times in an eval. (t0m)
189 0.67 Tue October 14, 2008
191 - Call a method on the class after setting the superclass list
192 so that we can get Perl to detect cycles before MRO::Compat
193 spirals into an infinite loop (sartak)
194 - Reported by Schwern, [rt.cpan.org #39001]
195 - In create(), pass unused options on to initialize()
196 - added test for this
198 0.66 Sat September 20, 2008
199 !! This release has an incompatible change regarding !!
200 introspection of a class's method with Class::MOP::Class !!
203 - We (us maintainers) now run all tests with XS and then without
204 XS, which should help us catch skew between the XS/pure Perl
208 ! The alias_method method has been deprecated. It now simply
209 calls add_method instead. There is no distinction between
210 aliased methods and "real" methods.
212 This means that methods added via alias_method now show up as
213 part of the class's method list/map. This is a backwards
214 incompatible change, but seems unlikely to break any
215 code. Famous last words. (Dave Rolsky)
218 - Fixed the spelling of "compatibility", but we still have a
219 "check_metaclass_compatability" method for backwards
222 0.65 Mon September 1, 2008
223 For those not following the series of dev releases, the changes
224 from 0.64 from 0.65 can mostly be summed up as a lot performance
225 improvements by nothingmuch, including new optional XS versions of
226 some methods. Also, Class::MOP now works _without_ any XS modules,
227 for sad systems without a compiler.
230 - Added name and package_name XS accessors, and make sure all
231 the XS and Perl versions work the same way. (Dave Rolsky)
234 - The XS versions of various methods just returned undef when
235 called class methods, rather than dying like the pure Perl
236 versions. (Dave Rolsky)
238 0.64_07 Fri August 29, 2008
240 - Silenced warnings that managed to break Moose tests when XS
241 was loaded. (Dave Rolsky)
242 - Some XS versions of methods were ignored because of typos in
243 MOP.xs. (Dave Rolsky)
245 0.64_06 Mon August 25, 2008
246 * Class::MOP (MOP.xs)
247 - Another MS VC++ fix, cannot declare a variable in the middle
248 of a scope (Taro Nishino).
250 0.64_05 Sun August 24, 2008
252 - None of the dev releases actually loaded the XS properly, but
253 we silently fell back to the pure Perl version of the
256 * Class::MOP (MOP.xs)
257 - Replaced some code that used functions not available on Visual
258 C++ with some Perl XS API bits (Dave Rolsky).
260 0.64_04 Sat August 23, 2008
262 - Workaround a bug in 5.8.1's goto sub (nothingmuch)
264 * pod.t and pod_coveraget.t
265 - These are no longer shipped with the tarball because of bogus
266 failures from CPAN testers. (Dave Rolsky)
268 0.64_03 Thu August 21, 2008
269 * Class::MOP::Package
270 - Some (legit) code was misparsed by earlier 5.8.x
271 releases. (nothingmuch)
274 - Fix a constant in void context warning (nothingmuch)
276 0.64_02 Thu August 21, 2008
277 * Makefile.PL and Class::MOP
278 - Explicitly require Perl 5.8.0+ (Dave Rolsky)
281 - Add missing prereqs that got lost in the switch away from
284 * Class::MOP::Instance
285 - New method - get_all_attributes (nothingmuch)
287 0.64_01 Wed August 20, 2008
289 - We now check to see if you have a compiler. If you don't, the
290 module installs without some XS bits, but will work the same
291 as with XS. This should make it easier to install on platforms
292 without a compiler (like Windows). (Dave Rolsky)
295 - Perl 6 style attribute naming replaced with sane style ('methods', not
296 '%!methods'). These changes should not impact any existing API uses.
300 - Quite a number of optimizations based on profiling, including
301 allowing constructors to take hash references instead of
302 hashes, duplicating some frequently used code in XS, and
303 making constructors immutable. These changes should not impact
304 any existing API uses. (nothingmuch)
307 - Constructors now respect the meta attributes of their subclasses,
308 facilitating MOP extensibility. More related changes will happen in the
309 next several releases. (nothingmuch)
312 - New method - get_all_methods, replaces the deprecated
313 compute_all_applicable_methods. get_all_attributes provided for
314 consistency (nothingmuch)
315 - New method - wrap_method was refactored out of get_method_map
317 - New API for meta instance invalidation - invalidate_meta_instance,
318 invalidate_meta_instances, add_dependent_meta_instance,
319 remove_dependent_meta_instance, called automatically when attribute
320 definitions change and allows notification of dependent subclasses.
323 0.64 Sun August 3, 2008
324 * Class::MOP::Immutable
325 - fixing subtle edge case in immutable when you
327 - clean up option processing (nothingmuch)
329 * Class::MOP::Instance
330 - inlined initialize slot didn't match
331 non-inlined (nothingmuch)
333 0.63 Mon July 7, 2008
335 - load_class will initialize a metaclass even if
336 the class is already loaded (sartak)
337 - load_class now returns the metaclass instance
338 instead of just 1 (sartak)
341 - better error messages (sartak and Dave Rolsky)
343 0.62 Wed June 18, 2008
344 - in is_class_loaded, recognize scalar references (as opposed to globs) in
345 the symbol table as methods (these are optimized constant subs)
347 0.61 Fri. June 13, 2008
348 - Okay, lets give this another try and see if PAUSE
349 recognizes it correct this time.
351 0.60 Thurs. Jun 12, 2008
352 - Fixed a version number issue by bumping all modules
355 0.59 Thurs. Jun 12, 2008
356 !! Several fixes resulting in yet another 25-30% speedup !!
359 - now stores the instance of the instance
360 metaclass to avoid needless recomputation
361 and deletes it when the cache is blown
362 - introduce methods to query Class::MOP::Class for
363 the options used to make it immutable as well as
364 the proper immutable transformer. (groditi)
366 * Class::MOP::Package
367 - {add, has, get, remove}_package_symbol all
368 now accept a HASH ref argument as well as the
369 string. All internal usages now use the HASH
373 - MOP.xs does sanity checks on the coderef
375 - is_class_loaded check now uses code that
376 was improved in Moose's ClassName type
378 - nonsensical (undef, empty, reference) class
379 names now throw a more direct error in
381 - tests for this and other aspects of
387 Class::MOP::Method::Wrapped
388 Class::MOP::Attribute
389 - switched usage of reftype to ref because
392 0.58 Thurs. May 29, 2008
393 (late night release engineering)--
395 - fixing the version is META.yml, no functional
396 changes in this release
398 0.57 Wed. May 28, 2008
399 !! Several speedups resulting in 20-25% speedups !!
400 || (thanks to konobi, groditi, mst & CataMoose) !!
403 - made get_method_map use list_all_package_symbols
404 instead of manually grabbing each symbol
405 - streamlining &initialize somewhat, since it gets
408 * Class::MOP::Package
409 - made {get, has}_package_symbol not call
411 - inlining a few calls to &name with
412 direct HASH access key access
413 - added get_all_package_symbols to fetch
414 a HASH of items based on a type filter
415 similar to list_all_package_symbols
416 - added tests for this
419 Class::MOP::Method::Constructor
420 Class::MOP::Method::Generated
421 Class::MOP::Method::Accessor
422 - added more descriptive error message to help
423 keep people from wasting time tracking an error
424 that is easily fixed by upgrading.
426 * Class::MOP::Immutable
427 - Don't inline a destructor unless the user actually
429 - added tests for this
431 0.56 Saturday, May 24, 2008
433 - we now get the &check_package_cache_flag
434 function from MRO::Compat
435 - All XS based functionality now has a
436 Pure Perl alternative
437 - the CLASS_MOP_NO_XS environment variable
438 can now be used to force non-XS versions
441 * Class::MOP::Attribute
442 - add has_read_method and has_write_method
443 - get_{read,write}_method_ref now wraps the
444 anon-sub ref in the method metaclass when
446 - added tests for this
448 * Class::MOP::Immutable
449 - added the ability to "wrap" methods when
450 making the class immutable
453 - now handling the edge case of ->meta->identifier
454 dying by wrapping add_package_symbol to specifically
455 allow for it to work.
456 - added tests for this
458 * Class::MOP::Attribute
460 Class::MOP::Immutable
461 - any time a method meta object is constructed
462 we make sure to pass the correct package and
463 method name information
466 Class::MOP::Method::Wrapped
467 Class::MOP::Method::Generated
468 Class::MOP::Method::Accessor
469 Class::MOP::Method::Consructor
470 - the &wrap constructor method now requires that a
471 'package_name' and 'name' attribute are passed. This
472 is to help support the no-XS version, and will
473 throw an error if these are not supplied.
474 - all these classes are now bootstrapped properly
475 and now store the package_name and name attributes
478 ~ Build.PL has been removed since the
479 Module::Install support has been removed
481 0.55 Mon. April 28, 2008
482 - All classes now have proper C3 MRO support
483 - added MRO::Compat as a dependency to allow
484 for the C3 MRO support to Just Work in all
488 - rebless_instance now returns the instance
489 it has just blessed, this is mostly to
491 - set the attr correctly in rebless_instance
492 when it has no init_arg
493 - tweaked &linear_isa and &class_precedence_list
494 to support c3 classes.
496 0.54 Fri. March, 14, 2008
499 - making sure that load_class never gets
500 passed a value from @_ or $_ to squash
501 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
504 - make_{immutable,mutable} now return 1
506 - improved error handling in ->create method
507 - rebless_instance now takes extra params which
508 will be used to populate values
509 - added tests for this
512 - localizing the Data::Dumper configurations so
513 that it does not pollute others (RT #33509)
519 Class::MOP::Attribute
520 - these classes no longer define their own ->meta,
521 but instead just inherit from Class::MOP::Object
523 * Class::MOP::Instance
524 Class::MOP::Immutable
525 - these classes now inherit from Class::MOP::Object
528 - fixed the filename length on several
529 test files so we install on VMS better
531 - fixed incorrect use of catdir when it
532 should be catfile (RT #32385)
534 0.53 Thurs. Feb. 14, 1008
535 ~~ several doc. fixes and updates ~~
538 Class::MOP::Method::Constructor
539 Class::MOP::Attribute
540 - making init_arg accept an undefined value
541 to indicate that no constructor args can
542 be passed (thanks to nothingmuch)
543 - added tests for this
544 - added attribute initializer attribute (rjbs)
547 - making this use the new init_arg => undef
548 feature instead of the silly hack from
549 before (thanks to nothingmuch)
551 0.52 Tues. Jan. 22, 2008
553 - fixed bug in rebless_instance
556 * Class::MOP::Method::Constructor
557 - removed assumptions about the existence of
560 0.51 Mon. Jan. 14, 2008
561 ~~~ some misc. doc. fixes ~~~
562 ~~ updated copyright dates ~~
565 - now sets the IS_RUNNING_ON_5_10
566 constant so that we can take advantage
567 of some of the nice bits of 5.10
570 - uses the IS_RUNNING_ON_5_10 flag to
571 optimize the &linearized_isa method
572 and avoid the hack/check for circular
573 inheritence in &class_precedence_list
574 - added rebless_instance method (Sartak)
575 - added tests for this
577 * Class::MOP::Immutable
578 - the immutable class now keeps track of
579 the transformer which immutablized it
581 * Class::MOP::Instance
582 - added rebless_instance_structure method (Sartak)
583 - added tests for this
585 0.50 Fri. Dec. 21, 2007
587 - fixed bug in immutable to make sure that
588 transformation arguments are saved
590 - added tests for this
592 * Class::MOP::Immutable
593 - fixed a bug (see above)
595 * Class::MOP::Attribute
598 0.49 Fri. Dec. 14, 2007
599 !! Class::MOP now loads 2 x faster !!
600 !! with XS speedups (thanks konobi) !!
603 - removed the dependency on B
604 - added two XS functions (thanks konobi)
605 - get_code_info($code) which replaces all
606 the B fiddling we were doing with
607 faster/leaner XS level fiddling
608 - check_package_cache_flag($pkg_name) which
609 returns the PL_sub_generation variable to
610 be used to help manage method caching.
613 In 5.10 or greater this will actually
614 use the mro::get_pkg_gen instead to give
615 even more accurate caching information.
616 blblack++ for that stuff :)
619 - added the &subclasses method (thanks rlb)
620 - added the update_package_cache_flag and
621 reset_package_cache_flag which help keep
622 track of when we need to re-fetch the
624 - Several small improvements to take advantage
625 of the new method map caching features
627 0.48 Mon. Nov. 26, 2007
628 * Class::MOP::Attribute
629 - fixed get_read/write_method to handle the
630 HASH ref case, which makes the
631 get_read/write_method_ref handle it too.
632 - added more tests for this
634 0.47 Sat. Nov. 24, 2007
635 * Class::MOP::Attribute
636 - fixed misspelling in get_write_method_ref
637 - added more tests for this
639 0.46 Fri. Nov. 23, 2007
641 - added the linearized_isa method instead of constantly
642 pruning duplicate classes (this will be even more
643 useful in the 5.10-compat version coming soon)
645 * Class::MOP::Attribute
646 - added the get_read_method_ref and get_write_method_ref
647 methods which allow you to retrieve a CODE ref which
648 can always be used to read or write an attribute.
650 0.45 Thurs. Nov. 13, 2007
651 * Class::MOP::Attribute
652 - Fix error message on confess (groditi)
654 0.44 Thurs. Nov. 13, 2007
655 - Apparently I didn't make dist correctly (groditi)
657 0.43 Thurs. Nov. 13, 2007
659 - Add support for the 'builder' attribute (groditi)
662 - optimise metaclass-already-exists check in
663 construct_class_instance (groditi)
664 - duplicate check into initialize to save a
665 call through (groditi)
667 * Class::MOP::Attribute
668 - Add support for the 'builder' attribute (groditi)
669 - Make predicates check for the existence of a value, not whether
670 it is defined (groditi)
672 * Class::MOP::Instance
673 - Make predicates check for the existence of a value, not whether
674 it is defined (groditi)
676 * Class::MOP::Method::Accessor
677 - made this a subclass of Class::MOP::Method::Generated
678 - removed the relevant attributes
680 * Class::MOP::Method::Constructor
681 - fixed the cached values we had to be more sane
682 - made this a subclass of Class::MOP::Method::Generated
683 - fixed generated constructor so it properly handles
685 - added tests for this
686 - added the option to allow for both inlined and
687 non-inlined constructors.
688 - Update inlined methods for builder and predicate changes (groditi)
690 * Class::MOP::Method::Generated
691 - added this class as an abstract base for the
692 Class::MOP::Method::{Constructor,Accessor} classes
693 - added tests for this
696 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
697 - Tests for new predicate behavior (and corrections to old tests) (groditi)
700 - Update ArrayRef based class example to work with predicate changes
702 0.42 Mon. July 16, 2007
703 !!! Horray for mst, he fixed it !!!
705 * Class::MOP::Package
706 - alter symbol table handling to deal with 5.8.x and 5.9.x
709 - Get rid of the crappy workaround from 0.40/41
711 0.41 Sun. July 15, 2007
713 Arghh!!! My TODO test didn't work, so I handle
714 it manually now so that people can use this
715 with 5.9.5/bleadperl without issue.
717 0.40 Tues, July 3, 2007
719 ~ marked a test in 003_methods.t as TODO
720 for perl 5.9.5 (this test is irrelvant to
721 the module functioning on 5.9.5 for the most
724 0.39 Mon. June 18, 2007
725 * Class::MOP::Immutable
726 - added make_metaclass_mutable + docs (groditi)
727 - removed unused variable
728 - added create_immutable_transformer
729 necessary for sane overloading of immutable behavior
730 - tests for this (groditi)
733 - Immutability can now be undone,
734 added make_mutable + tests + docs (groditi)
735 - Massive changes to the way Immutable is done
736 for details see comments next to make_immutable
737 This fixes a bug where custom metaclasses broke
738 when made immutable. We are now keeping one immutable
739 metaclass instance per metaclass instead of just one
740 to prevent isa hierarchy corruption. Memory use will go
741 up, but I suspect it will be neglible.
742 - New tests added for this behavior. (groditi)
744 0.38 Thurs. May 31, 2007
745 ~~ More documentation updates ~~
747 * Class::MOP::Package
748 - we now deal with stub methods properly
749 - added tests for this
750 - fixed some tests failing on 5.9.5 (thanks blblack)
752 * Class::MOP::Attribute
753 - added get_read_method and get_write_method
754 thanks to groditi for this code, tests
756 - added tests and POD for this
759 - fixed RT issue #27329, clone object now
760 handles undef values correctly.
761 - added tests for this
762 - Corrected anon-class handling so that they
763 will not get reaped when instances still
764 exist which need to reference them. This is
765 the correct behavior, hopefully this is an
766 obscure enough feature that there are not too
767 many work arounds out in the wild.
768 - added tests for this by groditi
769 - updated docs to explain this
772 - load custom metaclasses automatically (thanks groditi)
773 - added tests for this behavior
775 0.37 Sat. March 10, 2007
776 ~~ Many, many documentation updates ~~
779 - added &load_class and &is_class_loaded
780 - added tests and docs for these
782 * Class::MOP::Attribute
783 - default now checks the instance with defined to
784 avoid setting off bool-overloads (found by Carl Franks)
788 - bad name in a test, causing meaningless failuress.
794 - All attribute names are now consistent and follow Perl 6
795 style (prefixed with the sigil, and ! as the twigil for
796 private attrs). This should not affect any code, unless
797 you broke encapsulation, in which case, it is your problem
800 !! Class::MOP::Class::Immutable has been removed
802 * Class::MOP::Method::Constructor
803 - this has been moved out of Class::MOP::Class::Immutable
804 and is a proper subclass of Class::MOP::Method now.
807 - this module now uses Class::MOP::Immutable for the
808 immutable transformation instead of
809 Class::MOP::Class::Immutable.
811 + Class::MOP::Immutable
812 - this module now controls the transformation from a mutable
813 to an immutable version of the class. Docs for this will
814 be coming eventually.
817 0.36 Sun. Nov. 5, 2006
819 - added a few 'no warnings' lines to keep annoying
820 (and meaningless) warnings from chirping during
824 - some more bootstrapping is now done on the new
827 * Class::MOP::Class::Immutable
829 - constructor generation is now handled by
830 the Class::MOP::Method::Constructor class
832 * Class::MOP::Method::Constructor
833 - created this to handle constructor generation
834 in Class::MOP::Class::Immutable
836 * Class::MOP::Attribute
838 - attributes now delegate to the
839 Class::MOP::Method::Accessor to generate
842 * Class::MOP::Method::Accessor
843 - all accessor generation functions from
844 Class::MOP::Attribute have been moved here
846 0.35 Sat. Sept. 30, 2006
848 * scripts/class_browser.pl
849 - initial prototype of a class browser, more
850 on this to come. Comments and patches are
854 - All Class::MOP::* accessors are no longer
855 re-generated in the bootstrap, instead
856 they are aliased from the originals
857 - fixed tests to reflect
858 - added Class::MOP::Method (and its subclasses)
860 - adjusted tests for this
861 - added the Class::MOP::Instance attributes
866 - methods are no longer blessed CODE refs
867 but are actual objects which can be CODE-ified
868 - adjusted tests to compensate
869 - adjusted docs for this
872 - changed how methods are dealt with to
873 encapsulate most of the work into the
874 &get_method_map method
875 - made several adjustments for the change
876 in Class::MOP::Method
877 - &add_attribute now checks if you are adding
878 a duplicate name, and properly removes the
879 old one before installing the new one
880 - added tests for this
881 - adjusted docs for this
883 * Class::MOP::Class::Immutable
884 - added caching of &get_method_map
885 - fixed issue with &get_package_symbol
886 - cleaned up the methods that die (patch by David Wheeler)
888 * Class::MOP::Package
889 - added filtering capabilities to
890 &list_all_package_symbols
892 0.34 Sat. Aug. 26, 2006
894 - added the %:methods attribute, which like
895 the $:version and such just actually goes
896 to the symbol table to get it's stuff.
897 However, it makes the MOP more complete.
899 - The &create method now requires that all
900 but the package name now is passed in as
901 named parameters. See docs for more info.
902 - updated docs and tests for this
905 - added &dump method to easily Data::Dumper
909 - cleaned up the initialization of attributes
910 which do not store things in the instance
911 - added the %:methods attribute definition to
914 ~ lots of misc. test cleanup
916 0.33 Sat. Aug. 19, 2006
918 - moved the metaclass cache out of here
919 and it is now in Class::MOP itself.
922 - moved all the metaclass cache stuff here
923 - fixed all tests for this
925 * Class::MOP::Attribute
926 - reference values (other than CODE refs)
927 are no longer allowed for defaults
928 - added tests for this
930 * Class::MOP::Package
931 - fixed an issue with perl 5.8.1 and how it deals
932 with symbol tables. The namespace hash is now
933 always reloaded from the symbol table.
935 ~ lots of misc. documentation cleanup
937 0.32 Sat. Aug. 12, 2006
938 + added Class::MOP::Object so that the
939 metamodel is more complete (and closer
940 to what Perl 6 will probably be).
942 * Class::MOP::Package
943 - refactored entire class, this is now
944 the primary gateway between the metaclass
945 and the Perl 5 symbol table
946 - added many tests for this
947 - this class is now a subclass of
949 - added some tests to reflect this
952 - refactored all symbol table access to
953 use Class::MOP::Package methods instead
956 - adding the $:version attribute in the bootstrap
957 so that Module has a version as an attribute
958 - see comment in Class::MOP for details
959 - added the $:authority attribute to this module
960 as well as an &identifier method, to bring us
961 ever closer to Perl 6 goodness
962 - I have added $AUTHORITY to all the modules
963 - added tests for this
965 * Class::MOP::Instance
966 - added &deinitialize_slot for removing slots
968 - added tests for this
970 * Class::MOP::Attribute
971 - added support for &deinitialize_slot for removing
972 slots from an instance
973 - added tests for this
975 0.31 Sat. July 15, 2006
978 - added &find_method_by_name to locate a method
979 anywhere within the class hierarchy
981 * Class::MOP::Attribute
982 - added &set_value and &get_value for getting
983 the value of the attribute for a particular
986 0.30 Wed. July 5, 2006
987 ---------------------------------------
988 This is the first version of Class::MOP
989 to introduce the immutable features which
990 will be used for optimizating the MOP.
991 This support should still be considered
992 experimental, but moving towards stability.
993 ---------------------------------------
995 * Created Class::MOP::Class::Immutable
997 * Created the Class::MOP::Package and
998 Class::MOP::Module classes to more
999 closely conform to Perl 6's meta-model
1002 - now inherits from Class::MOP::Module
1003 - several methods moved to ::Module and
1004 ::Package and now inherited
1005 - added tests for this
1007 * Class::MOP::Instance
1008 - added an is_inlinable method to allow other
1009 classes to check before they attempt to optimize.
1010 - added an inline_create_instance to inline
1011 instance creation (of course)
1014 - the Class::MOP::Class::*_package_variable
1015 methods are all now methods of Class::MOP::Package
1016 and called *_package_symbol instead. This is
1017 because they are now more general purpose symbol
1018 table manipulation methods.
1020 0.29_02 Thurs. June 22, 2006
1021 ++ DEVELOPER RELEASE ++
1023 - small change in &create so that it behaves
1024 properly when inherited
1025 - small fix to &clone_instance
1027 0.29_01 Fri. May 12, 2006
1028 ++ DEVELOPER RELEASE ++
1029 - This release works in combination with
1030 Moose 0.09_01, it is a developer release
1031 because it introduces a new instance
1032 sub-protocol and has not yet been
1036 - anon-classes are now properly garbage collected
1037 - added tests for this
1038 - improved method modifier wrapping
1040 * Class::MOP::Instance
1041 - added new instance protocol
1042 - added tests for this
1043 - changed all relevant modules and examples
1045 - Class::MOP::Attribute
1049 - you no longer need to specify the metaclass
1050 itself, if it is not there, Class::MOP::Class
1052 - updated tests for this
1055 - added ArrayBasedStorage example to show
1056 instance storage using ARRAY refs instead of
1058 - added tests for this
1059 - InsideOutClass is totally revised using the
1060 new instance protocol
1061 - added more tests for this
1063 0.26 Mon. April 24, 2006
1065 - added find_attribute_by_name method
1066 - added tests and docs for this
1067 - some small optimizations
1069 * Class::MOP::Attribute
1070 - some small optimizations
1072 0.25 Thurs. April 20, 2006
1074 - added create_anon_class for creating anonymous classes
1075 - added tests for this
1076 - added get_all_metaclasses, get_all_metaclass_names
1077 and get_all_metaclass_instances method to allow
1078 access to all the cached metaclass objects.
1079 - attribute slot initialization is now the responsibility
1080 of the attribute itself, and construct_instance now
1081 delegates appropriately
1083 * Class::MOP::Attribute
1084 - attribute slot initialization is now the responsibility
1085 of the attribute itself, so we added a method for it
1086 called initialize_instance_slot
1089 - adjusted all the examples to use the new attribute
1090 initialize_instance_slot method
1092 0.24 Tues. April 11, 2006
1094 - cleaned up how the before/after/around method
1095 modifiers get named with Sub::Name
1097 0.23 Thurs. March 30, 2006
1099 - fixed the way attribute defaults are handled
1100 during instance construction (bug found by chansen)
1102 * Class::MOP::Attribute
1103 - read-only accessors ('reader') will now die if
1104 passed more than one argument (attempting to write
1106 - added tests for this
1107 - adjusted all /example files to comply
1109 0.22 Mon. March 20, 2006
1111 - localized $@ in the *_package_variable functions
1112 because otherwise, it does ugly things in Moose.
1113 - added test case for this
1115 0.21 Wed. March 15, 2006
1117 - fixed issue where metaclasses are reaped from
1118 our cache in global destruction, and so are not
1119 available in DESTORY calls
1121 0.20 Thurs. March 2, 2006
1122 - removed the dependency for Clone since
1123 we no longer to deep-cloning by default.
1125 * Class::MOP::Method
1126 - added &package_name, &name and
1127 &fully_qualified_name methods, some of
1128 which were formerly private subs in
1131 * Class::MOP::Method::Wrapped
1132 - allows for a method to be wrapped with
1133 before, after and around modifiers
1134 - added tests and docs for this feature
1137 - improved &get_package_symbol
1138 - &version and &superclasses now use it
1139 - methods are now blessed into Class::MOP::Method
1141 - added methods to install CLOS-style method modifiers
1142 - &add_before_method_modifier
1143 - &add_after_method_modifier
1144 - &add_around_method_modifier
1145 - added tests and docs for these
1146 - added &find_next_method_by_name which finds the
1147 equivalent of SUPER::method_name
1149 0.12 Thurs. Feb 23, 2006
1150 - reduced the dependency on B, no need to always
1154 - added docs to the C3 method dispatch order test
1155 - fixed missing Algorithm::C3 dependency by making
1156 the test skip if it is not installed
1158 0.11 Mon Feb. 20, 2006
1160 - added example of changing method dispatch order to C3
1163 - changed how clone_instance behaves, it now only does a
1164 shallow clone (see docs for more details)
1165 - added docs and tests
1167 0.10 Tues Feb. 14, 2006
1168 ** This release was mostly about writing more tests and
1169 cleaning out old and dusty code, the MOP should now
1170 be considered "ready to use".
1172 - adding more tests to get coverage up a little higher,
1173 mostly testing errors and edge cases.
1174 - test coverage is now at 99%
1177 - no longer optionally exports to UNIVERSAL::meta or
1178 creates a custom metaclass generator, use the
1179 metaclass pragma instead.
1182 - fixed a number of minor issues which came up in the
1183 error/edge-case tests
1185 * Class::MOP::Attribute
1186 - fixed a number of minor issues which came up in the
1187 error/edge-case tests
1190 - fixing the AttributesWithHistory example, it was broken.
1192 0.06 Thurs Feb. 9, 2006
1194 - adding new metaclass pragma to make setting up the
1195 metaclass a little more straightforward
1198 - clean up bootstrapping to include more complete
1199 attribute definitions for Class::MOP::Class and
1200 Class::MOP::Attribute (accessors, readers, writers,
1201 etc.) ... it is redundant, but is useful meta-info
1205 - fixing minor meta-circularity issue with &meta, it
1206 is now more useful for subclasses
1207 - added &get_attribute_map as an accessor for the
1208 hash of attribute meta objects
1209 - &compute_all_applicable_attributes now just returns
1210 the attribute meta-object, rather than the HASH ref
1211 since all the same info can be gotten from the
1212 attribute meta-object itself
1213 - updated docs & tests to reflect
1214 - added &clone_instance method which does a deep clone
1215 of the instance structure created by &construct_instance
1216 - added docs & tests for this
1217 - added Clone as a dependency
1218 - added &new_object and &clone_object convience methods to
1219 return blessed new or cloned instances
1220 - they handle Class::MOP::Class singletons correctly too
1221 - added docs & tests for this
1222 - cleaned up the &constuct_class_instance so that it behaves
1223 more like &construct_instance (and managed the singletons too)
1224 - added the &check_metaclass_compatibility method to make sure
1225 that metaclasses are upward and downward compatible.
1226 - added tests and docs for this
1229 - adjusting code to use the &Class::MOP::Class::meta
1231 - adjusting code to use the metaclass pragma
1233 0.05 Sat Feb. 4, 2006
1235 - added the &attribute_metaclass and &method_metaclass
1236 attributes which contain a metaclass name to use for
1237 attributes/methods respectively
1240 - bootstrap additional attributes for Class::MOP::Class
1243 - adjusted the example code and tests to use the new
1244 &attribute_metaclass feature of Class::MOP::Class
1245 - added new example:
1248 0.04 Fri Feb. 3, 2006
1250 - some documentation suggestions from #perl6
1252 * Class::MOP::Attribute
1253 - improved error messages
1256 - added new examples:
1257 - AttributesWithHistory
1258 - ClassEncapsultedAttributes
1260 0.03 Fri Feb. 3, 2006
1261 - converted to Module::Build instead of EU::MM
1263 * Class::MOP::Attribute
1264 - refactored method generation code
1265 - attributes are now associated with class directly
1268 - refactored the InsideOut example to take advantage
1269 of the Class::MOP::Attribute refactoring
1270 - changed example files to .pod files and hide thier
1271 package names from PAUSE (I don't want to own these
1272 namespaces really, they are just examples)
1274 0.02 Thurs Feb. 2, 2006
1275 - moving examples from t/lib/* to examples/*
1276 - adding POD documentation to the examples
1278 0.01 Thurs Feb. 2, 2006