chore: bump starknetjs version to v7 (#440)#462
Conversation
* chore: bump starknetjs version to v7 * chore: bump starknet-react
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces a new historical entity state management feature in the SDK and Zustand store, including new React hooks and store methods for tracking, querying, and deduplicating historical states of entities. Several subscription and token-related methods are refactored for improved parameter handling and asynchronous operation. Numerous package versions and dependencies are updated, and the release workflow is overhauled for dynamic prerelease handling, better dry-run support, and branch-aware logic. Documentation, test suites, and benchmark/coverage reporting are also expanded. Changes
Sequence Diagram(s)Historical Entity State Management (React Hook and Zustand Store)sequenceDiagram
participant ReactComponent
participant useHistoricalEntityQuery
participant ZustandStore
ReactComponent->>useHistoricalEntityQuery: Call with historical query
useHistoricalEntityQuery->>ZustandStore: Subscribe to historical entity changes
ZustandStore-->>useHistoricalEntityQuery: Initial historical entities
useHistoricalEntityQuery-->>ReactComponent: Update with historical entities
ZustandStore-->>useHistoricalEntityQuery: On entity update, deduplicate and store
useHistoricalEntityQuery-->>ReactComponent: Update with new historical entity state
Token Subscription Flow (New Async API)sequenceDiagram
participant SDK
participant Client
participant Consumer
Consumer->>SDK: onTokenBalanceUpdated(request)
SDK->>Client: await subscribeTokenBalance(request)
Client-->>SDK: Promise<Subscription>
SDK-->>Consumer: Promise<Subscription>
Release Workflow (Dynamic Prerelease and Dry Run)sequenceDiagram
participant Developer
participant GitHubActions
participant ReleaseScript
Developer->>GitHubActions: Trigger release workflow (optionally with prerelease_tag)
GitHubActions->>ReleaseScript: Determine branch and release type
alt Non-main branch or prerelease
ReleaseScript->>ReleaseScript: Enter prerelease mode
end
ReleaseScript->>ReleaseScript: Check for changesets
alt Changesets found
ReleaseScript->>ReleaseScript: Version, commit, tag, publish
alt Prerelease
ReleaseScript->>ReleaseScript: Exit prerelease mode
end
ReleaseScript->>GitHubActions: Trigger downstream release creation
else No changesets
ReleaseScript->>GitHubActions: Exit early, no release
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (13)
📒 Files selected for processing (81)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
9245810 to
7675b62
Compare
b055328 to
ef76fca
Compare
0dafa10 to
d8f7035
Compare
c6d0fdb to
60d01b9
Compare
* feat: historical zustand * feat: add react hook
93e1b15 to
dba78bb
Compare
1932a43 to
0353432
Compare
0353432 to
b4a3c92
Compare
f6add7d to
ffefb05
Compare
14e095b to
c07e7d0
Compare
c07e7d0 to
18223bc
Compare
chore: bump starknetjs version to v7
chore: bump starknet-react
Closes #
Introduced changes
Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Chores
Documentation
Tests
Style
Refactor
Other