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

fix: remove pretty print in types, docs #1569

Merged

Conversation

susmithagudapati
Copy link
Contributor

Screenshot 2022-09-27 at 5 15 43 PM

pretty-print option was deprecated in older releases and is meant to throw an error in normalizeArgs method in latest releases. Hence removing it from types as typescript gives a wrong sense that the pretty-print option is allowed while the js script throws an error.

This PR ensures ts throws an error if pretty-print is used in the application and corrects the pretty part of the documentation.

Test cases are already written ensuring the Pino instantiation throws an error for pretty-print.

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

@mcollina mcollina merged commit 5aec425 into pinojs:master Oct 6, 2022
@susmithagudapati susmithagudapati deleted the fix/remove-pretty-print-type branch October 23, 2022 14:11
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants