Skip to content

fix: sync CLI version with package release#43

Merged
affaan-m merged 1 commit intomainfrom
fix/version-sync
Mar 25, 2026
Merged

fix: sync CLI version with package release#43
affaan-m merged 1 commit intomainfrom
fix/version-sync

Conversation

@affaan-m
Copy link
Owner

@affaan-m affaan-m commented Mar 25, 2026

Summary

  • align the CLI reported version with the current 1.4.0 package and release train
  • keep the checked-in dist bundle consistent with the source entrypoint
  • add a regression test that checks dist/index.js --version against package.json

Verification

  • ./node_modules/.bin/vitest run tests/types.test.ts --configLoader runner
  • npm run typecheck
  • npm run build
  • node dist/index.js --version

Summary by cubic

Align the CLI --version output with the published 1.4.0 release so users see the correct version. Add a regression test to ensure dist/index.js --version matches package.json and keep the dist bundle in sync with the source entrypoint.

Written for commit d447fa8. Summary will update on new commits.

Summary by CodeRabbit

  • Chores

    • Downgraded CLI version from 1.5.0 to 1.4.0.
  • Tests

    • Added test suite to validate CLI version consistency with package metadata.

@coderabbitai
Copy link

coderabbitai bot commented Mar 25, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'tools'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • 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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 54b6d3a6-3733-4e2d-bfc7-896cf2027d8a

📥 Commits

Reviewing files that changed from the base of the PR and between 2d83db2 and d447fa8.

⛔ Files ignored due to path filters (1)
  • dist/index.js is excluded by !**/dist/**, !dist/**
📒 Files selected for processing (2)
  • src/index.ts
  • tests/types.test.ts

📝 Walkthrough

Walkthrough

The CLI version in src/index.ts is decremented from 1.5.0 to 1.4.0. A new test suite is added to tests/types.test.ts that validates the CLI-reported version matches the version declared in package.json at runtime.

Changes

Cohort / File(s) Summary
Version Update
src/index.ts
CLI version number decremented from 1.5.0 to 1.4.0.
Version Validation Test
tests/types.test.ts
New test suite added that reads version from package.json, executes the CLI with --version flag, and asserts alignment between declared and reported versions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: syncing the CLI version from 1.5.0 to 1.4.0 with the package version, which is the core objective of the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/version-sync

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

@affaan-m affaan-m merged commit fe6ff5d into main Mar 25, 2026
12 checks passed
@affaan-m affaan-m deleted the fix/version-sync branch March 25, 2026 10:05
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