Skip to content

support to stringify invalid dates#61

Merged
Rich-Harris merged 4 commits into
sveltejs:masterfrom
ivanhofer:invalid-date
Apr 19, 2024
Merged

support to stringify invalid dates#61
Rich-Harris merged 4 commits into
sveltejs:masterfrom
ivanhofer:invalid-date

Conversation

@ivanhofer

Copy link
Copy Markdown
Contributor

fixes #51

@ciscoheat

Copy link
Copy Markdown

Any plans to merge this? I'm approaching v1.0 for Superforms, it would be great to have this, to be able to send invalid dates back to the client, instead of setting them to undefined, violating the schema type.

@ciscoheat

Copy link
Copy Markdown

This would be very nice to have, now that version 2 of Superforms is underway!

@ciscoheat

Copy link
Copy Markdown

Getting close to Superforms v2 alpha release now. I wouldn't want to include devalue in the library and patch it, so if you have some time to merge this support for invalid dates, that would be very nice.

@Rich-Harris Rich-Harris merged commit 127d655 into sveltejs:master Apr 19, 2024
@Rich-Harris

Copy link
Copy Markdown
Member

Thank you Ivan, wherever you are ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

don't throw an error on invalid dates when using stringify

3 participants