Repository navigation
fix(deps): bump @stream-io toolkit packages to the .mjs/.cjs builds - #3368
Conversation
The js-toolkit packages now ship explicit .mjs/.cjs builds (ES2022), so their ESM entry loads as ESM on Node without syntax detection. Before, Next.js SSR crashed loading stream-chat-react with "does not provide an export named StateStore" on such runtimes. Bump the ranges, dedupe each toolkit package to one version, and preapprove the toolkit packages in .yarnrc.yml so the npmMinimalAgeGate does not hold back first-party releases (as stream-chat already is).
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Dependency ranges and Yarn approval package.json, examples/ai-chatbot/package.json, examples/cookbook/package.json, examples/vite/package.json, .yarnrc.yml |
The root manifest updates the @stream-io/i18n and @stream-io/state-store ranges. The example manifests update the @stream-io/state-store range. The Yarn preapproved package list adds six @stream-io packages. |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: martincupela
Merge Risk: 
Minimal Β· up to 62641
-
The dependency updates and Yarn approval changes are ready to merge.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title names the dependency bump of the
@stream-iotoolkit packages to the .mjs/.cjs builds, which is the main change. It also uses the conventional fix(deps) prefix. The title matches the changeset: the i18n and state-store version ranges move up, and the .yarnrc.yml preapproval supports the bump. The title does not mention the .yarnrc.yml change, but it is not required to cover every detail.
Full details: Description check
-
Explanation
The description follows the repository template. It has the Goal section, which gives the reason for the change with a linked ticket and the Next.js SSR error. It has the Implementation details section, which lists the version bumps, the lockfile dedupe, and the .yarnrc.yml change, and it reports local verification. It has the UI Changes section, which states None. The description is complete and specific.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (5 skipped: 5 unsupported.)
-
Finishing Touches
-
π§ͺ Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix Β· Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
|
Size Change: 0 B Total Size: 904 kB βΉοΈ View Unchanged
|
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3368 +/- ##
=======================================
Coverage 88.80% 88.80%
=======================================
Files 563 563
Lines 17155 17155
Branches 5253 5253
=======================================
Hits 15234 15234
Misses 1921 1921 β View full report in Codecov by Harness. π New features to boost your workflow:
|
π― Goal
Pick up the js-toolkit releases that ship explicit
.mjs/.cjsbuilds targeting ES2022 (GetStream/js-toolkit#58). The previous ESM build of@stream-io/state-storewas.jsin a package without"type", so Node loaded it as ESM only through syntax detection; without it, Next.js SSR crashed loading this SDK withThe requested module '@stream-io/state-store' does not provide an export named 'StateStore'.π« Ticket: https://linear.app/stream/issue/REACT-1474
π Implementation details
@stream-io/i18n^1.0.2β^1.1.0,@stream-io/state-store^1.1.6β^1.2.0(also in theai-chatbot,cookbookandviteexamples)stream-chat's^1.1.6now resolves to state-store 1.2.0, and the transitive@stream-io/loggerto 2.1.0.yarnrc.yml: preapprove the js-toolkit packages next tostream-chat, sonpmMinimalAgeGate(1d) doesn't hold back first-party releasesVerified locally:
yarn types,types:scripts,build,validate-cjs,validate-esm,validate-entry-isolation,validate-translationsand the test suite (3314 tests) pass.π¨ UI Changes
None.
Summary by CodeRabbit