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

refactor(metrics): swap isDate for instanceof Date #3462

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

dreamorosi
Copy link
Contributor

Summary

Changes

Please provide a summary of what's being changed

This PR replaces the internal usage of the isDate utility function from the standard Node.js library in favor of a more widely supported instanceof Date check.

The two methods are functionally equivalent and this change improves compatibility of the Metrics utility with alternative experimental runtimes such as LLRT.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: #3461


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi self-assigned this Jan 8, 2025
@dreamorosi dreamorosi requested review from a team as code owners January 8, 2025 15:10
@boring-cyborg boring-cyborg bot added the metrics This item relates to the Metrics Utility label Jan 8, 2025
@pull-request-size pull-request-size bot added the size/XS PR between 0-9 LOC label Jan 8, 2025
Copy link

sonarqubecloud bot commented Jan 8, 2025

@github-actions github-actions bot added the enhancement PRs that introduce minor changes, usually to existing features label Jan 8, 2025
@dreamorosi dreamorosi merged commit 149e17f into main Jan 8, 2025
44 checks passed
@dreamorosi dreamorosi deleted the refactor/metrics_is_date branch January 8, 2025 15:41
@dreamorosi dreamorosi linked an issue Jan 8, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement PRs that introduce minor changes, usually to existing features metrics This item relates to the Metrics Utility size/XS PR between 0-9 LOC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: remove usage of isDate in Metrics utility internals
2 participants