rsnext/packages/next/types
Steven 07c4ec052e
feat(next/image)!: remove squoosh in favor of sharp as optional dep (#61696)
## 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
- Closes 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
2024-02-06 14:17:07 -05:00
..
compiled.d.ts Component Module Types (#56454) 2023-10-05 15:28:45 +00:00
global.d.ts make stdout blocking on macos (#51883) 2023-06-27 14:55:27 +00:00
index.d.ts fix: add maxDuration to PageConfig type (#55918) 2023-12-01 10:58:02 +01:00
misc.d.ts feat(next/image)!: remove squoosh in favor of sharp as optional dep (#61696) 2024-02-06 14:17:07 -05:00
react-dom.d.ts Associate server error digest with browser logged one (#61592) 2024-02-06 13:39:12 +01:00
react.d.ts Partial Prerendering (#57287) 2023-10-24 01:13:05 +00:00
webpack.d.ts enable verbatimModuleSyntax to make type imports/exports explicit (#56551) 2023-10-07 15:09:54 +00:00