Skip to content

Commit 66486fc

Browse files
committed
feat(readme): update Node.js version references in README.md
1 parent 61f87e2 commit 66486fc

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![npm version](https://img.shields.io/npm/v/@photostructure/sqlite.svg)](https://www.npmjs.com/package/@photostructure/sqlite)
44
[![CI](https://github.com/photostructure/node-sqlite/actions/workflows/build.yml/badge.svg)](https://github.com/photostructure/node-sqlite/actions/workflows/build.yml)
55

6-
Native SQLite for Node.js 20+ without the experimental flag. Drop-in replacement for `node:sqlite`. Synced with Node.js v25 for the latest features including native `Symbol.dispose` resource management.
6+
Native SQLite for Node.js 20+ without the experimental flag. Drop-in replacement for `node:sqlite`. Synced with Node.js v25.6.1 for the latest features including native `Symbol.dispose` resource management.
77

88
## Installation
99

@@ -27,7 +27,7 @@ db.close();
2727

2828
## Features
2929

30-
- 100% compatible with Node.js v25 built-in `node:sqlite` module\*
30+
- 100% compatible with Node.js v25.6.1 built-in `node:sqlite` module\*
3131
- Zero dependencies - native SQLite implementation
3232
- Synchronous API - no async overhead
3333
- Performance matches leading SQLite libraries

scripts/sync-from-node.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,15 +439,40 @@ async function main() {
439439

440440
// Note: SQLite version update removed since we sync SQLite files from SQLite.org, not Node.js
441441

442+
// Update README.md with the Node.js version
443+
if (nodeVersion) {
444+
try {
445+
const readmePath = path.join(packageRoot, "README.md");
446+
let readme = fs.readFileSync(readmePath, "utf8");
447+
// Update "Synced with Node.js vXX.X.X" pattern
448+
readme = readme.replace(
449+
/Synced with Node\.js v[\d.]+/g,
450+
`Synced with Node.js ${nodeVersion}`,
451+
);
452+
// Update "compatible with Node.js vXX.X.X" pattern
453+
readme = readme.replace(
454+
/compatible with Node\.js v[\d.]+ built-in/g,
455+
`compatible with Node.js ${nodeVersion} built-in`,
456+
);
457+
fs.writeFileSync(readmePath, readme);
458+
console.log(`Updated README.md with Node.js version ${nodeVersion}`);
459+
} catch (err: any) {
460+
console.error("Failed to update README.md:", err.message);
461+
}
462+
}
463+
442464
// Update sync cache with the current SHA
443465
if (nodeCommitSha) {
444466
updateSyncCache(args.repo, args.branch, nodeCommitSha);
445467
}
446468

447469
console.log("\n✅ Sync complete!");
448470
console.log("\nNext steps:");
449-
console.log("1. Run `npm run build:native` to ensure the native addon ");
471+
console.log("1. Run `npm run build:native` to ensure the native addon compiles");
450472
console.log("2. Run `npm test` to verify everything works");
473+
console.log(
474+
"3. Update CHANGELOG.md with the new Node.js version before release",
475+
);
451476
} else if (!args.dryRun && successCount < totalCount) {
452477
console.log(`\n⚠️ ${totalCount - successCount} files failed to download`);
453478
console.log("Some files may be missing from the specified branch/tag.");

0 commit comments

Comments
 (0)