diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f95eed3d..bf7aef9d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -66,7 +66,7 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: "18" + node-version: "20" - name: Build bundle run: yarn build:test diff --git a/README.md b/README.md index 58d2ece9..63d6f4db 100644 --- a/README.md +++ b/README.md @@ -261,6 +261,10 @@ By default, `arrow`, `all_compressions`, `reader`, and `writer` features are ena - `lz4`: Activate LZ4_RAW compression (only applies to the `arrow2` endpoints). - `debug`: Expose the `setPanicHook` function for better error messages for Rust panics. Additionally compiles CLI debug functions. +## Node <20 + +On Node versions before 20, you'll have to [polyfill the Web Cryptography API](https://docs.rs/getrandom/latest/getrandom/#nodejs-es-module-support). + ## Future work - [ ] Example of pushdown predicate filtering, to download only chunks that match a specific condition diff --git a/package.json b/package.json index d9daf37c..1d283aa2 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@fastify/static": "^6.10.2", - "@types/node": "^18", + "@types/node": "^20", "apache-arrow": "^13.0.0", "arrow-js-ffi": "0.3.0", "benny": "^3.7.1", @@ -21,7 +21,7 @@ "vitest": "^0.34.0" }, "volta": { - "node": "18.17.0", + "node": "20.7.0", "yarn": "1.22.19" } } diff --git a/tests/js/index.test.ts b/tests/js/index.test.ts index c58590a0..60c1d2b5 100644 --- a/tests/js/index.test.ts +++ b/tests/js/index.test.ts @@ -1,7 +1,3 @@ -import { webcrypto } from "node:crypto"; -// @ts-expect-error -globalThis.crypto = webcrypto; - import "./arrow1.test"; import "./arrow1-ffi.test"; import "./arrow2.test";