Skip to content

feat(luxon): Use DateTime.isDateTime instead of instanceof#639

Merged
dmtrKovalenko merged 1 commit into
dmtrKovalenko:masterfrom
alex-kuck:feat/improve_luxon_integration
Jul 23, 2023
Merged

feat(luxon): Use DateTime.isDateTime instead of instanceof#639
dmtrKovalenko merged 1 commit into
dmtrKovalenko:masterfrom
alex-kuck:feat/improve_luxon_integration

Conversation

@alex-kuck

Copy link
Copy Markdown
Contributor

The usage of DateTime.isDateTime should be more stable without breaking existing behavior. It also satisfies the current version constraints of luxon (added in 1.6.0).

@alex-kuck

Copy link
Copy Markdown
Contributor Author

For context: the current implementation using instanceof breaks, when two different versions of luxon are in use (accidentally discovered due to a misconfiguration of our bundler 😅 )

@dmtrKovalenko
dmtrKovalenko merged commit 24f0ded into dmtrKovalenko:master Jul 23, 2023
This was referenced Sep 10, 2024
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