Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/prebuild-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ jobs:
- run: npm install --ignore-scripts
- run: npm run libchdb
- run: npm run build
- name: Drop the installed @chdb/lib-* so tests exercise the just-built addon
# The loader prefers an installed @chdb/lib-<platform> subpackage over the
# local build (src/loader.ts). npm install pulls the PREVIOUSLY published
# subpackage via optionalDependencies, which lags behind the native source
# being released here — so test:all would validate the wrong binary (red on
# every new native export, e.g. v3.2.0 / #72). Mirror chdb-node-test.yml:
# remove it so loadNative() falls through to build/Release/chdb_node.node,
# the exact binary this job is about to package and publish.
shell: bash
run: rm -rf node_modules/@chdb/lib-*
- run: npm run test:all
- name: Derive subpackage version from update_libchdb.sh
run: |
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
"node-gyp-build": "^4.6.0"
},
"optionalDependencies": {
"@chdb/lib-darwin-arm64": "26.5.2",
"@chdb/lib-darwin-x64": "26.5.2",
"@chdb/lib-linux-arm64-gnu": "26.5.2",
"@chdb/lib-linux-x64-gnu": "26.5.2"
"@chdb/lib-darwin-arm64": "26.5.3",
"@chdb/lib-darwin-x64": "26.5.3",
"@chdb/lib-linux-arm64-gnu": "26.5.3",
"@chdb/lib-linux-x64-gnu": "26.5.3"
},
"peerDependencies": {
"@clickhouse/client": ">=1.23.0",
Expand Down
21 changes: 12 additions & 9 deletions update_libchdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ set -e
LATEST_RELEASE=v26.5.1-rc.1

# Version published for the @chdb/lib-<platform> native subpackages on npm.
# DECOUPLED from LATEST_RELEASE on purpose: chdb-core has no 26.5.2 release, but
# the previously published subpackage versions (26.5.0, 26.5.1-rc.1) shipped a
# non-relocatable Linux binary (chdb-io/chdb-node#50). npm forbids republishing
# over an existing version, so the relocatability fix needs a NEW version — a
# formal packaging revision — while the bundled libchdb stays LATEST_RELEASE
# above (the only build carrying the #73/#15 C-ABI the binding requires). The
# publish + cleanroom workflows read CHDB_LIB_VERSION from here, and the main
# package's optionalDependencies pin this exact value.
LIBCHDB_NPM_VERSION=26.5.2
# DECOUPLED from LATEST_RELEASE on purpose: chdb-core has no 26.5.2/26.5.3
# release. 26.5.2 was a packaging revision for the non-relocatable Linux binary
# (chdb-io/chdb-node#50); 26.5.3 is another one: the native addon source gained
# the Layer 3 Arrow C Data Interface exports (ArrowRegisterColumns, 98d81b6) and
# .stream() server-side parameter binding (f6457ee) AFTER 26.5.2 was published,
# and npm forbids republishing over an existing version — without a bump the
# release pipeline "skips already-published" and the new native code never ships
# (chdb-io/chdb-node#72). The bundled libchdb stays LATEST_RELEASE above (the
# only build carrying the #73/#15 C-ABI the binding requires). The publish +
# cleanroom workflows read CHDB_LIB_VERSION from here, and the main package's
# optionalDependencies pin this exact value.
LIBCHDB_NPM_VERSION=26.5.3

# Download the correct version based on the platform
case "$(uname -s)" in
Expand Down
Loading