mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #708] Update revalidateTag shim to support new two-argument signature (tag, profile) #149
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#149
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 @github-actions[bot] on GitHub (Mar 29, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/708
Next.js Change
revalidateTagnow requires a secondprofileargument. The old single-argument formrevalidateTag(tag)is deprecated and causes a TypeScript build error in Next.js 16. The new signature isrevalidateTag(tag, profile)whereprofilecontrols stale-while-revalidate semantics (e.g.'max').Upstream commit:
github.com/vercel/next.js@e586cda317This commit updates 14 call sites across 6 docs files from
revalidateTag(tag)torevalidateTag(tag, 'max'). The actual function signature change happened in an earlier commit but this confirms the API is now stable and documented.Impact on vinext
The
revalidateTagshim in vinext (likely inshims/orserver/) needs to:revalidateTag(tag: string, profile: string)profileparameter to control revalidation behavior (e.g.'max'for stale-while-revalidate)The ISR cache layer (
isr-cache.ts) andCacheHandlermay also need updates if theprofileparameter affects cache invalidation strategy.References
revalidateTagAPI now requires a secondprofileargument. Using the old single-argument form causes a TypeScript build error: 'Expected 2 arguments, but got 1'."