@0xsequence/dapp-client 3.0.0-beta.2 → 3.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > @0xsequence/dapp-client@3.0.0-beta.2 build /Users/taylan/Development/Horizon/sequence.js/packages/wallet/dapp-client
3
+ > @0xsequence/dapp-client@3.0.0-beta.3 build /Users/taylan/Development/Horizon/sequence.js/packages/wallet/dapp-client
4
4
  > tsc
5
5
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @0xsequence/dapp-client
2
2
 
3
+ ## 3.0.0-beta.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 3.0.0-beta.3 with fixes
8
+ - Updated dependencies
9
+ - @0xsequence/guard@3.0.0-beta.3
10
+ - @0xsequence/relayer@3.0.0-beta.3
11
+ - @0xsequence/wallet-core@3.0.0-beta.3
12
+ - @0xsequence/wallet-primitives@3.0.0-beta.3
13
+
3
14
  ## 3.0.0-beta.2
4
15
 
5
16
  ### Patch Changes
@@ -354,7 +354,7 @@ export class ChainSessionManager {
354
354
  const { userEmail, loginMethod, guard } = connectResponse;
355
355
  const savedRequest = await this.sequenceStorage.peekPendingRequest();
356
356
  const savedPayload = savedRequest?.payload;
357
- const explicitSessionRequested = !!savedPayload?.session;
357
+ const explicitSessionRequested = (savedPayload?.session?.permissions?.length ?? 0) > 0;
358
358
  const implicitSessionRequested = savedPayload?.includeImplicitSession ?? false;
359
359
  const needsTempPk = explicitSessionRequested || implicitSessionRequested;
360
360
  const tempPk = needsTempPk ? await this.sequenceStorage.getAndClearTempSessionPk() : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/dapp-client",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -14,21 +14,21 @@
14
14
  }
15
15
  },
16
16
  "devDependencies": {
17
- "@types/node": "^22.15.29",
18
- "@vitest/coverage-v8": "^3.2.4",
19
- "dotenv": "^16.5.0",
20
- "fake-indexeddb": "^6.0.1",
21
- "happy-dom": "^17.2.2",
22
- "typescript": "^5.8.3",
23
- "vitest": "^3.2.1",
24
- "@repo/typescript-config": "^0.0.0"
17
+ "@types/node": "^24.10.1",
18
+ "@vitest/coverage-v8": "^4.0.14",
19
+ "dotenv": "^17.2.3",
20
+ "fake-indexeddb": "^6.2.5",
21
+ "happy-dom": "^20.0.10",
22
+ "typescript": "^5.9.3",
23
+ "vitest": "^4.0.14",
24
+ "@repo/typescript-config": "^0.0.1-beta.0"
25
25
  },
26
26
  "dependencies": {
27
- "ox": "^0.7.2",
28
- "@0xsequence/guard": "^3.0.0-beta.2",
29
- "@0xsequence/wallet-core": "^3.0.0-beta.2",
30
- "@0xsequence/relayer": "^3.0.0-beta.2",
31
- "@0xsequence/wallet-primitives": "^3.0.0-beta.2"
27
+ "ox": "^0.9.17",
28
+ "@0xsequence/relayer": "^3.0.0-beta.3",
29
+ "@0xsequence/wallet-core": "^3.0.0-beta.3",
30
+ "@0xsequence/guard": "^3.0.0-beta.3",
31
+ "@0xsequence/wallet-primitives": "^3.0.0-beta.3"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsc",
@@ -538,7 +538,7 @@ export class ChainSessionManager {
538
538
  const { userEmail, loginMethod, guard } = connectResponse
539
539
  const savedRequest = await this.sequenceStorage.peekPendingRequest()
540
540
  const savedPayload = savedRequest?.payload as CreateNewSessionPayload | undefined
541
- const explicitSessionRequested = !!savedPayload?.session
541
+ const explicitSessionRequested = (savedPayload?.session?.permissions?.length ?? 0) > 0
542
542
  const implicitSessionRequested = savedPayload?.includeImplicitSession ?? false
543
543
  const needsTempPk = explicitSessionRequested || implicitSessionRequested
544
544
  const tempPk = needsTempPk ? await this.sequenceStorage.getAndClearTempSessionPk() : null