Skip to content

feat(): upgrade SDK to hybrid esm/cjs module. update import/export statements for new structure - #126

Merged
tiagosiebler merged 6 commits into
nextwsapifrom
nextesmcjs
Aug 18, 2025
Merged

feat(): upgrade SDK to hybrid esm/cjs module. update import/export statements for new structure#126
tiagosiebler merged 6 commits into
nextwsapifrom
nextesmcjs

Conversation

@tiagosiebler

@tiagosiebler tiagosiebler commented Aug 1, 2025

Copy link
Copy Markdown
Member

Summary

  • Upgrades distributed SDK into hybrid ESM/CJS module, in line with other SDKs.
  • No breaking changes expected. Hybrid module ensures full backwards compatibility with existing environments.

Additional Information

PR Checklist

As part of the PR, make sure you have:

  • No breaking changes / documented all breaking changes clearly.
  • Updated & checked that all tests pass.
  • Updated the endpoint map (optional, if you know how).
  • Increased the version number in the package.json
  • Checked npm install runs without issue.
  • Included the package-lock.json, if it changed after npm install
  • Checked npm run build runs without issue.

@socket-security

socket-security Bot commented Aug 1, 2025

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​types/​ws@​8.18.11001007280100

View full report

@tiagosiebler tiagosiebler left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reviewed

Comment thread src/util/logger.ts
Comment thread src/util/requestUtils.ts
@tiagosiebler

tiagosiebler commented Aug 4, 2025

Copy link
Copy Markdown
Member Author

Published first public beta release, v3.0.0-beta.0, via #126.

npm install okx-api@beta

@tiagosiebler

Copy link
Copy Markdown
Member Author

Published first public beta release, v3.0.0-beta.1, via #126.

npm install okx-api@beta

Changes since last beta:

  • Implemented custom sign fn for Base REST client (it was missing).

@tiagosiebler
tiagosiebler merged commit 3f589b2 into nextwsapi Aug 18, 2025
5 checks passed
@tiagosiebler
tiagosiebler deleted the nextesmcjs branch August 18, 2025 11:52
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