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