diff --git a/README.md b/README.md index d533acac..ed167593 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,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 >= 12.13.0 +Most modern macOS, Windows and Linux systems running Node.js >= 14.15.0 do not require any additional install or runtime dependencies. ## Documentation diff --git a/binding.gyp b/binding.gyp index fbd03fa5..0ae05712 100644 --- a/binding.gyp +++ b/binding.gyp @@ -70,7 +70,7 @@ }, { 'target_name': 'sharp-<(platform_and_arch)', 'defines': [ - 'NAPI_VERSION=5' + 'NAPI_VERSION=7' ], 'dependencies': [ '= 12.13.0 +Most modern macOS, Windows and Linux systems running Node.js >= 14.15.0 do not require any additional install or runtime dependencies. ### Formats diff --git a/docs/changelog.md b/docs/changelog.md index d1ac6d0d..301c59af 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,13 @@ # Changelog +## v0.31 - *eagle* + +Requires libvips v8.13.0 + +### v0.31.0 - TBD + +* Drop support for Node.js 12, now requires Node.js >= 14.15.0. + ## v0.30 - *dresser* Requires libvips v8.12.2 diff --git a/docs/install.md b/docs/install.md index 5430fdcf..428267a5 100644 --- a/docs/install.md +++ b/docs/install.md @@ -10,7 +10,7 @@ yarn add sharp ## Prerequisites -* Node.js >= 12.13.0 +* Node.js >= 14.15.0 ## Prebuilt binaries diff --git a/package.json b/package.json index 8d592236..468fcf70 100644 --- a/package.json +++ b/package.json @@ -169,17 +169,17 @@ "win32-x64": "sha512-5usGDnN1pmFoqfEuHmdvKF/35NbQLlnal5T2bMWDx9kvLIOy7WSahvSGAeDg9cXjHv9SONX/qdpKuJ55c6aD4g==" }, "runtime": "napi", - "target": 5 + "target": 7 }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "binary": { "napi_versions": [ - 5 + 7 ] }, "semistandard": { diff --git a/src/common.h b/src/common.h index 2a43597d..e15715c3 100644 --- a/src/common.h +++ b/src/common.h @@ -25,9 +25,9 @@ // Verify platform and compiler compatibility #if (VIPS_MAJOR_VERSION < 8) || \ - (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION < 12) || \ - (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 12 && VIPS_MICRO_VERSION < 2) -#error "libvips version 8.12.2+ is required - please see https://sharp.pixelplumbing.com/install" + (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION < 13) || \ + (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 13 && VIPS_MICRO_VERSION < 0) +#error "libvips version 8.13.0+ is required - please see https://sharp.pixelplumbing.com/install" #endif #if ((!defined(__clang__)) && defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)))