mirror of
https://github.com/ilyakooo0/purescript-indexedDB.git
synced 2024-09-11 06:55:48 +03:00
bump version to 3.0.0
This commit is contained in:
parent
c64384da82
commit
58f9bd0fa5
@ -26,8 +26,8 @@ main = launchAff' do
|
|||||||
log $ maybe "not found" id val
|
log $ maybe "not found" id val
|
||||||
|
|
||||||
|
|
||||||
onUpgradeNeeded :: forall e. Database -> Transaction -> Eff (idb :: IDB, exception :: EXCEPTION | e) Unit
|
onUpgradeNeeded :: forall e. Database -> Transaction -> { oldVersion :: Int } -> Eff (idb :: IDB, exception :: EXCEPTION | e) Unit
|
||||||
onUpgradeNeeded db _ = launchAff' do
|
onUpgradeNeeded db _ _ = launchAff' do
|
||||||
store <- IDBDatabase.createObjectStore db "store" IDBObjectStore.defaultParameters
|
store <- IDBDatabase.createObjectStore db "store" IDBObjectStore.defaultParameters
|
||||||
_ <- IDBObjectStore.add store "patate" (Just 1)
|
_ <- IDBObjectStore.add store "patate" (Just 1)
|
||||||
_ <- IDBObjectStore.add store { property: 42 } (Just 2)
|
_ <- IDBObjectStore.add store { property: 42 } (Just 2)
|
||||||
@ -51,6 +51,10 @@ one.
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
#### v3.0.0
|
||||||
|
|
||||||
|
- callback to `onUpgradeNeeded` event now provide a record with the database old version.
|
||||||
|
|
||||||
#### v2.0.0
|
#### v2.0.0
|
||||||
|
|
||||||
- review interface implementation (use of opaque classes to improve readability without compromising
|
- review interface implementation (use of opaque classes to improve readability without compromising
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "purescript-indexeddb",
|
"name": "purescript-indexeddb",
|
||||||
"description": "An API wrapper around IndexedDB",
|
"description": "An API wrapper around IndexedDB",
|
||||||
"version": "2.0.1",
|
"version": "3.0.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Matthias Benkort <matthias.benkort@truqu.com>"
|
"Matthias Benkort <matthias.benkort@truqu.com>"
|
||||||
],
|
],
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "purescript-indexeddb",
|
"name": "purescript-indexeddb",
|
||||||
"version": "2.0.1",
|
"version": "3.0.0",
|
||||||
"description": "A wrapper around the IndexedDB API",
|
"description": "A wrapper around the IndexedDB API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare:release": "mkdir -p releases/github && cp -r README.md LICENSE src bower.json releases/github",
|
"prepare:release": "mkdir -p releases/github && cp -r README.md LICENSE src bower.json releases/github",
|
||||||
|
Loading…
Reference in New Issue
Block a user