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 TS types for transports #1050

Merged
merged 1 commit into from
Jul 5, 2021
Merged

Add TS types for transports #1050

merged 1 commit into from
Jul 5, 2021

Conversation

kibertoad
Copy link
Contributor

@kibertoad kibertoad commented Jul 4, 2021

refs #1003

@kibertoad kibertoad requested review from mcollina and a team July 4, 2021 10:47
}

// ToDo https://github.com/pinojs/thread-stream/issues/24
type ThreadStream = any
Copy link
Contributor Author

@kibertoad kibertoad Jul 4, 2021

Choose a reason for hiding this comment

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

Considering that ThreadStream is at a pre-release version and might potentially change a lot, I don't think it makes much sense to inline its type definitions in pino, especially since it is likely to be simply fed into pino and not manipulated directly.
I'll work on pinojs/thread-stream#24 when there is a green light to do so, and replace this type with a reference to bundled type, but I don't think it should be a blocker here.

@kibertoad
Copy link
Contributor Author

kibertoad commented Jul 4, 2021

@mcollina On a somewhat unrelated note, considering that thread-stream is at a pre-release version, shouldn't it be pinned at patch, not minor version, as breaking changes within minor versions are legal within semver?

@mcollina
Copy link
Member

mcollina commented Jul 4, 2021

thread-stream is an internal library that should not be seen from the outside.

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 ff3073a into pinojs:next Jul 5, 2021
@github-actions
Copy link

github-actions bot commented Jul 6, 2022

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 Jul 6, 2022
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