From bf755012620b23b48df1e8d96a8898ea9b26d454 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 7 Mar 2020 20:53:14 +0000 Subject: [PATCH] Ensure prebuilt binary based on N-API version --- README.md | 2 +- binding.gyp | 2 +- docs/README.md | 2 +- docs/changelog.md | 2 +- docs/install.md | 4 ++-- package.json | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ae09853b..fe0db712 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Lanczos resampling ensures quality is not sacrificed for speed. As well as image resizing, operations such as rotation, extraction, compositing and gamma correction are available. -Most modern macOS, Windows and Linux systems running Node.js v10.16.0+ +Most modern macOS, Windows and Linux systems running Node.js v10+ do not require any additional install or runtime dependencies. ## Examples diff --git a/binding.gyp b/binding.gyp index d486148c..e497fd16 100644 --- a/binding.gyp +++ b/binding.gyp @@ -48,7 +48,7 @@ }, { 'target_name': 'sharp', 'defines': [ - 'NAPI_VERSION=4' + 'NAPI_VERSION=3' ], 'dependencies': [ '= 10.13) * Linux x64 (glibc >= 2.17, musl >= 1.1.24) diff --git a/package.json b/package.json index 63d275e9..47cb2389 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sharp", "description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP and TIFF images", - "version": "0.25.1", + "version": "0.25.1-beta", "author": "Lovell Fuller ", "homepage": "https://github.com/lovell/sharp", "contributors": [ @@ -68,7 +68,7 @@ "Brychan Bennett-Odlum " ], "scripts": { - "install": "(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)", + "install": "(node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)", "clean": "rm -rf node_modules/ build/ vendor/ .nyc_output/ coverage/ test/fixtures/output.*", "test": "semistandard && cpplint && npm run test-unit && npm run test-licensing && prebuild-ci", "test-unit": "nyc --reporter=lcov --branches=99 mocha --slow=5000 --timeout=60000 ./test/unit/*.js", @@ -138,14 +138,14 @@ "libvips": "8.9.1" }, "engines": { - "node": ">=10.16.0" + "node": ">=10" }, "funding": { "url": "https://opencollective.com/libvips" }, "binary": { "napi_versions": [ - 4 + 3 ] }, "semistandard": {