Skip to content

Conversation

@mondoreale
Copy link
Collaborator

@mondoreale mondoreale commented Jan 29, 2026

Summary

This pull request updates dependencies and refactors imports to improve compatibility and code clarity. The most important changes are grouped below.

Changes

Dependency Updates:

  • Upgraded @streamr/sdk from version ^103.2.2 to ^103.3.0 in package.json to ensure access to the latest features and fixes.
  • Upgraded streamr-client-react from version ^3.3.0 to ^3.4.0 in package.json.

Code Refactoring and Import Improvements:

  • Changed the dynamic import in getStreamrClient to explicitly import and return StreamrClient from @streamr/sdk, improving clarity and possibly tree-shaking.
  • Updated the import in src/stores/streamDraft.tsx to use import type for type-only imports from @streamr/sdk, clarifying intent and potentially reducing bundle size.

Test Cleanup:

  • Removed a Jest mock for @streamr/dht WebRTC connection modules in src/shared/test/components/Nav/nav.test.tsx, simplifying test setup.

Note

Medium Risk
Dependency upgrade plus Jest transform behavior changes can impact runtime behavior and test execution, especially around Node-vs-browser module resolution for @streamr/* packages.

Overview
Updates @streamr/sdk to ^103.3.0 (and streamr-client-react to ^3.4.0), pulling in a refreshed dependency tree in package-lock.json including new browser/polyfill-related deps.

Adjusts getStreamrClient to import and return StreamrClient as a named export (instead of default) and converts streamDraft.tsx’s @streamr/sdk import to type-only. Updates Jest config to use ts-jest isolatedModules and to transpile additional node_modules packages (@streamr/*, @noble/*) while removing a now-unneeded WebRTC module mock from nav.test.tsx.

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

- Add @noble/hashes, @noble/curves, @streamr to transformIgnorePatterns
  to allow Jest to transpile ESM-only indirect dependencies
- Enable isolatedModules in ts-jest to skip type checking during tests
  and avoid errors from dependencies with missing type exports
@mondoreale mondoreale merged commit 602acee into master Jan 29, 2026
9 checks passed
@mondoreale mondoreale deleted the update-sdk branch January 29, 2026 14:09
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