Skip to content

Commit ef70de1

Browse files
committed
chore: release v3.1.11
Single-script metadata release packaging for preflight. Package name monsqlize unchanged.
1 parent 34f0089 commit ef70de1

6 files changed

Lines changed: 87 additions & 6 deletions

File tree

‎changelogs/unreleased.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Unreleased
22

3-
## Changes after v3.1.10
3+
## Changes after v3.1.11
44

5-
No changes are currently recorded after v3.1.10.
5+
No changes are currently recorded after v3.1.11.

‎changelogs/v3.1.11.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# monSQLize v3.1.11
2+
3+
> Release date: 2026-07-27
4+
5+
## Highlights
6+
7+
- chore: republish package repository/homepage metadata for GitHub org `devcodex-labs`.
8+
- Package name `monsqlize` unchanged.
9+
10+
## Compatibility boundaries
11+
12+
- No runtime API changes in this metadata release.

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monsqlize",
3-
"version": "3.1.9",
3+
"version": "3.1.11",
44
"description": "TypeScript production data runtime layer for MongoDB today, with cache, transactions, pools, models, sync, and observability",
55
"type": "commonjs",
66
"main": "./dist/cjs/index.cjs",
@@ -21,6 +21,7 @@
2121
"./package.json": "./package.json"
2222
},
2323
"files": [
24+
"changelogs/v3.1.11.md",
2425
"changelogs/v3.1.7.md",
2526
"changelogs/v3.1.8.md",
2627
"dist/**/*.cjs",
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import fs from "node:fs";
2+
3+
const version = process.argv[2];
4+
if (!/^\d+\.\d+\.\d+$/.test(version || "")) {
5+
console.error("usage: node scripts/prepare-metadata-release.mjs <x.y.z>");
6+
process.exit(1);
7+
}
8+
9+
const pkg = JSON.parse(fs.readFileSync("package.json", "utf8"));
10+
if (pkg.name !== "monsqlize") {
11+
throw new Error(`unexpected package name: ${pkg.name}`);
12+
}
13+
14+
pkg.version = version;
15+
const notes = `changelogs/v${version}.md`;
16+
pkg.files = Array.from(new Set([notes, ...pkg.files]));
17+
fs.writeFileSync("package.json", `${JSON.stringify(pkg, null, 4)}\n`);
18+
19+
const lock = JSON.parse(fs.readFileSync("package-lock.json", "utf8"));
20+
lock.version = version;
21+
if (lock.packages?.[""]) {
22+
lock.packages[""].version = version;
23+
lock.packages[""].name = pkg.name;
24+
}
25+
fs.writeFileSync("package-lock.json", `${JSON.stringify(lock, null, 2)}\n`);
26+
27+
const matrix = JSON.parse(fs.readFileSync("test/compatibility/matrix.json", "utf8"));
28+
matrix.packageVersion = version;
29+
fs.writeFileSync("test/compatibility/matrix.json", `${JSON.stringify(matrix, null, 2)}\n`);
30+
31+
const notesBody = `# monSQLize v${version}
32+
33+
> Release date: 2026-07-27
34+
35+
## Highlights
36+
37+
- chore: republish package repository/homepage metadata for GitHub org \`devcodex-labs\`.
38+
- Package name \`monsqlize\` unchanged.
39+
40+
## Compatibility boundaries
41+
42+
- No runtime API changes in this metadata release.
43+
`;
44+
fs.writeFileSync(notes, notesBody);
45+
46+
fs.writeFileSync(
47+
"changelogs/unreleased.md",
48+
`# Unreleased
49+
50+
## Changes after v${version}
51+
52+
No changes are currently recorded after v${version}.
53+
`
54+
);
55+
56+
console.log(
57+
JSON.stringify(
58+
{
59+
name: pkg.name,
60+
version: pkg.version,
61+
lock: lock.version,
62+
matrix: matrix.packageVersion,
63+
filesHasNotes: pkg.files.includes(notes),
64+
},
65+
null,
66+
2
67+
)
68+
);

‎test/compatibility/matrix.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"generatedAt": "2026-07-15",
3-
"packageVersion": "3.1.10",
3+
"packageVersion": "3.1.11",
44
"support": {
55
"node": {
66
"declared": ">=18.0.0",

0 commit comments

Comments
 (0)