diff --git a/.changeset/purple-gifts-bake.md b/.changeset/purple-gifts-bake.md new file mode 100644 index 0000000000..73ed20ccb6 --- /dev/null +++ b/.changeset/purple-gifts-bake.md @@ -0,0 +1,5 @@ +--- +"react-router": patch +--- + +Stop logging invalid warning when `v7_relativeSplatPath` is set to false diff --git a/build.utils.d.ts b/build.utils.d.ts new file mode 100644 index 0000000000..575cd77216 --- /dev/null +++ b/build.utils.d.ts @@ -0,0 +1 @@ +export declare function createBanner(packageName: string, version: string): string; diff --git a/packages/react-router/lib/deprecations.ts b/packages/react-router/lib/deprecations.ts index f6b4238442..188e200afe 100644 --- a/packages/react-router/lib/deprecations.ts +++ b/packages/react-router/lib/deprecations.ts @@ -32,7 +32,7 @@ export function logV6DeprecationWarnings( if ( renderFuture?.v7_relativeSplatPath === undefined && - (!routerFuture || !routerFuture.v7_relativeSplatPath) + (!routerFuture || routerFuture.v7_relativeSplatPath === undefined) ) { logDeprecation( "v7_relativeSplatPath",