Kleis Auke Wolthuizen
2035492fd9
Ensure Yarn PnP hash calculation works with pre-releases ( #4347 )
2025-03-16 22:05:52 +00:00
Lovell Fuller
3c14dbb21e
Minimise use of engines
property to improve yarn v1 support
2024-08-13 09:37:00 +01:00
Richard Hillmann
56fae3eda1
Ensure SHARP_FORCE_GLOBAL_LIBVIPS option works correctly #4111
...
Allows the install/check script to inject a logger function,
keeping its use within binding.gyp free of additional output.
Co-authored-by: Lovell Fuller <github@lovell.info>
2024-05-24 17:45:39 +01:00
Lovell Fuller
579cf93030
Install: advanced option to force global libvips #4060
2024-04-10 09:25:53 +01:00
Lovell Fuller
45e8071599
Add runtime check for outdated Node.js version
2024-01-10 13:50:20 +00:00
Lovell Fuller
95ba045a69
Tests: improve yarn locator coverage
2023-12-11 21:14:40 +00:00
Lovell Fuller
a584ae093e
Allow yarn locator hash calc to fail e.g. Windows
2023-12-10 19:51:21 +00:00
Lovell Fuller
1592f96b7b
Add support for Yarn Plug'n'Play filesystem layout #3888
2023-12-10 19:38:03 +00:00
Lovell Fuller
a8f68ba7f0
Add infrastructure to build and publish as wasm32 ( #3840 )
...
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
2023-11-09 14:46:07 +00:00
Lovell Fuller
cccd1635c5
Small improvements to install error help text
2023-11-06 09:40:45 +00:00
Lovell Fuller
f8b6cb6d5b
Update package names to use 'img' npm organisation
2023-10-12 17:03:37 +01:00
Lovell Fuller
f7da2e5970
Building from source now requires node-addon-api in dependencies
...
If you want to build sharp from source against a globally-installed
libvips then you will now need to add both node-addon-api and
node-gyp to the dependencies section of your package.json file.
The binding.gyp file is "hidden" inside the src directory to
prevent various build and package manager tooling from assuming
that everyone is going to build from source every time.
2023-10-08 15:39:02 +01:00
Lovell Fuller
ca95979ecc
Prefix node builtins, skips cache lookup
2023-10-05 12:09:19 +01:00
Lovell Fuller
aabbe1fa08
Distribute prebuilt binaries via the npm registry #3750
...
- Remove all custom download logic for prebuilt binaries
- Add scripts to populate package contents
- Specify minimum versions of common package managers
- Remove sharp.vendor runtime API as no-longer relevant
- Update installation docs and issue templates
2023-09-26 20:26:39 +01:00
Lovell Fuller
d08baa20e6
Install: log possible error when removing vendor dir
2023-04-19 11:06:16 +01:00
Lovell Fuller
6c61ad256f
Ensure all source code files contain SPDX licence
2023-02-28 17:01:58 +00:00
Lovell Fuller
5be36c2deb
Install: log Rosetta detection, improve related docs
2023-01-04 21:11:21 +00:00
Lovell Fuller
eaf8a86bf2
Tests: increase timeout to 20s
...
Ignore unit coverage of fn used at install time
2022-09-27 14:25:34 +01:00
Lovell Fuller
3400976d61
Tests: ignore a branch for coverage check
2022-09-27 14:10:49 +01:00
Lovell Fuller
48e3ea5e29
Ensure brew-installed vips can be detected #3239
2022-05-26 22:58:24 +01:00
Lovell Fuller
a6aeef612b
Install: pass PKG_CONFIG_PATH
via env rather than substitution
2022-05-23 12:12:19 +01:00
Lovell Fuller
fc3b4a683d
Expand pkgconfig search path for wider BSD support #3106
2022-02-27 09:39:21 +00:00
Lovell Fuller
3b492ea423
Install: verify prebuilt binaries with Subresource Integrity check
2021-12-12 18:56:46 +00:00
Lovell Fuller
e418d91511
Test: correct coverage syntax
2021-07-14 13:45:47 +01:00
Lovell Fuller
6c2e6c5432
Install: multiple platform-arch binaries in same tree
2021-07-14 13:45:47 +01:00
Lovell Fuller
84d4e3cf8f
Require specific semver functions, aids tree-shaking
2021-04-30 20:42:46 +01:00
Lovell Fuller
fe0767df13
Install: log errors with more obvious prefix
2021-04-01 16:20:58 +01:00
Lovell Fuller
8dffa28b4d
Remove npmlog as a direct dependency
...
It remains a transitive dependency via prebuild-install
2021-03-14 11:19:53 +00:00
Lovell Fuller
4264c0577e
Improve experience for those using Apple M1 devices #2460
...
- For Rosetta x64, prevent use of global ARM64 libvips
- For ARM64, improve error message when global libvips not found
2021-02-22 13:49:31 +00:00
Lovell Fuller
8d49b7dde1
Ensure tests pass with latest libvips master branch
...
Expose forthcoming HEIF features where available
2021-01-13 16:47:49 +00:00
Kleis Auke Wolthuizen
7c1c48327e
Add support for statically-linked dependencies (lovell/sharp-libvips#39) ( #2223 )
2020-06-28 21:17:15 +01:00
Lovell Fuller
fc2f672337
Improve error messaging when platform mismatch detected
2020-05-19 18:53:39 +01:00
Lovell Fuller
8b3c0daab2
Upgrade to libvips v8.9.1-alpha1 prebuild
2020-02-19 11:41:18 +00:00
Lovell Fuller
119d16cad3
Ignore test coverage on more esoteric code paths
2019-07-14 21:52:29 +01:00
Lovell Fuller
c8ff7e11a9
Upgrade to libvips v8.7.0
...
Drop Node 4 support
Add experimental musl prebuild for Node 8 and 10
2018-09-19 21:38:09 +01:00
ajhool
bf3254cb16
Install: avoid race conditions when creating directories ( #1358 )
2018-08-29 09:20:26 +01:00
Lovell Fuller
532de4ecab
Cache libvips binaries to reduce re-install time #1301
2018-08-05 10:31:41 +01:00
Lovell Fuller
75556bb57c
Ensure vendor platform mismatch throws error #1303
2018-08-04 21:34:11 +01:00
Thomas Parisot
0d7c3fc4d8
Ignore global libvips during install via SHARP_IGNORE_GLOBAL_LIBVIPS ( #1165 )
2018-03-22 18:48:30 +00:00
Lovell Fuller
430a4297aa
Add support for prebuilt sharp binaries on common platforms
2018-03-04 14:33:44 +00:00