Skip to content

Commit fd497c6

Browse files
authored
chore(version): upgrade version to v2.0.3 (netless-io#1789)
1 parent 316f218 commit fd497c6

File tree

5 files changed

+78
-1
lines changed

5 files changed

+78
-1
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## [2.0.3](https://github.com/netless-io/flat/compare/v2.0.2...v2.0.3) (2022-11-23)
2+
3+
4+
### Bug Fixes
5+
6+
* **flat-components**: add cases where the backend does not return error messages ([#1788](https://github.com/netless-io/flat/issues/1788)) ([316f2181](https://github.com/netless-io/flat/commit/316f21819229377c6eb13ff02592447816ca5dc7))
7+
* **flat-components**: remove horizontal scrollbar in chat users ([#1787](https://github.com/netless-io/flat/issues/1787)) ([7b482df1](https://github.com/netless-io/flat/commit/7b482df19f09552ce50fc0546508af41ef6c19bd))
8+
* **service-providers**: (snapshot) fetch images without cache ([#1786](https://github.com/netless-io/flat/issues/1786)) ([e8787a74](https://github.com/netless-io/flat/commit/e8787a748042f94377588be008539e652e15f970))
9+
* **flat-services**: share screen not working on windows ([#1785](https://github.com/netless-io/flat/issues/1785)) ([188d2b39](https://github.com/netless-io/flat/commit/188d2b39a8891e9726b3e8ae5087363192c3876f))
10+
* **desktop**: windows arch incorrect ([#1783](https://github.com/netless-io/flat/issues/1783)) ([3d924fb9](https://github.com/netless-io/flat/commit/3d924fb9dc39671aa92aaa7e815ac3c914fead2e))
11+
12+
13+
114
## [2.0.2](https://github.com/netless-io/flat/compare/v2.0.1...v2.0.2) (2022-11-16)
215

316

desktop/main-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "flat",
33
"productName": "Flat",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"private": true,
66
"description": "",
77
"homepage": "https://github.com/netless-io/flat",

docs/releases/v2.0.3/en.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Fixed
2+
3+
1. Windows sharing screen function is not available

docs/releases/v2.0.3/zh.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 修复
2+
3+
1. Windows 分享屏幕功能不可用

scripts/changelog.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
const semver = require("semver")
2+
const current = require('../desktop/main-app/package.json').version
3+
4+
const next = process.argv[2];
5+
if (!next) {
6+
console.log("usage: node scripts/changelog.js", semver.inc(current, "patch"));
7+
process.exit(1);
8+
}
9+
10+
const today = new Date().toISOString().slice(0, 10);
11+
12+
const log = require("child_process").execSync('git log --pretty=format:"%h:%H %s" $(git describe --tags --abbrev=0 @^)..@', { encoding: "utf-8" });
13+
const features = []
14+
const fixes = []
15+
const perf = []
16+
log.trimEnd().split("\n").forEach(line => {
17+
const match = line.match(/^(\w+):(\w+) (\w+)\(([^\)]+)\): (.+)/)
18+
if (match === null) return;
19+
const abbr = match[1];
20+
const commit = match[2];
21+
const type = match[3];
22+
const scope = match[4];
23+
const message = match[5].replace(/\#(\d+)/, "[#$1](https://github.com/netless-io/flat/issues/$1)");
24+
const item = `* **${scope}**: ${message} ([${abbr}](https://github.com/netless-io/flat/commit/${commit}))`;
25+
if (type === "feat") features.push(item);
26+
if (type === "fix") fixes.push(item);
27+
if (type === "perf") perf.push(item);
28+
});
29+
30+
let result = `## [${next}](https://github.com/netless-io/flat/compare/v${current}...v${next}) (${today})
31+
32+
`;
33+
34+
if (features.length > 0) {
35+
result += `
36+
### Features
37+
38+
${features.join("\n")}
39+
`;
40+
}
41+
42+
if (fixes.length > 0) {
43+
result += `
44+
### Bug Fixes
45+
46+
${fixes.join("\n")}
47+
`;
48+
}
49+
50+
if (perf.length > 0) {
51+
result += `
52+
### Performance Improvements
53+
54+
${perf.join("\n")}
55+
`;
56+
}
57+
58+
console.log(result);

0 commit comments

Comments
 (0)