gatsby-sharp
Advanced tools
Comparing version 1.4.0-next.0 to 1.4.0-next.1
@@ -6,2 +6,11 @@ # Changelog: `gatsby-sharp` | ||
## [1.3.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-sharp@1.3.0/packages/gatsby-sharp) (2022-12-13) | ||
[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.3) | ||
#### Chores | ||
- update dependency typescript to ^4.9.3 [#37192](https://github.com/gatsbyjs/gatsby/issues/37192) ([204ed0e](https://github.com/gatsbyjs/gatsby/commit/204ed0e220eb9c1c5cdec692e82bce8e3e82e915)) | ||
- update sharp [#37131](https://github.com/gatsbyjs/gatsby/issues/37131) ([5a5e419](https://github.com/gatsbyjs/gatsby/commit/5a5e419709cd4cf39ae344a887249b0630756baf)) | ||
## [1.2.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-sharp@1.2.0/packages/gatsby-sharp) (2022-11-25) | ||
@@ -8,0 +17,0 @@ |
@@ -6,9 +6,6 @@ "use strict"; | ||
} = require(`child_process`); | ||
const { | ||
createRequire | ||
} = require(`module`); | ||
let sharpInstance; | ||
module.exports = async function getSharpInstance() { | ||
@@ -18,8 +15,8 @@ try { | ||
} catch (err) { | ||
await rebuildSharp(); // Try importing again now we have rebuilt sharp | ||
await rebuildSharp(); | ||
// Try importing again now we have rebuilt sharp | ||
return importSharp(); | ||
} | ||
}; | ||
function importSharp() { | ||
@@ -29,11 +26,9 @@ if (!sharpInstance) { | ||
const sharp = cleanRequire(`sharp`); | ||
sharp.simd(true); // Concurrency is handled by gatsby | ||
sharp.simd(true); | ||
// Concurrency is handled by gatsby | ||
sharp.concurrency(1); | ||
sharpInstance = sharp; | ||
} | ||
return sharpInstance; | ||
} | ||
function rebuildSharp() { | ||
@@ -48,6 +43,4 @@ return new Promise((resolve, reject) => { | ||
} | ||
return reject(stderr); | ||
} | ||
return setImmediate(() => resolve(stdout)); | ||
@@ -54,0 +47,0 @@ }); |
{ | ||
"name": "gatsby-sharp", | ||
"version": "1.4.0-next.0", | ||
"version": "1.4.0-next.1", | ||
"sideEffects": false, | ||
@@ -18,3 +18,3 @@ "keywords": [ | ||
"@types/sharp": "^0.31.0", | ||
"sharp": "^0.31.2" | ||
"sharp": "^0.31.3" | ||
}, | ||
@@ -44,3 +44,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "7938eb07143c06953ae0197d26533ba34eecfc29" | ||
"gitHead": "5df8a99b7fd6de53a8f3088138cc574f55f4cfd5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11410
45
Updatedsharp@^0.31.3