mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
chore: bump version to 2026.3.10
This commit is contained in:
@@ -8,30 +8,30 @@ import {
|
||||
|
||||
describe("parseReleaseVersion", () => {
|
||||
it("parses stable CalVer releases", () => {
|
||||
expect(parseReleaseVersion("2026.3.9")).toMatchObject({
|
||||
version: "2026.3.9",
|
||||
expect(parseReleaseVersion("2026.3.10")).toMatchObject({
|
||||
version: "2026.3.10",
|
||||
channel: "stable",
|
||||
year: 2026,
|
||||
month: 3,
|
||||
day: 9,
|
||||
day: 10,
|
||||
});
|
||||
});
|
||||
|
||||
it("parses beta CalVer releases", () => {
|
||||
expect(parseReleaseVersion("2026.3.9-beta.2")).toMatchObject({
|
||||
version: "2026.3.9-beta.2",
|
||||
expect(parseReleaseVersion("2026.3.10-beta.2")).toMatchObject({
|
||||
version: "2026.3.10-beta.2",
|
||||
channel: "beta",
|
||||
year: 2026,
|
||||
month: 3,
|
||||
day: 9,
|
||||
day: 10,
|
||||
betaNumber: 2,
|
||||
});
|
||||
});
|
||||
|
||||
it("rejects legacy and malformed release formats", () => {
|
||||
expect(parseReleaseVersion("2026.3.9-1")).toBeNull();
|
||||
expect(parseReleaseVersion("2026.3.10-1")).toBeNull();
|
||||
expect(parseReleaseVersion("2026.03.09")).toBeNull();
|
||||
expect(parseReleaseVersion("v2026.3.9")).toBeNull();
|
||||
expect(parseReleaseVersion("v2026.3.10")).toBeNull();
|
||||
expect(parseReleaseVersion("2026.2.30")).toBeNull();
|
||||
expect(parseReleaseVersion("2.0.0-beta2")).toBeNull();
|
||||
});
|
||||
@@ -49,8 +49,8 @@ describe("collectReleaseTagErrors", () => {
|
||||
it("accepts versions within the two-day CalVer window", () => {
|
||||
expect(
|
||||
collectReleaseTagErrors({
|
||||
packageVersion: "2026.3.9",
|
||||
releaseTag: "v2026.3.9",
|
||||
packageVersion: "2026.3.10",
|
||||
releaseTag: "v2026.3.10",
|
||||
now: new Date("2026-03-11T12:00:00Z"),
|
||||
}),
|
||||
).toEqual([]);
|
||||
@@ -59,9 +59,9 @@ describe("collectReleaseTagErrors", () => {
|
||||
it("rejects versions outside the two-day CalVer window", () => {
|
||||
expect(
|
||||
collectReleaseTagErrors({
|
||||
packageVersion: "2026.3.9",
|
||||
releaseTag: "v2026.3.9",
|
||||
now: new Date("2026-03-12T00:00:00Z"),
|
||||
packageVersion: "2026.3.10",
|
||||
releaseTag: "v2026.3.10",
|
||||
now: new Date("2026-03-13T00:00:00Z"),
|
||||
}),
|
||||
).toContainEqual(expect.stringContaining("must be within 2 days"));
|
||||
});
|
||||
@@ -69,9 +69,9 @@ describe("collectReleaseTagErrors", () => {
|
||||
it("rejects tags that do not match the current release format", () => {
|
||||
expect(
|
||||
collectReleaseTagErrors({
|
||||
packageVersion: "2026.3.9",
|
||||
releaseTag: "v2026.3.9-1",
|
||||
now: new Date("2026-03-09T00:00:00Z"),
|
||||
packageVersion: "2026.3.10",
|
||||
releaseTag: "v2026.3.10-1",
|
||||
now: new Date("2026-03-10T00:00:00Z"),
|
||||
}),
|
||||
).toContainEqual(expect.stringContaining("must match vYYYY.M.D or vYYYY.M.D-beta.N"));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user