r8199@h460878c2 (orig r10013): rkinyon | 2007-09-28 12:05:34 -0400
[dbsrgits/DBM-Deep.git] / Changes
1 Revision history for DBM::Deep.
2
3 1.0004 Sep 28 12:15:00 2007 EDT
4     - (This version is compatible with 1.0003)
5     - Fixed the Changes file (wrong version was displayed for 1.0003)
6     - Added filter sugar methods to be more API-compatible with other DBMs
7       - This was added to support a patch provided to IO::All so it can
8         use DBM::Deep as a DBM provider.
9     - Implemented _dump_file in order to display the file structure. As a
10       result, the following bugs were fixed:
11       - Arrays and hashes now clean up after themselves better.
12       - Bucketlists now clean up after themselves better.
13       - Reindexing properly clears the old bucketlist before freeing it.
14
15 1.0003 Sep 24 14:00:00 2007 EDT
16     - THIS VERSION IS INCOMPATIBLE WITH FILES FROM ALL OTHER PRIOR VERSIONS.
17     - Further fixes for unshift/shift/splice and references (RT# 29583)
18     - To fix that, I had to put support for real references in.
19       - the 16 and 22 tests are now re-enabled.
20       - Yes, this means that real references work. See t/45_references.t
21
22 1.0002 Sep 20 22:00:00 2007 EDT
23     - (This version is compatible with 1.0001)
24     - Expanded _throw_error() so that it provides better information.
25       (Thanks brian d foy!)
26     - Fixed how shift, unshift, and splice work when there are references
27       being moved. It now no longer dies.
28     - Added diag in t/17_import.t to note that the failing tests on blead
29       are due to Clone being broken, not DBM::Deep. The tests will still
30       fail because I don't want users to install something that's broken
31       and deal with those bug reports.
32
33 1.0001 Mar 12 16:15:00 2007 EDT
34     - (This version is compatible with 1.0000)
35     - Added a missing dependency on IO::Scalar (RT #25387)
36     - Fixed how t/44_upgrade_db.t and utils/upgrade_db.pl worked
37       - utils/upgrade_db.pl now uses #!perl, not #!/usr/bin/perl
38       - t/44_upgrade_db.t now explicitly calls $^X
39         (Thanks merlyn!)
40
41 1.0000 Feb 26 22:30:00 2007 EST
42     - THIS VERSION IS INCOMPATIBLE WITH FILES FROM ALL OTHER PRIOR VERSIONS.
43       - To aid in this form of upgrades, DBM::Deep now checks the file format
44         version to make sure that it knows how to read it.
45       - db_upgrade.pl was added to utils/. This will -NOT- install onto
46         your system. This is deliberate.
47       - db_upgrade.pl will not handle developer release file formats. This
48         is due to the fact that all developer releases in preparation for a
49         given release share the same file version, even though the file
50         format may change. This is deliberate.
51     - Importing no longer takes place within a transaction
52     - The following parameters were added:
53       - data_sector_size - this determines the default size of a data sector.
54     - Correctly handle opening readonly files
55
56 0.99_04 Jan 24 22:30:00 2007 EST
57     - Added the missing lib/DBM/Deep.pod file to the MANIFEST
58     - Fixed a poorly-designed test that was failing depending on what Clone::Any
59       was using.
60     - All "use 5.6.0;" lines are now "use 5.006_000;" to avoid warnings about
61       unsupported vstrings in 5.9.x
62
63 0.99_03 Jan 23 22:30:00 2007 EST
64     - THIS VERSION IS INCOMPATIBLE WITH FILES FROM ALL OTHER PRIOR VERSIONS.
65       - The fileformat changed completely. I will be writing a converter, but
66         it's not there right now. Do NOT expect that this module will
67         correctly detect older versions and handle them sanely. Sanity will be
68         there for 1.00, but we're not there yet, are we?
69     - Converted to use FileHandle::Fmode to handle filehandle status checks
70     - Fixed bug with deleting already-deleted items on Win32 (reported by Nigel Sandever)
71     - The guts of how transactions work has been rewritten to better handle
72       some edgecases. This required a complete rewrite of the engine.
73     - Freespace management is now in place. It's not perfect, but it's there.
74     - The rewrite of the engine required a rewrite of how first_key/next_key
75       was implemented. This should result in significant speed improvements.
76     - Self-reference has been removed. This means you cannot do:
77           $db->{foo} = { x => 'y' };
78           $db->{bar} = $db->{foo};
79       I hope to be able to return this functionality by 1.00, but I cannot
80       promise anything. To do this properly, it requires refcounting in order
81       to correctly handle deletions and transactions. Once you move away from
82       a simple tree, everything becomes really hard.
83
84 0.99_02 Apr 28 05:00:00 2006 Pacific
85     - Added missing file to the MANIFEST
86
87 0.99_01 Apr 27 18:00:00 2006 Pacific
88     - Added explicit dependency on Perl 5.6.0
89       - Digest::MD5 requires 5.6.0
90       - Sub::Uplevel (dep of Test::Exception) requires 5.6.0
91     - Removed error()/clear_error()
92       - All error-handling is done with die()
93     - Broke out DBM::Deep's code into DBM::Deep::Engine
94     - Tied variables can no longer be assigned to a DBM::Deep object.
95       - This includes cross-file assignments.
96     - Autovivification now works
97       - This is a consequence of the fact that all assignments are tied.
98     - set_pack() and set_digest() have been removed.
99       - Instead, you will now pass the appropriate values into new()
100       - A pack_size parameter has been added to make 64-bit files easier
101     - Transactions now work
102
103 0.983 Apr 10 20:00:00 2006 Pacific
104     - Added patch inspired by Jeff Janes (Thanks!)
105       - Autovivification now works correctly
106       - The following now works correctly
107         my %hash = ( a => 1 );
108         $db->{hash} = \%hash;
109         $hash{b} = 2;
110         cmp_ok( $db->{hash}{b}, '==', 2 );
111     - (RT#18530) - DBM::Deep now plays nicely with -l
112
113 0.982 Mar 08 11:00:00 2006 Pacific
114     - Fixed smoketests that were failing on Win32
115     - Added restriction for Perl 5.6.0 or higher.
116       - Digest::MD5 and Sub::Uplevel (dep of Test::Exception) require 5.6+
117
118 0.981 Mar 06 11:00:00 2006 Pacific
119     - (RT#17947) - Fixed test that was failing on older Perls
120
121 0.98  Feb 28 11:00:00 2006 Pacific
122     - Added in patch by David Cantrell to allow use of DATA filehandle
123     - Fixed bug where attempting to export() a structure that used autobless would die
124     - Fixed arraytest slowness by localizing $SIG{__DIE__} to prevent Test::Builder's
125       $SIG{__DIE__} from being called. (q.v. http://perldoc.perl.org/functions/eval.html)
126     - More methods have been made private:
127         - root() is now _root()
128         - base_offset() is now _base_offset()
129         - fh() is now _fh()
130         - type() is now _type()
131         - precalc_sizes() is now _precalc_sizes()
132
133 0.97  Feb 24 10:00:00 2006 Pacific
134     - Reorganization of distribution to a more standard layout
135     - Migration to Module::Build with EU::MM backwards compatibility
136     - Migration of all tests to use Test::More and Test::Exception
137     - Added Devel::Cover report to DBM::Deep POD
138       - Test coverage improved to 89.6% (and climbing)
139     - The following methods have been renamed to reflect their private nature:
140         - init() is now _init()
141         - open() is now _open()
142         - close() is now _close()
143         - load_tag() is now _load_tag()
144         - index_lookup() is now _index_lookup()
145         - add_bucket() is now _add_bucket()
146         - get_bucket_value() is now _get_bucket_value()
147         - delete_bucket() is now _delete_bucket()
148         - bucket_exists() is now _bucket_exists()
149         - find_bucket_list() is now _find_bucket_list()
150         - traverse_index() is now _traverse_index()
151         - get_next_key() is now _get_next_key()
152         - copy_node() is now _copy_node()
153         - throw_error() is now _throw_error()
154     - The various tied classes have been broken out. This means that testing
155         "ref( $obj ) eq 'DBM::Deep'" will now fail. The correct test is
156         "eval { $obj->isa( 'DBM::Deep' ) }".
157     - The various methods like push and delete now have the same return values as
158       the standard builtins.
159     - TIEARRAY and TIEHASH now check their parameters more thoroughly
160     - Negative indices for arrays works as expected, including throwing the appropriate
161       errors.
162     - RT #16877 is fixed (DBM::Deep broken with Perl 5.9.3+).
163     - RT #14893 is fixed (tie() and new() use different parameter lists).
164     - A bug with optimize and threading is fixed.
165     - autobless has received some attention, resulting in a number of bugs fixed.
166     - Removed mode option as it just caused confusion.
167     - Removed volatile option as it is pretty useless (use locking instead)
168     - Locking now implicitly enables autoflush
169
170 0.96  Oct 14 09:55:00 2005 Pacific
171     - Fixed build (OS X hidden files killed it)
172     - You can now pass in an optional filehandle to the constructor
173
174 0.95  Oct 12 13:58:00 2005 Pacific
175     - Added optional autobless flag to preserve and restore blessed hashes
176     - Fixed bug where 0 could not be fetched using get_next_key
177     - Fixed bug where tie() constructor didn't accept a hash ref for args
178     - optimize() now preserves user/group/permissions
179     - Errors are now FATAL (meaning it calls die()), unless you set debug flag
180
181 0.94  Apr 13 19:00:26 2004 Pacific
182     - Fixed bug reported by John Cardenas (corruption at key level when
183          replace of less data was done on bucket)
184
185 0.93  Feb 15 19:53:17 2004 Pacific
186     - Fixed optmize() on Win32 where orig file couldn't be overwritten unless
187          filehandle was closed first.  This change introduces a potential race
188          condition when using locking and optmize() on Win32, but it can be 
189          fixed in the future using a soft copy instead of Perl's rename().
190
191 0.92  Feb 12 19:10:22 2004 Pacific
192     - Fixed bug where passing a reference to a different DBM::Deep object
193          would still result in an internal reference.
194     - Added export() method for recursively extracting hashes/arrays into
195          standard in-memory Perl structures.
196     - Added import() method for recursively importing existing Perl hash/
197          array structures
198     - Fixed bug where optimize() wouldn't work if base level of DB was
199          an array instead of a hash.
200
201 0.91  Feb 12 02:30:22 2004 Pacific
202     - Fixed bug with splice() when length of removed section was 0
203     - Updated POD re: circular refs and optimize()
204     - Had to jump version numbers to 0.91 because in previous releases
205          I used only a single digit after the decimal which was confusing
206          the CPAN indexer.
207
208 0.10  Feb 11 08:58:35 2004 Pacific
209     - Fixed bug where default file mode was CLEARING files (Thanks Rich!)
210     - Added experimental support for circular references
211     - Fixed bugs in shift(), unshift() and splice() where nested objects
212         in array would be recursively re-stored as basic hashes/arrays
213     - Fixed typos in POD docs
214
215 0.9   Feb 10 03:25:48 2004 Pacific
216     - Added Filters for storing/fetching keys/values
217     - Added hook for supplying own hashing algorithm
218     - FIxed some typos in POD docs, added new sections
219
220 0.8   Feb 8 02:38:22 2004 Pacific
221     - Renamed to DBM::Deep for CPAN
222     - Added optimize() method for rekindling unused space
223     - Now returning hybrid tie()/OO object from new()
224     - Basic error handling introduced
225     - Added debug mode for printing errors to STDERR
226     - Added TYPE_HASH and TYPE_ARRAY constants for "type" param
227     - Added clone() method for safe copying of objects
228     - Wrote POD documentation
229     - Added set_pack() function for manipulating LONG_SIZE / LONG_PACK
230     - Added aliases for most tied functions for public use
231     - Now setting binmode() on FileHandle for Win32
232     - Added 45 unit tests
233
234 0.7   Jan 4 11:31:50 2003 UTC
235     - Renamed to DeepDB
236     - Changed file signature to DPDB (not compatible with older versions)
237     - Converted array length to packed long instead of sprintf()ed string
238
239 0.6   Dec 31 15:12:03 2002 UTC
240     - Some misc optimizations for speed
241
242 0.5   Oct 18 08:55:29 2002 UTC
243     - support for force_return_next parameter in traverse_index() method for 
244       ultra-fast combined key search/removal
245
246 0.4   Oct 15 20:07:47 2002 UTC
247     - now making sure filehandle is open for all DB calls
248
249 0.3   Oct 3 19:04:13 2002 UTC
250     - fixed bug that could cause corrupted data when using locking
251
252 0.2   Aug 6 16:37:32 2002 UTC
253     - Removed base index caching, as it can cause problems when two processes 
254       are populating the db at the same time (even with locking)
255
256 0.1   Jun 3 08:06:26 2002 UTC
257     - initial release