chore: bump version to 2026.2.2, add changelog and update news (Task 7)

This commit is contained in:
2026-05-28 00:18:20 +08:00
parent 980e16bb97
commit 99d6572a3d
6 changed files with 88 additions and 4 deletions
+49
View File
@@ -0,0 +1,49 @@
import { describe, it, expect } from "vitest"
import fs from "node:fs"
import path from "node:path"
describe("version bump to 2026.2.2", () => {
const cwd = process.cwd()
it("package.json version is 2026.2.2", () => {
const pkg = JSON.parse(
fs.readFileSync(path.join(cwd, "package.json"), "utf8"),
)
expect(pkg.version).toBe("2026.2.2")
})
it("OpenAPI spec version is 2026.2.2", () => {
const apiContent = fs.readFileSync(
path.join(cwd, "lib", "api", "app.ts"),
"utf8",
)
expect(apiContent).toContain('version: "2026.2.2"')
})
it("CHANGELOG.md contains [2026.2.2] entry", () => {
const changelog = fs.readFileSync(
path.join(cwd, "CHANGELOG.md"),
"utf8",
)
expect(changelog).toContain("## [2026.2.2]")
expect(changelog).toContain("### Added")
expect(changelog).toContain("@deckyvault.xyz")
})
it("content/updates/2026-05-27-v2026.2.2.md exists with valid frontmatter", () => {
const updatePath = path.join(
cwd,
"content",
"updates",
"2026-05-27-v2026.2.2.md",
)
expect(fs.existsSync(updatePath)).toBe(true)
const content = fs.readFileSync(updatePath, "utf8")
expect(content.startsWith("---")).toBe(true)
expect(content).toContain('title:')
expect(content).toContain('date: "2026-05-27"')
expect(content).toContain('version: "2026.2.2"')
expect(content).toContain('summary:')
})
})
+1 -1
View File
@@ -4,7 +4,7 @@ describe("API version", () => {
it("matches package.json version", () => {
const pkg = require("../../../package.json")
const expectedVersion = pkg.version
expect(expectedVersion).toBe("2026.2.1")
expect(expectedVersion).toBe("2026.2.2")
})
})
+2 -2
View File
@@ -79,7 +79,7 @@ export const app = new Elysia({ prefix: "/api" })
documentation: {
info: {
title: "DeckyVault API",
version: "2026.2.1",
version: "2026.2.2",
description:
"API for DeckyVault — Steam Deck game compatibility, performance reports, and community features.",
},
@@ -275,7 +275,7 @@ export const app = new Elysia({ prefix: "/api" })
.use(rateLimit("default"))
.get("/", () => ({
name: "DeckyVault API",
version: "2026.2.1",
version: "2026.2.2",
}))
export type App = typeof app