Skip to content

Conversation

QuantumExplorer
Copy link
Member

@QuantumExplorer QuantumExplorer commented Apr 21, 2025

Summary by CodeRabbit

  • Chores
    • Updated version numbers for multiple packages to 2.0.0-rc.2.
  • New Features
    • Added a new configuration migration for version 2.0.0-rc.2 in Dashmate, updating certain settings for platform components.

Copy link
Contributor

coderabbitai bot commented Apr 21, 2025

Walkthrough

This change updates the version numbers of multiple packages across the repository from 2.0.0-rc.1 to 2.0.0-rc.2. The updates affect both JavaScript package.json and Rust Cargo.toml manifest files for various packages. Additionally, a new migration step for version 2.0.0-rc.2 is added in the Dashmate configuration migration factory, mirroring the logic of the previous 2.0.0-rc.1 migration. No other changes to functionality, dependencies, or exported entities are present.

Changes

File(s) Change Summary
All package.json files (multiple packages) Updated the version field from 2.0.0-rc.1 to 2.0.0-rc.2. No other changes made.
All Cargo.toml files (multiple Rust packages) Updated the version field from 2.0.0-rc.1 to 2.0.0-rc.2. No other changes made.
packages/dashmate/configs/getConfigFileMigrationsFactory.js Added a migration for 2.0.0-rc.2 that deletes core.miner.mediantime and updates Docker images, mirroring the logic of the 2.0.0-rc.1 migration.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Dashmate
    participant ConfigFile

    User->>Dashmate: Run config migration (to 2.0.0-rc.2)
    Dashmate->>ConfigFile: Iterate configs
    Dashmate->>ConfigFile: Delete core.miner.mediantime
    Dashmate->>ConfigFile: Update platform.drive.abci image
    Dashmate->>ConfigFile: Update platform.dapi.api image
    Dashmate-->>User: Return migrated config
Loading

Suggested reviewers

  • shumkov

Poem

Hop, hop, a version leap,
From rc.1 to rc.2 we sweep!
Packages all in tidy rows,
With numbers bumped, the garden grows.
Migrations march in perfect tune—
The carrots ripe, the update soon!
🥕✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e7e0999 and 281c06f.

