Skip to content

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

2 participants