1 Revision history for Perl extension Class-MOP.
3 * t/082_get_code_info.t
4 - Add $^P &= ~0x200; (per Ovid's suggestion) in order to not munger
5 anonymous subs when under -d and so making the tests succeed
8 0.72 Mon, December 8, 2008
10 - Pass options to _new, so subclass' attributes can be
13 - In the docs, indicate that package_name and name are required
14 when calling ->wrap (Stefan O'Rear)
16 0.71_02 Fri, December 5, 2008
17 * Class::MOP::Immutable
18 - Added a new attribute, inlined_constructor, which is true if
19 the constructor was inlined.
21 - Make get_all_package_symbols return a hash ref in scalar
22 context and deprecate calling it in list context with a
23 warning. (Florian Ragwitz)
25 - Various improvements and refactoring, making things more robust and
26 easier to maintain. (Florian Ragwitz)
28 0.71_01 Wed, December 3, 2008
30 - Add an "execute" method to invoke the body so
31 we can avoid using the coderef overload (Sartak)
32 * Class::MOP::Immutable
33 - When we memoize methods, get their results lazily
34 to remove some compile-time cost (Sartak)
35 - Small speedup from eliminating several method
38 - Some small internal tweaks to try to reduce the number of
39 times we call get_method_map when bootstrapping the MOP. This
40 might make loading Class::MOP (and Moose) a little
42 - Implemented an optional XS version of get_method_map. Mostly
43 taken from a patch by Goro Fuji (rt.cpan.org #41080), with
44 help form Florian Ragwitz. (Dave Rolsky)
45 - Make the behaviour of of get_all_package_symbols (and
46 therefore get_method_map) consistent for stub methods. Report
47 and test by Goro Fuji (rt.cpan.org #41255). (Florian Ragwitz)
49 0.71 Wed November 26, 2008
52 - Actual package creation has moved upward from
53 Class to Module so that Moose roles can share
56 0.70_01 Mon, November 19, 2008
58 - Fixes for failures with blead (Florian Ragwitz)
59 - Silenced compiler warnings (Florian Ragwitz)
61 0.70 Fri, November 14, 2008
63 - Fixed an odd corner case where the XS version of
64 get_all_package_symbols could cause a segfault. This only
65 happened with inlined constants in Perl 5.10.0 (Florian
68 0.69 Fri, November 7, 2008
69 * Class::MOP::Method::Wrapped
70 - Added introspection methods for method modifiers (Dave Rolsky)
73 0.68 Fri October 24, 2008
75 - Make load_class require by file name instead of module name.
76 This stops confusing error messages when loading '__PACKAGE__'.
78 - Add load_one_class_of function to enable you to load one of a
79 list of classes, rather than having to call load_class multiple
80 times in an eval. (t0m)
82 0.67 Tue October 14, 2008
84 - Call a method on the class after setting the superclass list
85 so that we can get Perl to detect cycles before MRO::Compat
86 spirals into an infinite loop (sartak)
87 - Reported by Schwern, [rt.cpan.org #39001]
88 - In create(), pass unused options on to initialize()
91 0.66 Sat September 20, 2008
92 !! This release has an incompatible change regarding !!
93 introspection of a class's method with Class::MOP::Class !!
96 - We (us maintainers) now run all tests with XS and then without
97 XS, which should help us catch skew between the XS/pure Perl
101 ! The alias_method method has been deprecated. It now simply
102 calls add_method instead. There is no distinction between
103 aliased methods and "real" methods.
105 This means that methods added via alias_method now show up as
106 part of the class's method list/map. This is a backwards
107 incompatible change, but seems unlikely to break any
108 code. Famous last words. (Dave Rolsky)
111 - Fixed the spelling of "compatibility", but we still have a
112 "check_metaclass_compatability" method for backwards
115 0.65 Mon September 1, 2008
116 For those not following the series of dev releases, the changes
117 from 0.64 from 0.65 can mostly be summed up as a lot performance
118 improvements by nothingmuch, including new optional XS versions of
119 some methods. Also, Class::MOP now works _without_ any XS modules,
120 for sad systems without a compiler.
123 - Added name and package_name XS accessors, and make sure all
124 the XS and Perl versions work the same way. (Dave Rolsky)
127 - The XS versions of various methods just returned undef when
128 called class methods, rather than dying like the pure Perl
129 versions. (Dave Rolsky)
131 0.64_07 Fri August 29, 2008
133 - Silenced warnings that managed to break Moose tests when XS
134 was loaded. (Dave Rolsky)
135 - Some XS versions of methods were ignored because of typos in
136 MOP.xs. (Dave Rolsky)
138 0.64_06 Mon August 25, 2008
139 * Class::MOP (MOP.xs)
140 - Another MS VC++ fix, cannot declare a variable in the middle
141 of a scope (Taro Nishino).
143 0.64_05 Sun August 24, 2008
145 - None of the dev releases actually loaded the XS properly, but
146 we silently fell back to the pure Perl version of the
149 * Class::MOP (MOP.xs)
150 - Replaced some code that used functions not available on Visual
151 C++ with some Perl XS API bits (Dave Rolsky).
153 0.64_04 Sat August 23, 2008
155 - Workaround a bug in 5.8.1's goto sub (nothingmuch)
157 * pod.t and pod_coveraget.t
158 - These are no longer shipped with the tarball because of bogus
159 failures from CPAN testers. (Dave Rolsky)
161 0.64_03 Thu August 21, 2008
162 * Class::MOP::Package
163 - Some (legit) code was misparsed by earlier 5.8.x
164 releases. (nothingmuch)
167 - Fix a constant in void context warning (nothingmuch)
169 0.64_02 Thu August 21, 2008
170 * Makefile.PL and Class::MOP
171 - Explicitly require Perl 5.8.0+ (Dave Rolsky)
174 - Add missing prereqs that got lost in the switch away from
177 * Class::MOP::Instance
178 - New method - get_all_attributes (nothingmuch)
180 0.64_01 Wed August 20, 2008
182 - We now check to see if you have a compiler. If you don't, the
183 module installs without some XS bits, but will work the same
184 as with XS. This should make it easier to install on platforms
185 without a compiler (like Windows). (Dave Rolsky)
188 - Perl 6 style attribute naming replaced with sane style ('methods', not
189 '%!methods'). These changes should not impact any existing API uses.
193 - Quite a number of optimizations based on profiling, including
194 allowing constructors to take hash references instead of
195 hashes, duplicating some frequently used code in XS, and
196 making constructors immutable. These changes should not impact
197 any existing API uses. (nothingmuch)
200 - Constructors now respect the meta attributes of their subclasses,
201 facilitating MOP extensibility. More related changes will happen in the
202 next several releases. (nothingmuch)
205 - New method - get_all_methods, replaces the deprecated
206 compute_all_applicable_methods. get_all_attributes provided for
207 consistency (nothingmuch)
208 - New method - wrap_method was refactored out of get_method_map
210 - New API for meta instance invalidation - invalidate_meta_instance,
211 invalidate_meta_instances, add_dependent_meta_instance,
212 remove_dependent_meta_instance, called automatically when attribute
213 definitions change and allows notification of dependent subclasses.
216 0.64 Sun August 3, 2008
217 * Class::MOP::Immutable
218 - fixing subtle edge case in immutable when you
220 - clean up option processing (nothingmuch)
222 * Class::MOP::Instance
223 - inlined initialize slot didn't match
224 non-inlined (nothingmuch)
226 0.63 Mon July 7, 2008
228 - load_class will initialize a metaclass even if
229 the class is already loaded (sartak)
230 - load_class now returns the metaclass instance
231 instead of just 1 (sartak)
234 - better error messages (sartak and Dave Rolsky)
236 0.62 Wed June 18, 2008
237 - in is_class_loaded, recognize scalar references (as opposed to globs) in
238 the symbol table as methods (these are optimized constant subs)
240 0.61 Fri. June 13, 2008
241 - Okay, lets give this another try and see if PAUSE
242 recognizes it correct this time.
244 0.60 Thurs. Jun 12, 2008
245 - Fixed a version number issue by bumping all modules
248 0.59 Thurs. Jun 12, 2008
249 !! Several fixes resulting in yet another 25-30% speedup !!
252 - now stores the instance of the instance
253 metaclass to avoid needless recomputation
254 and deletes it when the cache is blown
255 - introduce methods to query Class::MOP::Class for
256 the options used to make it immutable as well as
257 the proper immutable transformer. (groditi)
259 * Class::MOP::Package
260 - {add, has, get, remove}_package_symbol all
261 now accept a HASH ref argument as well as the
262 string. All internal usages now use the HASH
266 - MOP.xs does sanity checks on the coderef
268 - is_class_loaded check now uses code that
269 was improved in Moose's ClassName type
271 - nonsensical (undef, empty, reference) class
272 names now throw a more direct error in
274 - tests for this and other aspects of
280 Class::MOP::Method::Wrapped
281 Class::MOP::Attribute
282 - switched usage of reftype to ref because
285 0.58 Thurs. May 29, 2008
286 (late night release engineering)--
288 - fixing the version is META.yml, no functional
289 changes in this release
291 0.57 Wed. May 28, 2008
292 !! Several speedups resulting in 20-25% speedups !!
293 || (thanks to konobi, groditi, mst & CataMoose) !!
296 - made get_method_map use list_all_package_symbols
297 instead of manually grabbing each symbol
298 - streamlining &initialize somewhat, since it gets
301 * Class::MOP::Package
302 - made {get, has}_package_symbol not call
304 - inlining a few calls to &name with
305 direct HASH access key access
306 - added get_all_package_symbols to fetch
307 a HASH of items based on a type filter
308 similar to list_all_package_symbols
309 - added tests for this
312 Class::MOP::Method::Constructor
313 Class::MOP::Method::Generated
314 Class::MOP::Method::Accessor
315 - added more descriptive error message to help
316 keep people from wasting time tracking an error
317 that is easily fixed by upgrading.
319 * Class::MOP::Immutable
320 - Don't inline a destructor unless the user actually
322 - added tests for this
324 0.56 Saturday, May 24, 2008
326 - we now get the &check_package_cache_flag
327 function from MRO::Compat
328 - All XS based functionality now has a
329 Pure Perl alternative
330 - the CLASS_MOP_NO_XS environment variable
331 can now be used to force non-XS versions
334 * Class::MOP::Attribute
335 - add has_read_method and has_write_method
336 - get_{read,write}_method_ref now wraps the
337 anon-sub ref in the method metaclass when
339 - added tests for this
341 * Class::MOP::Immutable
342 - added the ability to "wrap" methods when
343 making the class immutable
346 - now handling the edge case of ->meta->identifier
347 dying by wrapping add_package_symbol to specifically
348 allow for it to work.
349 - added tests for this
351 * Class::MOP::Attribute
353 Class::MOP::Immutable
354 - any time a method meta object is constructed
355 we make sure to pass the correct package and
356 method name information
359 Class::MOP::Method::Wrapped
360 Class::MOP::Method::Generated
361 Class::MOP::Method::Accessor
362 Class::MOP::Method::Consructor
363 - the &wrap constructor method now requires that a
364 'package_name' and 'name' attribute are passed. This
365 is to help support the no-XS version, and will
366 throw an error if these are not supplied.
367 - all these classes are now bootstrapped properly
368 and now store the package_name and name attributes
371 ~ Build.PL has been removed since the
372 Module::Install support has been removed
374 0.55 Mon. April 28, 2008
375 - All classes now have proper C3 MRO support
376 - added MRO::Compat as a dependency to allow
377 for the C3 MRO support to Just Work in all
381 - rebless_instance now returns the instance
382 it has just blessed, this is mostly to
384 - set the attr correctly in rebless_instance
385 when it has no init_arg
386 - tweaked &linear_isa and &class_precedence_list
387 to support c3 classes.
389 0.54 Fri. March, 14, 2008
392 - making sure that load_class never gets
393 passed a value from @_ or $_ to squash
394 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
397 - make_{immutable,mutable} now return 1
399 - improved error handling in ->create method
400 - rebless_instance now takes extra params which
401 will be used to populate values
402 - added tests for this
405 - localizing the Data::Dumper configurations so
406 that it does not pollute others (RT #33509)
412 Class::MOP::Attribute
413 - these classes no longer define their own ->meta,
414 but instead just inherit from Class::MOP::Object
416 * Class::MOP::Instance
417 Class::MOP::Immutable
418 - these classes now inherit from Class::MOP::Object
421 - fixed the filename length on several
422 test files so we install on VMS better
424 - fixed incorrect use of catdir when it
425 should be catfile (RT #32385)
427 0.53 Thurs. Feb. 14, 1008
428 ~~ several doc. fixes and updates ~~
431 Class::MOP::Method::Constructor
432 Class::MOP::Attribute
433 - making init_arg accept an undefined value
434 to indicate that no constructor args can
435 be passed (thanks to nothingmuch)
436 - added tests for this
437 - added attribute initializer attribute (rjbs)
440 - making this use the new init_arg => undef
441 feature instead of the silly hack from
442 before (thanks to nothingmuch)
444 0.52 Tues. Jan. 22, 2008
446 - fixed bug in rebless_instance
449 * Class::MOP::Method::Constructor
450 - removed assumptions about the existence of
453 0.51 Mon. Jan. 14, 2008
454 ~~~ some misc. doc. fixes ~~~
455 ~~ updated copyright dates ~~
458 - now sets the IS_RUNNING_ON_5_10
459 constant so that we can take advantage
460 of some of the nice bits of 5.10
463 - uses the IS_RUNNING_ON_5_10 flag to
464 optimize the &linearized_isa method
465 and avoid the hack/check for circular
466 inheritence in &class_precedence_list
467 - added rebless_instance method (Sartak)
468 - added tests for this
470 * Class::MOP::Immutable
471 - the immutable class now keeps track of
472 the transformer which immutablized it
474 * Class::MOP::Instance
475 - added rebless_instance_structure method (Sartak)
476 - added tests for this
478 0.50 Fri. Dec. 21, 2007
480 - fixed bug in immutable to make sure that
481 transformation arguments are saved
483 - added tests for this
485 * Class::MOP::Immutable
486 - fixed a bug (see above)
488 * Class::MOP::Attribute
491 0.49 Fri. Dec. 14, 2007
492 !! Class::MOP now loads 2 x faster !!
493 !! with XS speedups (thanks konobi) !!
496 - removed the dependency on B
497 - added two XS functions (thanks konobi)
498 - get_code_info($code) which replaces all
499 the B fiddling we were doing with
500 faster/leaner XS level fiddling
501 - check_package_cache_flag($pkg_name) which
502 returns the PL_sub_generation variable to
503 be used to help manage method caching.
506 In 5.10 or greater this will actually
507 use the mro::get_pkg_gen instead to give
508 even more accurate caching information.
509 blblack++ for that stuff :)
512 - added the &subclasses method (thanks rlb)
513 - added the update_package_cache_flag and
514 reset_package_cache_flag which help keep
515 track of when we need to re-fetch the
517 - Several small improvements to take advantage
518 of the new method map caching features
520 0.48 Mon. Nov. 26, 2007
521 * Class::MOP::Attribute
522 - fixed get_read/write_method to handle the
523 HASH ref case, which makes the
524 get_read/write_method_ref handle it too.
525 - added more tests for this
527 0.47 Sat. Nov. 24, 2007
528 * Class::MOP::Attribute
529 - fixed misspelling in get_write_method_ref
530 - added more tests for this
532 0.46 Fri. Nov. 23, 2007
534 - added the linearized_isa method instead of constantly
535 pruning duplicate classes (this will be even more
536 useful in the 5.10-compat version coming soon)
538 * Class::MOP::Attribute
539 - added the get_read_method_ref and get_write_method_ref
540 methods which allow you to retrieve a CODE ref which
541 can always be used to read or write an attribute.
543 0.45 Thurs. Nov. 13, 2007
544 * Class::MOP::Attribute
545 - Fix error message on confess (groditi)
547 0.44 Thurs. Nov. 13, 2007
548 - Apparently I didn't make dist correctly (groditi)
550 0.43 Thurs. Nov. 13, 2007
552 - Add support for the 'builder' attribute (groditi)
555 - optimise metaclass-already-exists check in
556 construct_class_instance (groditi)
557 - duplicate check into initialize to save a
558 call through (groditi)
560 * Class::MOP::Attribute
561 - Add support for the 'builder' attribute (groditi)
562 - Make predicates check for the existence of a value, not whether
563 it is defined (groditi)
565 * Class::MOP::Instance
566 - Make predicates check for the existence of a value, not whether
567 it is defined (groditi)
569 * Class::MOP::Method::Accessor
570 - made this a subclass of Class::MOP::Method::Generated
571 - removed the relevant attributes
573 * Class::MOP::Method::Constructor
574 - fixed the cached values we had to be more sane
575 - made this a subclass of Class::MOP::Method::Generated
576 - fixed generated constructor so it properly handles
578 - added tests for this
579 - added the option to allow for both inlined and
580 non-inlined constructors.
581 - Update inlined methods for builder and predicate changes (groditi)
583 * Class::MOP::Method::Generated
584 - added this class as an abstract base for the
585 Class::MOP::Method::{Constructor,Accessor} classes
586 - added tests for this
589 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
590 - Tests for new predicate behavior (and corrections to old tests) (groditi)
593 - Update ArrayRef based class example to work with predicate changes
595 0.42 Mon. July 16, 2007
596 !!! Horray for mst, he fixed it !!!
598 * Class::MOP::Package
599 - alter symbol table handling to deal with 5.8.x and 5.9.x
602 - Get rid of the crappy workaround from 0.40/41
604 0.41 Sun. July 15, 2007
606 Arghh!!! My TODO test didn't work, so I handle
607 it manually now so that people can use this
608 with 5.9.5/bleadperl without issue.
610 0.40 Tues, July 3, 2007
612 ~ marked a test in 003_methods.t as TODO
613 for perl 5.9.5 (this test is irrelvant to
614 the module functioning on 5.9.5 for the most
617 0.39 Mon. June 18, 2007
618 * Class::MOP::Immutable
619 - added make_metaclass_mutable + docs (groditi)
620 - removed unused variable
621 - added create_immutable_transformer
622 necessary for sane overloading of immutable behavior
623 - tests for this (groditi)
626 - Immutability can now be undone,
627 added make_mutable + tests + docs (groditi)
628 - Massive changes to the way Immutable is done
629 for details see comments next to make_immutable
630 This fixes a bug where custom metaclasses broke
631 when made immutable. We are now keeping one immutable
632 metaclass instance per metaclass instead of just one
633 to prevent isa hierarchy corruption. Memory use will go
634 up, but I suspect it will be neglible.
635 - New tests added for this behavior. (groditi)
637 0.38 Thurs. May 31, 2007
638 ~~ More documentation updates ~~
640 * Class::MOP::Package
641 - we now deal with stub methods properly
642 - added tests for this
643 - fixed some tests failing on 5.9.5 (thanks blblack)
645 * Class::MOP::Attribute
646 - added get_read_method and get_write_method
647 thanks to groditi for this code, tests
649 - added tests and POD for this
652 - fixed RT issue #27329, clone object now
653 handles undef values correctly.
654 - added tests for this
655 - Corrected anon-class handling so that they
656 will not get reaped when instances still
657 exist which need to reference them. This is
658 the correct behavior, hopefully this is an
659 obscure enough feature that there are not too
660 many work arounds out in the wild.
661 - added tests for this by groditi
662 - updated docs to explain this
665 - load custom metaclasses automatically (thanks groditi)
666 - added tests for this behavior
668 0.37 Sat. March 10, 2007
669 ~~ Many, many documentation updates ~~
672 - added &load_class and &is_class_loaded
673 - added tests and docs for these
675 * Class::MOP::Attribute
676 - default now checks the instance with defined to
677 avoid setting off bool-overloads (found by Carl Franks)
681 - bad name in a test, causing meaningless failuress.
687 - All attribute names are now consistent and follow Perl 6
688 style (prefixed with the sigil, and ! as the twigil for
689 private attrs). This should not affect any code, unless
690 you broke encapsulation, in which case, it is your problem
693 !! Class::MOP::Class::Immutable has been removed
695 * Class::MOP::Method::Constructor
696 - this has been moved out of Class::MOP::Class::Immutable
697 and is a proper subclass of Class::MOP::Method now.
700 - this module now uses Class::MOP::Immutable for the
701 immutable transformation instead of
702 Class::MOP::Class::Immutable.
704 + Class::MOP::Immutable
705 - this module now controls the transformation from a mutable
706 to an immutable version of the class. Docs for this will
707 be coming eventually.
710 0.36 Sun. Nov. 5, 2006
712 - added a few 'no warnings' lines to keep annoying
713 (and meaningless) warnings from chirping during
717 - some more bootstrapping is now done on the new
720 * Class::MOP::Class::Immutable
722 - constructor generation is now handled by
723 the Class::MOP::Method::Constructor class
725 * Class::MOP::Method::Constructor
726 - created this to handle constructor generation
727 in Class::MOP::Class::Immutable
729 * Class::MOP::Attribute
731 - attributes now delegate to the
732 Class::MOP::Method::Accessor to generate
735 * Class::MOP::Method::Accessor
736 - all accessor generation functions from
737 Class::MOP::Attribute have been moved here
739 0.35 Sat. Sept. 30, 2006
741 * scripts/class_browser.pl
742 - initial prototype of a class browser, more
743 on this to come. Comments and patches are
747 - All Class::MOP::* accessors are no longer
748 re-generated in the bootstrap, instead
749 they are aliased from the originals
750 - fixed tests to reflect
751 - added Class::MOP::Method (and its subclasses)
753 - adjusted tests for this
754 - added the Class::MOP::Instance attributes
759 - methods are no longer blessed CODE refs
760 but are actual objects which can be CODE-ified
761 - adjusted tests to compensate
762 - adjusted docs for this
765 - changed how methods are dealt with to
766 encapsulate most of the work into the
767 &get_method_map method
768 - made several adjustments for the change
769 in Class::MOP::Method
770 - &add_attribute now checks if you are adding
771 a duplicate name, and properly removes the
772 old one before installing the new one
773 - added tests for this
774 - adjusted docs for this
776 * Class::MOP::Class::Immutable
777 - added caching of &get_method_map
778 - fixed issue with &get_package_symbol
779 - cleaned up the methods that die (patch by David Wheeler)
781 * Class::MOP::Package
782 - added filtering capabilities to
783 &list_all_package_symbols
785 0.34 Sat. Aug. 26, 2006
787 - added the %:methods attribute, which like
788 the $:version and such just actually goes
789 to the symbol table to get it's stuff.
790 However, it makes the MOP more complete.
792 - The &create method now requires that all
793 but the package name now is passed in as
794 named parameters. See docs for more info.
795 - updated docs and tests for this
798 - added &dump method to easily Data::Dumper
802 - cleaned up the initialization of attributes
803 which do not store things in the instance
804 - added the %:methods attribute definition to
807 ~ lots of misc. test cleanup
809 0.33 Sat. Aug. 19, 2006
811 - moved the metaclass cache out of here
812 and it is now in Class::MOP itself.
815 - moved all the metaclass cache stuff here
816 - fixed all tests for this
818 * Class::MOP::Attribute
819 - reference values (other than CODE refs)
820 are no longer allowed for defaults
821 - added tests for this
823 * Class::MOP::Package
824 - fixed an issue with perl 5.8.1 and how it deals
825 with symbol tables. The namespace hash is now
826 always reloaded from the symbol table.
828 ~ lots of misc. documentation cleanup
830 0.32 Sat. Aug. 12, 2006
831 + added Class::MOP::Object so that the
832 metamodel is more complete (and closer
833 to what Perl 6 will probably be).
835 * Class::MOP::Package
836 - refactored entire class, this is now
837 the primary gateway between the metaclass
838 and the Perl 5 symbol table
839 - added many tests for this
840 - this class is now a subclass of
842 - added some tests to reflect this
845 - refactored all symbol table access to
846 use Class::MOP::Package methods instead
849 - adding the $:version attribute in the bootstrap
850 so that Module has a version as an attribute
851 - see comment in Class::MOP for details
852 - added the $:authority attribute to this module
853 as well as an &identifier method, to bring us
854 ever closer to Perl 6 goodness
855 - I have added $AUTHORITY to all the modules
856 - added tests for this
858 * Class::MOP::Instance
859 - added &deinitialize_slot for removing slots
861 - added tests for this
863 * Class::MOP::Attribute
864 - added support for &deinitialize_slot for removing
865 slots from an instance
866 - added tests for this
868 0.31 Sat. July 15, 2006
871 - added &find_method_by_name to locate a method
872 anywhere within the class hierarchy
874 * Class::MOP::Attribute
875 - added &set_value and &get_value for getting
876 the value of the attribute for a particular
879 0.30 Wed. July 5, 2006
880 ---------------------------------------
881 This is the first version of Class::MOP
882 to introduce the immutable features which
883 will be used for optimizating the MOP.
884 This support should still be considered
885 experimental, but moving towards stability.
886 ---------------------------------------
888 * Created Class::MOP::Class::Immutable
890 * Created the Class::MOP::Package and
891 Class::MOP::Module classes to more
892 closely conform to Perl 6's meta-model
895 - now inherits from Class::MOP::Module
896 - several methods moved to ::Module and
897 ::Package and now inherited
898 - added tests for this
900 * Class::MOP::Instance
901 - added an is_inlinable method to allow other
902 classes to check before they attempt to optimize.
903 - added an inline_create_instance to inline
904 instance creation (of course)
907 - the Class::MOP::Class::*_package_variable
908 methods are all now methods of Class::MOP::Package
909 and called *_package_symbol instead. This is
910 because they are now more general purpose symbol
911 table manipulation methods.
913 0.29_02 Thurs. June 22, 2006
914 ++ DEVELOPER RELEASE ++
916 - small change in &create so that it behaves
917 properly when inherited
918 - small fix to &clone_instance
920 0.29_01 Fri. May 12, 2006
921 ++ DEVELOPER RELEASE ++
922 - This release works in combination with
923 Moose 0.09_01, it is a developer release
924 because it introduces a new instance
925 sub-protocol and has not yet been
929 - anon-classes are now properly garbage collected
930 - added tests for this
931 - improved method modifier wrapping
933 * Class::MOP::Instance
934 - added new instance protocol
935 - added tests for this
936 - changed all relevant modules and examples
938 - Class::MOP::Attribute
942 - you no longer need to specify the metaclass
943 itself, if it is not there, Class::MOP::Class
945 - updated tests for this
948 - added ArrayBasedStorage example to show
949 instance storage using ARRAY refs instead of
951 - added tests for this
952 - InsideOutClass is totally revised using the
953 new instance protocol
954 - added more tests for this
956 0.26 Mon. April 24, 2006
958 - added find_attribute_by_name method
959 - added tests and docs for this
960 - some small optimizations
962 * Class::MOP::Attribute
963 - some small optimizations
965 0.25 Thurs. April 20, 2006
967 - added create_anon_class for creating anonymous classes
968 - added tests for this
969 - added get_all_metaclasses, get_all_metaclass_names
970 and get_all_metaclass_instances method to allow
971 access to all the cached metaclass objects.
972 - attribute slot initialization is now the responsibility
973 of the attribute itself, and construct_instance now
974 delegates appropriately
976 * Class::MOP::Attribute
977 - attribute slot initialization is now the responsibility
978 of the attribute itself, so we added a method for it
979 called initialize_instance_slot
982 - adjusted all the examples to use the new attribute
983 initialize_instance_slot method
985 0.24 Tues. April 11, 2006
987 - cleaned up how the before/after/around method
988 modifiers get named with Sub::Name
990 0.23 Thurs. March 30, 2006
992 - fixed the way attribute defaults are handled
993 during instance construction (bug found by chansen)
995 * Class::MOP::Attribute
996 - read-only accessors ('reader') will now die if
997 passed more than one argument (attempting to write
999 - added tests for this
1000 - adjusted all /example files to comply
1002 0.22 Mon. March 20, 2006
1004 - localized $@ in the *_package_variable functions
1005 because otherwise, it does ugly things in Moose.
1006 - added test case for this
1008 0.21 Wed. March 15, 2006
1010 - fixed issue where metaclasses are reaped from
1011 our cache in global destruction, and so are not
1012 available in DESTORY calls
1014 0.20 Thurs. March 2, 2006
1015 - removed the dependency for Clone since
1016 we no longer to deep-cloning by default.
1018 * Class::MOP::Method
1019 - added &package_name, &name and
1020 &fully_qualified_name methods, some of
1021 which were formerly private subs in
1024 * Class::MOP::Method::Wrapped
1025 - allows for a method to be wrapped with
1026 before, after and around modifiers
1027 - added tests and docs for this feature
1030 - improved &get_package_symbol
1031 - &version and &superclasses now use it
1032 - methods are now blessed into Class::MOP::Method
1034 - added methods to install CLOS-style method modifiers
1035 - &add_before_method_modifier
1036 - &add_after_method_modifier
1037 - &add_around_method_modifier
1038 - added tests and docs for these
1039 - added &find_next_method_by_name which finds the
1040 equivalent of SUPER::method_name
1042 0.12 Thurs. Feb 23, 2006
1043 - reduced the dependency on B, no need to always
1047 - added docs to the C3 method dispatch order test
1048 - fixed missing Algorithm::C3 dependency by making
1049 the test skip if it is not installed
1051 0.11 Mon Feb. 20, 2006
1053 - added example of changing method dispatch order to C3
1056 - changed how clone_instance behaves, it now only does a
1057 shallow clone (see docs for more details)
1058 - added docs and tests
1060 0.10 Tues Feb. 14, 2006
1061 ** This release was mostly about writing more tests and
1062 cleaning out old and dusty code, the MOP should now
1063 be considered "ready to use".
1065 - adding more tests to get coverage up a little higher,
1066 mostly testing errors and edge cases.
1067 - test coverage is now at 99%
1070 - no longer optionally exports to UNIVERSAL::meta or
1071 creates a custom metaclass generator, use the
1072 metaclass pragma instead.
1075 - fixed a number of minor issues which came up in the
1076 error/edge-case tests
1078 * Class::MOP::Attribute
1079 - fixed a number of minor issues which came up in the
1080 error/edge-case tests
1083 - fixing the AttributesWithHistory example, it was broken.
1085 0.06 Thurs Feb. 9, 2006
1087 - adding new metaclass pragma to make setting up the
1088 metaclass a little more straightforward
1091 - clean up bootstrapping to include more complete
1092 attribute definitions for Class::MOP::Class and
1093 Class::MOP::Attribute (accessors, readers, writers,
1094 etc.) ... it is redundant, but is useful meta-info
1098 - fixing minor meta-circularity issue with &meta, it
1099 is now more useful for subclasses
1100 - added &get_attribute_map as an accessor for the
1101 hash of attribute meta objects
1102 - &compute_all_applicable_attributes now just returns
1103 the attribute meta-object, rather than the HASH ref
1104 since all the same info can be gotten from the
1105 attribute meta-object itself
1106 - updated docs & tests to reflect
1107 - added &clone_instance method which does a deep clone
1108 of the instance structure created by &construct_instance
1109 - added docs & tests for this
1110 - added Clone as a dependency
1111 - added &new_object and &clone_object convience methods to
1112 return blessed new or cloned instances
1113 - they handle Class::MOP::Class singletons correctly too
1114 - added docs & tests for this
1115 - cleaned up the &constuct_class_instance so that it behaves
1116 more like &construct_instance (and managed the singletons too)
1117 - added the &check_metaclass_compatibility method to make sure
1118 that metaclasses are upward and downward compatible.
1119 - added tests and docs for this
1122 - adjusting code to use the &Class::MOP::Class::meta
1124 - adjusting code to use the metaclass pragma
1126 0.05 Sat Feb. 4, 2006
1128 - added the &attribute_metaclass and &method_metaclass
1129 attributes which contain a metaclass name to use for
1130 attributes/methods respectively
1133 - bootstrap additional attributes for Class::MOP::Class
1136 - adjusted the example code and tests to use the new
1137 &attribute_metaclass feature of Class::MOP::Class
1138 - added new example:
1141 0.04 Fri Feb. 3, 2006
1143 - some documentation suggestions from #perl6
1145 * Class::MOP::Attribute
1146 - improved error messages
1149 - added new examples:
1150 - AttributesWithHistory
1151 - ClassEncapsultedAttributes
1153 0.03 Fri Feb. 3, 2006
1154 - converted to Module::Build instead of EU::MM
1156 * Class::MOP::Attribute
1157 - refactored method generation code
1158 - attributes are now associated with class directly
1161 - refactored the InsideOut example to take advantage
1162 of the Class::MOP::Attribute refactoring
1163 - changed example files to .pod files and hide thier
1164 package names from PAUSE (I don't want to own these
1165 namespaces really, they are just examples)
1167 0.02 Thurs Feb. 2, 2006
1168 - moving examples from t/lib/* to examples/*
1169 - adding POD documentation to the examples
1171 0.01 Thurs Feb. 2, 2006