Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info about "data" method to json deprecation annotation #10483

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@
- willhack
- willin
- willowcheng
- willsmithte
- wizardlyhel
- wKovacs64
- wladiston
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-server-runtime/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type TypedResponse<T = unknown> = Omit<Response, "json"> & {
* @deprecated This utility is deprecated in favor of opting into Single Fetch
* via `future.v3_singleFetch` and returning raw objects. This method will be
* removed in React Router v7. If you need to return a JSON Response, you can
* use `Response.json()`.
* use `Response.json()`. If you need to add headers or status codes, use `data()`: https://remix.run/docs/en/main/utils/data
*
* @see https://remix.run/utils/json
*/
Expand Down