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

refactor(remix-server-runtime): reimplement Jsonify type utility #7605

Merged
merged 9 commits into from
Oct 11, 2023
Merged
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
11 changes: 11 additions & 0 deletions .changeset/stale-apples-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@remix-run/react": patch
"@remix-run/server-runtime": patch
---

Emulate types for `JSON.parse(JSON.stringify(x))` in `SerializeFrom`

Notably, type fields that are only assignable to `undefined` after serialization are now omitted since
`JSON.stringify |> JSON.parse` will omit them. See test cases for examples.

Also fixes type errors when upgrading to v2 from 1.19
331 changes: 0 additions & 331 deletions packages/remix-react/__tests__/hook-types-test.tsx

This file was deleted.

Loading