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

Add createDeprecation method #87

Merged
merged 1 commit into from
Oct 27, 2023
Merged

Conversation

jsumners
Copy link
Member

@jsumners jsumners commented Oct 27, 2023

I was looking through the documentation while reviewing another PR this morning and discovered that we do not provide a mechanism to support Node's extended support for deprecation warning. Namely, we don't provide a way to create a deprecation warning that can be traced with --trace-deprecation, thrown with --throw-deprecation, or silenced with --no-deprecation. So I decided to add it in as bonus functionality.

While I was at it, I fixed the lack of jsdoc.

Checklist

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

Love the jsdoc.

Means we will expect a follow up PR for fastify?

@jsumners jsumners merged commit 5c8ed1f into master Oct 27, 2023
19 checks passed
@jsumners jsumners deleted the support-deprecation-warnings branch October 27, 2023 15:59
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.

None yet

3 participants