Skip to content

Switch to ESM - #7

Merged
carlos-poly merged 1 commit into
mainfrom
carlos/03-04-switch_to_esm
Mar 4, 2026
Merged

carlos-poly merged 1 commit into
mainfrom
carlos/03-04-switch_to_esm

Conversation

@carlos-poly

@carlos-poly carlos-poly commented Mar 4, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Medium Risk
Medium risk because this is a breaking packaging change (ESM + exports + .js specifiers) that can affect downstream consumers and build/test resolution, despite minimal runtime logic changes.

Overview
This PR converts the SDK from CommonJS to ESM/NodeNext: package.json adds type: module and an exports map, tsconfig.json switches to module/moduleResolution: nodenext, and the build no longer forces --module commonjs.

All internal imports/exports are updated to use explicit .js extensions (including tests), and the HMAC signer switches from crypto.createHmac default import to node:crypto’s createHmac. It also removes the tslib dependency and bumps the package version to 1.0.0.

Written by Cursor Bugbot for commit 0ac2a1d. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@carlos-poly
carlos-poly marked this pull request as ready for review March 4, 2026 17:31
@carlos-poly
carlos-poly requested a review from a team as a code owner March 4, 2026 17:31
@carlos-poly
carlos-poly force-pushed the carlos/03-04-switch_to_esm branch from 0c93aa0 to 0ac2a1d Compare March 4, 2026 17:32
@carlos-poly carlos-poly changed the title Switch to esm Switch to ESM Mar 4, 2026
@carlos-poly
carlos-poly merged commit ec66a6d into main Mar 4, 2026
6 checks passed
@carlos-poly
carlos-poly deleted the carlos/03-04-switch_to_esm branch March 4, 2026 19:44
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