Releases: lr0pb/IDB.js
Releases · lr0pb/IDB.js
v2.1.0
🛠️ Accidents create progress
While working on React integration I accidentally push experimental version as latest
tag on NPM. So, I decide to cut of React content from this release and push normal 2.1.0
over expermental one
- update all type parameters from
Type
andKey
to short versionT
&K
- remove
showErrorsAsLogs
property fromIDBOptions
- Important: remove
| void
part from method response types (if this isn't the behavior of the method) and this methods now just throws errors when something is wrong
v2.0.5
v.2.0.4
v.2.0.3
🛠️ Patch db.get call with multiple keys
v.2.0.2
v.2.0.1
🛠️ Patch items receiving methods
- fix
db.get
return empty array instead ofundefined
for item that not exist - fix
db.get
for multiple items return only items that exist instead of mixed values array that containsundefined
for keys by which items are not exists - fix
db.getAll
return undefined when store is empty instead of empty array
v.2.0.0
🔬 Simplify data related actions and rewrite everything to TypeScript
Breaking changes:
db.setItem
renamed todb.set
db.getItem
renamed todb.get
db.hasItem
renamed todb.has
db.updateItem
renamed todb.update
db.deleteItem
renamed todb.delete
All new methods support second argument
to be an array of items/item keys
to manipulate with mulptiple items inside one transaction
All API
docs now generated from source code by TypeDoc
and live on GitHub Pages
Add tests for most use cases. Its source code available in test/mocha.test.js
v.1.0.1
v.1.0.0
📦 Publish first vesion of IDB.js
Release contains basic functionality like writing and reading items to and from database
db.setItem
db.getItem
db.getAll
db.hasItem
db.updateItem
Also some additional useful things:
- callback for
db.getAll
function for progressivelly read all items from store - set listeners for data updates in stores via
db.onDataUpdate