a6a6117197
## History Previously, we added support for `squoosh` because it was a wasm implementation that "just worked" on all platforms when running `next dev` for the first time. However, it was slow so we always recommended manually installing `sharp` for production use cases running `next build` and `next start`. Now that [`sharp` supports webassembly](https://sharp.pixelplumbing.com/install#webassembly), we no longer need to maintain `squoosh`, so it can be removed. We also don't need to make the user install sharp manually because it can be installed under `optionalDependencies`. I left it optional in case there was some platform that still needed to manually install the wasm variant with `npm install --cpu=wasm32 sharp` such as codesandbox/stackblitz (I don't believe sharp has any fallback built in yet). Since we can guarantee `sharp`, we can also remove `get-orientation` dep and upgrade `image-size` dep. I also moved an [existing `sharp` test](https://github.com/vercel/next.js/pull/56674) into its own fixture since it was unrelated to image optimization. ## Related Issues - Fixes https://github.com/vercel/next.js/issues/41417 - Related https://github.com/vercel/next.js/pull/54670 - Related https://github.com/vercel/next.js/issues/54708 - Related https://github.com/vercel/next.js/issues/44804 - Related https://github.com/vercel/next.js/issues/48820 - Related https://github.com/vercel/next.js/pull/61810 - Related https://github.com/vercel/next.js/pull/61696 - Related https://github.com/vercel/next.js/issues/44685 - Closes https://github.com/vercel/next.js/issues/64362 ## Breaking Change This is a breaking change because newer versions of `sharp` no longer support `yarn@1`. - https://github.com/lovell/sharp/issues/3750 The workaround is to install with `yarn --ignore-engines` flag. Also note that Vercel no longer defaults to yarn when no lockfile is found - https://github.com/vercel/vercel/pull/11131 - https://github.com/vercel/vercel/pull/11242 Closes NEXT-2823 |
||
---|---|---|
.. | ||
send-trace-to-jaeger | ||
automated-update-workflow.js | ||
check-examples.sh | ||
check-is-release.js | ||
check-manifests.js | ||
check-pre-compiled.bat | ||
check-pre-compiled.sh | ||
code-freeze.js | ||
deploy-examples.sh | ||
deploy-tarball.js | ||
deploy-turbopack-docs.sh | ||
generate-release-log.mjs | ||
git-configure.mjs | ||
inject-deploy-url.js | ||
install-native.mjs | ||
minimal-server.js | ||
next-with-deps.sh | ||
normalize-version-bump.js | ||
publish-native.js | ||
publish-release.js | ||
pull-turbo-cache.js | ||
release-stats.sh | ||
reset-project.mjs | ||
rm.mjs | ||
run-e2e-test-project-reset.mjs | ||
run-for-change.js | ||
run-related-test.mjs | ||
setup-node.sh | ||
setup-wasm.mjs | ||
start-release.js | ||
sync-react.js | ||
test-new-tests.mjs | ||
trace-dd.mjs | ||
trace-next-server.js | ||
trace-to-event-format.mjs | ||
trace-to-tree.mjs | ||
update-google-fonts.js | ||
validate-externals-doc.js |