sharp 0.35.0 → 0.35.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/output.cjs CHANGED
@@ -1207,8 +1207,6 @@ function tiff (options) {
1207
1207
  *
1208
1208
  * AVIF image sequences are not supported.
1209
1209
  *
1210
- * When using Windows ARM64, this feature requires a CPU with ARM64v8.4 or later.
1211
- *
1212
1210
  * @example
1213
1211
  * const data = await sharp(input)
1214
1212
  * .avif({ effort: 2 })
package/dist/output.mjs CHANGED
@@ -1207,8 +1207,6 @@ function tiff (options) {
1207
1207
  *
1208
1208
  * AVIF image sequences are not supported.
1209
1209
  *
1210
- * When using Windows ARM64, this feature requires a CPU with ARM64v8.4 or later.
1211
- *
1212
1210
  * @example
1213
1211
  * const data = await sharp(input)
1214
1212
  * .avif({ effort: 2 })
package/lib/index.d.ts CHANGED
@@ -27,8 +27,8 @@
27
27
 
28
28
  /// <reference types="node" />
29
29
 
30
- import type { Duplex } from 'node:stream';
31
- import { ColorLike } from '@img/colour';
30
+ declare type Duplex = import('node:stream').Duplex;
31
+ declare type ColorLike = import('@img/colour').ColorLike;
32
32
 
33
33
  //#region Constructor functions
34
34
 
@@ -1973,4 +1973,4 @@ declare namespace sharp {
1973
1973
  type Matrix4x4 = [[number, number, number, number], [number, number, number, number], [number, number, number, number], [number, number, number, number]];
1974
1974
  }
1975
1975
 
1976
- export = sharp;
1976
+ export default sharp;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sharp",
3
3
  "description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
4
- "version": "0.35.0",
4
+ "version": "0.35.1-rc.1",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
7
7
  "contributors": [
@@ -98,9 +98,10 @@
98
98
  "build:dist": "node scripts/build.mjs",
99
99
  "clean": "rm -rf src/build/ test/fixtures/output.*",
100
100
  "test": "npm run lint && npm run test-unit",
101
- "lint": "npm run lint-cpp && npm run lint-js && npm run lint-types",
101
+ "lint": "npm run lint-cpp && npm run lint-js && npm run lint-types && npm run lint-publish",
102
102
  "lint-cpp": "cpplint --quiet src/*.h src/*.cc",
103
103
  "lint-js": "biome lint",
104
+ "lint-publish": "publint --strict",
104
105
  "lint-types": "tsd --files ./test/types/sharp.test-d.ts",
105
106
  "test-leak": "./test/leak/leak.sh",
106
107
  "test-unit": "node --experimental-test-coverage test/unit.mjs",
@@ -120,16 +121,23 @@
120
121
  ],
121
122
  "main": "./dist/index.cjs",
122
123
  "module": "./dist/index.mjs",
123
- "types": "./lib/index.d.ts",
124
+ "types": "./dist/index.d.mts",
124
125
  "exports": {
125
126
  ".": {
126
- "import": "./dist/index.mjs",
127
- "require": "./dist/index.cjs"
127
+ "import": {
128
+ "types": "./dist/index.d.mts",
129
+ "default": "./dist/index.mjs"
130
+ },
131
+ "require": {
132
+ "types": "./dist/index.d.cts",
133
+ "default": "./dist/index.cjs"
134
+ }
128
135
  }
129
136
  },
137
+ "sideEffects": true,
130
138
  "repository": {
131
139
  "type": "git",
132
- "url": "git://github.com/lovell/sharp.git"
140
+ "url": "git+https://github.com/lovell/sharp.git"
133
141
  },
134
142
  "keywords": [
135
143
  "jpeg",
@@ -155,9 +163,9 @@
155
163
  "semver": "^7.8.4"
156
164
  },
157
165
  "optionalDependencies": {
158
- "@img/sharp-darwin-arm64": "0.35.0",
159
- "@img/sharp-darwin-x64": "0.35.0",
160
- "@img/sharp-freebsd-wasm32": "0.35.0",
166
+ "@img/sharp-darwin-arm64": "0.35.1-rc.1",
167
+ "@img/sharp-darwin-x64": "0.35.1-rc.1",
168
+ "@img/sharp-freebsd-wasm32": "0.35.1-rc.1",
161
169
  "@img/sharp-libvips-darwin-arm64": "1.3.0",
162
170
  "@img/sharp-libvips-darwin-x64": "1.3.0",
163
171
  "@img/sharp-libvips-linux-arm": "1.3.0",
@@ -168,18 +176,18 @@
168
176
  "@img/sharp-libvips-linux-x64": "1.3.0",
169
177
  "@img/sharp-libvips-linuxmusl-arm64": "1.3.0",
170
178
  "@img/sharp-libvips-linuxmusl-x64": "1.3.0",
171
- "@img/sharp-linux-arm": "0.35.0",
172
- "@img/sharp-linux-arm64": "0.35.0",
173
- "@img/sharp-linux-ppc64": "0.35.0",
174
- "@img/sharp-linux-riscv64": "0.35.0",
175
- "@img/sharp-linux-s390x": "0.35.0",
176
- "@img/sharp-linux-x64": "0.35.0",
177
- "@img/sharp-linuxmusl-arm64": "0.35.0",
178
- "@img/sharp-linuxmusl-x64": "0.35.0",
179
- "@img/sharp-webcontainers-wasm32": "0.35.0",
180
- "@img/sharp-win32-arm64": "0.35.0",
181
- "@img/sharp-win32-ia32": "0.35.0",
182
- "@img/sharp-win32-x64": "0.35.0"
179
+ "@img/sharp-linux-arm": "0.35.1-rc.1",
180
+ "@img/sharp-linux-arm64": "0.35.1-rc.1",
181
+ "@img/sharp-linux-ppc64": "0.35.1-rc.1",
182
+ "@img/sharp-linux-riscv64": "0.35.1-rc.1",
183
+ "@img/sharp-linux-s390x": "0.35.1-rc.1",
184
+ "@img/sharp-linux-x64": "0.35.1-rc.1",
185
+ "@img/sharp-linuxmusl-arm64": "0.35.1-rc.1",
186
+ "@img/sharp-linuxmusl-x64": "0.35.1-rc.1",
187
+ "@img/sharp-webcontainers-wasm32": "0.35.1-rc.1",
188
+ "@img/sharp-win32-arm64": "0.35.1-rc.1",
189
+ "@img/sharp-win32-ia32": "0.35.1-rc.1",
190
+ "@img/sharp-win32-x64": "0.35.1-rc.1"
183
191
  },
184
192
  "devDependencies": {
185
193
  "@biomejs/biome": "^2.4.16",
@@ -197,6 +205,7 @@
197
205
  "icc": "^4.0.0",
198
206
  "node-addon-api": "^8.8.0",
199
207
  "node-gyp": "^12.4.0",
208
+ "publint": "^0.3.21",
200
209
  "tar-fs": "^3.1.2",
201
210
  "tsd": "^0.33.0"
202
211
  },