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(node/stream): Make Stream the default export #901

Merged
merged 1 commit into from
May 7, 2021

Conversation

Liamolucko
Copy link
Contributor

In Node, require("stream") returns Stream itself with all the other kinds of streams as properties. This maps to the default export for ESM, so I've changed the default export of stream.ts to be Stream and added all the other streams as properties.

In Node, `require("stream")` returns `Stream` itself with all the other kinds of streams as properties. This maps to the default export for ESM, so I've changed the default export of `stream.ts` to be `Stream` and added all the other streams as properties.
Comment on lines +144 to +146
Deno.test("The default export is Stream", () => {
assertStrictEquals(streamDefault, Stream);
});
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks, @Liamolucko

@kt3k kt3k merged commit 0611d24 into denoland:main May 7, 2021
@Liamolucko Liamolucko deleted the node_stream_default branch May 7, 2021 07:06
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