-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release w/ updates to listRuns (#440)
- Loading branch information
Showing
12 changed files
with
98 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "langsmith", | ||
"version": "0.0.69", | ||
"version": "0.0.70", | ||
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", | ||
"packageManager": "[email protected]", | ||
"files": [ | ||
|
@@ -31,6 +31,7 @@ | |
"build": "yarn clean && yarn build:esm && yarn build:cjs && node scripts/create-entrypoints.js && node scripts/create-cli.js", | ||
"bump-version": "node scripts/bump-version.js", | ||
"check-version": "node scripts/check-version.js", | ||
"check-npm-version": "node scripts/check-npm-version.js", | ||
"clean": "rm -rf dist/ && node scripts/create-entrypoints.js clean", | ||
"build:esm": "tsc --outDir dist/ && rm -rf dist/tests dist/**/tests", | ||
"build:cjs": "tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rm -r dist-cjs", | ||
|
@@ -122,4 +123,4 @@ | |
}, | ||
"./package.json": "./package.json" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { execSync } from 'child_process'; | ||
import fs from 'fs'; | ||
import { fileURLToPath } from 'url'; | ||
import path from 'path'; | ||
|
||
// Convert the URL to a file path | ||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
// Adjust the path to your package.json as necessary | ||
const packageJsonPath = path.join(__dirname, '../package.json'); | ||
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' })); | ||
const { version } = packageJson; | ||
const { name: packageName } = packageJson; | ||
|
||
try { | ||
const npmVersion = execSync(`npm view ${packageName} version`, { encoding: 'utf-8' }).trim(); | ||
if (npmVersion && version <= npmVersion) { | ||
console.error(`Current version ${version} is not greater than npm version ${npmVersion}.`); | ||
process.exit(1); // Exit with error | ||
} else { | ||
console.log(`Current version ${version} is greater than npm version ${npmVersion}. Proceeding with publish.`); | ||
} | ||
} catch (error) { | ||
console.error('Error checking version:', error); | ||
process.exit(1); // Exit with error if the check fails | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "langsmith" | ||
version = "0.0.91" | ||
version = "0.0.92" | ||
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." | ||
authors = ["LangChain <[email protected]>"] | ||
license = "MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters