sharp 0.34.0-rc.1 → 0.34.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # sharp
2
2
 
3
- <img src="https://cdn.jsdelivr.net/gh/lovell/sharp@main/docs/image/sharp-logo.svg" width="160" height="160" alt="sharp logo" align="right">
3
+ <img src="https://cdn.jsdelivr.net/gh/lovell/sharp@main/docs/public/sharp-logo.svg" width="160" height="160" alt="sharp logo" align="right">
4
4
 
5
5
  The typical use case for this high speed Node-API module
6
6
  is to convert large images in common formats to
package/lib/index.d.ts CHANGED
@@ -971,7 +971,7 @@ declare namespace sharp {
971
971
  *
972
972
  * Using this option will remove the EXIF `Orientation` tag, if any.
973
973
  */
974
- autoOrient?: boolean;
974
+ autoOrient?: boolean | undefined;
975
975
  /**
976
976
  * When to abort processing of invalid pixel data, one of (in order of sensitivity):
977
977
  * 'none' (least), 'truncated', 'error' or 'warning' (most), highers level imply lower levels, invalid metadata will always abort. (optional, default 'warning')
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.0-rc.1",
4
+ "version": "0.34.1",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
7
7
  "contributors": [
@@ -142,33 +142,33 @@
142
142
  "semver": "^7.7.1"
143
143
  },
144
144
  "optionalDependencies": {
145
- "@img/sharp-darwin-arm64": "0.34.0-rc.1",
146
- "@img/sharp-darwin-x64": "0.34.0-rc.1",
147
- "@img/sharp-libvips-darwin-arm64": "1.1.0-rc5",
148
- "@img/sharp-libvips-darwin-x64": "1.1.0-rc5",
149
- "@img/sharp-libvips-linux-arm": "1.1.0-rc5",
150
- "@img/sharp-libvips-linux-arm64": "1.1.0-rc5",
151
- "@img/sharp-libvips-linux-ppc64": "1.1.0-rc5",
152
- "@img/sharp-libvips-linux-s390x": "1.1.0-rc5",
153
- "@img/sharp-libvips-linux-x64": "1.1.0-rc5",
154
- "@img/sharp-libvips-linuxmusl-arm64": "1.1.0-rc5",
155
- "@img/sharp-libvips-linuxmusl-x64": "1.1.0-rc5",
156
- "@img/sharp-linux-arm": "0.34.0-rc.1",
157
- "@img/sharp-linux-arm64": "0.34.0-rc.1",
158
- "@img/sharp-linux-s390x": "0.34.0-rc.1",
159
- "@img/sharp-linux-x64": "0.34.0-rc.1",
160
- "@img/sharp-linuxmusl-arm64": "0.34.0-rc.1",
161
- "@img/sharp-linuxmusl-x64": "0.34.0-rc.1",
162
- "@img/sharp-wasm32": "0.34.0-rc.1",
163
- "@img/sharp-win32-ia32": "0.34.0-rc.1",
164
- "@img/sharp-win32-x64": "0.34.0-rc.1"
145
+ "@img/sharp-darwin-arm64": "0.34.1",
146
+ "@img/sharp-darwin-x64": "0.34.1",
147
+ "@img/sharp-libvips-darwin-arm64": "1.1.0",
148
+ "@img/sharp-libvips-darwin-x64": "1.1.0",
149
+ "@img/sharp-libvips-linux-arm": "1.1.0",
150
+ "@img/sharp-libvips-linux-arm64": "1.1.0",
151
+ "@img/sharp-libvips-linux-ppc64": "1.1.0",
152
+ "@img/sharp-libvips-linux-s390x": "1.1.0",
153
+ "@img/sharp-libvips-linux-x64": "1.1.0",
154
+ "@img/sharp-libvips-linuxmusl-arm64": "1.1.0",
155
+ "@img/sharp-libvips-linuxmusl-x64": "1.1.0",
156
+ "@img/sharp-linux-arm": "0.34.1",
157
+ "@img/sharp-linux-arm64": "0.34.1",
158
+ "@img/sharp-linux-s390x": "0.34.1",
159
+ "@img/sharp-linux-x64": "0.34.1",
160
+ "@img/sharp-linuxmusl-arm64": "0.34.1",
161
+ "@img/sharp-linuxmusl-x64": "0.34.1",
162
+ "@img/sharp-wasm32": "0.34.1",
163
+ "@img/sharp-win32-ia32": "0.34.1",
164
+ "@img/sharp-win32-x64": "0.34.1"
165
165
  },
166
166
  "devDependencies": {
167
167
  "@emnapi/runtime": "^1.4.0",
168
- "@img/sharp-libvips-dev": "1.1.0-rc5",
169
- "@img/sharp-libvips-dev-wasm32": "1.1.0-rc5",
170
- "@img/sharp-libvips-win32-ia32": "1.1.0-rc5",
171
- "@img/sharp-libvips-win32-x64": "1.1.0-rc5",
168
+ "@img/sharp-libvips-dev": "1.1.0",
169
+ "@img/sharp-libvips-dev-wasm32": "1.1.0",
170
+ "@img/sharp-libvips-win32-ia32": "1.1.0",
171
+ "@img/sharp-libvips-win32-x64": "1.1.0",
172
172
  "@types/node": "*",
173
173
  "cc": "^3.0.1",
174
174
  "emnapi": "^1.4.0",
package/src/binding.gyp CHANGED
@@ -19,7 +19,10 @@
19
19
  'type': 'shared_library',
20
20
  'defines': [
21
21
  '_VIPS_PUBLIC=__declspec(dllexport)',
22
- '_ALLOW_KEYWORD_MACROS'
22
+ '_ALLOW_KEYWORD_MACROS',
23
+ 'G_DISABLE_ASSERT',
24
+ 'G_DISABLE_CAST_CHECKS',
25
+ 'G_DISABLE_CHECKS'
23
26
  ],
24
27
  'sources': [
25
28
  '<(sharp_libvips_cplusplus_dir)/VConnection.cpp',
@@ -80,6 +83,9 @@
80
83
  }, {
81
84
  'target_name': 'sharp-<(platform_and_arch)',
82
85
  'defines': [
86
+ 'G_DISABLE_ASSERT',
87
+ 'G_DISABLE_CAST_CHECKS',
88
+ 'G_DISABLE_CHECKS',
83
89
  'NAPI_VERSION=9',
84
90
  'NODE_ADDON_API_DISABLE_DEPRECATED',
85
91
  'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS'
@@ -179,6 +185,7 @@
179
185
  '-Wl,-s',
180
186
  '-Wl,--disable-new-dtags',
181
187
  '-Wl,-z,nodelete',
188
+ '-Wl,-Bsymbolic-functions',
182
189
  '-Wl,-rpath=\'$$ORIGIN/../../sharp-libvips-<(platform_and_arch)/lib\'',
183
190
  '-Wl,-rpath=\'$$ORIGIN/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',
184
191
  '-Wl,-rpath=\'$$ORIGIN/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',