diff --git a/docs/changelog.md b/docs/changelog.md index f82f27b4f..bdef2c9f0 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,10 @@ Requires libvips v8.11.3 +### v0.29.2 - TBD + +* Ensure `sharp.versions` is populated from vendored libvips. + ### v0.29.1 - 7th September 2021 * Add `lightness` option to `modulate` operation. diff --git a/lib/utility.js b/lib/utility.js index dc1ad24e8..e24a5d7b1 100644 --- a/lib/utility.js +++ b/lib/utility.js @@ -4,6 +4,7 @@ const events = require('events'); const detectLibc = require('detect-libc'); const is = require('./is'); +const platformAndArch = require('./platform')(); const sharp = require('./sharp'); /** @@ -45,7 +46,7 @@ let versions = { vips: sharp.libvipsVersion() }; try { - versions = require(`../vendor/${versions.vips}/versions.json`); + versions = require(`../vendor/${versions.vips}/${platformAndArch}/versions.json`); } catch (err) {} /**