📒 Files selected for processing (2)
  • packages/js-dash-sdk/package.json (1 hunks)
  • packages/wallet-lib/package.json (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • packages/js-dash-sdk/package.json
  • packages/wallet-lib/package.json
⏰ Context from checks skipped due to timeout of 90000ms (19)
  • GitHub Check: Rust packages (dapi-grpc) / Tests
  • GitHub Check: Rust packages (dapi-grpc) / Detect immutable structure changes
  • GitHub Check: Rust packages (dapi-grpc) / Unused dependencies
  • GitHub Check: Rust packages (dapi-grpc) / Linting
  • GitHub Check: Rust packages (drive-abci) / Tests
  • GitHub Check: Rust packages (drive-abci) / Check each feature
  • GitHub Check: Rust packages (drive-abci) / Linting
  • GitHub Check: Rust packages (drive-abci) / Unused dependencies
  • GitHub Check: Rust packages (drive) / Tests
  • GitHub Check: Rust packages (drive) / Unused dependencies
  • GitHub Check: Rust packages (drive) / Linting
  • GitHub Check: Rust packages (dpp) / Tests
  • GitHub Check: Rust packages (dpp) / Linting
  • GitHub Check: Rust packages (dpp) / Check each feature
  • GitHub Check: Rust packages (dpp) / Unused dependencies
  • GitHub Check: Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
  • GitHub Check: Build Docker images (DAPI, dapi, dapi) / Build DAPI image
  • GitHub Check: Build JS packages / Build JS
  • GitHub Check: Rust crates security audit

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🔭 Outside diff range comments (1)
packages/keyword-search-contract/Cargo.toml (1)

1-14: 💡 Verification agent

🧩 Analysis chain

Verify there are no lingering 2.0.0-rc.1 references
Run a quick search to ensure all Cargo.toml files have been updated to the new release candidate to avoid version mismatches.


🏁 Script executed:

#!/bin/bash
# Ensure no remaining rc.1 references in the repository
rg -n "2\.0\.0-rc\.1" 

Length of output: 126


Update lingering 2.0.0-rc.1 reference

A search shows one remaining occurrence of the old release candidate in your migrations factory. Please update it to match the new 2.0.0-rc.2 version:

• File: packages/dashmate/configs/getConfigFileMigrationsFactory.js
Line: 1079

-      '2.0.0-rc.1': (configFile) => {
+      '2.0.0-rc.2': (configFile) => {
🧹 Nitpick comments (1)
packages/dashmate/configs/getConfigFileMigrationsFactory.js (1)

1089-1098: New migration added for version 2.0.0-rc.2.

The migration is correctly implemented and mirrors the previous 2.0.0-rc.1 migration, maintaining consistency in how configuration updates are handled across release candidates.

Consider using property assignment to undefined instead of the delete operator for a slight performance improvement:

-            delete options.core.miner.mediantime;
+            options.core.miner.mediantime = undefined;
🧰 Tools
🪛 Biome (1.9.4)

[error] 1092-1092: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dcf3164 and e7e0999.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (45)
  • package.json (1 hunks)
  • packages/bench-suite/package.json (1 hunks)
  • packages/check-features/Cargo.toml (1 hunks)
  • packages/dapi-grpc/Cargo.toml (1 hunks)
  • packages/dapi-grpc/package.json (1 hunks)
  • packages/dapi/package.json (1 hunks)
  • packages/dashmate/configs/getConfigFileMigrationsFactory.js (1 hunks)
  • packages/dashmate/package.json (1 hunks)
  • packages/dashpay-contract/Cargo.toml (1 hunks)
  • packages/dashpay-contract/package.json (1 hunks)
  • packages/data-contracts/Cargo.toml (1 hunks)
  • packages/dpns-contract/Cargo.toml (1 hunks)
  • packages/dpns-contract/package.json (1 hunks)
  • packages/feature-flags-contract/Cargo.toml (1 hunks)
  • packages/feature-flags-contract/package.json (1 hunks)
  • packages/js-dapi-client/package.json (1 hunks)
  • packages/js-grpc-common/package.json (1 hunks)
  • packages/keyword-search-contract/Cargo.toml (1 hunks)
  • packages/masternode-reward-shares-contract/Cargo.toml (1 hunks)
  • packages/masternode-reward-shares-contract/package.json (1 hunks)
  • packages/platform-test-suite/package.json (1 hunks)
  • packages/rs-dapi-client/Cargo.toml (1 hunks)
  • packages/rs-dapi-grpc-macros/Cargo.toml (1 hunks)
  • packages/rs-dpp/Cargo.toml (1 hunks)
  • packages/rs-drive-abci/Cargo.toml (1 hunks)
  • packages/rs-drive-proof-verifier/Cargo.toml (1 hunks)
  • packages/rs-drive/Cargo.toml (1 hunks)
  • packages/rs-json-schema-compatibility-validator/Cargo.toml (1 hunks)
  • packages/rs-platform-serialization-derive/Cargo.toml (1 hunks)
  • packages/rs-platform-serialization/Cargo.toml (1 hunks)
  • packages/rs-platform-value-convertible/Cargo.toml (1 hunks)
  • packages/rs-platform-value/Cargo.toml (1 hunks)
  • packages/rs-platform-version/Cargo.toml (1 hunks)
  • packages/rs-platform-versioning/Cargo.toml (1 hunks)
  • packages/rs-sdk/Cargo.toml (1 hunks)
  • packages/simple-signer/Cargo.toml (1 hunks)
  • packages/strategy-tests/Cargo.toml (1 hunks)
  • packages/token-history-contract/Cargo.toml (1 hunks)
  • packages/token-history-contract/package.json (1 hunks)
  • packages/wallet-utils-contract/Cargo.toml (1 hunks)
  • packages/wallet-utils-contract/package.json (1 hunks)
  • packages/wasm-dpp/Cargo.toml (1 hunks)
  • packages/wasm-dpp/package.json (1 hunks)
  • packages/withdrawals-contract/Cargo.toml (1 hunks)
  • packages/withdrawals-contract/package.json (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: QuantumExplorer
PR: dashpay/platform#2257
File: packages/rs-drive-abci/src/mimic/test_quorum.rs:159-164
Timestamp: 2024-11-20T16:16:01.830Z
Learning: QuantumExplorer prefers not to receive auto-generated messages asking to post on social media.
🪛 Biome (1.9.4)
packages/dashmate/configs/getConfigFileMigrationsFactory.js

[error] 1092-1092: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)

⏰ Context from checks skipped due to timeout of 90000ms (15)
  • GitHub Check: Rust packages (drive-abci) / Unused dependencies
  • GitHub Check: Rust packages (drive-abci) / Check each feature
  • GitHub Check: Rust packages (withdrawals-contract) / Unused dependencies
  • GitHub Check: Rust packages (dpp) / Check each feature
  • GitHub Check: Rust packages (dpp) / Unused dependencies
  • GitHub Check: Rust packages (dashpay-contract) / Tests
  • GitHub Check: Rust packages (masternode-reward-shares-contract) / Tests
  • GitHub Check: Rust packages (masternode-reward-shares-contract) / Formatting
  • GitHub Check: Rust packages (wallet-utils-contract) / Tests
  • GitHub Check: Rust packages (wallet-utils-contract) / Linting
  • GitHub Check: Rust packages (token-history-contract) / Tests
  • GitHub Check: Build Docker images (Drive, drive, drive-abci) / Build Drive image
  • GitHub Check: Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
  • GitHub Check: Build Docker images (DAPI, dapi, dapi) / Build DAPI image
  • GitHub Check: Build JS packages / Build JS
🔇 Additional comments (42)
packages/rs-dapi-client/Cargo.toml (1)

3-3: Approve version bump to 2.0.0-rc.2
The crate’s version has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2.

packages/rs-platform-versioning/Cargo.toml (1)

5-5: Bump crate version to 2.0.0-rc.2

The version has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2 to align with the coordinated release candidate bump. No further changes are needed in this manifest.

packages/data-contracts/Cargo.toml (1)

4-4: Confirm version bump to 2.0.0-rc.2
The crate version has been correctly updated to "2.0.0-rc.2", matching the coordinated bump across the repository.

packages/rs-sdk/Cargo.toml (1)

3-3: Crate version correctly bumped to 2.0.0-rc.2
The version update aligns with the repository-wide release. Please ensure the changelog and release notes capture this new version, and verify that any downstream or dependent crates (including JS packages in package.json or other Cargo.toml manifests) have been updated in sync.

packages/keyword-search-contract/Cargo.toml (1)

4-4: Version bump to 2.0.0-rc.2 is correct
This update aligns with the coordinated release across all packages.

packages/rs-platform-serialization-derive/Cargo.toml (1)

5-5:

✅ Verification successful

Confirm version bump consistency. The crate version has been updated to 2.0.0-rc.2, matching the coordinated release candidate update. Run the following to ensure no 2.0.0-rc.1 references remain across Cargo manifests:


🏁 Script executed:

#!/bin/bash
# Verify no leftover rc.1 references in all TOML files
rg '"2\.0\.0-rc\.1"' -n --glob '*.toml'

Length of output: 41


Version bump to 2.0.0-rc.2 confirmed across all Cargo.toml files
Search for leftover "2.0.0-rc.1" references in all *.toml files returned no matches, confirming consistency.

packages/rs-platform-version/Cargo.toml (1)

5-5:

✅ Verification successful

Bump crate version to 2.0.0-rc.2
The version update aligns with the PR objective to move from 2.0.0-rc.12.0.0-rc.2.

Please verify there are no lingering 2.0.0-rc.1 references across the repo:


🏁 Script executed:

#!/bin/bash
# Search for stale rc.1 version references
rg "2\.0\.0-rc\.1"

Length of output: 118


Bump crate version to 2.0.0-rc.2
I ran a search for 2.0.0-rc.1 and found a single hit in the config‐migration map:

• packages/dashmate/configs/getConfigFileMigrationsFactory.js
'2.0.0-rc.1': (configFile) => { … }

This entry is intentional—it ensures users upgrading from rc.1 still get their configs migrated. There are no other lingering references to rc.1, so no further changes are needed.

packages/dapi/package.json (1)

4-4:

❌ Incorrect review comment

Bump package version to 2.0.0-rc.2
The version field has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2. No other metadata or dependencies were altered.

To ensure consistency across the repository, run:


🏁 Script executed:

#!/usr/bin/env bash
# Verify no residual rc.1 references remain in the codebase
rg -n "2\\.0\\.0-rc\\.1"

Length of output: 126


🏁 Script executed:

#!/usr/bin/env bash
# Show migration mapping around the rc.1 entry for context
sed -n '1070,1100p' packages/dashmate/configs/getConfigFileMigrationsFactory.js

Length of output: 1167


Bump package version to 2.0.0-rc.2
The version in packages/dapi/package.json has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2. No other metadata or dependencies were altered.

Note: The reference to 2.0.0-rc.1 in packages/dashmate/configs/getConfigFileMigrationsFactory.js is part of the migration map (to support upgrading from rc.1) and should remain. No further changes are required.

Likely an incorrect or invalid review comment.

packages/wasm-dpp/package.json (1)

3-3: Confirm version bump to 2.0.0-rc.2
The version field matches the coordinated RC update. Dependencies and scripts remain unchanged.

packages/rs-dpp/Cargo.toml (1)

3-3: Update crate version to 2.0.0-rc.2
The Cargo manifest’s [package] version has been bumped appropriately. No additional changes are required.

packages/dpns-contract/Cargo.toml (1)

4-4: Bump dpns-contract version to 2.0.0-rc.2
The dpns-contract crate version is now aligned with the latest RC. Dependencies remain untouched.

packages/feature-flags-contract/Cargo.toml (1)

4-4: Upgrade feature-flags-contract version to 2.0.0-rc.2
Version bump is consistent with other contract crates. No other metadata changed.

packages/rs-drive/Cargo.toml (1)

4-4: Consistent version bump to 2.0.0-rc.2
The crate’s version field has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2, aligning with the PR objectives. No unintended changes to dependencies or metadata were introduced.

packages/token-history-contract/package.json (1)

3-3: Consistent version bump to 2.0.0-rc.2
The NPM package version has been updated as expected, matching the coordinated release candidate version across all JS and Rust packages. No other modifications detected.

packages/masternode-reward-shares-contract/Cargo.toml (1)

4-4: Consistent version bump to 2.0.0-rc.2
The crate’s version field was updated properly to 2.0.0-rc.2 with no other changes in dependencies or configuration.

packages/strategy-tests/Cargo.toml (1)

3-3: Consistent version bump to 2.0.0-rc.2
The strategy-tests crate version is correctly incremented to 2.0.0-rc.2, in line with the repository-wide release candidate update.

packages/rs-platform-value/Cargo.toml (1)

5-5: Consistent version bump to 2.0.0-rc.2
The platform-value crate version has been updated to 2.0.0-rc.2 without any extraneous changes to dependencies or feature flags.

packages/withdrawals-contract/Cargo.toml (1)

4-4: Version bump approved for withdrawals‑contract
The crate version has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2, aligning with the coordinated release candidate update.

packages/rs-drive-abci/Cargo.toml (1)

3-3: Version bump approved for drive-abci
The drive-abci package version has been updated to 2.0.0-rc.2 with no unintended side effects.

packages/wasm-dpp/Cargo.toml (1)

3-3: Version bump approved for wasm-dpp
Updated the package version to 2.0.0-rc.2—consistent with the rest of the platform crates.

packages/js-dapi-client/package.json (1)

3-3: Version bump approved for @dashevo/dapi-client
The version field in package.json has been correctly set to 2.0.0-rc.2.

packages/rs-platform-serialization/Cargo.toml (1)

5-5: Version bump approved for platform-serialization
Crate version updated to 2.0.0-rc.2, matching the coordinated release across all platform packages.

packages/rs-drive-proof-verifier/Cargo.toml (1)

3-3: Version bump to 2.0.0-rc.2 looks correct and isolated.
No other metadata or dependencies were altered, and this aligns with the coordinated release plan.

packages/check-features/Cargo.toml (1)

3-3: Updated check-features version to 2.0.0-rc.2 as intended.
All other fields remain unchanged and consistent with the release bump.

packages/simple-signer/Cargo.toml (1)

3-3: Version updated to 2.0.0-rc.2.
The rest of the manifest (edition, dependencies) is unchanged and correct.

packages/dashpay-contract/Cargo.toml (1)

4-4: dashpay-contract version bump to 2.0.0-rc.2 is consistent.
No dependency or feature changes accompany this update.

packages/wallet-utils-contract/Cargo.toml (1)

4-4: wallet-utils-contract version incremented to 2.0.0-rc.2 as expected.
All other configuration and dependencies are untouched.

packages/token-history-contract/Cargo.toml (1)

4-4: Version bump to 2.0.0-rc.2
The crate version has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2. No other changes detected.

packages/js-grpc-common/package.json (1)

3-3: Version bump to 2.0.0-rc.2
The package version has been updated from 2.0.0-rc.1 to 2.0.0-rc.2, matching the coordinated repository release.

packages/dashpay-contract/package.json (1)

3-3: Version bump to 2.0.0-rc.2
Updated the package version from 2.0.0-rc.1 to 2.0.0-rc.2 in line with the RC2 rollout.

packages/wallet-utils-contract/package.json (1)

3-3: Version bump to 2.0.0-rc.2
The version field has been bumped from 2.0.0-rc.1 to 2.0.0-rc.2, consistent with other contract packages.

packages/feature-flags-contract/package.json (1)

3-3: Version bump to 2.0.0-rc.2
Package version updated from 2.0.0-rc.1 to 2.0.0-rc.2, aligning with the repository-wide version update.

packages/masternode-reward-shares-contract/package.json (1)

3-3: Approve version bump in masternode-reward-shares-contract
The version field has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2, matching the coordinated release across packages.

package.json (1)

3-3: Approve root package version bump
The root @dashevo/platform package version is updated to 2.0.0-rc.2, in line with the other workspace packages.

packages/bench-suite/package.json (1)

4-4: Approve version bump in bench-suite
Updated the @dashevo/bench-suite version to 2.0.0-rc.2, consistent with the global release candidate update.

packages/dpns-contract/package.json (1)

3-3: Approve version bump in dpns-contract
The @dashevo/dpns-contract version has been correctly incremented to 2.0.0-rc.2, aligning with the other contracts.

packages/platform-test-suite/package.json (1)

4-4: Approve version bump in platform-test-suite
The @dashevo/platform-test-suite version field is now 2.0.0-rc.2, consistent with the overall release candidate version bump.

packages/withdrawals-contract/package.json (1)

3-3: Version bump looks good.

The package version has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2 as part of the coordinated version update across multiple packages in the repository.

packages/dashmate/package.json (1)

3-3: Version bump looks good.

The package version has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2 as part of the coordinated version update across multiple packages in the repository.

packages/dapi-grpc/Cargo.toml (1)

4-4: Version bump looks good.

The Rust package version has been correctly updated from 2.0.0-rc.1 to 2.0.0-rc.2 as part of the coordinated version update across multiple packages in the repository.

packages/rs-dapi-grpc-macros/Cargo.toml (1)

4-4: Version bump for dapi-grpc-macros crate
The crate’s version has been updated from 2.0.0-rc.1 to 2.0.0-rc.2 without modifying any other fields. This aligns with the coordinated release across the workspace.

packages/dapi-grpc/package.json (1)

3-4: Version bump for @dashevo/dapi-grpc
The version field has been updated from 2.0.0-rc.1 to 2.0.0-rc.2 and all other metadata remains unchanged, maintaining consistency with the new release candidate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant