Skip to content

fix(index): return undefined on error instead of null #133

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

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

Fdawgs
Copy link
Member

@Fdawgs Fdawgs commented Mar 6, 2025

closes #132

This is a breaking change so it'd be great to combine this with #72

Checklist

@Fdawgs Fdawgs requested a review from a team March 8, 2025 12:01
gurgunday

This comment was marked as outdated.

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, makes sense to me as null is valid JSON

@gurgunday gurgunday requested review from Uzlopak and a team March 8, 2025 15:38
@Fdawgs Fdawgs merged commit adcf3eb into main Mar 9, 2025
18 checks passed
@Fdawgs Fdawgs deleted the fix/error-response branch March 9, 2025 17:03
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.

safeParse returns null rather than undefined, but null is a valid JSON value.
4 participants