Skip to content

Commit

Permalink
chore(version): upgrade version to v2.0.3 (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious committed Nov 23, 2022
1 parent 316f218 commit fd497c6
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## [2.0.3](https://github.com/netless-io/flat/compare/v2.0.2...v2.0.3) (2022-11-23)


### Bug Fixes

* **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))
* **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))
* **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))
* **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))
* **desktop**: windows arch incorrect ([#1783](https://github.com/netless-io/flat/issues/1783)) ([3d924fb9](https://github.com/netless-io/flat/commit/3d924fb9dc39671aa92aaa7e815ac3c914fead2e))



## [2.0.2](https://github.com/netless-io/flat/compare/v2.0.1...v2.0.2) (2022-11-16)


Expand Down
2 changes: 1 addition & 1 deletion desktop/main-app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "flat",
"productName": "Flat",
"version": "2.0.2",
"version": "2.0.3",
"private": true,
"description": "",
"homepage": "https://github.com/netless-io/flat",
Expand Down
3 changes: 3 additions & 0 deletions docs/releases/v2.0.3/en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Fixed

1. Windows sharing screen function is not available
3 changes: 3 additions & 0 deletions docs/releases/v2.0.3/zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 修复

1. Windows 分享屏幕功能不可用
58 changes: 58 additions & 0 deletions scripts/changelog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
const semver = require("semver")
const current = require('../desktop/main-app/package.json').version

const next = process.argv[2];
if (!next) {
console.log("usage: node scripts/changelog.js", semver.inc(current, "patch"));
process.exit(1);
}

const today = new Date().toISOString().slice(0, 10);

const log = require("child_process").execSync('git log --pretty=format:"%h:%H %s" $(git describe --tags --abbrev=0 @^)..@', { encoding: "utf-8" });
const features = []
const fixes = []
const perf = []
log.trimEnd().split("\n").forEach(line => {
const match = line.match(/^(\w+):(\w+) (\w+)\(([^\)]+)\): (.+)/)
if (match === null) return;
const abbr = match[1];
const commit = match[2];
const type = match[3];
const scope = match[4];
const message = match[5].replace(/\#(\d+)/, "[#$1](https://github.com/netless-io/flat/issues/$1)");
const item = `* **${scope}**: ${message} ([${abbr}](https://github.com/netless-io/flat/commit/${commit}))`;
if (type === "feat") features.push(item);
if (type === "fix") fixes.push(item);
if (type === "perf") perf.push(item);
});

let result = `## [${next}](https://github.com/netless-io/flat/compare/v${current}...v${next}) (${today})
`;

if (features.length > 0) {
result += `
### Features
${features.join("\n")}
`;
}

if (fixes.length > 0) {
result += `
### Bug Fixes
${fixes.join("\n")}
`;
}

if (perf.length > 0) {
result += `
### Performance Improvements
${perf.join("\n")}
`;
}

console.log(result);

0 comments on commit fd497c6

Please sign in to comment.