diff --git a/CHANGELOG.md b/CHANGELOG.md index 6eb357f..9fb9473 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.7.21] - 2024-07-16 +## [0.7.22] - 2024-07-18 +### Updated +- Do not cache device id + +## [0.7.21] - 2024-07-18 ### Fixed - Handle missing project entropy diff --git a/examples/apps/auth-sample/package.json b/examples/apps/auth-sample/package.json index 338cd5d..e2a8f98 100644 --- a/examples/apps/auth-sample/package.json +++ b/examples/apps/auth-sample/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@heroicons/react": "^2.0.13", - "@openfort/openfort-js": "0.7.21", + "@openfort/openfort-js": "0.7.22", "@openfort/openfort-node": "^0.6.62", "@radix-ui/react-toast": "^1.1.2", "@rainbow-me/rainbowkit": "^2.1.1", diff --git a/packages/platform-bridge/package.json b/packages/platform-bridge/package.json index dc42831..6b6cc21 100644 --- a/packages/platform-bridge/package.json +++ b/packages/platform-bridge/package.json @@ -2,7 +2,7 @@ "name": "@openfort/platform-bridge", "version": "0.0.0", "dependencies": { - "@openfort/openfort-js": "0.7.21", + "@openfort/openfort-js": "0.7.22", "ethers": "^5.7.0" }, "devDependencies": { diff --git a/sdk/package.json b/sdk/package.json index e5b11e4..2191085 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@openfort/openfort-js", - "version": "0.7.21", + "version": "0.7.22", "author": "Openfort (https://www.openfort.xyz)", "bugs": "https://github.com/openfort-xyz/openfort-js/issues", "repository": "openfort-xyz/openfort-js.git", diff --git a/sdk/src/instanceManager.ts b/sdk/src/instanceManager.ts index 3fef04b..875f3d2 100644 --- a/sdk/src/instanceManager.ts +++ b/sdk/src/instanceManager.ts @@ -5,7 +5,6 @@ import { SDKConfiguration } from './config'; import { SignerType } from './signer/signer'; import { authTokenStorageKey, - deviceIDStorageKey, accountTypeStorageKey, accountAddressStorageKey, chainIDStorageKey, @@ -261,19 +260,14 @@ export default class InstanceManager { public setDeviceID(deviceID: string): void { this.deviceID = deviceID; - this.persistentStorage.save(deviceIDStorageKey, deviceID); } public getDeviceID(): string | null { - if (!this.deviceID) { - this.deviceID = this.persistentStorage.get(deviceIDStorageKey); - } return this.deviceID; } public removeDeviceID(): void { this.deviceID = null; - this.persistentStorage.remove(deviceIDStorageKey); } public setChainID(chainId: string): void { diff --git a/sdk/src/version.ts b/sdk/src/version.ts index 7093a41..71bdc65 100644 --- a/sdk/src/version.ts +++ b/sdk/src/version.ts @@ -1,2 +1,2 @@ -export const VERSION = '0.7.21'; +export const VERSION = '0.7.22'; export const PACKAGE = '@openfort/openfort-js'; diff --git a/yarn.lock b/yarn.lock index 8b8e0ad..5c5f3f7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1403,7 +1403,7 @@ __metadata: languageName: unknown linkType: soft -"@openfort/openfort-js@0.7.21, @openfort/openfort-js@workspace:sdk": +"@openfort/openfort-js@0.7.22, @openfort/openfort-js@workspace:sdk": version: 0.0.0-use.local resolution: "@openfort/openfort-js@workspace:sdk" dependencies: @@ -1458,7 +1458,7 @@ __metadata: version: 0.0.0-use.local resolution: "@openfort/platform-bridge@workspace:packages/platform-bridge" dependencies: - "@openfort/openfort-js": 0.7.21 + "@openfort/openfort-js": 0.7.22 eslint: ^8.40.0 ethers: ^5.7.0 parcel: ^2.8.3