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