Skip to content

Releases: lr0pb/IDB.js

v2.1.0

11 Mar 16:12
Compare
Choose a tag to compare

🛠️ 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 and Key to short version T & K
  • remove showErrorsAsLogs property from IDBOptions
  • 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

30 Jan 22:59
Compare
Choose a tag to compare

📝 Fixes in package distribution

  • remove tests output folder from package build
  • fix that types declaration file was not contain in package
  • change version tags pattern from v.2.x.x to v2.x.x

v.2.0.4

30 Jan 17:04
Compare
Choose a tag to compare

🚀 Publish package to NPM

IDB.js now available via npm

npm install @lr0pb/idb

v.2.0.3

13 Jan 11:53
Compare
Choose a tag to compare

🛠️ Patch db.get call with multiple keys

  • fix that db.get when call with multiple keys but it is actually 1 key in array return requested item instead return it as alone item in array
  • rename package's iife build in /out from IDB.worker.js to IDB.iife.js

    As of 2.0.4 onwards package builds publish only on npm

v.2.0.2

11 Jan 20:09
Compare
Choose a tag to compare

🛠️ Patch db.onDataUpdate calls listeners after deleting events

  • fix that db.onDataUpdate not call listeners when delete and deleteAll events happened in the listened store

v.2.0.1

02 Oct 14:38
Compare
Choose a tag to compare

🛠️ Patch items receiving methods

  • fix db.get return empty array instead of undefined for item that not exist
  • fix db.get for multiple items return only items that exist instead of mixed values array that contains undefined 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

01 Oct 18:22
Compare
Choose a tag to compare

🔬 Simplify data related actions and rewrite everything to TypeScript

Breaking changes:

  • db.setItem renamed to db.set
  • db.getItem renamed to db.get
  • db.hasItem renamed to db.has
  • db.updateItem renamed to db.update
  • db.deleteItem renamed to db.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

02 Sep 19:17
Compare
Choose a tag to compare

📜 Huge README.md update

Update README.md file API section generation. Return boolean in db.onDataUpdate that represents is listener was registered or not

v.1.0.0

02 Sep 11:49
Compare
Choose a tag to compare

📦 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