mirror of
https://github.com/lovell/sharp.git
synced 2026-02-04 05:36:18 +01:00
Upgrade to libvips v8.18.0-rc.2
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -291,7 +291,7 @@ jobs:
|
||||
needs: lint
|
||||
name: "build-wasm32 [package]"
|
||||
runs-on: ubuntu-24.04
|
||||
container: "emscripten/emsdk:4.0.18"
|
||||
container: "emscripten/emsdk:4.0.21"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Dependencies
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/2.3.4/schema.json",
|
||||
"$schema": "https://biomejs.dev/schemas/2.3.9/schema.json",
|
||||
"vcs": {
|
||||
"enabled": true,
|
||||
"clientKind": "git",
|
||||
|
||||
6
docs/src/content/docs/changelog/v0.35.0.md
Normal file
6
docs/src/content/docs/changelog/v0.35.0.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: v0.35.0 - TBC
|
||||
slug: changelog/v0.35.0
|
||||
---
|
||||
|
||||
* Upgrade to libvips v8.18.0 for upstream bug fixes.
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-darwin-arm64": "1.2.4"
|
||||
"@img/sharp-libvips-darwin-arm64": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-darwin-x64": "1.2.4"
|
||||
"@img/sharp-libvips-darwin-x64": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-arm": "1.2.4"
|
||||
"@img/sharp-libvips-linux-arm": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-arm64": "1.2.4"
|
||||
"@img/sharp-libvips-linux-arm64": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-ppc64": "1.2.4"
|
||||
"@img/sharp-libvips-linux-ppc64": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-riscv64": "1.2.4"
|
||||
"@img/sharp-libvips-linux-riscv64": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-s390x": "1.2.4"
|
||||
"@img/sharp-libvips-linux-s390x": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-x64": "1.2.4"
|
||||
"@img/sharp-libvips-linux-x64": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.2.4"
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.2.4"
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.3.0-rc.1"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@emnapi/runtime": "^1.7.0"
|
||||
"@emnapi/runtime": "^1.7.1"
|
||||
},
|
||||
"cpu": [
|
||||
"wasm32"
|
||||
|
||||
40
package.json
40
package.json
@@ -146,16 +146,16 @@
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-darwin-arm64": "0.34.5",
|
||||
"@img/sharp-darwin-x64": "0.34.5",
|
||||
"@img/sharp-libvips-darwin-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-darwin-x64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-arm": "1.2.4",
|
||||
"@img/sharp-libvips-linux-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-ppc64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-riscv64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-s390x": "1.2.4",
|
||||
"@img/sharp-libvips-linux-x64": "1.2.4",
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.2.4",
|
||||
"@img/sharp-libvips-darwin-arm64": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-darwin-x64": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-linux-arm": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-linux-arm64": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-linux-ppc64": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-linux-riscv64": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-linux-s390x": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-linux-x64": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.3.0-rc.1",
|
||||
"@img/sharp-linux-arm": "0.34.5",
|
||||
"@img/sharp-linux-arm64": "0.34.5",
|
||||
"@img/sharp-linux-ppc64": "0.34.5",
|
||||
@@ -170,17 +170,17 @@
|
||||
"@img/sharp-win32-x64": "0.34.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^2.3.4",
|
||||
"@biomejs/biome": "^2.3.9",
|
||||
"@cpplint/cli": "^0.1.0",
|
||||
"@emnapi/runtime": "^1.7.0",
|
||||
"@img/sharp-libvips-dev": "1.2.4",
|
||||
"@img/sharp-libvips-dev-wasm32": "1.2.4",
|
||||
"@img/sharp-libvips-win32-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-win32-ia32": "1.2.4",
|
||||
"@img/sharp-libvips-win32-x64": "1.2.4",
|
||||
"@emnapi/runtime": "^1.7.1",
|
||||
"@img/sharp-libvips-dev": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-dev-wasm32": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-win32-arm64": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-win32-ia32": "1.3.0-rc.1",
|
||||
"@img/sharp-libvips-win32-x64": "1.3.0-rc.1",
|
||||
"@types/node": "*",
|
||||
"emnapi": "^1.7.0",
|
||||
"exif-reader": "^2.0.2",
|
||||
"emnapi": "^1.7.1",
|
||||
"exif-reader": "^2.0.3",
|
||||
"extract-zip": "^2.0.1",
|
||||
"icc": "^3.0.0",
|
||||
"jsdoc-to-markdown": "^9.1.3",
|
||||
@@ -194,7 +194,7 @@
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"config": {
|
||||
"libvips": ">=8.17.3"
|
||||
"libvips": ">=8.18.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
// Verify platform and compiler compatibility
|
||||
|
||||
#if (VIPS_MAJOR_VERSION < 8) || \
|
||||
(VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION < 17) || \
|
||||
(VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 17 && VIPS_MICRO_VERSION < 3)
|
||||
#error "libvips version 8.17.3+ is required - please see https://sharp.pixelplumbing.com/install"
|
||||
(VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION < 18) || \
|
||||
(VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 18 && VIPS_MICRO_VERSION < 0)
|
||||
#error "libvips version 8.18.0+ is required - please see https://sharp.pixelplumbing.com/install"
|
||||
#endif
|
||||
|
||||
#if defined(__has_include)
|
||||
|
||||
@@ -180,7 +180,7 @@ describe('libvips binaries', () => {
|
||||
process.env.npm_config_arch = 's390x';
|
||||
process.env.npm_config_libc = '';
|
||||
const locatorHash = libvips.yarnLocator();
|
||||
assert.strictEqual(locatorHash, '4ab19140fd');
|
||||
assert.strictEqual(locatorHash, '8cdba194cb');
|
||||
delete process.env.npm_config_platform;
|
||||
delete process.env.npm_config_arch;
|
||||
delete process.env.npm_config_libc;
|
||||
|
||||
@@ -226,12 +226,11 @@ describe('PNG', () => {
|
||||
.png({ colours: 2, palette: false })
|
||||
.toBuffer();
|
||||
|
||||
const { channels, isPalette, bitsPerSample, paletteBitDepth, size, space } = await sharp(data).metadata();
|
||||
const { channels, isPalette, bitsPerSample, paletteBitDepth, space } = await sharp(data).metadata();
|
||||
assert.strictEqual(channels, 1);
|
||||
assert.strictEqual(isPalette, false);
|
||||
assert.strictEqual(bitsPerSample, 1);
|
||||
assert.strictEqual(paletteBitDepth, undefined);
|
||||
assert.strictEqual(size, 89);
|
||||
assert.strictEqual(space, 'b-w');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user