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

Libs(JS): downgrade @stablelib/base64 avoiding ERR_REQUIRE_ESM #1506

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

svix-onelson
Copy link
Contributor

@svix-onelson svix-onelson commented Nov 7, 2024

Fixes #1505

Big thanks to @ZONGMENG-kaito for the report.

During the work on #1480 various dependencies were updated to match what is being produced by the upstream code generator. Unfortunately, the version spec change for @stablelib/base64 up to 2.x means we inherit their ESM requirement.

The local tests (i.e. SVIX_SERVER_URL=... SVIX_TOKEN=... yarn test) continue to pass with the downgrade, so it seems like pinning to 1.x will free consumers of our lib of this new requirement for now.

Hopefully in the future we'll find a way to track 2.x without disruption.

Fixes #1505

Big thanks to @ZONGMENG-kaito for the report.

During the work on #1480
various dependencies were updated to match what is being produced by the
upstream code generator. Unfortunately, the version spec change for
`@stablelib/base64` up to 2.x means we inherit their ESM requirement.

The local tests (i.e. `SVIX_SERVER_URL=... SVIX_TOKEN=... yarn test`)
continue to pass with the downgrade, so it seems like pinning to 1.x for
now will free consumers of _our lib_ of this new requirement for now.

Hopefully in the future we'll find a way to track 2.x without
disruption.
@svix-onelson svix-onelson marked this pull request as ready for review November 7, 2024 18:21
@svix-onelson svix-onelson requested a review from a team as a code owner November 7, 2024 18:21
@svix-onelson svix-onelson merged commit fed1266 into main Nov 7, 2024
2 checks passed
@svix-onelson svix-onelson deleted the onelson/js-base64-downgrade branch November 7, 2024 18:25
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.

code: 'ERR_REQUIRE_ESM'
2 participants