Skip to content

Commit 85a1165

Browse files
committed
Bump @streamr/sdk and streamr-client-react
1 parent 416112b commit 85a1165

5 files changed

Lines changed: 132 additions & 68 deletions

File tree

package-lock.json

Lines changed: 126 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@sentry/react": "^8.34.0",
4848
"@streamr/config": "^5.9.2",
4949
"@streamr/hub-contracts": "^1.1.2",
50-
"@streamr/sdk": "^103.2.2",
50+
"@streamr/sdk": "^103.3.0-experiment.0",
5151
"@streamr/streamr-icons": "^0.1.9",
5252
"@streamr/streamr-layout": "^2.5.3",
5353
"@tanstack/react-query": "^5.51.21",
@@ -101,7 +101,7 @@
101101
"rich-markdown-editor": "^11.21.3",
102102
"storybook": "^8.3.3",
103103
"stream-browserify": "^3.0.0",
104-
"streamr-client-react": "^3.3.0",
104+
"streamr-client-react": "^3.4.0",
105105
"stringify-object": "^5.0.0",
106106
"styled-components": "^5.3.10",
107107
"toasterhea": "^1.0.4",

src/getters/getStreamrClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export async function getStreamrClientInstance(
3535
* Returns StreamrClient class.
3636
*/
3737
async function getStreamrClient() {
38-
return (await import('@streamr/sdk')).default
38+
const { StreamrClient } = await import('@streamr/sdk')
39+
return StreamrClient
3940
}
4041

4142
// Load the client library proactively so that we don't have to wait later.

src/shared/test/components/Nav/nav.test.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ import { render, RenderResult, screen } from '@testing-library/react'
44
import Nav from '~/components/Nav'
55
import { useWalletAccount, useEns } from '~/shared/stores/wallet'
66

7-
/**
8-
* Jest, even when using the `jsdom` environment, does not respect the `browser` field
9-
* or `exports.*.browser` overrides in `package.json`. This means that Node-specific files
10-
* from `@streamr/*` are not automatically swapped for their browser-friendly alternatives.
11-
*
12-
* To ensure the correct files are used in tests, the following mapping is required.
13-
*/
14-
jest.mock('@streamr/dht/dist/src/connection/webrtc/NodeWebrtcConnection', () =>
15-
require('@streamr/dht/dist/src/connection/webrtc/BrowserWebrtcConnection'),
16-
)
17-
187
jest.mock('~/shared/stores/wallet', () => ({
198
__esModule: true,
209
useWalletAccount: jest.fn(),

src/stores/streamDraft.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import StreamrClient, {
1+
import type {
22
PermissionAssignment,
33
Stream,
44
StreamPermission,
5+
StreamrClient,
56
} from '@streamr/sdk'
67
import { useQuery } from '@tanstack/react-query'
78
import isEqual from 'lodash/isEqual'

0 commit comments

Comments
 (0)