Skip to content

feat(@react-router/dev): log future flag warnings for upcoming v8 flags#15029

Draft
brophdawg11 wants to merge 3 commits into
devfrom
agents/react-router-v7-flag-deprecation-logging
Draft

feat(@react-router/dev): log future flag warnings for upcoming v8 flags#15029
brophdawg11 wants to merge 3 commits into
devfrom
agents/react-router-v7-flag-deprecation-logging

Conversation

@brophdawg11
Copy link
Copy Markdown
Contributor

@brophdawg11 brophdawg11 commented May 8, 2026

Do not merge yet

Adds future flag deprecation warnings for v7 in preparation for v8. Warnings are suppressed when a flag is explicitly set to either true or false — only undefined (i.e., not yet configured) triggers a warning.

During config resolution, warn about stable v8_ future flags the user
hasn't yet opted into, pointing them to the upgrade guide. This mirrors
the pattern used in Remix v2 to nudge users toward adopting future flags
before they become mandatory.

Warns for: v8_middleware, v8_splitRouteModules, v8_viteEnvironmentApi,
and v8_passThroughRequests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

✅ Change File Found

A change file file exists in this PR. Thanks!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Preview Build Available

Preview builds have been created for this PR. You can install react-router using:

pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router"

And/or install other packages via:

pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router-dev"
pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router-express"
pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router-node"
pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router-serve"

These preview builds will be updated automatically as you push new commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant