sharp 0.34.2-rc.0 → 0.34.2

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/lib/output.js CHANGED
@@ -1019,6 +1019,9 @@ function tiff (options) {
1019
1019
  * AVIF image sequences are not supported.
1020
1020
  * Prebuilt binaries support a bitdepth of 8 only.
1021
1021
  *
1022
+ * This feature is experimental on the Windows ARM64 platform
1023
+ * and requires a CPU with ARM64v8.4 or later.
1024
+ *
1022
1025
  * @example
1023
1026
  * const data = await sharp(input)
1024
1027
  * .avif({ effort: 2 })
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.34.2-rc.0",
4
+ "version": "0.34.2",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
7
7
  "contributors": [
@@ -142,8 +142,8 @@
142
142
  "semver": "^7.7.2"
143
143
  },
144
144
  "optionalDependencies": {
145
- "@img/sharp-darwin-arm64": "0.34.2-rc.0",
146
- "@img/sharp-darwin-x64": "0.34.2-rc.0",
145
+ "@img/sharp-darwin-arm64": "0.34.2",
146
+ "@img/sharp-darwin-x64": "0.34.2",
147
147
  "@img/sharp-libvips-darwin-arm64": "1.1.0",
148
148
  "@img/sharp-libvips-darwin-x64": "1.1.0",
149
149
  "@img/sharp-libvips-linux-arm": "1.1.0",
@@ -153,16 +153,16 @@
153
153
  "@img/sharp-libvips-linux-x64": "1.1.0",
154
154
  "@img/sharp-libvips-linuxmusl-arm64": "1.1.0",
155
155
  "@img/sharp-libvips-linuxmusl-x64": "1.1.0",
156
- "@img/sharp-linux-arm": "0.34.2-rc.0",
157
- "@img/sharp-linux-arm64": "0.34.2-rc.0",
158
- "@img/sharp-linux-s390x": "0.34.2-rc.0",
159
- "@img/sharp-linux-x64": "0.34.2-rc.0",
160
- "@img/sharp-linuxmusl-arm64": "0.34.2-rc.0",
161
- "@img/sharp-linuxmusl-x64": "0.34.2-rc.0",
162
- "@img/sharp-wasm32": "0.34.2-rc.0",
163
- "@img/sharp-win32-arm64": "0.34.2-rc.0",
164
- "@img/sharp-win32-ia32": "0.34.2-rc.0",
165
- "@img/sharp-win32-x64": "0.34.2-rc.0"
156
+ "@img/sharp-linux-arm": "0.34.2",
157
+ "@img/sharp-linux-arm64": "0.34.2",
158
+ "@img/sharp-linux-s390x": "0.34.2",
159
+ "@img/sharp-linux-x64": "0.34.2",
160
+ "@img/sharp-linuxmusl-arm64": "0.34.2",
161
+ "@img/sharp-linuxmusl-x64": "0.34.2",
162
+ "@img/sharp-wasm32": "0.34.2",
163
+ "@img/sharp-win32-arm64": "0.34.2",
164
+ "@img/sharp-win32-ia32": "0.34.2",
165
+ "@img/sharp-win32-x64": "0.34.2"
166
166
  },
167
167
  "devDependencies": {
168
168
  "@emnapi/runtime": "^1.4.3",
@@ -179,7 +179,7 @@
179
179
  "icc": "^3.0.0",
180
180
  "jsdoc-to-markdown": "^9.1.1",
181
181
  "license-checker": "^25.0.1",
182
- "mocha": "^11.2.2",
182
+ "mocha": "^11.4.0",
183
183
  "node-addon-api": "^8.3.1",
184
184
  "nyc": "^17.1.0",
185
185
  "prebuild": "^13.0.1",
package/src/pipeline.cc CHANGED
@@ -294,6 +294,7 @@ class PipelineWorker : public Napi::AsyncWorker {
294
294
  option->set("n", baton->input->pages);
295
295
  option->set("page", baton->input->page);
296
296
  option->set("dpi", baton->input->density);
297
+ option->set("background", baton->input->pdfBackground);
297
298
 
298
299
  if (baton->input->buffer != nullptr) {
299
300
  // Reload PDF buffer