diff --git a/.nvmrc b/.nvmrc index 3f430af82..9a2a0e219 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18 +v20 diff --git a/CHANGELOG.md b/CHANGELOG.md index cc9c66eb9..caa0ff4b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ This changelog keeps track of all changes to the Packs SDK. We follow convention ## [Unreleased] +### Changed + +- SDK requires node version 20 or higher + ## [1.8.6] - 2024-12-13 ### Changed @@ -11,7 +15,6 @@ This changelog keeps track of all changes to the Packs SDK. We follow convention - Certain ingestion-specific fields were renamed. - Added `SyncStateService` to retrieve the row sync state in Coda Brain. - ## [1.8.5] - 2024-12-04 ### Changed @@ -859,5 +862,4 @@ await myHelper(context); [1.8.3]: https://github.com/coda/packs-sdk/compare/v1.7.8...v1.8.3 [1.8.4]: https://github.com/coda/packs-sdk/compare/v1.7.8...v1.8.4 [1.8.5]: https://github.com/coda/packs-sdk/compare/v1.7.8...v1.8.5 - [1.8.6]: https://github.com/coda/packs-sdk/compare/v1.7.8...v1.8.6 diff --git a/package.json b/package.json index ed0e9f3ae..735ffe334 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dev/eslint" ], "engines": { - "node": ">=18.0.x", + "node": ">=20.0.x", "pnpm": "9.15.0" }, "main": "dist/index.js", diff --git a/setup-env.sh b/setup-env.sh index 7734cd713..aac8c4374 100644 --- a/setup-env.sh +++ b/setup-env.sh @@ -8,10 +8,12 @@ if [[ "$(uname -s)" == "Darwin" ]] && [[ "$(arch)" == "arm64" ]]; then export PATH="/opt/homebrew/bin:${PATH}" fi -export PATH=${BASEDIR}/build/node/bin:${BASEDIR}/node_modules/.bin:${BASEDIR}/.pnpm_install/bin:${PATH} - if command -v nvm &> /dev/null then # Gets version from .nvmrc nvm use fi + + +export PATH=${BASEDIR}/.pnpm_install/bin:${BASEDIR}/build/node/bin:${BASEDIR}/node_modules/.bin:${PATH} +export NODE_OPTIONS="--no-node-snapshot ${NODE_OPTIONS}" \ No newline at end of file