Skip to content

Release v1.2.0 with version retrieval feature#11

Merged
smaege merged 4 commits intomainfrom
release/1.2.0
Jan 22, 2026
Merged

Release v1.2.0 with version retrieval feature#11
smaege merged 4 commits intomainfrom
release/1.2.0

Conversation

@smaege
Copy link
Contributor

@smaege smaege commented Jan 22, 2026

Update the application version to 1.2.0 and add functionality to retrieve the version from package.json in the Vitest configuration. Ensure package.json ends with a newline.


Note

Release v1.2.0

  • Bump package.json version to 1.2.0
  • Update vitest.config.js to read package.json and define __APP_VERSION__ via define, adding fs/path imports

Written by Cursor Bugbot for commit 62082ce. This will update automatically on new commits. Configure here.

@smaege smaege merged commit bd4abb0 into main Jan 22, 2026
4 checks passed
@smaege smaege deleted the release/1.2.0 branch January 22, 2026 07:13
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on February 6

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.


// Read package.json to get version (same as vite.config.js)
const pkg = JSON.parse(
readFileSync(resolve(import.meta.dirname, 'package.json'), 'utf-8'),
Copy link

Choose a reason for hiding this comment

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

Incompatible Node.js API used for older supported versions

Medium Severity

The import.meta.dirname property was introduced in Node.js v20.11.0, but package.json declares support for node >= 20.0.0. Users running Node.js 20.0.0 through 20.10.x would encounter undefined when accessing import.meta.dirname, causing resolve() to fail when running tests. The comment also incorrectly states the implementation is "same as vite.config.js" which uses __dirname instead.

Fix in Cursor Fix in Web

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