deps: Use @streamr/sdk v103.3.0 (bundled)
#2007
Merged
+361
−152
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
@streamr/sdkfrom version^103.2.2to^103.3.0inpackage.jsonto ensure access to the latest features and fixes.streamr-client-reactfrom version^3.3.0to^3.4.0inpackage.json.Code Refactoring and Import Improvements:
getStreamrClientto explicitly import and returnStreamrClientfrom@streamr/sdk, improving clarity and possibly tree-shaking.src/stores/streamDraft.tsxto useimport typefor type-only imports from@streamr/sdk, clarifying intent and potentially reducing bundle size.Test Cleanup:
@streamr/dhtWebRTC connection modules insrc/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/sdkto^103.3.0(andstreamr-client-reactto^3.4.0), pulling in a refreshed dependency tree inpackage-lock.jsonincluding new browser/polyfill-related deps.Adjusts
getStreamrClientto import and returnStreamrClientas a named export (instead of default) and convertsstreamDraft.tsx’s@streamr/sdkimport to type-only. Updates Jest config to usets-jestisolatedModulesand to transpile additionalnode_modulespackages (@streamr/*,@noble/*) while removing a now-unneeded WebRTC module mock fromnav.test.tsx.Written by Cursor Bugbot for commit 024280e. This will update automatically on new commits. Configure here.