git.iko.soy/purescript-indexed-DB
on master help sign in
bump version to 3.0.0
commit58f9bd0fa57ec173cb6058d9385e5e49735095c8 authorKtorZ <matthias.benkort@gmail.com> dateTue 7 Nov 2017, 09:55 (9 years ago) parentc64384d
3 files changed+8−4
README.md+6−2 bower.json+1−1 package.json+1−1
README.md+6−2
@@ -26,8 +26,8 @@ main = launchAff' do
2626 log $ maybe "not found" id val
2727
2828
29−onUpgradeNeeded :: forall e. Database -> Transaction -> Eff (idb :: IDB, exception :: EXCEPTION | e) Unit
30−onUpgradeNeeded db _ = launchAff' do
29+onUpgradeNeeded :: forall e. Database -> Transaction -> { oldVersion :: Int } -> Eff (idb :: IDB, exception :: EXCEPTION | e) Unit
30+onUpgradeNeeded db _ _ = launchAff' do
3131 store <- IDBDatabase.createObjectStore db "store" IDBObjectStore.defaultParameters
3232 _ <- IDBObjectStore.add store "patate" (Just 1)
3333 _ <- IDBObjectStore.add store { property: 42 } (Just 2)
@@ -51,6 +51,10 @@ one.
5151
5252## Changelog
5353
54+#### v3.0.0
55+
56+- callback to `onUpgradeNeeded` event now provide a record with the database old version.
57+
5458#### v2.0.0
5559
5660- review interface implementation (use of opaque classes to improve readability without compromising
bower.json+1−1
@@ -1,7 +1,7 @@
11{
22 "name": "purescript-indexeddb",
33 "description": "An API wrapper around IndexedDB",
4− "version": "2.0.1",
4+ "version": "3.0.0",
55 "authors": [
66 "Matthias Benkort <matthias.benkort@truqu.com>"
77 ],
package.json+1−1
@@ -1,6 +1,6 @@
11{
22 "name": "purescript-indexeddb",
3− "version": "2.0.1",
3+ "version": "3.0.0",
44 "description": "A wrapper around the IndexedDB API",
55 "scripts": {
66 "prepare:release": "mkdir -p releases/github && cp -r README.md LICENSE src bower.json releases/github",