mirror of
https://github.com/lancedb/lancedb.git
synced 2026-12-03 15:55:19 +00:00
Jest now uses SWC to transpile the Node SDK tests, with the same ES2022 target and legacy decorator semantics as the SDK. The Node and Arrow compatibility jobs run the existing test TypeScript project through `tsc --noEmit` after building the SDK. Contributors can run that check with `pnpm run typecheck:tests`. Closes #2234. Measured on Windows x64 with Node 22.23.4, Jest 29.7, the default native features and one Jest process (`--runInBand --silent`). Both runs used the same 0.42.0-beta.26 Windows native binary. Times below are wall-clock seconds. | Workload | ts-jest | SWC | | --- | ---: | ---: | | Six suites, empty Jest cache (median of three) | 8.31 | 4.22 | | Same six suites, populated cache (median of three) | 4.45 | 3.52 | | Full default suite, empty Jest cache (one run each) | 50.10 | 38.55 | The six suites were `arrow`, `expr`, `materialized_view`, `package`, `registry` and `sanitize`. Each pair started with a fresh Jest cache directory and immediately reused it on the second run. The separate test type check took 3.39 s, bringing the full SWC run plus type checking to 41.94 s on this machine. Both full runs passed the same 1,882 tests with 28 skipped. The SDK TypeScript build, test type check, Biome checks and TypeDoc build also passed. --------- Co-authored-by: lipeih <lipeihan@eazytec.com>
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
# Flat node_modules layout. The @napi-rs/cli build step fails to locate
|
|
# the cdylib artifact under pnpm's isolated layout; the hoisted linker
|
|
# mirrors npm's structure and unblocks the native build.
|
|
nodeLinker: hoisted
|
|
|
|
# Block resolution of versions less than 24h old (Shai-Hulud window).
|
|
# This is the pnpm 11 default but pinned here so it's visible to
|
|
# reviewers and survives a future pnpm major flipping the default.
|
|
minimumReleaseAge: 1440
|
|
|
|
# Fail install if a transitive dep tries to run an unapproved script.
|
|
strictDepBuilds: true
|
|
|
|
allowBuilds:
|
|
'@biomejs/biome': true
|
|
'@swc/core': false # The optional platform package supplies the native binary.
|
|
onnxruntime-node: true
|
|
protobufjs: true
|
|
sharp: true
|
|
|
|
minimumReleaseAgeExclude:
|
|
- protobufjs@7.5.8
|
|
- tmp@0.2.6
|
|
- form-data@4.0.6
|
|
- tar@7.5.16
|
|
- markdown-it@14.1.2
|
|
- linkify-it@5.0.1
|
|
- js-yaml@3.15.0
|
|
- js-yaml@4.1.2
|
|
- protobufjs@7.6.1
|
|
- protobufjs@7.6.3
|
|
- '@babel/core@7.29.1'
|
|
- axios@1.18.0
|
|
- brace-expansion@2.1.2
|
|
- brace-expansion@1.1.16
|
|
- js-yaml@4.3.0
|
|
- tar@7.5.18
|
|
- tar@7.5.19
|
|
- tar@7.5.17
|
|
- protobufjs@7.6.5
|
|
- linkify-it@5.0.2
|
|
- sharp@0.35.0
|
|
- brace-expansion@1.1.17
|
|
- brace-expansion@2.1.3
|
|
- brace-expansion@2.1.4
|
|
- brace-expansion@1.1.18
|
|
- js-yaml@3.15.1
|
|
- js-yaml@4.3.1
|
|
- tar@7.5.21
|
|
- '@opentelemetry/core@2.8.0'
|