mirror of
https://github.com/ilyakooo0/purescript-indexedDB.git
synced 2024-08-15 18:00:40 +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
|
||||
|
||||
|
||||
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
|
||||
|
@ -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>"
|
||||
],
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user