Added introspection methods for method modifiers, along with tests.
[gitmo/Class-MOP.git] / Changes
1 Revision history for Perl extension Class-MOP.
2
3 0.69
4     * Class::MOP::Method::Wrapped
5       - Added introspection methods for method modifiers (Dave Rolsky)
6
7
8 0.68 Fri October 24, 2008
9     * Class::MOP
10       - Make load_class require by file name instead of module name.
11         This stops confusing error messages when loading '__PACKAGE__'.
12         (Florian Ragwitz)
13       - Add load_one_class_of function to enable you to load one of a
14         list of classes, rather than having to call load_class multiple
15         times in an eval. (t0m)
16
17 0.67 Tue October 14, 2008
18     * Class::MOP::Class
19       - Call a method on the class after setting the superclass list
20         so that we can get Perl to detect cycles before MRO::Compat
21         spirals into an infinite loop (sartak)
22         - Reported by Schwern, [rt.cpan.org #39001]
23       - In create(), pass unused options on to initialize()
24         - added test for this
25
26 0.66 Sat September 20, 2008
27     !! This release has an incompatible change regarding !!
28        introspection of a class's method with Class::MOP::Class !!
29
30     * Tests and XS
31       - We (us maintainers) now run all tests with XS and then without
32         XS, which should help us catch skew between the XS/pure Perl
33         code. (Dave Rolsky)
34
35     * Class::MOP::Class
36       ! The alias_method method has been deprecated. It now simply
37         calls add_method instead. There is no distinction between
38         aliased methods and "real" methods.
39
40         This means that methods added via alias_method now show up as
41         part of the class's method list/map. This is a backwards
42         incompatible change, but seems unlikely to break any
43         code. Famous last words. (Dave Rolsky)
44
45     * Class::MOP::Class
46       - Fixed the spelling of "compatibility", but we still have a
47         "check_metaclass_compatability" method for backwards
48         compatibility.
49
50 0.65 Mon September 1, 2008
51     For those not following the series of dev releases, the changes
52     from 0.64 from 0.65 can mostly be summed up as a lot performance
53     improvements by nothingmuch, including new optional XS versions of
54     some methods. Also, Class::MOP now works _without_ any XS modules,
55     for sad systems without a compiler.
56
57     * Class::MOP::Method
58       - Added name and package_name XS accessors, and make sure all
59         the XS and Perl versions work the same way. (Dave Rolsky)
60
61     * MOP.xs
62       - The XS versions of various methods just returned undef when
63         called class methods, rather than dying like the pure Perl
64         versions. (Dave Rolsky)
65
66 0.64_07 Fri August 29, 2008
67     * Class::MOP
68       - Silenced warnings that managed to break Moose tests when XS
69         was loaded. (Dave Rolsky)
70       - Some XS versions of methods were ignored because of typos in
71         MOP.xs. (Dave Rolsky)
72
73 0.64_06 Mon August 25, 2008
74     * Class::MOP (MOP.xs)
75       - Another MS VC++ fix, cannot declare a variable in the middle
76         of a scope (Taro Nishino).
77
78 0.64_05 Sun August 24, 2008
79     * Class::MOP
80       - None of the dev releases actually loaded the XS properly, but
81         we silently fell back to the pure Perl version of the
82         code. (Dave Rolsky)
83
84     * Class::MOP (MOP.xs)
85       - Replaced some code that used functions not available on Visual
86         C++ with some Perl XS API bits (Dave Rolsky).
87
88 0.64_04 Sat August 23, 2008
89     * Class::MOP::Class
90       - Workaround a bug in 5.8.1's goto sub (nothingmuch)
91
92     * pod.t and pod_coveraget.t
93       - These are no longer shipped with the tarball because of bogus
94         failures from CPAN testers. (Dave Rolsky)
95
96 0.64_03 Thu August 21, 2008
97     * Class::MOP::Package
98       - Some (legit) code was misparsed by earlier 5.8.x
99         releases. (nothingmuch)
100
101     * Class::MOP
102       - Fix a constant in void context warning (nothingmuch)
103
104 0.64_02 Thu August 21, 2008
105     * Makefile.PL and Class::MOP
106       - Explicitly require Perl 5.8.0+ (Dave Rolsky)
107
108     * Makefile.PL
109       - Add missing prereqs that got lost in the switch away from
110         Module::Install.
111
112     * Class::MOP::Instance
113       - New method - get_all_attributes (nothingmuch)
114
115 0.64_01 Wed August 20, 2008
116     * Makefile.PL
117       - We now check to see if you have a compiler. If you don't, the
118         module installs without some XS bits, but will work the same
119         as with XS. This should make it easier to install on platforms
120         without a compiler (like Windows). (Dave Rolsky)
121
122     * many modules
123       - Perl 6 style attribute naming replaced with sane style ('methods', not
124         '%!methods'). These changes should not impact any existing API uses.
125         (nothingmuch).
126
127     * many modules
128       - Quite a number of optimizations based on profiling, including
129         allowing constructors to take hash references instead of
130         hashes, duplicating some frequently used code in XS, and
131         making constructors immutable. These changes should not impact
132         any existing API uses. (nothingmuch)
133
134     * Many modules
135       - Constructors now respect the meta attributes of their subclasses,
136         facilitating MOP extensibility. More related changes will happen in the
137         next several releases. (nothingmuch)
138
139     * Class::MOP::Class
140       - New method - get_all_methods, replaces the deprecated
141         compute_all_applicable_methods. get_all_attributes provided for
142         consistency (nothingmuch)
143       - New method - wrap_method was refactored out of get_method_map
144         (nothingmuch)
145       - New API for meta instance invalidation - invalidate_meta_instance,
146         invalidate_meta_instances, add_dependent_meta_instance,
147         remove_dependent_meta_instance, called automatically when attribute
148         definitions change and allows notification of dependent subclasses.
149         (nothingmuch)
150
151 0.64 Sun August 3, 2008
152     * Class::MOP::Immutable
153       - fixing subtle edge case in immutable when you
154         call ->meta (stevan)
155       - clean up option processing (nothingmuch)
156
157     * Class::MOP::Instance
158       - inlined initialize slot didn't match
159         non-inlined (nothingmuch)
160
161 0.63 Mon July 7, 2008
162     * Class::MOP
163       - load_class will initialize a metaclass even if
164         the class is already loaded (sartak)
165       - load_class now returns the metaclass instance
166         instead of just 1 (sartak)
167
168     * elsewhere
169       - better error messages (sartak and Dave Rolsky)
170
171 0.62 Wed June 18, 2008
172     - in is_class_loaded, recognize scalar references (as opposed to globs) in
173       the symbol table as methods (these are optimized constant subs)
174
175 0.61 Fri. June 13, 2008
176     - Okay, lets give this another try and see if PAUSE 
177       recognizes it correct this time.
178
179 0.60 Thurs. Jun 12, 2008
180     - Fixed a version number issue by bumping all modules
181       to 0.60.
182
183 0.59 Thurs. Jun 12, 2008
184     !! Several fixes resulting in yet another 25-30% speedup !!
185
186     * Class::MOP::Class
187       - now stores the instance of the instance 
188         metaclass to avoid needless recomputation
189         and deletes it when the cache is blown
190       - introduce methods to query Class::MOP::Class for 
191         the options used to make it immutable as well as
192         the proper immutable transformer. (groditi)        
193
194     * Class::MOP::Package
195       - {add, has, get, remove}_package_symbol all 
196         now accept a HASH ref argument as well as the
197         string. All internal usages now use the HASH
198         ref version.
199
200     * Class::MOP
201       - MOP.xs does sanity checks on the coderef 
202         to avoid a segfault
203       - is_class_loaded check now uses code that
204         was improved in Moose's ClassName type
205         check (Sartak)
206       - nonsensical (undef, empty, reference) class
207         names now throw a more direct error in
208         load_class (Sartak)
209         - tests for this and other aspects of
210           load_class (Sartak)
211     
212     * Class::MOP
213       Class::MOP::Class      
214       Class::MOP::Method
215       Class::MOP::Method::Wrapped
216       Class::MOP::Attribute
217       - switched usage of reftype to ref because 
218         it is much faster
219
220 0.58 Thurs. May 29, 2008
221     (late night release engineering)--
222     
223     - fixing the version is META.yml, no functional 
224       changes in this release
225
226 0.57 Wed. May 28, 2008
227     !! Several speedups resulting in 20-25% speedups !!
228     || (thanks to konobi, groditi, mst & CataMoose) !!
229
230     * Class::MOP::Class
231       - made get_method_map use list_all_package_symbols
232         instead of manually grabbing each symbol
233       - streamlining &initialize somewhat, since it gets
234         called so much
235         
236     * Class::MOP::Package
237       - made {get, has}_package_symbol not call 
238         &namespace so much 
239       - inlining a few calls to &name with 
240         direct HASH access key access
241       - added get_all_package_symbols to fetch 
242         a HASH of items based on a type filter
243         similar to list_all_package_symbols
244         - added tests for this
245
246     * Class::MOP::Method
247       Class::MOP::Method::Constructor
248       Class::MOP::Method::Generated
249       Class::MOP::Method::Accessor
250       - added more descriptive error message to help 
251         keep people from wasting time tracking an error
252         that is easily fixed by upgrading.
253
254     * Class::MOP::Immutable
255       - Don't inline a destructor unless the user actually
256         needs one
257         - added tests for this
258
259 0.56 Saturday, May 24, 2008
260     * Class::MOP
261       - we now get the &check_package_cache_flag
262         function from MRO::Compat
263       - All XS based functionality now has a 
264         Pure Perl alternative
265         - the CLASS_MOP_NO_XS environment variable
266           can now be used to force non-XS versions
267           to always be used
268
269     * Class::MOP::Attribute
270       - add has_read_method and has_write_method
271       - get_{read,write}_method_ref now wraps the
272         anon-sub ref in the method metaclass when
273         possible
274         - added tests for this
275
276     * Class::MOP::Immutable
277       - added the ability to "wrap" methods when
278         making the class immutable
279
280     * Class::MOP::Class
281       - now handling the edge case of ->meta->identifier
282         dying by wrapping add_package_symbol to specifically
283         allow for it to work.
284         - added tests for this
285
286     * Class::MOP::Attribute
287       Class::MOP::Class
288       Class::MOP::Immutable
289       - any time a method meta object is constructed
290         we make sure to pass the correct package and
291         method name information
292
293     * Class::MOP::Method
294       Class::MOP::Method::Wrapped
295       Class::MOP::Method::Generated
296       Class::MOP::Method::Accessor
297       Class::MOP::Method::Consructor
298       - the &wrap constructor method now requires that a 
299         'package_name' and 'name' attribute are passed. This 
300         is to help support the no-XS version, and will 
301         throw an error if these are not supplied.      
302       - all these classes are now bootstrapped properly
303         and now store the package_name and name attributes
304         correctly as well        
305
306     ~ Build.PL has been removed since the 
307       Module::Install support has been removed
308
309 0.55 Mon. April 28, 2008
310     - All classes now have proper C3 MRO support
311       - added MRO::Compat as a dependency to allow
312         for the C3 MRO support to Just Work in all
313         perl versions
314
315     * Class::MOP::Class
316       - rebless_instance now returns the instance
317         it has just blessed, this is mostly to
318         facilitate chaining
319       - set the attr correctly in rebless_instance
320         when it has no init_arg
321       - tweaked &linear_isa and &class_precedence_list
322         to support c3 classes.
323
324 0.54 Fri. March, 14, 2008
325     * Class::MOP
326       metaclass.pm
327       - making sure that load_class never gets
328         passed a value from @_ or $_ to squash
329         Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
330
331     * Class::MOP::Class
332       - make_{immutable,mutable} now return 1
333         (cause Sartak asked)
334       - improved error handling in ->create method
335       - rebless_instance now takes extra params which
336         will be used to populate values
337         - added tests for this
338
339     * Class::MOP::Object
340       - localizing the Data::Dumper configurations so
341         that it does not pollute others (RT #33509)
342
343     * Class::MOP::Class
344       Class::MOP::Package
345       Class::MOP::Module
346       Class::MOP::Method
347       Class::MOP::Attribute
348       - these classes no longer define their own ->meta,
349         but instead just inherit from Class::MOP::Object
350
351     * Class::MOP::Instance
352       Class::MOP::Immutable
353       - these classes now inherit from Class::MOP::Object
354
355     * t/
356       - fixed the filename length on several
357         test files so we install on VMS better
358         (RT #32295)
359       - fixed incorrect use of catdir when it
360         should be catfile (RT #32385)
361
362 0.53 Thurs. Feb. 14, 1008
363     ~~ several doc. fixes and updates ~~
364
365     * Class::MOP::Class
366       Class::MOP::Method::Constructor
367       Class::MOP::Attribute
368         - making init_arg accept an undefined value
369           to indicate that no constructor args can
370           be passed (thanks to nothingmuch)
371           - added tests for this
372         - added attribute initializer attribute (rjbs)
373
374     * Class::MOP.
375         - making this use the new init_arg => undef
376           feature instead of the silly hack from
377           before (thanks to nothingmuch)
378
379 0.52 Tues. Jan. 22, 2008
380     * Class::MOP::Class
381       - fixed bug in rebless_instance
382         (discovered by ash)
383
384     * Class::MOP::Method::Constructor
385       - removed assumptions about the existence of
386         a &meta method
387
388 0.51 Mon. Jan. 14, 2008
389     ~~~ some misc. doc. fixes ~~~
390     ~~ updated copyright dates ~~
391
392     * Class::MOP
393       - now sets the IS_RUNNING_ON_5_10
394         constant so that we can take advantage
395         of some of the nice bits of 5.10
396
397     * Class::MOP::Class
398       - uses the IS_RUNNING_ON_5_10 flag to
399         optimize the &linearized_isa method
400         and avoid the hack/check for circular
401         inheritence in &class_precedence_list
402       - added rebless_instance method (Sartak)
403         - added tests for this
404
405     * Class::MOP::Immutable
406       - the immutable class now keeps track of
407         the transformer which immutablized it
408
409     * Class::MOP::Instance
410       - added rebless_instance_structure method (Sartak)
411         - added tests for this
412
413 0.50 Fri. Dec. 21, 2007
414     * Class::MOP::Class
415       - fixed bug in immutable to make sure that
416         transformation arguments are saved
417         correctly (mst)
418         - added tests for this
419
420     * Class::MOP::Immutable
421       - fixed a bug (see above)
422
423     * Class::MOP::Attribute
424       - some doc updates
425
426 0.49 Fri. Dec. 14, 2007
427     !! Class::MOP now loads 2 x faster  !!
428     !! with XS speedups (thanks konobi) !!
429
430     * Class::MOP
431       - removed the dependency on B
432       - added two XS functions (thanks konobi)
433         - get_code_info($code) which replaces all
434           the B fiddling we were doing with
435           faster/leaner XS level fiddling
436         - check_package_cache_flag($pkg_name) which
437           returns the PL_sub_generation variable to
438           be used to help manage method caching.
439
440           NOTE:
441           In 5.10 or greater this will actually
442           use the mro::get_pkg_gen instead to give
443           even more accurate caching information.
444           blblack++ for that stuff :)
445
446     * Class::MOP::Class
447       - added the &subclasses method (thanks rlb)
448       - added the update_package_cache_flag and
449         reset_package_cache_flag which help keep
450         track of when we need to re-fetch the
451         method map.
452       - Several small improvements to take advantage
453         of the new method map caching features
454
455 0.48 Mon. Nov. 26, 2007
456     * Class::MOP::Attribute
457       - fixed get_read/write_method to handle the
458         HASH ref case, which makes the
459         get_read/write_method_ref handle it too.
460         - added more tests for this
461
462 0.47 Sat. Nov. 24, 2007
463     * Class::MOP::Attribute
464       - fixed misspelling in get_write_method_ref
465         - added more tests for this
466
467 0.46 Fri. Nov. 23, 2007
468     * Class::MOP::Class
469       - added the linearized_isa method instead of constantly
470         pruning duplicate classes (this will be even more
471         useful in the 5.10-compat version coming soon)
472
473     * Class::MOP::Attribute
474       - added the get_read_method_ref and get_write_method_ref
475         methods which allow you to retrieve a CODE ref which
476         can always be used to read or write an attribute.
477
478 0.45 Thurs. Nov. 13, 2007
479     * Class::MOP::Attribute
480       - Fix error message on confess (groditi)
481
482 0.44 Thurs. Nov. 13, 2007
483     - Apparently I didn't make dist correctly (groditi)
484
485 0.43 Thurs. Nov. 13, 2007
486     * Class::MOP
487       - Add support for the 'builder' attribute (groditi)
488
489     * Class::MOP::Class
490       - optimise metaclass-already-exists check in
491         construct_class_instance (groditi)
492       - duplicate check into initialize to save a
493         call through (groditi)
494
495     * Class::MOP::Attribute
496       - Add support for the 'builder' attribute (groditi)
497       - Make predicates check for the existence of a value, not whether
498         it is defined (groditi)
499
500     * Class::MOP::Instance
501       - Make predicates check for the existence of a value, not whether
502         it is defined (groditi)
503
504     * Class::MOP::Method::Accessor
505       - made this a subclass of Class::MOP::Method::Generated
506         - removed the relevant attributes
507
508     * Class::MOP::Method::Constructor
509       - fixed the cached values we had to be more sane
510       - made this a subclass of Class::MOP::Method::Generated
511       - fixed generated constructor so it properly handles
512         subclasses now.
513         - added tests for this
514       - added the option to allow for both inlined and
515         non-inlined constructors.
516       - Update inlined methods for builder and predicate changes (groditi)
517
518     * Class::MOP::Method::Generated
519       - added this class as an abstract base for the
520         Class::MOP::Method::{Constructor,Accessor} classes
521         - added tests for this
522
523     *t/
524       - Alter tests (005, 014 020, 021) for new builder addition (groditi)
525       - Tests for new predicate behavior (and corrections to old tests) (groditi)
526
527     *examples/
528       - Update ArrayRef based class example to work with predicate changes
529
530 0.42 Mon. July 16, 2007
531     !!! Horray for mst, he fixed it !!!
532
533     * Class::MOP::Package
534       - alter symbol table handling to deal with 5.8.x and 5.9.x
535
536     * t/
537       - Get rid of the crappy workaround from 0.40/41
538
539 0.41 Sun. July 15, 2007
540     * t/
541         Arghh!!! My TODO test didn't work, so I handle
542         it manually now so that people can use this
543         with 5.9.5/bleadperl without issue.
544
545 0.40 Tues, July 3, 2007
546     * t/
547       ~ marked a test in 003_methods.t as TODO
548         for perl 5.9.5 (this test is irrelvant to
549         the module functioning on 5.9.5 for the most
550         part anyway)
551
552 0.39 Mon. June 18, 2007
553     * Class::MOP::Immutable
554       - added make_metaclass_mutable + docs (groditi)
555       - removed unused variable
556       - added create_immutable_transformer
557         necessary for sane overloading of immutable behavior
558          - tests for this (groditi)
559
560     * Class::MOP::Class
561       - Immutability can now be undone,
562         added make_mutable + tests + docs (groditi)
563       - Massive changes to the way Immutable is done
564         for details see comments next to make_immutable
565         This fixes a bug where custom metaclasses broke
566         when made immutable. We are now keeping one immutable
567         metaclass instance per metaclass instead of just one
568         to prevent isa hierarchy corruption. Memory use will go
569         up, but I suspect it will be neglible.
570          - New tests added for this behavior.  (groditi)
571
572 0.38 Thurs. May 31, 2007
573     ~~ More documentation updates ~~
574
575     * Class::MOP::Package
576       - we now deal with stub methods properly
577         - added tests for this
578       - fixed some tests failing on 5.9.5 (thanks blblack)
579
580     * Class::MOP::Attribute
581       - added get_read_method and get_write_method
582         thanks to groditi for this code, tests
583         and docs.
584         - added tests and POD for this
585
586     * Class::MOP::Class
587       - fixed RT issue #27329, clone object now
588         handles undef values correctly.
589         - added tests for this
590       - Corrected anon-class handling so that they
591         will not get reaped when instances still
592         exist which need to reference them. This is
593         the correct behavior, hopefully this is an
594         obscure enough feature that there are not too
595         many work arounds out in the wild.
596         - added tests for this by groditi
597         - updated docs to explain this
598
599     * metaclass
600       - load custom metaclasses automatically (thanks groditi)
601         - added tests for this behavior
602
603 0.37 Sat. March 10, 2007
604     ~~ Many, many documentation updates ~~
605
606     * Class::MOP
607       - added &load_class and &is_class_loaded
608         - added tests and docs for these
609
610     * Class::MOP::Attribute
611       - default now checks the instance with defined to
612         avoid setting off bool-overloads (found by Carl Franks)
613
614 0.37_002
615     * /t
616       - bad name in a test, causing meaningless failuress.
617         No other changes.
618
619 0.37_001
620
621     ~~ GLOBAL CHANGES ~~
622     - All attribute names are now consistent and follow Perl 6
623       style (prefixed with the sigil, and ! as the twigil for
624       private attrs). This should not affect any code, unless
625       you broke encapsulation, in which case, it is your problem
626       anyway.
627
628     !! Class::MOP::Class::Immutable has been removed
629
630     * Class::MOP::Method::Constructor
631       - this has been moved out of Class::MOP::Class::Immutable
632         and is a proper subclass of Class::MOP::Method now.
633
634     * Class::MOP::Class
635       - this module now uses Class::MOP::Immutable for the
636         immutable transformation instead of
637         Class::MOP::Class::Immutable.
638
639     + Class::MOP::Immutable
640       - this module now controls the transformation from a mutable
641         to an immutable version of the class. Docs for this will
642         be coming eventually.
643
644
645 0.36 Sun. Nov. 5, 2006
646     * Class::MOP::Class
647       - added a few 'no warnings' lines to keep annoying
648         (and meaningless) warnings from chirping during
649         global destruction.
650
651     * Class::MOP
652       - some more bootstrapping is now done on the new
653         classes
654
655     * Class::MOP::Class::Immutable
656       *** API CHANGE ***
657       - constructor generation is now handled by
658         the Class::MOP::Method::Constructor class
659
660     * Class::MOP::Method::Constructor
661       - created this to handle constructor generation
662         in Class::MOP::Class::Immutable
663
664     * Class::MOP::Attribute
665       *** API CHANGE ***
666       - attributes now delegate to the
667         Class::MOP::Method::Accessor to generate
668         accessors
669
670     * Class::MOP::Method::Accessor
671       - all accessor generation functions from
672         Class::MOP::Attribute have been moved here
673
674 0.35 Sat. Sept. 30, 2006
675
676     * scripts/class_browser.pl
677       - initial prototype of a class browser, more
678         on this to come. Comments and patches are
679         very much welcome.
680
681     * Class::MOP
682       - All Class::MOP::* accessors are no longer
683         re-generated in the bootstrap, instead
684         they are aliased from the originals
685         - fixed tests to reflect
686       - added Class::MOP::Method (and its subclasses)
687         to the bootstrap
688         - adjusted tests for this
689       - added the Class::MOP::Instance attributes
690         to the bootstrap
691
692     * Class::MOP::Method
693       *** API CHANGE ***
694       - methods are no longer blessed CODE refs
695         but are actual objects which can be CODE-ified
696         - adjusted tests to compensate
697         - adjusted docs for this
698
699     * Class::MOP::Class
700       - changed how methods are dealt with to
701         encapsulate most of the work into the
702         &get_method_map method
703       - made several adjustments for the change
704         in Class::MOP::Method
705       - &add_attribute now checks if you are adding
706         a duplicate name, and properly removes the
707         old one before installing the new one
708         - added tests for this
709         - adjusted docs for this
710
711     * Class::MOP::Class::Immutable
712       - added caching of &get_method_map
713       - fixed issue with &get_package_symbol
714       - cleaned up the methods that die (patch by David Wheeler)
715
716     * Class::MOP::Package
717       - added filtering capabilities to
718         &list_all_package_symbols
719
720 0.34 Sat. Aug. 26, 2006
721     * Class::MOP::Class
722       - added the %:methods attribute, which like
723         the $:version and such just actually goes
724         to the symbol table to get it's stuff.
725         However, it makes the MOP more complete.
726      ** API CHANGE **
727       - The &create method now requires that all
728         but the package name now is passed in as
729         named parameters. See docs for more info.
730         - updated docs and tests for this
731
732     * Class::MOP::Object
733       - added &dump method to easily Data::Dumper
734         an object
735
736     * Class::MOP
737       - cleaned up the initialization of attributes
738         which do not store things in the instance
739       - added the %:methods attribute definition to
740         the bootstrap
741
742     ~ lots of misc. test cleanup
743
744 0.33 Sat. Aug. 19, 2006
745     * Class::MOP::Class
746       - moved the metaclass cache out of here
747         and it is now in Class::MOP itself.
748
749     * Class::MOP
750       - moved all the metaclass cache stuff here
751         - fixed all tests for this
752
753     * Class::MOP::Attribute
754       - reference values (other than CODE refs)
755         are no longer allowed for defaults
756         - added tests for this
757
758     * Class::MOP::Package
759       - fixed an issue with perl 5.8.1 and how it deals
760         with symbol tables. The namespace hash is now
761         always reloaded from the symbol table.
762
763     ~ lots of misc. documentation cleanup
764
765 0.32 Sat. Aug. 12, 2006
766     + added Class::MOP::Object so that the
767       metamodel is more complete (and closer
768       to what Perl 6 will probably be).
769
770     * Class::MOP::Package
771       - refactored entire class, this is now
772         the primary gateway between the metaclass
773         and the Perl 5 symbol table
774         - added many tests for this
775       - this class is now a subclass of
776         Class::MOP::Object
777         - added some tests to reflect this
778
779     * Class::MOP::Class
780       - refactored all symbol table access to
781         use Class::MOP::Package methods instead
782
783     * Class::MOP::Module
784       - adding the $:version attribute in the bootstrap
785         so that Module has a version as an attribute
786         - see comment in Class::MOP for details
787       - added the $:authority attribute to this module
788         as well as an &identifier method, to bring us
789         ever closer to Perl 6 goodness
790         - I have added $AUTHORITY to all the modules
791         - added tests for this
792
793     * Class::MOP::Instance
794       - added &deinitialize_slot for removing slots
795         from an instance
796         - added tests for this
797
798     * Class::MOP::Attribute
799       - added support for &deinitialize_slot for removing
800         slots from an instance
801         - added tests for this
802
803 0.31 Sat. July 15, 2006
804
805     * Class::MOP::Class
806       - added &find_method_by_name to locate a method
807         anywhere within the class hierarchy
808
809     * Class::MOP::Attribute
810       - added &set_value and &get_value for getting
811         the value of the attribute for a particular
812         instance.
813
814 0.30 Wed. July 5, 2006
815     ---------------------------------------
816     This is the first version of Class::MOP
817     to introduce the immutable features which
818     will be used for optimizating the MOP.
819     This support should still be considered
820     experimental, but moving towards stability.
821     ---------------------------------------
822
823     * Created Class::MOP::Class::Immutable
824
825     * Created the Class::MOP::Package and
826       Class::MOP::Module classes to more
827       closely conform to Perl 6's meta-model
828
829     * Class::MOP::Class
830       - now inherits from Class::MOP::Module
831       - several methods moved to ::Module and
832         ::Package and now inherited
833         - added tests for this
834
835     * Class::MOP::Instance
836       - added an is_inlinable method to allow other
837         classes to check before they attempt to optimize.
838       - added an inline_create_instance to inline
839         instance creation (of course)
840
841     ** API CHANGE **
842       - the Class::MOP::Class::*_package_variable
843         methods are all now methods of Class::MOP::Package
844         and called *_package_symbol instead. This is
845         because they are now more general purpose symbol
846         table manipulation methods.
847
848 0.29_02 Thurs. June 22, 2006
849     ++ DEVELOPER RELEASE ++
850     * Class::MOP::Class
851       - small change in &create so that it behaves
852         properly when inherited
853       - small fix to &clone_instance
854
855 0.29_01 Fri. May 12, 2006
856     ++ DEVELOPER RELEASE ++
857       - This release works in combination with
858         Moose 0.09_01, it is a developer release
859         because it introduces a new instance
860         sub-protocol and has not yet been
861         optimized.
862
863     * Class::MOP::Class
864       - anon-classes are now properly garbage collected
865         - added tests for this
866       - improved method modifier wrapping
867
868     * Class::MOP::Instance
869       - added new instance protocol
870         - added tests for this
871       - changed all relevant modules and examples
872         - Class::MOP::Class
873         - Class::MOP::Attribute
874         - examples/*
875
876     * metaclass
877       - you no longer need to specify the metaclass
878         itself, if it is not there, Class::MOP::Class
879         is just assumed
880         - updated tests for this
881
882     * examples/
883       - added ArrayBasedStorage example to show
884         instance storage using ARRAY refs instead of
885         HASH refs.
886         - added tests for this
887       - InsideOutClass is totally revised using the
888         new instance protocol
889         - added more tests for this
890
891 0.26 Mon. April 24, 2006
892     * Class::MOP::Class
893       - added find_attribute_by_name method
894         - added tests and docs for this
895       - some small optimizations
896
897     * Class::MOP::Attribute
898       - some small optimizations
899
900 0.25 Thurs. April 20, 2006
901     * Class::MOP::Class
902       - added create_anon_class for creating anonymous classes
903         - added tests for this
904       - added get_all_metaclasses, get_all_metaclass_names
905         and get_all_metaclass_instances method to allow
906         access to all the cached metaclass objects.
907       - attribute slot initialization is now the responsibility
908         of the attribute itself, and construct_instance now
909         delegates appropriately
910
911     * Class::MOP::Attribute
912       - attribute slot initialization is now the responsibility
913         of the attribute itself, so we added a method for it
914         called initialize_instance_slot
915
916     * examples/
917       - adjusted all the examples to use the new attribute
918         initialize_instance_slot method
919
920 0.24 Tues. April 11, 2006
921     * Class::MOP::Class
922       - cleaned up how the before/after/around method
923         modifiers get named with Sub::Name
924
925 0.23 Thurs. March 30, 2006
926         * Class::MOP::Class
927           - fixed the way attribute defaults are handled
928             during instance construction (bug found by chansen)
929
930         * Class::MOP::Attribute
931           - read-only accessors ('reader') will now die if
932             passed more than one argument (attempting to write
933             to them basically)
934               - added tests for this
935               - adjusted all /example files to comply
936
937 0.22 Mon. March 20, 2006
938     * Class::MOP::Class
939       - localized $@ in the *_package_variable functions
940         because otherwise, it does ugly things in Moose.
941           - added test case for this
942
943 0.21 Wed. March 15, 2006
944     * Class::MOP::Class
945       - fixed issue where metaclasses are reaped from
946         our cache in global destruction, and so are not
947         available in DESTORY calls
948
949 0.20 Thurs. March 2, 2006
950     - removed the dependency for Clone since
951       we no longer to deep-cloning by default.
952
953     * Class::MOP::Method
954       - added &package_name, &name and
955         &fully_qualified_name methods, some of
956         which were formerly private subs in
957         Class::MOP::Class
958
959     * Class::MOP::Method::Wrapped
960       - allows for a method to be wrapped with
961         before, after and around modifiers
962           - added tests and docs for this feature
963
964     * Class::MOP::Class
965       - improved &get_package_symbol
966           - &version and &superclasses now use it
967       - methods are now blessed into Class::MOP::Method
968         whenever possible
969       - added methods to install CLOS-style method modifiers
970          - &add_before_method_modifier
971          - &add_after_method_modifier
972          - &add_around_method_modifier
973              - added tests and docs for these
974       - added &find_next_method_by_name which finds the
975         equivalent of SUPER::method_name
976
977 0.12 Thurs. Feb 23, 2006
978     - reduced the dependency on B, no need to always
979       have the latest
980
981     * examples/
982       - added docs to the C3 method dispatch order test
983       - fixed missing Algorithm::C3 dependency by making
984         the test skip if it is not installed
985
986 0.11 Mon Feb. 20, 2006
987     * examples/
988       - added example of changing method dispatch order to C3
989
990     * Class::MOP::Class
991       - changed how clone_instance behaves, it now only does a
992         shallow clone (see docs for more details)
993         - added docs and tests
994
995 0.10 Tues Feb. 14, 2006
996     ** This release was mostly about writing more tests and
997        cleaning out old and dusty code, the MOP should now
998        be considered "ready to use".
999
1000     - adding more tests to get coverage up a little higher,
1001       mostly testing errors and edge cases.
1002       - test coverage is now at 99%
1003
1004     * Class::MOP
1005       - no longer optionally exports to UNIVERSAL::meta or
1006         creates a custom metaclass generator, use the
1007         metaclass pragma instead.
1008
1009     * Class::MOP::Class
1010       - fixed a number of minor issues which came up in the
1011         error/edge-case tests
1012
1013     * Class::MOP::Attribute
1014       - fixed a number of minor issues which came up in the
1015         error/edge-case tests
1016
1017     * examples/
1018       - fixing the AttributesWithHistory example, it was broken.
1019
1020 0.06 Thurs Feb. 9, 2006
1021     * metaclass
1022       - adding new metaclass pragma to make setting up the
1023         metaclass a little more straightforward
1024
1025     * Class::MOP
1026       - clean up bootstrapping to include more complete
1027         attribute definitions for Class::MOP::Class and
1028         Class::MOP::Attribute (accessors, readers, writers,
1029         etc.) ... it is redundant, but is useful meta-info
1030         to have around.
1031
1032     * Class::MOP::Class
1033       - fixing minor meta-circularity issue with &meta, it
1034         is now more useful for subclasses
1035       - added &get_attribute_map as an accessor for the
1036         hash of attribute meta objects
1037       - &compute_all_applicable_attributes now just returns
1038         the attribute meta-object, rather than the HASH ref
1039         since all the same info can be gotten from the
1040         attribute meta-object itself
1041           - updated docs & tests to reflect
1042       - added &clone_instance method which does a deep clone
1043         of the instance structure created by &construct_instance
1044           - added docs & tests for this
1045           - added Clone as a dependency
1046       - added &new_object and &clone_object convience methods to
1047         return blessed new or cloned instances
1048           - they handle Class::MOP::Class singletons correctly too
1049           - added docs & tests for this
1050       - cleaned up the &constuct_class_instance so that it behaves
1051         more like &construct_instance (and managed the singletons too)
1052       - added the &check_metaclass_compatibility method to make sure
1053         that metaclasses are upward and downward compatible.
1054           - added tests and docs for this
1055
1056     * examples/
1057       - adjusting code to use the &Class::MOP::Class::meta
1058         fix detailed above
1059       - adjusting code to use the metaclass pragma
1060
1061 0.05 Sat Feb. 4, 2006
1062     * Class::MOP::Class
1063       - added the &attribute_metaclass and &method_metaclass
1064         attributes which contain a metaclass name to use for
1065         attributes/methods respectively
1066
1067     * Class::MOP
1068       - bootstrap additional attributes for Class::MOP::Class
1069
1070     * examples/
1071       - adjusted the example code and tests to use the new
1072         &attribute_metaclass feature of Class::MOP::Class
1073       - added new example:
1074         - LazyClass
1075
1076 0.04 Fri Feb. 3, 2006
1077     * Class::MOP::Class
1078       - some documentation suggestions from #perl6
1079
1080     * Class::MOP::Attribute
1081       - improved error messages
1082
1083     * examples/
1084       - added new examples:
1085         - AttributesWithHistory
1086         - ClassEncapsultedAttributes
1087
1088 0.03 Fri Feb. 3, 2006
1089     - converted to Module::Build instead of EU::MM
1090
1091     * Class::MOP::Attribute
1092       - refactored method generation code
1093       - attributes are now associated with class directly
1094
1095     * examples/
1096       - refactored the InsideOut example to take advantage
1097         of the Class::MOP::Attribute refactoring
1098       - changed example files to .pod files and hide thier
1099         package names from PAUSE (I don't want to own these
1100         namespaces really, they are just examples)
1101
1102 0.02 Thurs Feb. 2, 2006
1103     - moving examples from t/lib/* to examples/*
1104         - adding POD documentation to the examples
1105
1106 0.01 Thurs Feb. 2, 2006
1107     - Initial release