rsnext/packages/next/telemetry
Steven e28d03c5a4
Add experimental next/future/image component (#37927)
This PR introduces a new experimental component, `next/future/image`, which is inspired by the existing experimental `layout="raw"`.

The difference is that much of the code has been deleted in order to reduce client-side code as well as reduce complexity:

- No `layout` prop
- No `loader` config (although `loader` prop works)
- No `IntersectionObserver`, use native `loading="lazy"` 
  - No `lazyBoundary`
  - No `lazyRoot`
- No `fill` (yet) so width & height are required
- No `objectFit` (use `style` instead)
- No `objectPosition` (use `style` instead)

This improves performance because native `loading="lazy"` doesn't need to wait for React Hydration and client-side JS.

In a future PR, we will modify `next/image` to remove `layout="raw"` since this new component supersedes it.

## Feature

- [x] Integration tests added
- [x] Documentation added
- [x] Telemetry added. In case of a feature if it's used or not.
- [x] Errors have helpful link attached, see `contributing.md`
2022-06-24 14:56:05 +00:00
..
events Add experimental next/future/image component (#37927) 2022-06-24 14:56:05 +00:00
anonymous-meta.ts is-docker, is-wsl 2020-03-30 16:26:25 -04:00
ci-info.ts Disable cache warning on supported platforms (#12495) 2020-05-05 11:04:57 -04:00
post-payload.ts Pre-compile more dependencies (#32742) 2022-01-17 15:17:22 +00:00
project-id.ts Do Not Rely on Module State (#8968) 2019-10-10 13:18:07 -04:00
storage.ts Pre-compile more dependencies continued (#32679) 2021-12-21 16:13:45 +01:00