Changelog History
Page 1
-
v2.0.0
June 20, 2019🚀 BadgerDB has changed a lot over the latest year so we released a new version with a brand new API.
⬆️ BadgerDB v2.0.0 corresponds to the current status of
master
as June 20th, so if you're usinglatest
you should not have any issues upgrading.Read our CHANGELOG for more details on the exact changes.
🆕 New features
The main new features are:
- The Stream framework has been migrated from Dgraph into BadgerDB.
- A new StreamWriter was added for concurrent writes for sorted streams.
- You can now subscribe to changes in a DB with the DB.Subscribe method.
- 🏗 A new builder API has been added to reduce the boiler plate related to badger.Options.
💥 Breaking API changes
The following changes might impact your code:
- 🔀
badger.ManagedDB
has been deprecated and merged intobadger.DB
. You can still use badger.OpenManaged. - 🚚 The
badger.Options.DoNotCompact
option has been removed. - 0️⃣
badger.DefaultOptions
andbadger.LSMOnlyOptions
are now functions that receive a directory path as a parameter. - 🏗 All the methods on
badger.Txn
with name starting inSetWith
have been deprecated and replaced with a builder API for type badger.Entry. - badger.Item.Value now receives a function that returns an error.
- badger.Txn.Commit doesn't receive any params anymore.
- badger.DB.Tables now accepts a boolean to decide whether keys should be counted.
Others
Many new commands and flags have been added to the
badger
CLI tool, read the CHANGELOG for more details. -
v2.0.0-rc3
August 09, 2019 -
v2.0.0-rc.2
June 20, 2019 -
v2.0.0-rc2
June 25, 2019 -
v2.0.0-rc1
June 20, 2019🚀 BadgerDB has changed a lot over the latest year so we released a new version with a brand new API.
⬆️ BadgerDB v2.0.0 corresponds to the current status of
master
as June 20th, so if you're usinglatest
you should not have any issues upgrading.Read our CHANGELOG for more details on the exact changes.
🆕 New features
The main new features are:
- The Stream framework has been migrated from Dgraph into BadgerDB.
- A new StreamWriter was added for concurrent writes for sorted streams.
- You can now subscribe to changes in a DB with the DB.Subscribe method.
- 🏗 A new builder API has been added to reduce the boiler plate related to badger.Options.
💥 Breaking API changes
The following changes might impact your code:
- 🔀
badger.ManagedDB
has been deprecated and merged intobadger.DB
. You can still use badger.OpenManaged. - 🚚 The
badger.Options.DoNotCompact
option has been removed. - 0️⃣
badger.DefaultOptions
andbadger.LSMOnlyOptions
are now functions that receive a directory path as a parameter. - 🏗 All the methods on
badger.Txn
with name starting inSetWith
have been deprecated and replaced with a builder API for type badger.Entry. - badger.Item.Value now receives a function that returns an error.
- badger.Txn.Commit doesn't receive any params anymore.
- badger.DB.Tables now accepts a boolean to decide whether keys should be counted.
Others
Many new commands and flags have been added to the
badger
CLI tool, read the CHANGELOG for more details. -
v1.6.0
July 03, 2019🚀 This is a release including almost 200 commits, so expect many changes - some of them not backward compatible.
Regarding backward compatibility in Badger versions, you might be interested on reading [VERSIONING.md](VERSIONING.md).
Note: The hashes in parentheses correspond to the commits that impacted the given feature.
🆕 New APIs
badger.DB
- DropPrefix (291295e)
- Flatten (7e41bba)
- KeySplits (4751ef1)
- MaxBatchCount (b65e2a3)
- MaxBatchSize (b65e2a3)
- PrintKeyValueHistogram (fd59907)
- Subscribe (26128a7)
- Sync (851e462)
0️⃣ badger.DefaultOptions() and badger.LSMOnlyOptions() (91ce687)
- badger.Options.WithX methods
badger.Entry (e9447c9)
- NewEntry
- WithMeta
- WithDiscard
- WithTTL
badger.Item
- KeySize (fd59907)
- ValueSize (5242a99)
badger.IteratorOptions
- PickTable (7d46029, 49a49e3)
- Prefix (7d46029)
badger.Logger (fbb2778)
badger.Options
- CompactL0OnClose (7e41bba)
- Logger (3f66663)
- LogRotatesToFlush (2237832)
badger.Stream (14cbd89, 3258067)
badger.StreamWriter (7116e16)
badger.TableInfo.KeyCount (fd59907)
badger.TableManifest (2017987)
badger.Tx.NewKeyIterator (49a49e3)
badger.WriteBatch (6daccf9, 7e78e80)
Modified APIs
💥 Breaking changes:
- 0️⃣ badger.DefaultOptions and badger.LSMOnlyOptions are now functions rather than variables (91ce687)
- badger.Item.Value now receives a function that returns an error (439fd46)
- badger.Txn.Commit doesn't receive any params now (6daccf9)
- badger.DB.Tables now receives a boolean (76b5341)
Not breaking changes:
- badger.LSMOptions changed values (799c33f)
- badger.DB.NewIterator now allows multiple iterators per RO txn (41d9656)
- 0️⃣ badger.Options.TableLoadingMode's new default is options.MemoryMap (6b97bac)
✂ Removed APIs
- badger.ManagedDB (d22c0e8)
- badger.Options.DoNotCompact (7e41bba)
- badger.Txn.SetWithX (e9447c9)
Tools:
- badger bank disect (13db058)
- ✅ badger bank test (13db058) --mmap (03870e3)
- badger fill (7e41bba)
- badger flatten (7e41bba)
- badger info --histogram (fd59907) --history --lookup --show-keys --show-meta --with-prefix (09e9b63) --show-internal (fb2eed9)
- badger benchmark read (239041e)
- badger benchmark write (6d3b67d)
-
v1.6.0-rc1
June 27, 2019 -
v1.5.5
June 20, 2019➕ Adding support for Go modules
🚀 This will probably be the last v1.x version released, as we're also releasing v2.0.0 very soon.
-
v1.5.4
September 19, 2018 -
v1.5.3
July 11, 2018🐛 Bug Fixes:
- 🛠 Fix a panic caused due to item.vptr not copying over vs.Value, when looking
🚚 for a move key.
- 🛠 Fix a panic caused due to item.vptr not copying over vs.Value, when looking