1 Revision history for Perl extension Class-MOP.
4 * Class::MOP::Attribute
5 - add has_read_method and has_write_method
7 * Class::MOP::Immutable
8 - added the ability to "wrap" methods when
9 making the class immutable
12 - now handling the edge case of ->meta->indentifier
13 dying by wrapping add_package_symbol to specifically
15 - added tests for this
17 0.55 Mon. April 28, 2008
18 - All classes now have proper C3 MRO support
19 - added MRO::Compat as a dependency to allow
20 for the C3 MRO support to Just Work in all
24 - rebless_instance now returns the instance
25 it has just blessed, this is mostly to
27 - set the attr correctly in rebless_instance
28 when it has no init_arg
29 - tweaked &linear_isa and &class_precedence_list
30 to support c3 classes.
32 0.54 Fri. March, 14, 2008
35 - making sure that load_class never gets
36 passed a value from @_ or $_ to squash
37 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
40 - make_{immutable,mutable} now return 1
42 - improved error handling in ->create method
43 - rebless_instance now takes extra params which
44 will be used to populate values
45 - added tests for this
48 - localizing the Data::Dumper configurations so
49 that it does not pollute others (RT #33509)
56 - these classes no longer define their own ->meta,
57 but instead just inherit from Class::MOP::Object
59 * Class::MOP::Instance
61 - these classes now inherit from Class::MOP::Object
64 - fixed the filename length on several
65 test files so we install on VMS better
67 - fixed incorrect use of catdir when it
68 should be catfile (RT #32385)
70 0.53 Thurs. Feb. 14, 1008
71 ~~ several doc. fixes and updates ~~
74 Class::MOP::Method::Constructor
76 - making init_arg accept an undefined value
77 to indicate that no constructor args can
78 be passed (thanks to nothingmuch)
79 - added tests for this
80 - added attribute initializer attribute (rjbs)
83 - making this use the new init_arg => undef
84 feature instead of the silly hack from
85 before (thanks to nothingmuch)
87 0.52 Tues. Jan. 22, 2008
89 - fixed bug in rebless_instance
92 * Class::MOP::Method::Constructor
93 - removed assumptions about the existence of
96 0.51 Mon. Jan. 14, 2008
97 ~~~ some misc. doc. fixes ~~~
98 ~~ updated copyright dates ~~
101 - now sets the IS_RUNNING_ON_5_10
102 constant so that we can take advantage
103 of some of the nice bits of 5.10
106 - uses the IS_RUNNING_ON_5_10 flag to
107 optimize the &linearized_isa method
108 and avoid the hack/check for circular
109 inheritence in &class_precedence_list
110 - added rebless_instance method (Sartak)
111 - added tests for this
113 * Class::MOP::Immutable
114 - the immutable class now keeps track of
115 the transformer which immutablized it
117 * Class::MOP::Instance
118 - added rebless_instance_structure method (Sartak)
119 - added tests for this
121 0.50 Fri. Dec. 21, 2007
123 - fixed bug in immutable to make sure that
124 transformation arguments are saved
126 - added tests for this
128 * Class::MOP::Immutable
129 - fixed a bug (see above)
131 * Class::MOP::Attribute
134 0.49 Fri. Dec. 14, 2007
135 !! Class::MOP now loads 2 x faster !!
136 !! with XS speedups (thanks konobi) !!
139 - removed the dependency on B
140 - added two XS functions (thanks konobi)
141 - get_code_info($code) which replaces all
142 the B fiddling we were doing with
143 faster/leaner XS level fiddling
144 - check_package_cache_flag($pkg_name) which
145 returns the PL_sub_generation variable to
146 be used to help manage method caching.
149 In 5.10 or greater this will actually
150 use the mro::get_pkg_gen instead to give
151 even more accurate caching information.
152 blblack++ for that stuff :)
155 - added the &subclasses method (thanks rlb)
156 - added the update_package_cache_flag and
157 reset_package_cache_flag which help keep
158 track of when we need to re-fetch the
160 - Several small improvements to take advantage
161 of the new method map caching features
163 0.48 Mon. Nov. 26, 2007
164 * Class::MOP::Attribute
165 - fixed get_read/write_method to handle the
166 HASH ref case, which makes the
167 get_read/write_method_ref handle it too.
168 - added more tests for this
170 0.47 Sat. Nov. 24, 2007
171 * Class::MOP::Attribute
172 - fixed misspelling in get_write_method_ref
173 - added more tests for this
175 0.46 Fri. Nov. 23, 2007
177 - added the linearized_isa method instead of constantly
178 pruning duplicate classes (this will be even more
179 useful in the 5.10-compat version coming soon)
181 * Class::MOP::Attribute
182 - added the get_read_method_ref and get_write_method_ref
183 methods which allow you to retrieve a CODE ref which
184 can always be used to read or write an attribute.
186 0.45 Thurs. Nov. 13, 2007
187 * Class::MOP::Attribute
188 - Fix error message on confess (groditi)
190 0.44 Thurs. Nov. 13, 2007
191 - Apparently I didn't make dist correctly (groditi)
193 0.43 Thurs. Nov. 13, 2007
195 - Add support for the 'builder' attribute (groditi)
198 - optimise metaclass-already-exists check in
199 construct_class_instance (groditi)
200 - duplicate check into initialize to save a
201 call through (groditi)
203 * Class::MOP::Attribute
204 - Add support for the 'builder' attribute (groditi)
205 - Make predicates check for the existence of a value, not whether
206 it is defined (groditi)
208 * Class::MOP::Instance
209 - Make predicates check for the existence of a value, not whether
210 it is defined (groditi)
212 * Class::MOP::Method::Accessor
213 - made this a subclass of Class::MOP::Method::Generated
214 - removed the relevant attributes
216 * Class::MOP::Method::Constructor
217 - fixed the cached values we had to be more sane
218 - made this a subclass of Class::MOP::Method::Generated
219 - fixed generated constructor so it properly handles
221 - added tests for this
222 - added the option to allow for both inlined and
223 non-inlined constructors.
224 - Update inlined methods for builder and predicate changes (groditi)
226 * Class::MOP::Method::Generated
227 - added this class as an abstract base for the
228 Class::MOP::Method::{Constructor,Accessor} classes
229 - added tests for this
232 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
233 - Tests for new predicate behavior (and corrections to old tests) (groditi)
236 - Update ArrayRef based class example to work with predicate changes
238 0.42 Mon. July 16, 2007
239 !!! Horray for mst, he fixed it !!!
241 * Class::MOP::Package
242 - alter symbol table handling to deal with 5.8.x and 5.9.x
245 - Get rid of the crappy workaround from 0.40/41
247 0.41 Sun. July 15, 2007
249 Arghh!!! My TODO test didn't work, so I handle
250 it manually now so that people can use this
251 with 5.9.5/bleadperl without issue.
253 0.40 Tues, July 3, 2007
255 ~ marked a test in 003_methods.t as TODO
256 for perl 5.9.5 (this test is irrelvant to
257 the module functioning on 5.9.5 for the most
260 0.39 Mon. June 18, 2007
261 * Class::MOP::Immutable
262 - added make_metaclass_mutable + docs (groditi)
263 - removed unused variable
264 - added create_immutable_transformer
265 necessary for sane overloading of immutable behavior
266 - tests for this (groditi)
269 - Immutability can now be undone,
270 added make_mutable + tests + docs (groditi)
271 - Massive changes to the way Immutable is done
272 for details see comments next to make_immutable
273 This fixes a bug where custom metaclasses broke
274 when made immutable. We are now keeping one immutable
275 metaclass instance per metaclass instead of just one
276 to prevent isa hierarchy corruption. Memory use will go
277 up, but I suspect it will be neglible.
278 - New tests added for this behavior. (groditi)
280 0.38 Thurs. May 31, 2007
281 ~~ More documentation updates ~~
283 * Class::MOP::Package
284 - we now deal with stub methods properly
285 - added tests for this
286 - fixed some tests failing on 5.9.5 (thanks blblack)
288 * Class::MOP::Attribute
289 - added get_read_method and get_write_method
290 thanks to groditi for this code, tests
292 - added tests and POD for this
295 - fixed RT issue #27329, clone object now
296 handles undef values correctly.
297 - added tests for this
298 - Corrected anon-class handling so that they
299 will not get reaped when instances still
300 exist which need to reference them. This is
301 the correct behavior, hopefully this is an
302 obscure enough feature that there are not too
303 many work arounds out in the wild.
304 - added tests for this by groditi
305 - updated docs to explain this
308 - load custom metaclasses automatically (thanks groditi)
309 - added tests for this behavior
311 0.37 Sat. March 10, 2007
312 ~~ Many, many documentation updates ~~
315 - added &load_class and &is_class_loaded
316 - added tests and docs for these
318 * Class::MOP::Attribute
319 - default now checks the instance with defined to
320 avoid setting off bool-overloads (found by Carl Franks)
324 - bad name in a test, causing meaningless failuress.
330 - All attribute names are now consistent and follow Perl 6
331 style (prefixed with the sigil, and ! as the twigil for
332 private attrs). This should not affect any code, unless
333 you broke encapsulation, in which case, it is your problem
336 !! Class::MOP::Class::Immutable has been removed
338 * Class::MOP::Method::Constructor
339 - this has been moved out of Class::MOP::Class::Immutable
340 and is a proper subclass of Class::MOP::Method now.
343 - this module now uses Class::MOP::Immutable for the
344 immutable transformation instead of
345 Class::MOP::Class::Immutable.
347 + Class::MOP::Immutable
348 - this module now controls the transformation from a mutable
349 to an immutable version of the class. Docs for this will
350 be coming eventually.
353 0.36 Sun. Nov. 5, 2006
355 - added a few 'no warnings' lines to keep annoying
356 (and meaningless) warnings from chirping during
360 - some more bootstrapping is now done on the new
363 * Class::MOP::Class::Immutable
365 - constructor generation is now handled by
366 the Class::MOP::Method::Constructor class
368 * Class::MOP::Method::Constructor
369 - created this to handle constructor generation
370 in Class::MOP::Class::Immutable
372 * Class::MOP::Attribute
374 - attributes now delegate to the
375 Class::MOP::Method::Accessor to generate
378 * Class::MOP::Method::Accessor
379 - all accessor generation functions from
380 Class::MOP::Attribute have been moved here
382 0.35 Sat. Sept. 30, 2006
384 * scripts/class_browser.pl
385 - initial prototype of a class browser, more
386 on this to come. Comments and patches are
390 - All Class::MOP::* accessors are no longer
391 re-generated in the bootstrap, instead
392 they are aliased from the originals
393 - fixed tests to reflect
394 - added Class::MOP::Method (and its subclasses)
396 - adjusted tests for this
397 - added the Class::MOP::Instance attributes
402 - methods are no longer blessed CODE refs
403 but are actual objects which can be CODE-ified
404 - adjusted tests to compensate
405 - adjusted docs for this
408 - changed how methods are dealt with to
409 encapsulate most of the work into the
410 &get_method_map method
411 - made several adjustments for the change
412 in Class::MOP::Method
413 - &add_attribute now checks if you are adding
414 a duplicate name, and properly removes the
415 old one before installing the new one
416 - added tests for this
417 - adjusted docs for this
419 * Class::MOP::Class::Immutable
420 - added caching of &get_method_map
421 - fixed issue with &get_package_symbol
422 - cleaned up the methods that die (patch by David Wheeler)
424 * Class::MOP::Package
425 - added filtering capabilities to
426 &list_all_package_symbols
428 0.34 Sat. Aug. 26, 2006
430 - added the %:methods attribute, which like
431 the $:version and such just actually goes
432 to the symbol table to get it's stuff.
433 However, it makes the MOP more complete.
435 - The &create method now requires that all
436 but the package name now is passed in as
437 named parameters. See docs for more info.
438 - updated docs and tests for this
441 - added &dump method to easily Data::Dumper
445 - cleaned up the initialization of attributes
446 which do not store things in the instance
447 - added the %:methods attribute definition to
450 ~ lots of misc. test cleanup
452 0.33 Sat. Aug. 19, 2006
454 - moved the metaclass cache out of here
455 and it is now in Class::MOP itself.
458 - moved all the metaclass cache stuff here
459 - fixed all tests for this
461 * Class::MOP::Attribute
462 - reference values (other than CODE refs)
463 are no longer allowed for defaults
464 - added tests for this
466 * Class::MOP::Package
467 - fixed an issue with perl 5.8.1 and how it deals
468 with symbol tables. The namespace hash is now
469 always reloaded from the symbol table.
471 ~ lots of misc. documentation cleanup
473 0.32 Sat. Aug. 12, 2006
474 + added Class::MOP::Object so that the
475 metamodel is more complete (and closer
476 to what Perl 6 will probably be).
478 * Class::MOP::Package
479 - refactored entire class, this is now
480 the primary gateway between the metaclass
481 and the Perl 5 symbol table
482 - added many tests for this
483 - this class is now a subclass of
485 - added some tests to reflect this
488 - refactored all symbol table access to
489 use Class::MOP::Package methods instead
492 - adding the $:version attribute in the bootstrap
493 so that Module has a version as an attribute
494 - see comment in Class::MOP for details
495 - added the $:authority attribute to this module
496 as well as an &identifier method, to bring us
497 ever closer to Perl 6 goodness
498 - I have added $AUTHORITY to all the modules
499 - added tests for this
501 * Class::MOP::Instance
502 - added &deinitialize_slot for removing slots
504 - added tests for this
506 * Class::MOP::Attribute
507 - added support for &deinitialize_slot for removing
508 slots from an instance
509 - added tests for this
511 0.31 Sat. July 15, 2006
514 - added &find_method_by_name to locate a method
515 anywhere within the class hierarchy
517 * Class::MOP::Attribute
518 - added &set_value and &get_value for getting
519 the value of the attribute for a particular
522 0.30 Wed. July 5, 2006
523 ---------------------------------------
524 This is the first version of Class::MOP
525 to introduce the immutable features which
526 will be used for optimizating the MOP.
527 This support should still be considered
528 experimental, but moving towards stability.
529 ---------------------------------------
531 * Created Class::MOP::Class::Immutable
533 * Created the Class::MOP::Package and
534 Class::MOP::Module classes to more
535 closely conform to Perl 6's meta-model
538 - now inherits from Class::MOP::Module
539 - several methods moved to ::Module and
540 ::Package and now inherited
541 - added tests for this
543 * Class::MOP::Instance
544 - added an is_inlinable method to allow other
545 classes to check before they attempt to optimize.
546 - added an inline_create_instance to inline
547 instance creation (of course)
550 - the Class::MOP::Class::*_package_variable
551 methods are all now methods of Class::MOP::Package
552 and called *_package_symbol instead. This is
553 because they are now more general purpose symbol
554 table manipulation methods.
556 0.29_02 Thurs. June 22, 2006
557 ++ DEVELOPER RELEASE ++
559 - small change in &create so that it behaves
560 properly when inherited
561 - small fix to &clone_instance
563 0.29_01 Fri. May 12, 2006
564 ++ DEVELOPER RELEASE ++
565 - This release works in combination with
566 Moose 0.09_01, it is a developer release
567 because it introduces a new instance
568 sub-protocol and has not yet been
572 - anon-classes are now properly garbage collected
573 - added tests for this
574 - improved method modifier wrapping
576 * Class::MOP::Instance
577 - added new instance protocol
578 - added tests for this
579 - changed all relevant modules and examples
581 - Class::MOP::Attribute
585 - you no longer need to specify the metaclass
586 itself, if it is not there, Class::MOP::Class
588 - updated tests for this
591 - added ArrayBasedStorage example to show
592 instance storage using ARRAY refs instead of
594 - added tests for this
595 - InsideOutClass is totally revised using the
596 new instance protocol
597 - added more tests for this
599 0.26 Mon. April 24, 2006
601 - added find_attribute_by_name method
602 - added tests and docs for this
603 - some small optimizations
605 * Class::MOP::Attribute
606 - some small optimizations
608 0.25 Thurs. April 20, 2006
610 - added create_anon_class for creating anonymous classes
611 - added tests for this
612 - added get_all_metaclasses, get_all_metaclass_names
613 and get_all_metaclass_instances method to allow
614 access to all the cached metaclass objects.
615 - attribute slot initialization is now the responsibility
616 of the attribute itself, and construct_instance now
617 delegates appropriately
619 * Class::MOP::Attribute
620 - attribute slot initialization is now the responsibility
621 of the attribute itself, so we added a method for it
622 called initialize_instance_slot
625 - adjusted all the examples to use the new attribute
626 initialize_instance_slot method
628 0.24 Tues. April 11, 2006
630 - cleaned up how the before/after/around method
631 modifiers get named with Sub::Name
633 0.23 Thurs. March 30, 2006
635 - fixed the way attribute defaults are handled
636 during instance construction (bug found by chansen)
638 * Class::MOP::Attribute
639 - read-only accessors ('reader') will now die if
640 passed more than one argument (attempting to write
642 - added tests for this
643 - adjusted all /example files to comply
645 0.22 Mon. March 20, 2006
647 - localized $@ in the *_package_variable functions
648 because otherwise, it does ugly things in Moose.
649 - added test case for this
651 0.21 Wed. March 15, 2006
653 - fixed issue where metaclasses are reaped from
654 our cache in global destruction, and so are not
655 available in DESTORY calls
657 0.20 Thurs. March 2, 2006
658 - removed the dependency for Clone since
659 we no longer to deep-cloning by default.
662 - added &package_name, &name and
663 &fully_qualified_name methods, some of
664 which were formerly private subs in
667 * Class::MOP::Method::Wrapped
668 - allows for a method to be wrapped with
669 before, after and around modifiers
670 - added tests and docs for this feature
673 - improved &get_package_symbol
674 - &version and &superclasses now use it
675 - methods are now blessed into Class::MOP::Method
677 - added methods to install CLOS-style method modifiers
678 - &add_before_method_modifier
679 - &add_after_method_modifier
680 - &add_around_method_modifier
681 - added tests and docs for these
682 - added &find_next_method_by_name which finds the
683 equivalent of SUPER::method_name
685 0.12 Thurs. Feb 23, 2006
686 - reduced the dependency on B, no need to always
690 - added docs to the C3 method dispatch order test
691 - fixed missing Algorithm::C3 dependency by making
692 the test skip if it is not installed
694 0.11 Mon Feb. 20, 2006
696 - added example of changing method dispatch order to C3
699 - changed how clone_instance behaves, it now only does a
700 shallow clone (see docs for more details)
701 - added docs and tests
703 0.10 Tues Feb. 14, 2006
704 ** This release was mostly about writing more tests and
705 cleaning out old and dusty code, the MOP should now
706 be considered "ready to use".
708 - adding more tests to get coverage up a little higher,
709 mostly testing errors and edge cases.
710 - test coverage is now at 99%
713 - no longer optionally exports to UNIVERSAL::meta or
714 creates a custom metaclass generator, use the
715 metaclass pragma instead.
718 - fixed a number of minor issues which came up in the
719 error/edge-case tests
721 * Class::MOP::Attribute
722 - fixed a number of minor issues which came up in the
723 error/edge-case tests
726 - fixing the AttributesWithHistory example, it was broken.
728 0.06 Thurs Feb. 9, 2006
730 - adding new metaclass pragma to make setting up the
731 metaclass a little more straightforward
734 - clean up bootstrapping to include more complete
735 attribute definitions for Class::MOP::Class and
736 Class::MOP::Attribute (accessors, readers, writers,
737 etc.) ... it is redundant, but is useful meta-info
741 - fixing minor meta-circularity issue with &meta, it
742 is now more useful for subclasses
743 - added &get_attribute_map as an accessor for the
744 hash of attribute meta objects
745 - &compute_all_applicable_attributes now just returns
746 the attribute meta-object, rather than the HASH ref
747 since all the same info can be gotten from the
748 attribute meta-object itself
749 - updated docs & tests to reflect
750 - added &clone_instance method which does a deep clone
751 of the instance structure created by &construct_instance
752 - added docs & tests for this
753 - added Clone as a dependency
754 - added &new_object and &clone_object convience methods to
755 return blessed new or cloned instances
756 - they handle Class::MOP::Class singletons correctly too
757 - added docs & tests for this
758 - cleaned up the &constuct_class_instance so that it behaves
759 more like &construct_instance (and managed the singletons too)
760 - added the &check_metaclass_compatibility method to make sure
761 that metaclasses are upward and downward compatible.
762 - added tests and docs for this
765 - adjusting code to use the &Class::MOP::Class::meta
767 - adjusting code to use the metaclass pragma
769 0.05 Sat Feb. 4, 2006
771 - added the &attribute_metaclass and &method_metaclass
772 attributes which contain a metaclass name to use for
773 attributes/methods respectively
776 - bootstrap additional attributes for Class::MOP::Class
779 - adjusted the example code and tests to use the new
780 &attribute_metaclass feature of Class::MOP::Class
784 0.04 Fri Feb. 3, 2006
786 - some documentation suggestions from #perl6
788 * Class::MOP::Attribute
789 - improved error messages
792 - added new examples:
793 - AttributesWithHistory
794 - ClassEncapsultedAttributes
796 0.03 Fri Feb. 3, 2006
797 - converted to Module::Build instead of EU::MM
799 * Class::MOP::Attribute
800 - refactored method generation code
801 - attributes are now associated with class directly
804 - refactored the InsideOut example to take advantage
805 of the Class::MOP::Attribute refactoring
806 - changed example files to .pod files and hide thier
807 package names from PAUSE (I don't want to own these
808 namespaces really, they are just examples)
810 0.02 Thurs Feb. 2, 2006
811 - moving examples from t/lib/* to examples/*
812 - adding POD documentation to the examples
814 0.01 Thurs Feb. 2, 2006