-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat(remix-server-runtime): use type-fest
's Jsonify
type in Serialize
#6642
feat(remix-server-runtime): use type-fest
's Jsonify
type in Serialize
#6642
Conversation
|
7ed5847
to
cd65f45
Compare
cd65f45
to
f3e230e
Compare
f3e230e
to
718e59c
Compare
@MichaelDeBoey given that we have abandoned pretty types (at least for now), I think we are set to adopt |
718e59c
to
41e4c3b
Compare
@pcattori I also applied all the changes from this repo into I'd love to get it fixed upstream & here |
41e4c3b
to
bc5d5f2
Compare
bc5d5f2
to
80713d6
Compare
@pcattori I've updated this PR to the latest version of what I've done in sindresorhus/type-fest#638 as well |
@MichaelDeBoey I think the goal for this PR should be to replace our types with |
@pcattori Unfortunately that's not possible (yet) as
|
@pcattori It seems like there's still a problem with the |
0867207
to
0c38d30
Compare
00dae7a
to
6f44b56
Compare
@MichaelDeBoey since |
6f44b56
to
1b63cb6
Compare
Serialize
type more in line with type-fest
's Jsonify
typetype-fest
's Jsonify
type in Serialize
@pcattori I now changed this PR to use |
de3a1d5
to
1d61ff8
Compare
1d61ff8
to
23f38a1
Compare
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Would it make sense to revert this PR till there is a stable solution? The FYI, I'm typing my loaders using the export async function loader({ }: DataFunctionArgs) {
return defer({ obj });
} Just applied a https://gist.github.com/smeijer/885310fca21828272bca29097f490534 |
Jsonify
so that it's easier to switch totype-fest
at a later stageBoolean
,Number
,String
,Map
&Set
toJSON
functionUndefinedToOptional
typetype-fest
codebaseNonJsonPrimitive
->NotJsonable
Function
with(...arguments_: any[]) => any
SerializeTuple
->JsonifyList
SerializeObject
->JsonifyObject
This is mainly taking over @sachinraja's awesome work from sindresorhus/type-fest#519, thanks for that! 🙏