From ccb20f6903b6d2105b03c97e950eb0a6b092431e Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Mon, 21 Oct 2024 13:19:48 -0400 Subject: [PATCH] Update deprecations.ts --- packages/remix-server-runtime/deprecations.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/remix-server-runtime/deprecations.ts b/packages/remix-server-runtime/deprecations.ts index a9612a4af06..1ccf4d384a2 100644 --- a/packages/remix-server-runtime/deprecations.ts +++ b/packages/remix-server-runtime/deprecations.ts @@ -3,11 +3,11 @@ export function resourceRouteJsonWarning( routeId: string ) { return ( - "⚠️ REMIX FUTURE CHANGE: Resource routes will no longer be able to " + - "return null or raw JavaScript objects in v3 when Single Fetch becomes the default. " + - "You can prepare for this change at your convenience by wrapping the data " + - `returned from your \`${type}\` function in the \`${routeId}\` route with ` + - "`json()`. For instructions on making this change see " + - "https://remix.run/docs/en/v2.9.2/guides/single-fetch#resource-routes" + "⚠️ REMIX FUTURE CHANGE: Externally-accessed resource routes will no longer be " + + "able to return raw JavaScript objects or `null` in React Router v7 when " + + "Single Fetch becomes the default. You can prepare for this change at your " + + `convenience by wrapping the data returned from your \`${type}\` function in ` + + `the \`${routeId}\` route with \`json()\`. For instructions on making this ` + + "change, see https://remix.run/docs/en/v2.13.1/guides/single-fetch#resource-routes" ); }