bump version to 3.0.0

This commit is contained in:
KtorZ 2017-11-07 09:55:33 +01:00
parent c64384da82
commit 58f9bd0fa5
No known key found for this signature in database
GPG Key ID: 3F72E8BC2894C015
3 changed files with 8 additions and 4 deletions

View File

@ -26,8 +26,8 @@ main = launchAff' do
log $ maybe "not found" id val
onUpgradeNeeded :: forall e. Database -> Transaction -> Eff (idb :: IDB, exception :: EXCEPTION | e) Unit
onUpgradeNeeded db _ = launchAff' do
onUpgradeNeeded :: forall e. Database -> Transaction -> { oldVersion :: Int } -> Eff (idb :: IDB, exception :: EXCEPTION | e) Unit
onUpgradeNeeded db _ _ = launchAff' do
store <- IDBDatabase.createObjectStore db "store" IDBObjectStore.defaultParameters
_ <- IDBObjectStore.add store "patate" (Just 1)
_ <- IDBObjectStore.add store { property: 42 } (Just 2)
@ -51,6 +51,10 @@ one.
## Changelog
#### v3.0.0
- callback to `onUpgradeNeeded` event now provide a record with the database old version.
#### v2.0.0
- review interface implementation (use of opaque classes to improve readability without compromising

View File

@ -1,7 +1,7 @@
{
"name": "purescript-indexeddb",
"description": "An API wrapper around IndexedDB",
"version": "2.0.1",
"version": "3.0.0",
"authors": [
"Matthias Benkort <matthias.benkort@truqu.com>"
],

View File

@ -1,6 +1,6 @@
{
"name": "purescript-indexeddb",
"version": "2.0.1",
"version": "3.0.0",
"description": "A wrapper around the IndexedDB API",
"scripts": {
"prepare:release": "mkdir -p releases/github && cp -r README.md LICENSE src bower.json releases/github",