@langchain/core 0.3.58-rc.0 → 0.3.58

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,9 +8,7 @@ const isWebWorker = () => typeof globalThis === "object" &&
8
8
  globalThis.constructor.name === "DedicatedWorkerGlobalScope";
9
9
  exports.isWebWorker = isWebWorker;
10
10
  const isJsDom = () => (typeof window !== "undefined" && window.name === "nodejs") ||
11
- (typeof navigator !== "undefined" &&
12
- (navigator.userAgent.includes("Node.js") ||
13
- navigator.userAgent.includes("jsdom")));
11
+ (typeof navigator !== "undefined" && navigator.userAgent.includes("jsdom"));
14
12
  exports.isJsDom = isJsDom;
15
13
  // Supabase Edge Function provides a `Deno` global object
16
14
  // without `version` property
package/dist/utils/env.js CHANGED
@@ -3,9 +3,7 @@ export const isWebWorker = () => typeof globalThis === "object" &&
3
3
  globalThis.constructor &&
4
4
  globalThis.constructor.name === "DedicatedWorkerGlobalScope";
5
5
  export const isJsDom = () => (typeof window !== "undefined" && window.name === "nodejs") ||
6
- (typeof navigator !== "undefined" &&
7
- (navigator.userAgent.includes("Node.js") ||
8
- navigator.userAgent.includes("jsdom")));
6
+ (typeof navigator !== "undefined" && navigator.userAgent.includes("jsdom"));
9
7
  // Supabase Edge Function provides a `Deno` global object
10
8
  // without `version` property
11
9
  export const isDeno = () => typeof Deno !== "undefined";
@@ -344,11 +344,9 @@ exports.getInteropZodObjectShape = getInteropZodObjectShape;
344
344
  */
345
345
  function extendInteropZodObject(schema, extension) {
346
346
  if (isZodSchemaV3(schema)) {
347
- // z3: .extend exists and works as expected
348
347
  return schema.extend(extension);
349
348
  }
350
349
  if (isZodSchemaV4(schema)) {
351
- // z4: .extend exists and works as expected
352
350
  return core_1.util.extend(schema, extension);
353
351
  }
354
352
  throw new Error("Schema must be an instance of z3.ZodObject or z4.$ZodObject");
@@ -328,11 +328,9 @@ export function getInteropZodObjectShape(schema) {
328
328
  */
329
329
  export function extendInteropZodObject(schema, extension) {
330
330
  if (isZodSchemaV3(schema)) {
331
- // z3: .extend exists and works as expected
332
331
  return schema.extend(extension);
333
332
  }
334
333
  if (isZodSchemaV4(schema)) {
335
- // z4: .extend exists and works as expected
336
334
  return util.extend(schema, extension);
337
335
  }
338
336
  throw new Error("Schema must be an instance of z3.ZodObject or z4.$ZodObject");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/core",
3
- "version": "0.3.58-rc.0",
3
+ "version": "0.3.58",
4
4
  "description": "Core LangChain.js abstractions and schemas",
5
5
  "type": "module",
6
6
  "engines": {