r14451@Rob-Kinyons-PowerBook: rob | 2006-06-19 09:57:27 -0400
[dbsrgits/DBM-Deep.git] / Changes
1 Revision history for DBM::Deep.
2
3 0.983 Apr 10 20:00:00 2006 Pacific
4     - Added patch inspired by Jeff Janes (Thanks!)
5       - Autovivification now works correctly
6       - The following now works correctly
7         my %hash = ( a => 1 );
8         $db->{hash} = \%hash;
9         $hash{b} = 2;
10         cmp_ok( $db->{hash}{b}, '==', 2 );
11     - (RT#18530) - DBM::Deep now plays nicely with -l
12
13 0.982 Mar 08 11:00:00 2006 Pacific
14     - Fixed smoketests that were failing on Win32
15     - Added restriction for Perl 5.6.0 or higher.
16       - Digest::MD5 and Sub::Uplevel (dep of Test::Exception) require 5.6+
17
18 0.981 Mar 06 11:00:00 2006 Pacific
19     - (RT#17947) - Fixed test that was failing on older Perls
20
21 0.98  Feb 28 11:00:00 2006 Pacific
22     - Added in patch by David Cantrell to allow use of DATA filehandle
23     - Fixed bug where attempting to export() a structure that used autobless would die
24     - Fixed arraytest slowness by localizing $SIG{__DIE__} to prevent Test::Builder's
25       $SIG{__DIE__} from being called. (q.v. http://perldoc.perl.org/functions/eval.html)
26     - More methods have been made private:
27         - root() is now _root()
28         - base_offset() is now _base_offset()
29         - fh() is now _fh()
30         - type() is now _type()
31         - precalc_sizes() is now _precalc_sizes()
32
33 0.97  Feb 24 10:00:00 2006 Pacific
34     - Reorganization of distribution to a more standard layout
35     - Migration to Module::Build with EU::MM backwards compatibility
36     - Migration of all tests to use Test::More and Test::Exception
37     - Added Devel::Cover report to DBM::Deep POD
38       - Test coverage improved to 89.6% (and climbing)
39     - The following methods have been renamed to reflect their private nature:
40         - init() is now _init()
41         - open() is now _open()
42         - close() is now _close()
43         - load_tag() is now _load_tag()
44         - index_lookup() is now _index_lookup()
45         - add_bucket() is now _add_bucket()
46         - get_bucket_value() is now _get_bucket_value()
47         - delete_bucket() is now _delete_bucket()
48         - bucket_exists() is now _bucket_exists()
49         - find_bucket_list() is now _find_bucket_list()
50         - traverse_index() is now _traverse_index()
51         - get_next_key() is now _get_next_key()
52         - copy_node() is now _copy_node()
53         - throw_error() is now _throw_error()
54     - The various tied classes have been broken out. This means that testing
55         "ref( $obj ) eq 'DBM::Deep'" will now fail. The correct test is
56         "eval { $obj->isa( 'DBM::Deep' ) }".
57     - The various methods like push and delete now have the same return values as
58       the standard builtins.
59     - TIEARRAY and TIEHASH now check their parameters more thoroughly
60     - Negative indices for arrays works as expected, including throwing the appropriate
61       errors.
62     - RT #16877 is fixed (DBM::Deep broken with Perl 5.9.3+).
63     - RT #14893 is fixed (tie() and new() use different parameter lists).
64     - A bug with optimize and threading is fixed.
65     - autobless has received some attention, resulting in a number of bugs fixed.
66     - Removed mode option as it just caused confusion.
67     - Removed volatile option as it is pretty useless (use locking instead)
68     - Locking now implicitly enables autoflush
69
70 0.96  Oct 14 09:55:00 2005 Pacific
71     - Fixed build (OS X hidden files killed it)
72     - You can now pass in an optional filehandle to the constructor
73
74 0.95  Oct 12 13:58:00 2005 Pacific
75     - Added optional autobless flag to preserve and restore blessed hashes
76     - Fixed bug where 0 could not be fetched using get_next_key
77     - Fixed bug where tie() constructor didn't accept a hash ref for args
78     - optimize() now preserves user/group/permissions
79     - Errors are now FATAL (meaning it calls die()), unless you set debug flag
80
81 0.94  Apr 13 19:00:26 2004 Pacific
82     - Fixed bug reported by John Cardenas (corruption at key level when
83          replace of less data was done on bucket)
84
85 0.93  Feb 15 19:53:17 2004 Pacific
86     - Fixed optmize() on Win32 where orig file couldn't be overwritten unless
87          filehandle was closed first.  This change introduces a potential race
88          condition when using locking and optmize() on Win32, but it can be 
89          fixed in the future using a soft copy instead of Perl's rename().
90
91 0.92  Feb 12 19:10:22 2004 Pacific
92     - Fixed bug where passing a reference to a different DBM::Deep object
93          would still result in an internal reference.
94     - Added export() method for recursively extracting hashes/arrays into
95          standard in-memory Perl structures.
96     - Added import() method for recursively importing existing Perl hash/
97          array structures
98     - Fixed bug where optimize() wouldn't work if base level of DB was
99          an array instead of a hash.
100
101 0.91  Feb 12 02:30:22 2004 Pacific
102     - Fixed bug with splice() when length of removed section was 0
103     - Updated POD re: circular refs and optimize()
104     - Had to jump version numbers to 0.91 because in previous releases
105          I used only a single digit after the decimal which was confusing
106          the CPAN indexer.
107
108 0.10  Feb 11 08:58:35 2004 Pacific
109     - Fixed bug where default file mode was CLEARING files (Thanks Rich!)
110     - Added experimental support for circular references
111     - Fixed bugs in shift(), unshift() and splice() where nested objects
112         in array would be recursively re-stored as basic hashes/arrays
113     - Fixed typos in POD docs
114
115 0.9   Feb 10 03:25:48 2004 Pacific
116     - Added Filters for storing/fetching keys/values
117     - Added hook for supplying own hashing algorithm
118     - FIxed some typos in POD docs, added new sections
119
120 0.8   Feb 8 02:38:22 2004 Pacific
121     - Renamed to DBM::Deep for CPAN
122     - Added optimize() method for rekindling unused space
123     - Now returning hybrid tie()/OO object from new()
124     - Basic error handling introduced
125     - Added debug mode for printing errors to STDERR
126     - Added TYPE_HASH and TYPE_ARRAY constants for "type" param
127     - Added clone() method for safe copying of objects
128     - Wrote POD documentation
129     - Added set_pack() function for manipulating LONG_SIZE / LONG_PACK
130     - Added aliases for most tied functions for public use
131     - Now setting binmode() on FileHandle for Win32
132     - Added 45 unit tests
133
134 0.7   Jan 4 11:31:50 2003 UTC
135     - Renamed to DeepDB
136     - Changed file signature to DPDB (not compatible with older versions)
137     - Converted array length to packed long instead of sprintf()ed string
138
139 0.6   Dec 31 15:12:03 2002 UTC
140     - Some misc optimizations for speed
141
142 0.5   Oct 18 08:55:29 2002 UTC
143     - support for force_return_next parameter in traverse_index() method for 
144       ultra-fast combined key search/removal
145
146 0.4   Oct 15 20:07:47 2002 UTC
147     - now making sure filehandle is open for all DB calls
148
149 0.3   Oct 3 19:04:13 2002 UTC
150     - fixed bug that could cause corrupted data when using locking
151
152 0.2   Aug 6 16:37:32 2002 UTC
153     - Removed base index caching, as it can cause problems when two processes 
154       are populating the db at the same time (even with locking)
155
156 0.1   Jun 3 08:06:26 2002 UTC
157     - initial release