mirror of
https://github.com/lancedb/lancedb.git
synced 2026-08-18 20:18:37 +00:00
bf15655c83
Python was versioned and tagged separately from the Rust, Java, and Node.js SDKs, and had drifted three minor versions ahead (0.36 vs 0.33). Users had no way to tell which Python version corresponded to which Rust or Node release, and the gap had no meaning behind it. This unifies the two tracks so there is one version and one tag for all four SDKs. ## Version The shared version is set to `0.37.0-beta.0`. Python continues its own sequence (highest published: 0.36 → 0.37) while Rust, Java, and Node.js jump 0.33 → 0.37 to meet it. Picking Python's next minor means Python users see no discontinuity at all, and only the other SDKs skip forward. Note that `main` trails the `release/v0.32` branch on both lines (main is at 0.32.0-beta.3 / 0.35.0-beta.3; the release branch carries 0.33.0-beta.0 / 0.36.0-beta.0), so 0.37 is chosen to clear the highest tag on either branch. Every index stays monotonic: | index | publishes | last published | next | |---|---|---|---| | PyPI | stable only | 0.34.0 | 0.37.0 | | Fury | previews | 0.36.0b0 | 0.37.0-beta.1 | | npm | both | 0.33.0-beta.0 | 0.37.0-beta.1 | | crates.io | stable only | 0.31.0 | 0.37.0 | | Maven | both | 0.33.0-beta.0 | 0.37.0-beta.1 | A one-time jump for three SDKs, versus explaining the offset indefinitely. ## Mechanism * `python/.bumpversion.toml` is removed. `python/Cargo.toml` — the source of the Python package version, since `pyproject.toml` declares `dynamic = ["version"]` — becomes a tracked file of the root config. Its `cargo update -p lancedb-python` pre-commit hook is dropped as redundant: `ci/update_lockfiles.sh` already refreshes every workspace member version in `Cargo.lock`. * `pypi-publish.yml` triggers on `v*` instead of `python-v*`, so one tag releases all four packages. `ci/bump_version.sh` and `make-release-commit.yml` lose their now-dead tag-prefix and per-language plumbing, including the `python` / `other` dispatch inputs. * The two byte-identical GH release jobs in `npm-publish.yml` and `pypi-publish.yml` are replaced by a single `gh-release.yml`. One release per tag, named `LanceDB vX.Y.Z`, instead of separate "Python LanceDB" and "Node/Rust LanceDB" releases for the same commit. The trade-off: there is no longer a way to ship a Python-only patch without also releasing crates.io, Maven, and npm. That is the cost of making drift structurally impossible. ## Beta releases marked "Latest" (#3666) Both GH release jobs used: ```yaml prerelease: ${{ contains('beta', github.ref) }} ``` The arguments are reversed. `contains(search, item)` asks whether *`search`* contains *`item`*, so this evaluated "does the literal string `'beta'` contain `refs/tags/python-v0.35.0-beta.2`?" — always `false`. Every beta was published as a full release, and GitHub awards "Latest" to the newest non-prerelease. The new workflow derives the flag from the parsed version rather than the raw ref, and sets `make_latest` explicitly: ```yaml prerelease: ${{ steps.extract_version.outputs.prerelease }} make_latest: ${{ steps.extract_version.outputs.prerelease == 'false' }} ``` npm was never affected (`--tag preview` uses correct bash), and PyPI already excludes pre-releases from resolution. This only fixes releases published from here on. Already-published betas need a one-time backfill: ```shell gh api --paginate /repos/lancedb/lancedb/releases \ --jq '.[] | select(.prerelease == false) | select(.tag_name | test("beta")) | .id' \ | xargs -I{} gh api -X PATCH /repos/lancedb/lancedb/releases/{} -F prerelease=true ``` ## Verification Ran `ci/bump_version.sh` end-to-end against this branch with the release tooling installed: * `preview` → tags `v0.37.0-beta.1` (previous tag `v0.33.0-beta.0` detected, `pre_n` bump) * `stable` → tags `v0.37.0` * Both paths update `.bumpversion.toml`, `rust/lancedb/Cargo.toml`, `nodejs/Cargo.toml`, `python/Cargo.toml`, `nodejs/package.json`, the 7 `nodejs/npm/*/package.json` files, both Java poms, and `docs/src/java/java.md` together * `check_breaking_changes.py` resolves the last stable as `v0.31.0`, so the minor-version gate passes All five touched workflows parse as valid YAML and the pre-commit hooks pass. ## Notes for review * This targets `main` only, so it takes effect at the next release-branch cut. The in-flight `release/v0.32` branch still carries `v0.33.0-beta.0` / `python-v0.36.0-beta.0`; if we want the imminent stable to be 0.37.0, this needs to be applied there too. * Historical `python-v*` tags are left alone. The changelog builder scans `^v`, which does not match them, so the first unified release's notes will compute `fromTag` from the Rust/Node line only — a one-time gap in the Python-side changelog. * Pre-existing and not addressed here: `ci/update_lockfiles.sh --amend` amends the commit that `bump-my-version` has already tagged, so the lockfile update lands outside the tag on stable releases. Fixes #3666
107 lines
3.4 KiB
JSON
107 lines
3.4 KiB
JSON
{
|
|
"name": "@lancedb/lancedb",
|
|
"description": "LanceDB: A serverless, low-latency vector database for AI applications",
|
|
"keywords": [
|
|
"database",
|
|
"lance",
|
|
"lancedb",
|
|
"search",
|
|
"vector",
|
|
"vector database",
|
|
"ann"
|
|
],
|
|
"private": false,
|
|
"version": "0.37.0-beta.0",
|
|
"main": "dist/index.js",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./embedding": "./dist/embedding/index.js",
|
|
"./embedding/openai": "./dist/embedding/openai.js",
|
|
"./embedding/transformers": "./dist/embedding/transformers.js"
|
|
},
|
|
"types": "dist/index.d.ts",
|
|
"napi": {
|
|
"binaryName": "lancedb",
|
|
"targets": [
|
|
"aarch64-apple-darwin",
|
|
"x86_64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-gnu",
|
|
"x86_64-unknown-linux-musl",
|
|
"aarch64-unknown-linux-musl",
|
|
"x86_64-pc-windows-msvc",
|
|
"aarch64-pc-windows-msvc"
|
|
]
|
|
},
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/lancedb/lancedb"
|
|
},
|
|
"devDependencies": {
|
|
"@aws-sdk/client-dynamodb": "3.1003.0",
|
|
"@aws-sdk/client-kms": "3.1003.0",
|
|
"@aws-sdk/client-s3": "3.1003.0",
|
|
"@biomejs/biome": "^1.7.3",
|
|
"@jest/globals": "^29.7.0",
|
|
"@napi-rs/cli": "3.7.0",
|
|
"@opentelemetry/sdk-metrics": "^1.30.0",
|
|
"@types/axios": "^0.14.0",
|
|
"@types/jest": "^29.1.2",
|
|
"@types/node": "22.7.4",
|
|
"@types/tmp": "^0.2.6",
|
|
"apache-arrow-15": "npm:apache-arrow@15.0.0",
|
|
"apache-arrow-16": "npm:apache-arrow@16.0.0",
|
|
"apache-arrow-17": "npm:apache-arrow@17.0.0",
|
|
"apache-arrow-18": "npm:apache-arrow@18.0.0",
|
|
"eslint": "^8.57.0",
|
|
"jest": "^29.7.0",
|
|
"shx": "^0.3.4",
|
|
"tmp": "^0.2.3",
|
|
"ts-jest": "^29.1.2",
|
|
"typedoc": "0.26.4",
|
|
"typedoc-plugin-markdown": "4.2.1",
|
|
"typescript": "5.5.4",
|
|
"typescript-eslint": "^7.1.0"
|
|
},
|
|
"ava": {
|
|
"timeout": "3m"
|
|
},
|
|
"engines": {
|
|
"node": ">= 18"
|
|
},
|
|
"packageManager": "pnpm@11.1.1",
|
|
"cpu": ["x64", "arm64"],
|
|
"os": ["darwin", "linux", "win32"],
|
|
"scripts": {
|
|
"artifacts": "napi artifacts",
|
|
"build:debug": "napi build --platform --dts ../lancedb/native.d.ts --js ../lancedb/native.js --output-dir lancedb",
|
|
"postbuild:debug": "shx mkdir -p dist && shx cp lancedb/*.node dist/ && node -e \"require('fs').writeFileSync('dist/package.json', JSON.stringify({name:'@lancedb/lancedb',type:'commonjs'}))\"",
|
|
"build:release": "napi build --platform --release --dts ../lancedb/native.d.ts --js ../lancedb/native.js --output-dir dist",
|
|
"build": "pnpm build:debug && pnpm tsc",
|
|
"build-release": "pnpm build:release && pnpm tsc",
|
|
"tsc": "tsc -b",
|
|
"posttsc": "shx cp lancedb/native.d.ts dist/native.d.ts",
|
|
"lint-ci": "biome ci .",
|
|
"docs": "typedoc --plugin typedoc-plugin-markdown --treatWarningsAsErrors --out ../docs/src/js lancedb/index.ts",
|
|
"postdocs": "node typedoc_post_process.js",
|
|
"lint": "biome check . && biome format .",
|
|
"lint-fix": "biome check --write . && biome format --write .",
|
|
"prepublishOnly": "napi prepublish -t npm",
|
|
"test": "jest --verbose",
|
|
"integration": "S3_TEST=1 pnpm test",
|
|
"universal": "napi universalize",
|
|
"version": "napi version"
|
|
},
|
|
"dependencies": {
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"reflect-metadata": "^0.2.2"
|
|
},
|
|
"optionalDependencies": {
|
|
"@huggingface/transformers": "3.0.2",
|
|
"openai": "4.29.2"
|
|
},
|
|
"peerDependencies": {
|
|
"apache-arrow": ">=15.0.0 <=18.1.0"
|
|
}
|
|
}
|