langsmith 0.10.0 → 0.10.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.
@@ -8,11 +8,11 @@ function extractStringNodes(data, options) {
8
8
  const queue = [[data, 0, "", null, ""]];
9
9
  let nextId = 0;
10
10
  const result = [];
11
- while (queue.length > 0) {
12
- const task = queue.shift();
13
- if (task == null)
14
- continue;
15
- const [value, depth, path, parent, key] = task;
11
+ // Head index, not `queue.shift()`: shift is O(n) per call, and this walk runs
12
+ // inline on the caller's tick, so a quadratic drain stalls unrelated work.
13
+ let head = 0;
14
+ while (head < queue.length) {
15
+ const [value, depth, path, parent, key] = queue[head++];
16
16
  if (typeof value === "string") {
17
17
  result.push({
18
18
  value,
@@ -3,11 +3,11 @@ function extractStringNodes(data, options) {
3
3
  const queue = [[data, 0, "", null, ""]];
4
4
  let nextId = 0;
5
5
  const result = [];
6
- while (queue.length > 0) {
7
- const task = queue.shift();
8
- if (task == null)
9
- continue;
10
- const [value, depth, path, parent, key] = task;
6
+ // Head index, not `queue.shift()`: shift is O(n) per call, and this walk runs
7
+ // inline on the caller's tick, so a quadratic drain stalls unrelated work.
8
+ let head = 0;
9
+ while (head < queue.length) {
10
+ const [value, depth, path, parent, key] = queue[head++];
11
11
  if (typeof value === "string") {
12
12
  result.push({
13
13
  value,
package/dist/index.cjs CHANGED
@@ -35,6 +35,6 @@ Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, g
35
35
  Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return error_js_1.RateLimitError; } });
36
36
  Object.defineProperty(exports, "InternalServerError", { enumerable: true, get: function () { return error_js_1.InternalServerError; } });
37
37
  // Update using pnpm bump-version
38
- exports.__version__ = "0.10.0";
38
+ exports.__version__ = "0.10.1";
39
39
  // Metadata key to hide a traced run from LangSmith's Messages View.
40
40
  exports.LS_MESSAGE_VIEW_EXCLUDE = "ls_message_view_exclude";
package/dist/index.d.ts CHANGED
@@ -7,5 +7,5 @@ export { computeRunIdForSecondaryReplica, uuid7, uuid7FromTime, } from "./uuid.j
7
7
  export { isTracingEnabled } from "./utils/guard.js";
8
8
  export { Cache, PromptCache, type CacheConfig, type CacheMetrics, configureGlobalPromptCache, promptCacheSingleton, } from "./utils/prompt_cache/index.js";
9
9
  export { LangsmithError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError, } from "./_openapi_client/core/error.js";
10
- export declare const __version__ = "0.10.0";
10
+ export declare const __version__ = "0.10.1";
11
11
  export declare const LS_MESSAGE_VIEW_EXCLUDE: "ls_message_view_exclude";
package/dist/index.js CHANGED
@@ -7,6 +7,6 @@ export { isTracingEnabled } from "./utils/guard.js";
7
7
  export { Cache, PromptCache, configureGlobalPromptCache, promptCacheSingleton, } from "./utils/prompt_cache/index.js";
8
8
  export { LangsmithError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError, } from "./_openapi_client/core/error.js";
9
9
  // Update using pnpm bump-version
10
- export const __version__ = "0.10.0";
10
+ export const __version__ = "0.10.1";
11
11
  // Metadata key to hide a traced run from LangSmith's Messages View.
12
12
  export const LS_MESSAGE_VIEW_EXCLUDE = "ls_message_view_exclude";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langsmith",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Client library to connect to the LangSmith Observability and Evaluation Platform.",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "files": [