mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #386] Align next/image API surface with Next.js 16.0.0 #87
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Divkix on GitHub (Mar 9, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/386
Problem
vinext's
next/imageshim has several gaps compared to the Next.js 16.0.0 public API:blurWidth/blurHeightonStaticImageDataimageSizesdefault includes16(removed in Next.js 16)contentDispositionTypedefaults to"inline"instead of"attachment"(XSS vector)preloadprop (Next.js 16 replacement for deprecatedpriority)images.qualitiesconfig supportonLoadingComplete,layout,objectFit, etc.) cause type errors instead of being silently acceptedPlaceholderValuetype doesn't acceptdata:image/URLswidth/heighttypes don't accept string numbersStaticRequire,StaticImport,ImageLoaderProps,ImagePropsExpected behavior
Any library or app code written against Next.js 16's
next/imageAPI should work on vinext without modification.Fix
PR #385
@Divkix commented on GitHub (Mar 10, 2026):
Deferring this work — PR #385 is being closed. Will be revisited in a future PR.