Skip to content

Commit a386384

Browse files
committed
chore(release): start v2.8.0
1 parent b4b3579 commit a386384

12 files changed

Lines changed: 48 additions & 23 deletions

File tree

Cargo.lock

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

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## [2.7.5-dev]
3+
## [2.8.0-dev]
44

55
### features
66

libs/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "seelen-core"
3-
version = "2.7.5"
3+
version = "2.8.0"
44
edition = "2021"
55
rust-version = "1.89"
66

libs/core/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seelen-ui/lib",
3-
"version": "2.7.5",
3+
"version": "2.8.0",
44
"description": "Seelen UI Library for Widgets",
55
"license": "AGPL-3.0-only",
66
"exports": {

libs/slu-ipc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "slu-ipc"
3-
version = "0.1.0"
3+
version = "2.8.0"
44
edition = "2024"
55

66
[lints]

libs/slu-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "slu-macros"
3-
version = "0.1.0"
3+
version = "2.8.0"
44
edition = "2021"
55
rust-version = "1.89"
66

libs/utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "slu-utils"
3-
version = "0.0.1"
3+
version = "2.8.0"
44
edition = "2021"
55
rust-version = "1.89"
66

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "seelen-ui",
3-
"version": "2.7.5",
3+
"version": "2.8.0",
44
"description": "Seelen UI Project",
55
"type": "module",
66
"license": "AGPL-3.0-or-later",

scripts/versionish.ts

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,32 @@ function updateCargoVersion(filePath: string, version: string): void {
1010
fs.writeFileSync(filePath, content);
1111
}
1212

13+
const IGNORED_DIRS = new Set(["node_modules", "target", ".git", "dist"]);
14+
15+
function findCargoTomls(dir: string, results: string[] = []): string[] {
16+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
17+
if (entry.isDirectory()) {
18+
if (!IGNORED_DIRS.has(entry.name)) {
19+
findCargoTomls(`${dir}/${entry.name}`, results);
20+
}
21+
continue;
22+
}
23+
if (entry.name === "Cargo.toml") {
24+
results.push(`${dir}/${entry.name}`);
25+
}
26+
}
27+
return results;
28+
}
29+
30+
function updateAllCargoVersions(version: string): void {
31+
for (const cargoToml of findCargoTomls(".")) {
32+
const content = fs.readFileSync(cargoToml, "utf-8");
33+
if (/^version\s*=\s*".*"/m.test(content)) {
34+
updateCargoVersion(cargoToml, version);
35+
}
36+
}
37+
}
38+
1339
function updateJsonVersion(filePath: string, version: string): void {
1440
const json = JSON.parse(fs.readFileSync(filePath, "utf-8"));
1541
json.version = version;
@@ -47,15 +73,14 @@ function createGitTag(tag: string): void {
4773
}
4874

4975
function updateAllVersions(version: string, skipLockfiles = false): void {
50-
// Update library versions
51-
console.log("Updating library versions...");
52-
updateCargoVersion("./libs/core/Cargo.toml", version);
76+
// Update all crate versions (workspace root + every member Cargo.toml)
77+
console.log("Updating Cargo.toml versions...");
78+
updateAllCargoVersions(version);
5379
updateJsonVersion("./libs/core/deno.json", version);
54-
console.log("✓ Library versions updated");
80+
console.log("✓ Cargo.toml versions updated");
5581

5682
// Update app versions
5783
console.log("Updating app versions...");
58-
updateCargoVersion("./src/Cargo.toml", version);
5984
const packageJson = JSON.parse(fs.readFileSync("./package.json", "utf-8"));
6085
packageJson.version = version;
6186
fs.writeFileSync("./package.json", JSON.stringify(packageJson, null, 2) + "\n");

0 commit comments

Comments
 (0)