@dynamic-labs/client 4.75.0 → 4.77.0
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.
- package/CHANGELOG.md +30 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/client/core/core.cjs +5 -0
- package/src/client/core/core.d.ts +4 -0
- package/src/client/core/core.js +5 -0
- package/src/utils/randomString/index.d.ts +1 -0
- package/src/utils/randomString/randomString.cjs +16 -0
- package/src/utils/randomString/randomString.d.ts +7 -0
- package/src/utils/randomString/randomString.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.77.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.76.0...v4.77.0) (2026-04-10)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **midnight:** add types and chain constants ([#10851](https://github.com/dynamic-labs/dynamic-auth/issues/10851)) ([91620d2](https://github.com/dynamic-labs/dynamic-auth/commit/91620d21596c525d8d51ddb0c0ba7df456e3eb64))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* issue when linking new wallet via qr code when there's no active session ([#10878](https://github.com/dynamic-labs/dynamic-auth/issues/10878)) ([53cbae0](https://github.com/dynamic-labs/dynamic-auth/commit/53cbae0806665371e9214663e72e2f1fb7e1ac3f))
|
|
13
|
+
* **lint-staged:** exclude Playwright specs from jest pre-commit hook [DYNT-496] ([#10880](https://github.com/dynamic-labs/dynamic-auth/issues/10880)) ([d3c8a9a](https://github.com/dynamic-labs/dynamic-auth/commit/d3c8a9a59c855bb834dcedf2e18a2bd0eabcb420))
|
|
14
|
+
* **react-core:** exclude password setup cancellations from wallet creation failure metrics ([#10868](https://github.com/dynamic-labs/dynamic-auth/issues/10868)) ([685de16](https://github.com/dynamic-labs/dynamic-auth/commit/685de16f004f282e1b24114c3a18d8c02b7e48aa))
|
|
15
|
+
* **react-native:** adds eip7702 authorization ([#10904](https://github.com/dynamic-labs/dynamic-auth/issues/10904)) ([fa3e41f](https://github.com/dynamic-labs/dynamic-auth/commit/fa3e41f18aeca309c199003781e569bb425dda5d))
|
|
16
|
+
* **react-native:** remove crypto dependency ([#10871](https://github.com/dynamic-labs/dynamic-auth/issues/10871)) ([de4faa5](https://github.com/dynamic-labs/dynamic-auth/commit/de4faa5bd8bbb8fc321ed65f8b6ccfbaff1d00d3))
|
|
17
|
+
* **react-native:** unify session storage ([#10870](https://github.com/dynamic-labs/dynamic-auth/issues/10870)) ([0536ea0](https://github.com/dynamic-labs/dynamic-auth/commit/0536ea0a78f69b9952b21eec38b4868276215b46))
|
|
18
|
+
|
|
19
|
+
## [4.76.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.75.0...v4.76.0) (2026-04-06)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* handle credential_not_enabled_for_sign_in error across all sign-in methods ([#10819](https://github.com/dynamic-labs/dynamic-auth/issues/10819)) ([f694b85](https://github.com/dynamic-labs/dynamic-auth/commit/f694b857eab9d377626078d290473ca369652331))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* modal transition race condition (opacity stuck at 0) ([#10857](https://github.com/dynamic-labs/dynamic-auth/issues/10857)) ([6e9ec68](https://github.com/dynamic-labs/dynamic-auth/commit/6e9ec68040776cc5be333ad20ad0096374947b74))
|
|
30
|
+
* **react-native:** ensure session is correctly mapped ([#10860](https://github.com/dynamic-labs/dynamic-auth/issues/10860)) ([117b013](https://github.com/dynamic-labs/dynamic-auth/commit/117b013faf9a0d4bc6b8429a36d8e88dba546889))
|
|
31
|
+
|
|
2
32
|
## [4.75.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.74.1...v4.75.0) (2026-04-03)
|
|
3
33
|
|
|
4
34
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.77.0",
|
|
4
4
|
"description": "Core package for utilizing Dynamic's sdk",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@vue/reactivity": "^3.4.21",
|
|
22
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/locale": "4.
|
|
25
|
-
"@dynamic-labs/logger": "4.
|
|
26
|
-
"@dynamic-labs/message-transport": "4.
|
|
27
|
-
"@dynamic-labs/types": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
29
|
-
"@dynamic-labs/webview-messages": "4.
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.0.927",
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.77.0",
|
|
24
|
+
"@dynamic-labs/locale": "4.77.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.77.0",
|
|
26
|
+
"@dynamic-labs/message-transport": "4.77.0",
|
|
27
|
+
"@dynamic-labs/types": "4.77.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.77.0",
|
|
29
|
+
"@dynamic-labs/webview-messages": "4.77.0",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {}
|
package/src/client/core/core.cjs
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var reactivity = require('@vue/reactivity');
|
|
7
7
|
var messageTransport = require('@dynamic-labs/message-transport');
|
|
8
8
|
var webviewMessages = require('@dynamic-labs/webview-messages');
|
|
9
|
+
var randomString = require('../../utils/randomString/randomString.cjs');
|
|
9
10
|
var initializationModule = require('./modules/initializationModule/initializationModule.cjs');
|
|
10
11
|
var manifestModule = require('./modules/manifestModule/manifestModule.cjs');
|
|
11
12
|
|
|
@@ -42,6 +43,10 @@ const createCore = (props) => {
|
|
|
42
43
|
* The environment ID of the client
|
|
43
44
|
*/
|
|
44
45
|
environmentId: props.environmentId,
|
|
46
|
+
/**
|
|
47
|
+
* SDK session ID
|
|
48
|
+
*/
|
|
49
|
+
hostSdkSessionId: randomString.randomString({ length: 8 }),
|
|
45
50
|
/**
|
|
46
51
|
* SDK initialization module handles the initialization error
|
|
47
52
|
*/
|
|
@@ -25,6 +25,10 @@ export declare const createCore: (props: ClientProps) => {
|
|
|
25
25
|
* The environment ID of the client
|
|
26
26
|
*/
|
|
27
27
|
environmentId: string;
|
|
28
|
+
/**
|
|
29
|
+
* SDK session ID
|
|
30
|
+
*/
|
|
31
|
+
hostSdkSessionId: string;
|
|
28
32
|
/**
|
|
29
33
|
* SDK initialization module handles the initialization error
|
|
30
34
|
*/
|
package/src/client/core/core.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { reactive } from '@vue/reactivity';
|
|
3
3
|
import { applyRecoveryManager, applyDefaultMessageOrigin, makeWaitForInitEvent, applyTransportStamps, createMessageTransport } from '@dynamic-labs/message-transport';
|
|
4
4
|
import { sdkHasLoadedEventName } from '@dynamic-labs/webview-messages';
|
|
5
|
+
import { randomString } from '../../utils/randomString/randomString.js';
|
|
5
6
|
import { createInitializationModule } from './modules/initializationModule/initializationModule.js';
|
|
6
7
|
import { createManifestModule } from './modules/manifestModule/manifestModule.js';
|
|
7
8
|
|
|
@@ -38,6 +39,10 @@ const createCore = (props) => {
|
|
|
38
39
|
* The environment ID of the client
|
|
39
40
|
*/
|
|
40
41
|
environmentId: props.environmentId,
|
|
42
|
+
/**
|
|
43
|
+
* SDK session ID
|
|
44
|
+
*/
|
|
45
|
+
hostSdkSessionId: randomString({ length: 8 }),
|
|
41
46
|
/**
|
|
42
47
|
* SDK initialization module handles the initialization error
|
|
43
48
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { randomString } from './randomString';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
const DEFAULT_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
7
|
+
/** @not-instrumented */
|
|
8
|
+
const randomString = ({ chars = DEFAULT_CHARS, length, }) => {
|
|
9
|
+
let result = '';
|
|
10
|
+
for (let i = 0; i < length; i++) {
|
|
11
|
+
result += chars[Math.floor(Math.random() * chars.length)];
|
|
12
|
+
}
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.randomString = randomString;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
const DEFAULT_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
3
|
+
/** @not-instrumented */
|
|
4
|
+
const randomString = ({ chars = DEFAULT_CHARS, length, }) => {
|
|
5
|
+
let result = '';
|
|
6
|
+
for (let i = 0; i < length; i++) {
|
|
7
|
+
result += chars[Math.floor(Math.random() * chars.length)];
|
|
8
|
+
}
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { randomString };
|