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

Revert "import * as http -> import http from 'http'" #1859

Merged

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Jul 28, 2023

Reverts #1854

We should not use esModuleInterop because this is a breaking change

Accordingly, library authors should set both allowSyntheticDefaultImports and esModuleInterop to false. This allows consumers to opt into these semantics, but does not require them to do so. Consumers can always safely use alternative import syntaxes (including falling back to require() and import()), or can enable these flags and opt into this behavior themselves.

https://www.semver-ts.org/#module-interop

Thank you for catching this @anniel-stripe!

@richardm-stripe richardm-stripe marked this pull request as ready for review July 28, 2023 00:19
Copy link
Contributor

@anniel-stripe anniel-stripe left a comment

Choose a reason for hiding this comment

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

Thank you!

@richardm-stripe richardm-stripe merged commit 9c3c4ef into master Jul 28, 2023
@richardm-stripe richardm-stripe deleted the revert-1854-richardm-monkey-patchable-node-http branch July 28, 2023 00:22
gurus00 pushed a commit to gurus00/stripe-node that referenced this pull request Feb 11, 2025
…y-patchable-node-http

Revert "import * as http -> import http from 'http'"
gurus00 pushed a commit to gurus00/stripe-node that referenced this pull request Feb 11, 2025
…y-patchable-node-http

Revert "import * as http -> import http from 'http'"
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