Repository navigation
chore: bump Starknet.js to 9.4.2 - #526
Conversation
📝 WalkthroughWalkthroughThis pull request updates Starknet.js dependencies from v8 to v9 across the monorepo. Changes include updating the workspace catalog and package overrides in the root Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/create-dojo/src/generators/client-app.ts (1)
44-51: Reduce version-drift risk by centralizing the new version literals.These new dependency versions are repeated across the same function. A local constant map keeps future bumps safer and less error-prone.
♻️ Suggested refactor
async function createPackageJson(config: ProjectConfig) { const { projectName, projectPath, framework, additionalDeps } = config; const versions = await getLatestDojoVersions(); + const STARKNET_VERSION = "^9.4.2"; + const STARKNET_REACT_VERSION = "^5.0.3"; + const GET_STARKNET_CORE_VERSION = "^4.0.0"; const packageJson: any = { @@ overrides: { - starknet: "^9.4.2", + starknet: STARKNET_VERSION, }, pnpm: { overrides: { - starknet: "^9.4.2", + starknet: STARKNET_VERSION, }, }, @@ - starknet: "^9.4.2", + starknet: STARKNET_VERSION, @@ - "@starknet-react/chains": "^5.0.3", - "@starknet-react/core": "^5.0.3", - "get-starknet-core": "^4.0.0", + "@starknet-react/chains": STARKNET_REACT_VERSION, + "@starknet-react/core": STARKNET_REACT_VERSION, + "get-starknet-core": GET_STARKNET_CORE_VERSION, };Also applies to: 57-57, 73-75
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/create-dojo/src/generators/client-app.ts` around lines 44 - 51, The repeated version literal "^9.4.2" appears in multiple places (the top-level overrides and pnpm.overrides objects, and other nearby overrides), so extract a small local constant map (e.g., const DEP_OVERRIDES = { starknet: "^9.4.2" }) at the top of the function and replace all inline occurrences with references to that map (use object spread or direct assignment into overrides and pnpm.overrides). Update any other occurrences noted (the additional overrides blocks) to read from the same constant so future bumps require a single change.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@packages/create-dojo/src/generators/client-app.ts`:
- Around line 44-51: The repeated version literal "^9.4.2" appears in multiple
places (the top-level overrides and pnpm.overrides objects, and other nearby
overrides), so extract a small local constant map (e.g., const DEP_OVERRIDES = {
starknet: "^9.4.2" }) at the top of the function and replace all inline
occurrences with references to that map (use object spread or direct assignment
into overrides and pnpm.overrides). Update any other occurrences noted (the
additional overrides blocks) to read from the same constant so future bumps
require a single change.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 73446c4c-df56-484e-b6ee-41e0df1d15be
⛔ Files ignored due to path filters (1)
bun.lockis excluded by!**/*.lock
📒 Files selected for processing (4)
.changeset/starknet-v9-support.mdCLAUDE.mdpackage.jsonpackages/create-dojo/src/generators/client-app.ts
Closes #
Introduced changes
^9.4.2, refreshes adjacent Starknet packages, and updatesbun.lock.starknetthrough package-manager overrides because stable@starknet-react/corestill advertises a v8 peer range.Checklist
Note
Medium Risk
Medium risk because this is a major-version upgrade of
starknetand related wallet/type packages, which can introduce runtime/API incompatibilities across all consumers. Added package-manager overrides to force-install v9 may mask upstream peer-range conflicts until dependencies (notably@starknet-react/core) update.Overview
Updates the monorepo to target Starknet.js v9.4.2 by bumping the workspace
starknetcatalog/ranges and refreshing adjacent Starknet ecosystem deps (@starknet-react/*,@starknet-io/*), with the correspondingbun.lockchurn.Adds package-manager
overrides(root and increate-dojogenerated apps, includingpnpm.overrides) to pinstarknetto v9 despite@starknet-react/corestill declaring a v8 peer range, and updates the React app generator to include the needed Starknet React peer deps (e.g.get-starknet-core).Introduces a changeset marking multiple
@dojoengine/*packages for minor releases and updates dependency documentation to reflect the new Starknet.js baseline.Reviewed by Cursor Bugbot for commit 197ba4e. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
Chores
Documentation