Skip to content

feat: update module resolution to node16 #3027

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ivaylonikolov7
Copy link
Contributor

Description:

  • Modernize module resolution for Node16 compatibility
  • Update tsconfig.json to use Node16 module and moduleResolution
  • Update cryptography package to support new types
  • Fix import statements across multiple files for Node16 module resolution compatibility

Related issue(s): #2722

Fixes #2722

Notes for reviewer:
This could be potentially a BREAKING CHANGE but the current tsconfig settings in our SDK are already deprecated by Typescript.

This is the setting in tsconfig.json that is deprecated by Typescript:

"moduleResolution": "node",

This setting says node: Deprecated, use "node10" in TypeScript 5.0+ instead but the recommended ones are node16 and nodenext.

We could keep this for our incoming major version bump and keep this openned until the incoming major version change.

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.

Type checking errors when requiring @hashgraph/sdk
1 participant