Skip to content

Commit aa97cf4

Browse files
authored
fix(deps): bump @stream-io toolkit packages to the .mjs/.cjs builds (#1971)
## CLA - [x] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required). - [x] Code changes are tested ## Description of the changes, What, Why and How? The js-toolkit packages now ship explicit `.mjs`/`.cjs` builds targeting ES2022 (GetStream/js-toolkit#58). Their previous ESM build was `.js` in packages without a `"type"`, so Node only loaded it as ESM through syntax detection; without it, SSR crashed with `The requested module '@stream-io/state-store' does not provide an export named 'StateStore'`. - `@stream-io/logger` `^2.0.0` → `^2.1.0`, `@stream-io/state-store` `^1.1.6` → `^1.2.0` - `.yarnrc.yml`: preapprove the js-toolkit packages so `npmMinimalAgeGate` (3d) doesn't hold back first-party releases Verified locally: `yarn types`, `yarn build`, `yarn lint` and `yarn test-unit` (4833 tests) pass. 🎫 Ticket: https://linear.app/stream/issue/REACT-1474 ## Changelog - Bump `@stream-io/logger` to 2.1.0 and `@stream-io/state-store` to 1.2.0 (`.mjs`/`.cjs` builds)
1 parent b87d598 commit aa97cf4

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

‎.yarnrc.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ nmMode: hardlinks-global
77
enableScripts: false
88
enableGlobalCache: true
99
npmMinimalAgeGate: 3d
10+
npmPreapprovedPackages:
11+
- '@stream-io/filter'
12+
- '@stream-io/i18n'
13+
- '@stream-io/logger'
14+
- '@stream-io/state-store'
15+
- '@stream-io/worker-timer'
16+
- '@stream-io/ws'
1017
npmPublishProvenance: true

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"/src"
4646
],
4747
"dependencies": {
48-
"@stream-io/logger": "^2.0.0",
49-
"@stream-io/state-store": "^1.1.6",
48+
"@stream-io/logger": "^2.1.0",
49+
"@stream-io/state-store": "^1.2.0",
5050
"axios": "^1.19.0",
5151
"linkifyjs": "^4.3.3"
5252
},

‎yarn.lock‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,10 +1441,10 @@ __metadata:
14411441
languageName: node
14421442
linkType: hard
14431443

1444-
"@stream-io/logger@npm:^2.0.0":
1445-
version: 2.0.0
1446-
resolution: "@stream-io/logger@npm:2.0.0"
1447-
checksum: 10c0/b12b1a8005b99b7fbdcfd91dbda08b5021da9044f861bb574005975d43dcfe9f406795015c6ddadc3a18cb9dda0c949e303b6c454b9f5139fa24701bed5a0bd7
1444+
"@stream-io/logger@npm:^2.1.0":
1445+
version: 2.1.0
1446+
resolution: "@stream-io/logger@npm:2.1.0"
1447+
checksum: 10c0/0a09c9420b8bbec7a3007bf02acccaf7c0792b18d76eb791198e2a20890f1244b42788c3cc99d6ab52a591f49fde80dd6b2236e194f95f03b36fce5d0aa71dc3
14481448
languageName: node
14491449
linkType: hard
14501450

@@ -1463,9 +1463,9 @@ __metadata:
14631463
languageName: node
14641464
linkType: hard
14651465

1466-
"@stream-io/state-store@npm:^1.1.6":
1467-
version: 1.1.6
1468-
resolution: "@stream-io/state-store@npm:1.1.6"
1466+
"@stream-io/state-store@npm:^1.2.0":
1467+
version: 1.2.0
1468+
resolution: "@stream-io/state-store@npm:1.2.0"
14691469
peerDependencies:
14701470
react: ^17 || ^18 || ^19
14711471
use-sync-external-store: ^1.5.0
@@ -1474,7 +1474,7 @@ __metadata:
14741474
optional: true
14751475
use-sync-external-store:
14761476
optional: true
1477-
checksum: 10c0/42927cdb6a5bf6ba5f4ec11bb5e530db0a04edc65abd5348eb423780e40a3e53f57125e328d0318a0dc6b24ca0fcb28e8b91895a14a62ed8d82645f67ebcee5a
1477+
checksum: 10c0/27179805cb9a042416c741e1759c3324eefae0b27612c50f5fa0e0e13675d71bbe0a324978fcb5fdceaa4df5a99d11c6746eae319761216861b338e8cb7f1928
14781478
languageName: node
14791479
linkType: hard
14801480

@@ -7386,9 +7386,9 @@ __metadata:
73867386
"@eslint/js": "npm:^9.39.4"
73877387
"@semantic-release/changelog": "npm:^6.0.3"
73887388
"@semantic-release/git": "npm:^10.0.1"
7389-
"@stream-io/logger": "npm:^2.0.0"
7389+
"@stream-io/logger": "npm:^2.1.0"
73907390
"@stream-io/node-sdk": "npm:^0.8.10"
7391-
"@stream-io/state-store": "npm:^1.1.6"
7391+
"@stream-io/state-store": "npm:^1.2.0"
73927392
"@types/node": "npm:^22.19.19"
73937393
"@types/sinon": "npm:^10.0.6"
73947394
"@vitest/coverage-v8": "npm:^4.1.10"

0 commit comments

Comments
 (0)