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

chore: Bump luxon types #27030

Merged
merged 1 commit into from
Dec 19, 2024
Merged

chore: Bump luxon types #27030

merged 1 commit into from
Dec 19, 2024

Conversation

robbie-c
Copy link
Member

@robbie-c robbie-c commented Dec 18, 2024

Problem

We're using a version of @types/luxon which doesn't match our version of luxon.

I want to use other luxon functions in a different PR, and the types have changed. That other PR is big, so I just pulled this out its own PR

Changes

Bump the types

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Tests still pass

return { ...(person as BasePerson), ...(person.created_at ? { created_at: person.created_at.toISO() } : {}) }
return {
...(person as BasePerson),
...(person.created_at ? { created_at: person.created_at.toISO() ?? undefined } : {}),
Copy link
Member Author

Choose a reason for hiding this comment

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

toISO could have been returning null, and we were expecting string | undefined

Copy link
Contributor

Choose a reason for hiding this comment

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

Watch this be a subtly very important bug that the whole codebase relied on 😆

@robbie-c robbie-c requested review from a team and rafaeelaudibert December 18, 2024 22:04
return { ...(person as BasePerson), ...(person.created_at ? { created_at: person.created_at.toISO() } : {}) }
return {
...(person as BasePerson),
...(person.created_at ? { created_at: person.created_at.toISO() ?? undefined } : {}),
Copy link
Contributor

Choose a reason for hiding this comment

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

Watch this be a subtly very important bug that the whole codebase relied on 😆

@robbie-c robbie-c enabled auto-merge (squash) December 19, 2024 09:16
@robbie-c robbie-c merged commit 9fbe55a into master Dec 19, 2024
94 checks passed
@robbie-c robbie-c deleted the chore/bump-luxon-types branch December 19, 2024 09:24
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.

2 participants