feat: add beta release channel
This commit is contained in:
@@ -234,7 +234,7 @@ const MIN_VERSION_FLEXIBLE_EDITOR_IDS = "0.1.50";
|
||||
|
||||
function isAppVersionAtLeast(appVersion: string | null, minVersion: string): boolean {
|
||||
if (!appVersion) return false;
|
||||
// Strip RC/prerelease suffix: "0.1.45-rc.4" → "0.1.45"
|
||||
// Strip prerelease suffix: "0.1.45-beta.4" -> "0.1.45"
|
||||
const base = appVersion.replace(/-.*$/, "");
|
||||
const parts = base.split(".").map(Number);
|
||||
const minParts = minVersion.split(".").map(Number);
|
||||
|
||||
@@ -1089,7 +1089,7 @@ describe("slugify", () => {
|
||||
});
|
||||
|
||||
it("keeps very long names within the hostname label length limit", () => {
|
||||
const result = slugify("Release Candidate ".repeat(12));
|
||||
const result = slugify("Beta Build ".repeat(12));
|
||||
|
||||
expect(result.length).toBeLessThanOrEqual(63);
|
||||
expectValidHostnameLabel(result);
|
||||
@@ -1107,7 +1107,7 @@ describe("slugify", () => {
|
||||
"feature/cool stuff",
|
||||
" Café Launch ",
|
||||
"__bar__",
|
||||
"Release Candidate ".repeat(12),
|
||||
"Beta Build ".repeat(12),
|
||||
"release***candidate",
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user