Skip to content

Commit

Permalink
bump version to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Nov 7, 2017
1 parent c64384d commit 58f9bd0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -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>"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 58f9bd0

Please sign in to comment.