bitfab 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
@@ -326,9 +326,12 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options) {
326
326
  }
327
327
  }
328
328
  if (options?.limit !== void 0 && options?.traceIds !== void 0) {
329
- throw new BitfabError(
330
- "Pass either limit or traceIds, not both: an explicit trace ID list already determines how many traces replay."
331
- );
329
+ try {
330
+ console.warn(
331
+ "Bitfab: limit is ignored when traceIds is passed: the explicit trace ID list already determines how many traces replay."
332
+ );
333
+ } catch {
334
+ }
332
335
  }
333
336
  await replayContextReady;
334
337
  const {
@@ -438,7 +441,7 @@ __export(index_exports, {
438
441
  module.exports = __toCommonJS(index_exports);
439
442
 
440
443
  // src/version.generated.ts
441
- var __version__ = "0.16.0";
444
+ var __version__ = "0.16.1";
442
445
 
443
446
  // src/constants.ts
444
447
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -3228,9 +3231,9 @@ var Bitfab = class {
3228
3231
  *
3229
3232
  * @param traceFunctionKey - The trace function key to replay
3230
3233
  * @param fn - The function to replay (must be the return value of `withSpan`)
3231
- * @param options - Optional replay options. `limit` and `traceIds` are
3232
- * mutually exclusive an explicit ID list already determines how many
3233
- * traces replay, so passing both throws a BitfabError.
3234
+ * @param options - Optional replay options. When `traceIds` is passed,
3235
+ * `limit` is ignored (with a warning): an explicit ID list already
3236
+ * determines how many traces replay.
3234
3237
  * @returns ReplayResult with items, testRunId, and testRunUrl
3235
3238
  */
3236
3239
  async replay(traceFunctionKey, fn, options) {