Skip to content

Commit fed1266

Browse files
authored
Libs(JS): downgrade @stablelib/base64 avoiding ERR_REQUIRE_ESM (#1506)
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.
2 parents 03809ac + 05d93d2 commit fed1266

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"lint:fix": "yarn run lint:prettier --write && yarn run lint:eslint --fix"
3030
},
3131
"dependencies": {
32-
"@stablelib/base64": "^2.0.0",
32+
"@stablelib/base64": "^1.0.0",
3333
"@types/node": "^22.7.5",
3434
"es6-promise": "^4.2.8",
3535
"fast-sha256": "^1.3.0",

javascript/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -629,10 +629,10 @@
629629
dependencies:
630630
"@sinonjs/commons" "^3.0.0"
631631

632-
"@stablelib/base64@^2.0.0":
633-
version "2.0.0"
634-
resolved "https://registry.yarnpkg.com/@stablelib/base64/-/base64-2.0.0.tgz#f13a98549cd5ca0750cd177bbd08b599d24e5f8e"
635-
integrity sha512-ffSfySa1ZpZYzM5FQ2xILQ2jifQ+GlgbDJzRTCtaB0sqta88KYghB/tlSV2VS2iHRCvMdUvJlLOW1rmSkziWnw==
632+
"@stablelib/base64@^1.0.0":
633+
version "1.0.1"
634+
resolved "https://registry.yarnpkg.com/@stablelib/base64/-/base64-1.0.1.tgz#bdfc1c6d3a62d7a3b7bbc65b6cce1bb4561641be"
635+
integrity sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==
636636

637637
"@stablelib/utf8@^2.0.0":
638638
version "2.0.0"

0 commit comments

Comments
 (0)