@dynamic-labs/logger 5.7.0 → 5.8.1

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,25 @@
1
1
 
2
+ ### [5.8.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.8.0...v5.8.1) (2026-09-15)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **wallet-connect:** fix Rabby WalletConnect connection ([#12385](https://github.com/dynamic-labs/dynamic-auth/issues/12385)) ([df2a93c](https://github.com/dynamic-labs/dynamic-auth/commit/df2a93cd95b75b74dd47468faedad88c463b14de))
8
+
9
+ ## [5.8.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.7.0...v5.8.0) (2026-09-09)
10
+
11
+
12
+ ### Features
13
+
14
+ * **solana-core:** standalone sponsored ATA creation ([#12365](https://github.com/dynamic-labs/dynamic-auth/issues/12365)) ([ac2e776](https://github.com/dynamic-labs/dynamic-auth/commit/ac2e7769fcf91c868e961a227b8acb6347bf3f13))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * do not report wallets installed from a provider selection router ([#12340](https://github.com/dynamic-labs/dynamic-auth/issues/12340)) ([dac5546](https://github.com/dynamic-labs/dynamic-auth/commit/dac5546edf6004c37bd84dd2089d94952949230b))
20
+ * **screening:** soften the blocked-wallet copy to be provider-neutral ([#12358](https://github.com/dynamic-labs/dynamic-auth/issues/12358)) ([b4854d8](https://github.com/dynamic-labs/dynamic-auth/commit/b4854d88fa67f684be0e133edd5fd4a4bf5c7f37))
21
+ * show transaction amount when simulation returns no transfers ([#12355](https://github.com/dynamic-labs/dynamic-auth/issues/12355)) ([bfaf337](https://github.com/dynamic-labs/dynamic-auth/commit/bfaf337e5350970f71255baff065e0cdbccdc7ca))
22
+
2
23
  ## [5.7.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.6.1...v5.7.0) (2026-09-08)
3
24
 
4
25
 
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  /******************************************************************************
3
2
  Copyright (c) Microsoft Corporation.
4
3
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/logger",
3
- "version": "5.7.0",
3
+ "version": "5.8.1",
4
4
  "description": "A simple client side logging library used in Dynamic SDK",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  import { deepMerge } from '../utils/deepMerge.js';
3
2
 
4
3
  /**
package/src/index.cjs CHANGED
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -168,31 +167,34 @@ class Logger {
168
167
  * Essentially, multiple calls to log in the same event loop will be batched into a single request
169
168
  */
170
169
  queueMicrotask(() => _tslib.__awaiter(this, void 0, void 0, function* () {
171
- // Grab all pending messages immediately and clear the queue
172
- const currentBatch = messageQueue.splice(0, messageQueue.length);
173
- const messages = [];
174
- currentBatch.forEach((msg) => {
175
- var _a, _b, _c, _d, _e, _f;
176
- const body = {};
177
- const { objectArgs, remainingArgs } = processArgs.processArgs(msg);
178
- Object.assign(body, ...objectArgs);
179
- Object.assign(body, {
180
- level: types.LogLevel[msg.level],
181
- message: [msg.message, ...remainingArgs].join(' '),
182
- meta: transformMeta(globalState.metaData.merge(this.metaData).get()),
183
- stack: msg.stack,
184
- url: {
185
- hostname: (_a = window.location) === null || _a === void 0 ? void 0 : _a.hostname,
186
- origin: (_b = window.location) === null || _b === void 0 ? void 0 : _b.origin,
187
- pathname: (_c = window.location) === null || _c === void 0 ? void 0 : _c.pathname,
188
- port: (_d = window.location) === null || _d === void 0 ? void 0 : _d.port,
189
- protocol: (_e = window.location) === null || _e === void 0 ? void 0 : _e.protocol,
190
- },
191
- userAgent: (_f = window.navigator) === null || _f === void 0 ? void 0 : _f.userAgent,
192
- });
193
- messages.push(body);
194
- });
170
+ // Payload assembly stays inside this try because an escaping
171
+ // rejection is re-reported by host apps' unhandledrejection
172
+ // handlers, which call back into the logger and loop.
195
173
  try {
174
+ // Grab all pending messages immediately and clear the queue
175
+ const currentBatch = messageQueue.splice(0, messageQueue.length);
176
+ const messages = [];
177
+ currentBatch.forEach((msg) => {
178
+ var _a, _b, _c, _d, _e, _f;
179
+ const body = {};
180
+ const { objectArgs, remainingArgs } = processArgs.processArgs(msg);
181
+ Object.assign(body, ...objectArgs);
182
+ Object.assign(body, {
183
+ level: types.LogLevel[msg.level],
184
+ message: [msg.message, ...remainingArgs].join(' '),
185
+ meta: transformMeta(globalState.metaData.merge(this.metaData).get()),
186
+ stack: msg.stack,
187
+ url: {
188
+ hostname: (_a = window.location) === null || _a === void 0 ? void 0 : _a.hostname,
189
+ origin: (_b = window.location) === null || _b === void 0 ? void 0 : _b.origin,
190
+ pathname: (_c = window.location) === null || _c === void 0 ? void 0 : _c.pathname,
191
+ port: (_d = window.location) === null || _d === void 0 ? void 0 : _d.port,
192
+ protocol: (_e = window.location) === null || _e === void 0 ? void 0 : _e.protocol,
193
+ },
194
+ userAgent: (_f = window.navigator) === null || _f === void 0 ? void 0 : _f.userAgent,
195
+ });
196
+ messages.push(body);
197
+ });
196
198
  if (!globalState.keys.environmentId) {
197
199
  throw new Error('Environment ID not set');
198
200
  }
@@ -212,7 +214,6 @@ class Logger {
212
214
  catch (error) {
213
215
  this.debug('Failed to send logs to server', error);
214
216
  }
215
- // REMOVE: messageQueue.length = 0;
216
217
  }));
217
218
  }
218
219
  }
package/src/index.js CHANGED
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  import { __awaiter } from '../_virtual/_tslib.js';
3
2
  import EventEmitter from 'eventemitter3';
4
3
  import { MetaData } from './MetaData/MetaData.js';
@@ -161,31 +160,34 @@ class Logger {
161
160
  * Essentially, multiple calls to log in the same event loop will be batched into a single request
162
161
  */
163
162
  queueMicrotask(() => __awaiter(this, void 0, void 0, function* () {
164
- // Grab all pending messages immediately and clear the queue
165
- const currentBatch = messageQueue.splice(0, messageQueue.length);
166
- const messages = [];
167
- currentBatch.forEach((msg) => {
168
- var _a, _b, _c, _d, _e, _f;
169
- const body = {};
170
- const { objectArgs, remainingArgs } = processArgs(msg);
171
- Object.assign(body, ...objectArgs);
172
- Object.assign(body, {
173
- level: LogLevel[msg.level],
174
- message: [msg.message, ...remainingArgs].join(' '),
175
- meta: transformMeta(globalState.metaData.merge(this.metaData).get()),
176
- stack: msg.stack,
177
- url: {
178
- hostname: (_a = window.location) === null || _a === void 0 ? void 0 : _a.hostname,
179
- origin: (_b = window.location) === null || _b === void 0 ? void 0 : _b.origin,
180
- pathname: (_c = window.location) === null || _c === void 0 ? void 0 : _c.pathname,
181
- port: (_d = window.location) === null || _d === void 0 ? void 0 : _d.port,
182
- protocol: (_e = window.location) === null || _e === void 0 ? void 0 : _e.protocol,
183
- },
184
- userAgent: (_f = window.navigator) === null || _f === void 0 ? void 0 : _f.userAgent,
185
- });
186
- messages.push(body);
187
- });
163
+ // Payload assembly stays inside this try because an escaping
164
+ // rejection is re-reported by host apps' unhandledrejection
165
+ // handlers, which call back into the logger and loop.
188
166
  try {
167
+ // Grab all pending messages immediately and clear the queue
168
+ const currentBatch = messageQueue.splice(0, messageQueue.length);
169
+ const messages = [];
170
+ currentBatch.forEach((msg) => {
171
+ var _a, _b, _c, _d, _e, _f;
172
+ const body = {};
173
+ const { objectArgs, remainingArgs } = processArgs(msg);
174
+ Object.assign(body, ...objectArgs);
175
+ Object.assign(body, {
176
+ level: LogLevel[msg.level],
177
+ message: [msg.message, ...remainingArgs].join(' '),
178
+ meta: transformMeta(globalState.metaData.merge(this.metaData).get()),
179
+ stack: msg.stack,
180
+ url: {
181
+ hostname: (_a = window.location) === null || _a === void 0 ? void 0 : _a.hostname,
182
+ origin: (_b = window.location) === null || _b === void 0 ? void 0 : _b.origin,
183
+ pathname: (_c = window.location) === null || _c === void 0 ? void 0 : _c.pathname,
184
+ port: (_d = window.location) === null || _d === void 0 ? void 0 : _d.port,
185
+ protocol: (_e = window.location) === null || _e === void 0 ? void 0 : _e.protocol,
186
+ },
187
+ userAgent: (_f = window.navigator) === null || _f === void 0 ? void 0 : _f.userAgent,
188
+ });
189
+ messages.push(body);
190
+ });
189
191
  if (!globalState.keys.environmentId) {
190
192
  throw new Error('Environment ID not set');
191
193
  }
@@ -205,7 +207,6 @@ class Logger {
205
207
  catch (error) {
206
208
  this.debug('Failed to send logs to server', error);
207
209
  }
208
- // REMOVE: messageQueue.length = 0;
209
210
  }));
210
211
  }
211
212
  }
package/src/types.cjs CHANGED
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
package/src/types.js CHANGED
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  var LogLevel;
3
2
  (function (LogLevel) {
4
3
  LogLevel[LogLevel["DEBUG"] = 0] = "DEBUG";
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  /**
3
2
  * Returns a JSON.stringify replacer that safely skips circular references.
4
3
  */
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  import { createCircularReferenceReplacer } from './createCircularReferenceReplacer.js';
3
2
 
4
3
  const getSerializableFields = (value) => {
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  const deepMerge = (obj1, obj2) => {
3
2
  if (typeof obj1 !== 'object' || typeof obj2 !== 'object') {
4
3
  // If either obj1 or obj2 is not an object, return obj1
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  const getStack = (constructorOpt) => {
3
2
  const err = {};
4
3
  // Standard V8 API to capture stack trace
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  import { LogLevel } from '../types.js';
3
2
 
4
3
  const mapLogLevel = (level) => {
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,3 @@
1
- 'use client'
2
1
  /**
3
2
  * Split args into object and non-object args
4
3
  * @param message