diff --git a/README.md b/README.md index 4ef79129..8fa0151c 100644 --- a/README.md +++ b/README.md @@ -240,6 +240,8 @@ idUtils.verifyClaim(claim) * [.spaces](#Box+spaces) * [.openSpace(name, opts)](#Box+openSpace) ⇒ [Space](#Space) * [.onSyncDone(syncDone)](#Box+onSyncDone) + * [.linkAccount(type)](#Box+linkAccount) + * [.isAccountLinked(type)](#Box+isAccountLinked) * [.logout()](#Box+logout) * _static_ * [.idUtils](#Box.idUtils) @@ -327,6 +329,28 @@ Sets the callback function that will be called once when the db is fully synced. | --- | --- | --- | | syncDone | function | The function that will be called | + + +#### box.linkAccount(type) +Creates a proof that links an external account to the 3Box account of the user. + +**Kind**: instance method of [Box](#Box) + +| Param | Type | Description | +| --- | --- | --- | +| type | String | The type of link (default 'ethereum') | + + + +#### box.isAccountLinked(type) +Checks if there is a proof that links an external account to the 3Box account of the user. + +**Kind**: instance method of [Box](#Box) + +| Param | Type | Description | +| --- | --- | --- | +| type | String | The type of link (default ethereum) | + #### box.logout() diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index a036ecf6..e6158003 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,9 @@ # Release Notes +## v1.8.2 - 2019-05-21 +* Fix: Link profile when opening space and haven't used public store +* Feat: Add the ability to manually check and add account linking + ## v1.8.1 - 2019-05-16 * Fix: Resolved issue with `getVerifiedAccounts` returning an empty objec diff --git a/package.json b/package.json index 8fc09d4d..fe446cb8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "3box", - "version": "1.8.1", + "version": "1.8.2", "description": "Interact with user data", "main": "lib/3box.js", "directories": { @@ -8,7 +8,7 @@ }, "scripts": { "lint": "./node_modules/.bin/standard --verbose src/**", - "test": "rm -rf ./tmp ; jest --detectOpenHandles --coverage --runInBand --testURL=\"http://localhost\"", + "test": "rm -rf ./tmp ; jest --forceExit --coverage --runInBand --testURL=\"http://localhost\"", "build:es5": "rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --ignore=src/__tests__/,src/__mocks__/", "build:dist": "./node_modules/.bin/webpack --config webpack.config.js --mode=development", "build:dist:dev": "./node_modules/.bin/webpack --config webpack.dev.config.js --mode=development",