Changelog History
-
v1.0.0 Changes
August 31, 2017๐ First stable release ๐ ๐
Thanks to all the people who have contributed to lowdb!
โก๏ธ If you've already updated Lowdb to
v0.17
, you have nothing to change. -
v0.17.2 Changes
August 23, 2017- ๐ Fix
FileAsync
adapter #209
- ๐ Fix
-
v0.17.1
August 20, 2017 -
v0.17.0 Changes
August 20, 2017๐ฅ Breaking changes
low()
function has been updated to be more explicit and fully storage agnostic. It now expects an adapter to be passed.Also, when using async file storage,
low()
will now return a Promise, making it truely asyncrhonous, rather than the database instance.tl;dr
โก๏ธ See Examples page for updated code samples.
Migration guide
// 0.16const db = low('db.json')// 0.17const low = require('lowdb')const FileSync = require('lowdb/adapters/FileSync')const adapter = new FileSync('db.json')const db = low(adapter)
โก๏ธ The rest of lowdb API is unchanged, database instance creation is the only part of your code that needs to be updated.
Adapters
Lowdb comes bundled with 4 adapters:
lowdb/adapters/FileSync
lowdb/adapters/FileAsync
lowdb/adapters/LocalStorage
lowdb/adapters/Memory
Special thanks to @yeskunall for the help!
-
v0.16.2
April 09, 2017 -
v0.16.1
April 09, 2017 -
v0.16.0 Changes
March 09, 2017๐ In this release,
json-parse-helpfulerror
is not included by default anymore due to issues with WebPack #153.๐ง That said, you can still configure lowdb to use it:
const low = require('lowdb')const jph = require('json-parse-helpfulerror');const db = low('db.json', { format: { stringify: JSON.stringify, parse: jph.parse } })
-
v0.15.5
February 15, 2017 -
v0.15.4
February 08, 2017 -
v0.15.3
February 08, 2017