@dynamic-labs/client 4.20.13 → 4.20.15

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 CHANGED
@@ -1,4 +1,19 @@
1
1
 
2
+ ### [4.20.15](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.14...v4.20.15) (2025-07-03)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * triggering waas wallet creation attempt on logout ([#9083](https://github.com/dynamic-labs/dynamic-auth/issues/9083)) ([19a66f7](https://github.com/dynamic-labs/dynamic-auth/commit/19a66f7e49d4bd95725131f81eab9eeed2dc1b27))
8
+
9
+ ### [4.20.14](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.13...v4.20.14) (2025-07-03)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * refresh function user state for sessionId ([#9073](https://github.com/dynamic-labs/dynamic-auth/issues/9073)) ([080e923](https://github.com/dynamic-labs/dynamic-auth/commit/080e92356e3920f1d240b5025db9c831aa2abc5a))
15
+ * remove default commonjs setups for @dynamic-labs-wallet/browser-wallet-client ([#9079](https://github.com/dynamic-labs/dynamic-auth/issues/9079)) ([27507ab](https://github.com/dynamic-labs/dynamic-auth/commit/27507abedfd223209cad15d5c1e12b37fa421071))
16
+
2
17
  ### [4.20.13](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.12...v4.20.13) (2025-07-02)
3
18
 
4
19
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.20.13";
6
+ var version = "4.20.15";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.20.13";
2
+ var version = "4.20.15";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/client",
3
- "version": "4.20.13",
3
+ "version": "4.20.15",
4
4
  "description": "Core package for utilizing Dynamic's sdk",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -19,11 +19,11 @@
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.699",
23
- "@dynamic-labs/assert-package-version": "4.20.13",
24
- "@dynamic-labs/logger": "4.20.13",
25
- "@dynamic-labs/message-transport": "4.20.13",
26
- "@dynamic-labs/types": "4.20.13",
22
+ "@dynamic-labs/sdk-api-core": "0.0.704",
23
+ "@dynamic-labs/assert-package-version": "4.20.15",
24
+ "@dynamic-labs/logger": "4.20.15",
25
+ "@dynamic-labs/message-transport": "4.20.15",
26
+ "@dynamic-labs/types": "4.20.15",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
29
29
  "peerDependencies": {}
@@ -3,6 +3,8 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
+ var logger = require('@dynamic-labs/logger');
7
+ var messageTransport = require('@dynamic-labs/message-transport');
6
8
  var authModule = require('../modules/authModule/authModule.cjs');
7
9
  var instrumentationModule = require('../modules/instrumentationModule/instrumentationModule.cjs');
8
10
  var mfaModule = require('../modules/mfaModule/mfaModule.cjs');
@@ -24,6 +26,7 @@ const baseClientExtensionName = 'base';
24
26
  * it will be used for.
25
27
  */
26
28
  const createClient = (props) => {
29
+ var _a;
27
30
  const instrumentation = instrumentationModule.setupInstrumentationModule(props);
28
31
  const core$1 = core.createCore(props);
29
32
  instrumentation.trackCore(core$1);
@@ -48,6 +51,10 @@ const createClient = (props) => {
48
51
  };
49
52
  });
50
53
  instrumentation.trackClient(client);
54
+ if ((_a = props.debug) === null || _a === void 0 ? void 0 : _a.messageTransport) {
55
+ messageTransport.setGlobalDebugEnabled(true);
56
+ logger.Logger.troubleshootModeEnabled = true;
57
+ }
51
58
  return client;
52
59
  };
53
60
 
@@ -1,4 +1,4 @@
1
- import { LogLevel } from '@dynamic-labs/logger';
1
+ import { ClientManifest } from '@dynamic-labs/message-transport';
2
2
  import { Extendable } from '../utils/Extendable';
3
3
  export declare const baseClientExtensionName = "base";
4
4
  export type BaseClient = ReturnType<typeof createClient>;
@@ -8,11 +8,7 @@ export type ClientProps = {
8
8
  appName?: string;
9
9
  appLogoUrl?: string;
10
10
  cssOverrides?: string;
11
- debug?: {
12
- webview?: boolean;
13
- messageTransport?: boolean;
14
- loggerLevel?: LogLevel;
15
- };
11
+ debug?: ClientManifest['debug'];
16
12
  };
17
13
  /**
18
14
  * Generates a basic client that allows interacting with Dynamic's SDK, which
@@ -27,7 +23,7 @@ export declare const createClient: (props: ClientProps) => {
27
23
  /** Module that provides access to MFA features */
28
24
  mfa: import("../modules/mfaModule").MfaModule;
29
25
  /** Module that provides all the networks configured */
30
- networks: import("dist/packages/message-transport/src").StoreStateGetters<import("dist/packages/message-transport/src").NetworksModuleState> & import("dist/packages/message-transport/src").PickedEventListeners<import("dist/packages/message-transport/src").StoreStateEvents<import("dist/packages/message-transport/src").NetworksModuleState>>;
26
+ networks: import("@dynamic-labs/message-transport").StoreStateGetters<import("@dynamic-labs/message-transport").NetworksModuleState> & import("@dynamic-labs/message-transport").PickedEventListeners<import("@dynamic-labs/message-transport").StoreStateEvents<import("@dynamic-labs/message-transport").NetworksModuleState>>;
31
27
  /** Module that gives insight over the state of the SDK */
32
28
  sdk: import("../modules/sdkModule").SdkModule;
33
29
  /** Module that provide access to UI features */
@@ -1,4 +1,6 @@
1
1
  'use client'
2
+ import { Logger } from '@dynamic-labs/logger';
3
+ import { setGlobalDebugEnabled } from '@dynamic-labs/message-transport';
2
4
  import { createAuthModule } from '../modules/authModule/authModule.js';
3
5
  import { setupInstrumentationModule } from '../modules/instrumentationModule/instrumentationModule.js';
4
6
  import { createMfaModule } from '../modules/mfaModule/mfaModule.js';
@@ -20,6 +22,7 @@ const baseClientExtensionName = 'base';
20
22
  * it will be used for.
21
23
  */
22
24
  const createClient = (props) => {
25
+ var _a;
23
26
  const instrumentation = setupInstrumentationModule(props);
24
27
  const core = createCore(props);
25
28
  instrumentation.trackCore(core);
@@ -44,6 +47,10 @@ const createClient = (props) => {
44
47
  };
45
48
  });
46
49
  instrumentation.trackClient(client);
50
+ if ((_a = props.debug) === null || _a === void 0 ? void 0 : _a.messageTransport) {
51
+ setGlobalDebugEnabled(true);
52
+ Logger.troubleshootModeEnabled = true;
53
+ }
47
54
  return client;
48
55
  };
49
56
 
@@ -11,7 +11,7 @@ const createPartialManifest = ({ apiBaseUrl, environmentId, appLogoUrl, appName,
11
11
  appName,
12
12
  clientVersion: _package.version,
13
13
  cssOverrides,
14
- debugWebview: debug === null || debug === void 0 ? void 0 : debug.webview,
14
+ debug,
15
15
  environmentId,
16
16
  });
17
17
 
@@ -7,7 +7,7 @@ const createPartialManifest = ({ apiBaseUrl, environmentId, appLogoUrl, appName,
7
7
  appName,
8
8
  clientVersion: version,
9
9
  cssOverrides,
10
- debugWebview: debug === null || debug === void 0 ? void 0 : debug.webview,
10
+ debug,
11
11
  environmentId,
12
12
  });
13
13