Skip to content

test: derive adapter version from package.json#93

Merged
neverinfamous merged 1 commit intomainfrom
hotfix/v1.1.0-version-test
Mar 19, 2026
Merged

test: derive adapter version from package.json#93
neverinfamous merged 1 commit intomainfrom
hotfix/v1.1.0-version-test

Conversation

@neverinfamous
Copy link
Copy Markdown
Owner

Replaces hardcoded version assertion with package.json-derived value to prevent future CI breakage on version bumps.

Copilot AI review requested due to automatic review settings March 19, 2026 00:19
@neverinfamous neverinfamous enabled auto-merge (squash) March 19, 2026 00:19
@neverinfamous neverinfamous merged commit 042c092 into main Mar 19, 2026
10 checks passed
@neverinfamous neverinfamous deleted the hotfix/v1.1.0-version-test branch March 19, 2026 00:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the NativeSqliteAdapter version test to derive the expected version from package.json, reducing maintenance when the package version changes.

Changes:

  • Load version from package.json within the NativeSqliteAdapter test.
  • Replace the hardcoded "1.1.0" version assertion with the package-derived value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +11 to +16
import { createRequire } from "module";

const require = createRequire(import.meta.url);
const { version: packageVersion } = require("../../../package.json") as {
version: string;
};
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.

2 participants