Upgrade to libvips v8.17.2

This commit is contained in:
Lovell Fuller 2025-09-14 12:22:27 +01:00
parent 6d4d44e2fa
commit 93b814f849
15 changed files with 31 additions and 29 deletions

View File

@ -269,7 +269,7 @@ jobs:
contents: read contents: read
name: "build-wasm32 [package]" name: "build-wasm32 [package]"
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
container: "emscripten/emsdk:4.0.11" container: "emscripten/emsdk:4.0.14"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Dependencies - name: Dependencies

View File

@ -3,6 +3,8 @@ title: v0.34.4 - TBD
slug: changelog/v0.34.4 slug: changelog/v0.34.4
--- ---
* Upgrade to libvips v8.17.2 for upstream bug fixes.
* Ensure `autoOrient` occurs before non-90 angle rotation. * Ensure `autoOrient` occurs before non-90 angle rotation.
[#4425](https://github.com/lovell/sharp/issues/4425) [#4425](https://github.com/lovell/sharp/issues/4425)

View File

@ -15,7 +15,7 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-libvips-darwin-arm64": "1.2.1" "@img/sharp-libvips-darwin-arm64": "1.2.2-rc.2"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -15,7 +15,7 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-libvips-darwin-x64": "1.2.1" "@img/sharp-libvips-darwin-x64": "1.2.2-rc.2"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -15,7 +15,7 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-libvips-linux-arm": "1.2.1" "@img/sharp-libvips-linux-arm": "1.2.2-rc.2"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -15,7 +15,7 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-libvips-linux-arm64": "1.2.1" "@img/sharp-libvips-linux-arm64": "1.2.2-rc.2"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -15,7 +15,7 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-libvips-linux-ppc64": "1.2.1" "@img/sharp-libvips-linux-ppc64": "1.2.2-rc.2"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -15,7 +15,7 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-libvips-linux-s390x": "1.2.1" "@img/sharp-libvips-linux-s390x": "1.2.2-rc.2"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -15,7 +15,7 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-libvips-linux-x64": "1.2.1" "@img/sharp-libvips-linux-x64": "1.2.2-rc.2"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -15,7 +15,7 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-libvips-linuxmusl-arm64": "1.2.1" "@img/sharp-libvips-linuxmusl-arm64": "1.2.2-rc.2"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -15,7 +15,7 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-libvips-linuxmusl-x64": "1.2.1" "@img/sharp-libvips-linuxmusl-x64": "1.2.2-rc.2"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -144,15 +144,15 @@
"optionalDependencies": { "optionalDependencies": {
"@img/sharp-darwin-arm64": "0.34.4-rc.1", "@img/sharp-darwin-arm64": "0.34.4-rc.1",
"@img/sharp-darwin-x64": "0.34.4-rc.1", "@img/sharp-darwin-x64": "0.34.4-rc.1",
"@img/sharp-libvips-darwin-arm64": "1.2.1", "@img/sharp-libvips-darwin-arm64": "1.2.2-rc.2",
"@img/sharp-libvips-darwin-x64": "1.2.1", "@img/sharp-libvips-darwin-x64": "1.2.2-rc.2",
"@img/sharp-libvips-linux-arm": "1.2.1", "@img/sharp-libvips-linux-arm": "1.2.2-rc.2",
"@img/sharp-libvips-linux-arm64": "1.2.1", "@img/sharp-libvips-linux-arm64": "1.2.2-rc.2",
"@img/sharp-libvips-linux-ppc64": "1.2.1", "@img/sharp-libvips-linux-ppc64": "1.2.2-rc.2",
"@img/sharp-libvips-linux-s390x": "1.2.1", "@img/sharp-libvips-linux-s390x": "1.2.2-rc.2",
"@img/sharp-libvips-linux-x64": "1.2.1", "@img/sharp-libvips-linux-x64": "1.2.2-rc.2",
"@img/sharp-libvips-linuxmusl-arm64": "1.2.1", "@img/sharp-libvips-linuxmusl-arm64": "1.2.2-rc.2",
"@img/sharp-libvips-linuxmusl-x64": "1.2.1", "@img/sharp-libvips-linuxmusl-x64": "1.2.2-rc.2",
"@img/sharp-linux-arm": "0.34.4-rc.1", "@img/sharp-linux-arm": "0.34.4-rc.1",
"@img/sharp-linux-arm64": "0.34.4-rc.1", "@img/sharp-linux-arm64": "0.34.4-rc.1",
"@img/sharp-linux-ppc64": "0.34.4-rc.1", "@img/sharp-linux-ppc64": "0.34.4-rc.1",
@ -167,11 +167,11 @@
}, },
"devDependencies": { "devDependencies": {
"@emnapi/runtime": "^1.5.0", "@emnapi/runtime": "^1.5.0",
"@img/sharp-libvips-dev": "1.2.1", "@img/sharp-libvips-dev": "1.2.2-rc.2",
"@img/sharp-libvips-dev-wasm32": "1.2.1", "@img/sharp-libvips-dev-wasm32": "1.2.2-rc.2",
"@img/sharp-libvips-win32-arm64": "1.2.1", "@img/sharp-libvips-win32-arm64": "1.2.2-rc.2",
"@img/sharp-libvips-win32-ia32": "1.2.1", "@img/sharp-libvips-win32-ia32": "1.2.2-rc.2",
"@img/sharp-libvips-win32-x64": "1.2.1", "@img/sharp-libvips-win32-x64": "1.2.2-rc.2",
"@types/node": "*", "@types/node": "*",
"cc": "^3.0.1", "cc": "^3.0.1",
"emnapi": "^1.5.0", "emnapi": "^1.5.0",
@ -193,7 +193,7 @@
"node": "^18.17.0 || ^20.3.0 || >=21.0.0" "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
}, },
"config": { "config": {
"libvips": ">=8.17.1" "libvips": ">=8.17.2"
}, },
"funding": { "funding": {
"url": "https://opencollective.com/libvips" "url": "https://opencollective.com/libvips"

View File

@ -16,8 +16,8 @@
#if (VIPS_MAJOR_VERSION < 8) || \ #if (VIPS_MAJOR_VERSION < 8) || \
(VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION < 17) || \ (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION < 17) || \
(VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 17 && VIPS_MICRO_VERSION < 1) (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 17 && VIPS_MICRO_VERSION < 2)
#error "libvips version 8.17.1+ is required - please see https://sharp.pixelplumbing.com/install" #error "libvips version 8.17.2+ is required - please see https://sharp.pixelplumbing.com/install"
#endif #endif
#if defined(__has_include) #if defined(__has_include)

View File

@ -179,7 +179,7 @@ describe('libvips binaries', function () {
process.env.npm_config_arch = 's390x'; process.env.npm_config_arch = 's390x';
process.env.npm_config_libc = ''; process.env.npm_config_libc = '';
const locatorHash = libvips.yarnLocator(); const locatorHash = libvips.yarnLocator();
assert.strictEqual(locatorHash, '7e40558001'); assert.strictEqual(locatorHash, 'b5865b53e1');
delete process.env.npm_config_platform; delete process.env.npm_config_platform;
delete process.env.npm_config_arch; delete process.env.npm_config_arch;
delete process.env.npm_config_libc; delete process.env.npm_config_libc;

View File

@ -43,7 +43,7 @@ describe('Median filter', function () {
.raw() .raw()
.toBuffer(); .toBuffer();
assert.deepStrictEqual(data.subarray(0, 6), Buffer.from([0, 3, 15, 15, 63, 127])); assert.deepStrictEqual(data.subarray(0, 6), Buffer.from(row));
}); });
it('invalid radius', () => { it('invalid radius', () => {