diff --git a/.circleci/config.yml b/.circleci/config.yml index a5d75022..9b209eab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,7 +36,7 @@ jobs: sudo docker exec sharp sh -c "apt-get update && apt-get install -y nodejs" - run: sudo docker exec sharp sh -c "npm install --build-from-source" - run: sudo docker exec sharp sh -c "npm test" - - run: "[[ -n $CIRCLE_TAG ]] && sudo docker exec --env prebuild_upload sharp sh -c \"npx prebuild --runtime napi --target 7 --upload=$prebuild_upload\" || true" + - run: "[[ -n $CIRCLE_TAG ]] && sudo docker exec --env prebuild_upload sharp sh -c \"npx prebuild --upload=$prebuild_upload\" || true" linux-arm64-glibc-node-20: resource_class: arm.medium machine: @@ -65,7 +65,7 @@ jobs: sudo docker exec sharp sh -c "apk add build-base git python3 font-noto --update-cache" - run: sudo docker exec sharp sh -c "npm install --build-from-source" - run: sudo docker exec sharp sh -c "npm test" - - run: "[[ -n $CIRCLE_TAG ]] && sudo docker exec --env prebuild_upload sharp sh -c \"npx prebuild --runtime napi --target 7 --upload=$prebuild_upload\" || true" + - run: "[[ -n $CIRCLE_TAG ]] && sudo docker exec --env prebuild_upload sharp sh -c \"npx prebuild --upload=$prebuild_upload\" || true" linux-arm64-musl-node-20: resource_class: arm.medium machine: diff --git a/.github/workflows/ci-darwin-arm64v8.yml b/.github/workflows/ci-darwin-arm64v8.yml index e28673da..ae06af77 100644 --- a/.github/workflows/ci-darwin-arm64v8.yml +++ b/.github/workflows/ci-darwin-arm64v8.yml @@ -39,4 +39,4 @@ jobs: if: matrix.prebuild && startsWith(github.ref, 'refs/tags/') env: prebuild_upload: ${{ secrets.GITHUB_TOKEN }} - run: npx prebuild --runtime napi --target 7 + run: npx prebuild diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b85bafc..2edf0521 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,4 +102,4 @@ jobs: if: matrix.prebuild && startsWith(github.ref, 'refs/tags/') env: prebuild_upload: ${{ secrets.GITHUB_TOKEN }} - run: npx prebuild --runtime napi --target 7 + run: npx prebuild diff --git a/.prebuildrc b/.prebuildrc index dbe2cff8..6da59666 100644 --- a/.prebuildrc +++ b/.prebuildrc @@ -1,4 +1,5 @@ { + "runtime": "napi", "include-regex": "(sharp-.+\\.node|libvips-cpp\\.dll)", "strip": true } diff --git a/binding.gyp b/binding.gyp index 436ead95..fd05b45e 100644 --- a/binding.gyp +++ b/binding.gyp @@ -70,7 +70,7 @@ }, { 'target_name': 'sharp-<(platform_and_arch)', 'defines': [ - 'NAPI_VERSION=7', + 'NAPI_VERSION=9', 'NODE_ADDON_API_DISABLE_DEPRECATED', 'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' ], diff --git a/package.json b/package.json index 7aab8a33..b99a793d 100644 --- a/package.json +++ b/package.json @@ -174,7 +174,7 @@ "win32-x64": "sha512-BwKckinJZ0Fu/EcunqiLPwOLEBWp4xf8GV7nvmVuKKz5f6B+GxoA2k9aa2wueqv4r4RJVgV/aWXZWFKOIjre/Q==" }, "runtime": "napi", - "target": 7 + "target": 9 }, "engines": { "node": "^18.17.0 || ^20.3.0 || >=21.0.0" @@ -184,7 +184,7 @@ }, "binary": { "napi_versions": [ - 7 + 9 ] }, "semistandard": {