langsmith 0.3.56-rc.13 → 0.3.56-rc.14

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
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "overrideFetchImplementation", { enumerable: true
10
10
  var project_js_1 = require("./utils/project.cjs");
11
11
  Object.defineProperty(exports, "getDefaultProjectName", { enumerable: true, get: function () { return project_js_1.getDefaultProjectName; } });
12
12
  // Update using yarn bump-version
13
- exports.__version__ = "0.3.56-rc.13";
13
+ exports.__version__ = "0.3.56-rc.14";
package/dist/index.d.ts CHANGED
@@ -3,4 +3,4 @@ export type { Dataset, Example, TracerSession, Run, Feedback, RetrieverOutput, }
3
3
  export { RunTree, type RunTreeConfig } from "./run_trees.js";
4
4
  export { overrideFetchImplementation } from "./singletons/fetch.js";
5
5
  export { getDefaultProjectName } from "./utils/project.js";
6
- export declare const __version__ = "0.3.56-rc.13";
6
+ export declare const __version__ = "0.3.56-rc.14";
package/dist/index.js CHANGED
@@ -3,4 +3,4 @@ export { RunTree } from "./run_trees.js";
3
3
  export { overrideFetchImplementation } from "./singletons/fetch.js";
4
4
  export { getDefaultProjectName } from "./utils/project.js";
5
5
  // Update using yarn bump-version
6
- export const __version__ = "0.3.56-rc.13";
6
+ export const __version__ = "0.3.56-rc.14";
@@ -1,5 +1,7 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
2
  import { createRequire } from "module";
3
+ import { pathToFileURL } from "url";
4
+ import { sep } from "path";
3
5
  /**
4
6
  * Resolve vitest ESM module from correct workspace
5
7
  * This is necessary for monorepos where langsmith is hoisted to
@@ -16,12 +18,13 @@ export const importVitestModule = async (entrypoint) => {
16
18
  paths: [process.cwd()],
17
19
  });
18
20
  const pkg = require(packagePath);
19
- const pkgDir = packagePath.replace("/package.json", "");
21
+ const pkgDir = packagePath.replace(`${sep}package.json`, "");
20
22
  const esmEntry = !entrypoint
21
23
  ? pkg.module ?? pkg.exports?.["."]?.import ?? "dist/index.js"
22
24
  : pkg.exports?.[`./${entrypoint}`]?.import ??
23
25
  pkg.exports?.[`./${entrypoint}`]?.default;
24
- const path = `file://${pkgDir}/${esmEntry}`;
26
+ const modulePath = `${pkgDir}${sep}${esmEntry}`;
27
+ const path = pathToFileURL(modulePath).href;
25
28
  importedModule = await import(path);
26
29
  if (!importedModule) {
27
30
  throw new Error(`Failed to import vitest entrypoint${entrypoint ? ` ${entrypoint}` : ""}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langsmith",
3
- "version": "0.3.56-rc.13",
3
+ "version": "0.3.56-rc.14",
4
4
  "description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.",
5
5
  "packageManager": "yarn@1.22.19",
6
6
  "files": [