@bitfab/sdk 0.16.0 → 0.16.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/dist/index.cjs CHANGED
@@ -317,9 +317,12 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
317
317
  }
318
318
  }
319
319
  if (options?.limit !== void 0 && options?.traceIds !== void 0) {
320
- throw new BitfabError(
321
- "Pass either limit or traceIds, not both: an explicit trace ID list already determines how many traces replay."
322
- );
320
+ try {
321
+ console.warn(
322
+ "Bitfab: limit is ignored when traceIds is passed: the explicit trace ID list already determines how many traces replay."
323
+ );
324
+ } catch {
325
+ }
323
326
  }
324
327
  await replayContextReady;
325
328
  const {
@@ -429,7 +432,7 @@ __export(index_exports, {
429
432
  module.exports = __toCommonJS(index_exports);
430
433
 
431
434
  // src/version.generated.ts
432
- var __version__ = "0.16.0";
435
+ var __version__ = "0.16.1";
433
436
 
434
437
  // src/constants.ts
435
438
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -3219,9 +3222,9 @@ var Bitfab = class {
3219
3222
  *
3220
3223
  * @param traceFunctionKey - The trace function key to replay
3221
3224
  * @param fn - The function to replay (must be the return value of `withSpan`)
3222
- * @param options - Optional replay options. `limit` and `traceIds` are
3223
- * mutually exclusive an explicit ID list already determines how many
3224
- * traces replay, so passing both throws a BitfabError.
3225
+ * @param options - Optional replay options. When `traceIds` is passed,
3226
+ * `limit` is ignored (with a warning): an explicit ID list already
3227
+ * determines how many traces replay.
3225
3228
  * @returns ReplayResult with items, testRunId, and testRunUrl
3226
3229
  */
3227
3230
  async replay(traceFunctionKey, fn, options) {