feat(electron): use release api to filter draft release (#5443)

This commit is contained in:
Joooye_34
2023-12-29 09:01:35 +00:00
parent 3341295fc1
commit d668016e4c
5 changed files with 328 additions and 23 deletions
@@ -24,6 +24,17 @@ interface GithubUpdateInfo extends UpdateInfo {
tag: string;
}
interface GithubRelease {
id: number;
tag_name: string;
target_commitish: string;
name: string;
draft: boolean;
prerelease: boolean;
created_at: string;
published_at: string;
}
const hrefRegExp = /\/tag\/([^/]+)$/;
export class CustomGitHubProvider extends BaseGitHubProvider<GithubUpdateInfo> {
@@ -54,7 +65,7 @@ export class CustomGitHubProvider extends BaseGitHubProvider<GithubUpdateInfo> {
const feed = parseXml(feedXml);
// noinspection TypeScriptValidateJSTypes
const latestRelease = feed.element(
let latestRelease = feed.element(
'entry',
false,
`No published versions on GitHub`
@@ -74,6 +85,10 @@ export class CustomGitHubProvider extends BaseGitHubProvider<GithubUpdateInfo> {
);
}
const releaseTag = await this.getLatestTagByRelease(
currentChannel,
cancellationToken
);
for (const element of feed.getElements('entry')) {
// noinspection TypeScriptValidateJSTypes
const hrefElement = hrefRegExp.exec(
@@ -90,9 +105,16 @@ export class CustomGitHubProvider extends BaseGitHubProvider<GithubUpdateInfo> {
const hrefChannel =
(semver.prerelease(hrefTag)?.[0] as string) || 'stable';
const isNextPreRelease = hrefChannel === currentChannel;
let isNextPreRelease = false;
if (releaseTag) {
isNextPreRelease = releaseTag === hrefTag;
} else {
isNextPreRelease = hrefChannel === currentChannel;
}
if (isNextPreRelease) {
tag = hrefTag;
latestRelease = element;
break;
}
}
@@ -154,7 +176,7 @@ export class CustomGitHubProvider extends BaseGitHubProvider<GithubUpdateInfo> {
}
const result = parseUpdateInfo(rawData, channelFile, channelFileUrl);
if (result.releaseName === null) {
if (result.releaseName == null) {
result.releaseName = latestRelease.elementValueOrEmpty('title');
}
@@ -176,6 +198,51 @@ export class CustomGitHubProvider extends BaseGitHubProvider<GithubUpdateInfo> {
return `/${this.options.owner}/${this.options.repo}/releases`;
}
/**
* Use release api to get latest version to filter draft version.
* But this api have low request limit 60-times/1-hour, use this to help, not depend on it
* https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28
* https://api.github.com/repos/toeverything/affine/releases
* https://docs.github.com/en/rest/rate-limit/rate-limit?apiVersion=2022-11-28#about-rate-limits
*/
private async getLatestTagByRelease(
currentChannel: string,
cancellationToken: CancellationToken
) {
try {
const releasesStr = await this.httpRequest(
newUrlFromBase(`/repos${this.basePath}`, this.baseApiUrl),
{
accept: 'Accept: application/vnd.github+json',
'X-GitHub-Api-Version': '2022-11-28',
},
cancellationToken
);
if (!releasesStr) {
return null;
}
const releases: GithubRelease[] = JSON.parse(releasesStr);
for (const release of releases) {
if (release.draft) {
continue;
}
const releaseTag = release.tag_name;
const releaseChannel =
(semver.prerelease(releaseTag)?.[0] as string) || 'stable';
if (releaseChannel === currentChannel) {
return release.tag_name;
}
}
} catch (e: any) {
console.info(`Cannot parse release: ${e.stack || e.message}`);
}
return null;
}
resolveFiles(updateInfo: GithubUpdateInfo): Array<ResolvedUpdateFileInfo> {
// still replace space to - due to backward compatibility
return resolveFiles(updateInfo, this.baseUrl, p =>
@@ -21,6 +21,19 @@
<updated>2023-12-27T19:40:15+08:00</updated>
<link rel="alternate" type="text/html" href="https://github.com/toeverything/AFFiNE/releases/tag/v0.11.1"/>
<title>0.11.1</title>
<content type="html">&lt;p&gt;fix(core): enable page history for beta/stable (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056965718&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5415&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5415/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5415&quot;&gt;#5415&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt;&lt;br&gt;
fix(component): fix font display on safari (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055383919&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5393&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5393/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5393&quot;&gt;#5393&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/EYHN/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/EYHN&quot;&gt;@EYHN&lt;/a&gt;&lt;br&gt;
fix(core): avatars are not aligned (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056136302&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5404&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5404/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5404&quot;&gt;#5404&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/JimmFly/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/JimmFly&quot;&gt;@JimmFly&lt;/a&gt;&lt;br&gt;
fix(core): trash page footer display issue (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056129348&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5402&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5402/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5402&quot;&gt;#5402&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt;&lt;br&gt;
fix(electron): set stable base url to app.affine.pro (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056113464&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5401&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5401/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5401&quot;&gt;#5401&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/joooye34/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/joooye34&quot;&gt;@joooye34&lt;/a&gt;&lt;br&gt;
fix(core): about setting blink issue (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056090521&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5399&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5399/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5399&quot;&gt;#5399&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt;&lt;br&gt;
fix(core): workpace list blink issue on open (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056096694&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5400&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5400/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5400&quot;&gt;#5400&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt;&lt;br&gt;
chore(core): add background color to questionnaire (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055986563&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5396&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5396/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5396&quot;&gt;#5396&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/JimmFly/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/JimmFly&quot;&gt;@JimmFly&lt;/a&gt;&lt;br&gt;
fix(core): correct title of onboarding article-2 (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2053650286&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5387&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5387/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5387&quot;&gt;#5387&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/CatsJuice/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/CatsJuice&quot;&gt;@CatsJuice&lt;/a&gt;&lt;br&gt;
fix: use prefix in electron to prevent formdata bug (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055616549&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5395&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5395/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5395&quot;&gt;#5395&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/darkskygit/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/darkskygit&quot;&gt;@darkskygit&lt;/a&gt;&lt;br&gt;
fix(core): fix flickering workspace list (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055363698&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5391&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5391/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5391&quot;&gt;#5391&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/EYHN/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/EYHN&quot;&gt;@EYHN&lt;/a&gt;&lt;br&gt;
fix(workspace): fix svg file with xml header (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2053693777&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5388&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5388/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5388&quot;&gt;#5388&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/EYHN/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/EYHN&quot;&gt;@EYHN&lt;/a&gt;&lt;br&gt;
feat: bump blocksuite (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2053645163&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5386&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5386/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5386&quot;&gt;#5386&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/regischen/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/regischen&quot;&gt;@regischen&lt;/a&gt;&lt;/p&gt;</content>
<author>
<name>github-actions[bot]</name>
</author>
@@ -31,6 +44,30 @@
<updated>2023-12-27T18:30:52+08:00</updated>
<link rel="alternate" type="text/html" href="https://github.com/toeverything/AFFiNE/releases/tag/v0.11.1-beta.1"/>
<title>0.11.1-beta.1</title>
<content type="html">&lt;p&gt;fix(core): enable page history for beta/stable (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056965718&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5415&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5415/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5415&quot;&gt;#5415&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt;&lt;br&gt;
fix(component): fix font display on safari (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055383919&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5393&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5393/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5393&quot;&gt;#5393&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/EYHN/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/EYHN&quot;&gt;@EYHN&lt;/a&gt;&lt;br&gt;
fix(core): avatars are not aligned (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056136302&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5404&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5404/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5404&quot;&gt;#5404&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/JimmFly/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/JimmFly&quot;&gt;@JimmFly&lt;/a&gt;&lt;br&gt;
fix(core): trash page footer display issue (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056129348&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5402&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5402/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5402&quot;&gt;#5402&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt;&lt;br&gt;
fix(electron): set stable base url to app.affine.pro (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056113464&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5401&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5401/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5401&quot;&gt;#5401&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/joooye34/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/joooye34&quot;&gt;@joooye34&lt;/a&gt;&lt;br&gt;
fix(core): about setting blink issue (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056090521&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5399&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5399/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5399&quot;&gt;#5399&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt;&lt;br&gt;
fix(core): workpace list blink issue on open (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056096694&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5400&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5400/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5400&quot;&gt;#5400&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt;&lt;br&gt;
chore(core): add background color to questionnaire (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055986563&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5396&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5396/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5396&quot;&gt;#5396&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/JimmFly/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/JimmFly&quot;&gt;@JimmFly&lt;/a&gt;&lt;br&gt;
fix(core): correct title of onboarding article-2 (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2053650286&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5387&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5387/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5387&quot;&gt;#5387&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/CatsJuice/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/CatsJuice&quot;&gt;@CatsJuice&lt;/a&gt;&lt;br&gt;
fix: use prefix in electron to prevent formdata bug (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055616549&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5395&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5395/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5395&quot;&gt;#5395&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/darkskygit/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/darkskygit&quot;&gt;@darkskygit&lt;/a&gt;&lt;br&gt;
fix(core): fix flickering workspace list (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055363698&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5391&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5391/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5391&quot;&gt;#5391&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/EYHN/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/EYHN&quot;&gt;@EYHN&lt;/a&gt;&lt;br&gt;
fix(workspace): fix svg file with xml header (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2053693777&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5388&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5388/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5388&quot;&gt;#5388&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/EYHN/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/EYHN&quot;&gt;@EYHN&lt;/a&gt;&lt;br&gt;
feat: bump blocksuite (&lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2053645163&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5386&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5386/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5386&quot;&gt;#5386&lt;/a&gt;) &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/regischen/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/regischen&quot;&gt;@regischen&lt;/a&gt;&lt;/p&gt;</content>
<author>
<name>github-actions[bot]</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/in/15368?s=60&amp;v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/519859998/v0.11.1-canary.2</id>
<updated>2023-12-28T10:47:52+08:00</updated>
<link rel="alternate" type="text/html" href="https://github.com/toeverything/AFFiNE/releases/tag/v0.11.1-canary.2"/>
<title>0.11.1-canary.2</title>
<content>No content.</content>
<author>
<name>github-actions[bot]</name>
</author>
@@ -41,7 +78,23 @@
<updated>2023-12-27T10:47:52+08:00</updated>
<link rel="alternate" type="text/html" href="https://github.com/toeverything/AFFiNE/releases/tag/v0.11.1-canary.1"/>
<title>0.11.1-canary.1</title>
<content type="html"></content>
<content type="html">&lt;h2&gt;What&#39;s Changed&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;fix(core): remove plugins settings by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2048206391&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5337&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5337/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5337&quot;&gt;#5337&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;chore: bump up @vitejs/plugin-vue version to v5 by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/renovate/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/renovate&quot;&gt;@renovate&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055571407&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5394&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5394/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5394&quot;&gt;#5394&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;fix(core): correct title of onboarding article-2 by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/CatsJuice/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/CatsJuice&quot;&gt;@CatsJuice&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2053650286&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5387&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5387/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5387&quot;&gt;#5387&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;chore(core): add background color to questionnaire by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/JimmFly/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/JimmFly&quot;&gt;@JimmFly&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2055986563&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5396&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5396/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5396&quot;&gt;#5396&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;ci: define tag name to fix nightly release failing by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/joooye34/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/joooye34&quot;&gt;@joooye34&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056068417&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5397&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5397/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5397&quot;&gt;#5397&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;fix(core): workpace list blink issue on open by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056096694&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5400&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5400/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5400&quot;&gt;#5400&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;fix(core): about setting blink issue by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056090521&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5399&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5399/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5399&quot;&gt;#5399&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;fix(electron): set stable base url to app.affine.pro by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/joooye34/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/joooye34&quot;&gt;@joooye34&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056113464&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5401&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5401/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5401&quot;&gt;#5401&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;fix(core): trash page footer display issue by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056129348&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5402&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5402/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5402&quot;&gt;#5402&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;chore: bump up @types/supertest version to v6 by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/renovate/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/renovate&quot;&gt;@renovate&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2053226342&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5376&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5376/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5376&quot;&gt;#5376&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;chore: bump up react-i18next version to v14 by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/renovate/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/renovate&quot;&gt;@renovate&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2052675317&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5375&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5375/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5375&quot;&gt;#5375&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;fix(core): avatars are not aligned by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/JimmFly/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/JimmFly&quot;&gt;@JimmFly&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056136302&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5404&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5404/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5404&quot;&gt;#5404&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;fix(infra): workaround for self-referencing in storybook by &lt;a class=&quot;user-mention notranslate&quot; data-hovercard-type=&quot;user&quot; data-hovercard-url=&quot;/users/pengx17/hovercard&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/pengx17&quot;&gt;@pengx17&lt;/a&gt; in &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load title&quot; data-id=&quot;2056165203&quot; data-permission-text=&quot;Title is private&quot; data-url=&quot;https://github.com/toeverything/AFFiNE/issues/5406&quot; data-hovercard-type=&quot;pull_request&quot; data-hovercard-url=&quot;/toeverything/AFFiNE/pull/5406/hovercard&quot; href=&quot;https://github.com/toeverything/AFFiNE/pull/5406&quot;&gt;#5406&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Full Changelog&lt;/strong&gt;: &lt;a class=&quot;commit-link&quot; href=&quot;https://github.com/toeverything/AFFiNE/compare/v0.11.1-canary.0...v0.11.1-canary.1&quot;&gt;&lt;tt&gt;v0.11.1-canary.0...v0.11.1-canary.1&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;</content>
<author>
<name>github-actions[bot]</name>
</author>
@@ -0,0 +1,94 @@
[
{
"url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135252810",
"assets_url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135252810/assets",
"upload_url": "https://uploads.github.com/repos/toeverything/AFFiNE/releases/135252810/assets{?name,label}",
"html_url": "https://github.com/toeverything/AFFiNE/releases/tag/0.11.0-nightly-202312280901-e11e827",
"id": 135252810,
"node_id": "RE_kwDOHvxvHs4ID8tK",
"tag_name": "0.11.0-nightly-202312280901-e11e827",
"target_commitish": "canary",
"name": "0.11.0-nightly-202312280901-e11e827",
"draft": false,
"prerelease": true,
"created_at": "2023-12-28T08:36:36Z",
"published_at": "2023-12-28T09:23:07Z",
"tarball_url": "https://api.github.com/repos/toeverything/AFFiNE/tarball/0.11.0-nightly-202312280901-e11e827",
"zipball_url": "https://api.github.com/repos/toeverything/AFFiNE/zipball/0.11.0-nightly-202312280901-e11e827",
"body": ""
},
{
"url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135173430",
"assets_url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135173430/assets",
"upload_url": "https://uploads.github.com/repos/toeverything/AFFiNE/releases/135173430/assets{?name,label}",
"html_url": "https://github.com/toeverything/AFFiNE/releases/tag/v0.11.1",
"id": 135173430,
"node_id": "RE_kwDOHvxvHs4IDpU2",
"tag_name": "v0.11.1",
"target_commitish": "canary",
"name": "0.11.1",
"draft": false,
"prerelease": false,
"created_at": "2023-12-27T06:39:59Z",
"published_at": "2023-12-27T11:40:15Z",
"tarball_url": "https://api.github.com/repos/toeverything/AFFiNE/tarball/v0.11.1",
"zipball_url": "https://api.github.com/repos/toeverything/AFFiNE/zipball/v0.11.1",
"mentions_count": 7
},
{
"url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135163918",
"assets_url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135163918/assets",
"upload_url": "https://uploads.github.com/repos/toeverything/AFFiNE/releases/135163918/assets{?name,label}",
"html_url": "https://github.com/toeverything/AFFiNE/releases/tag/v0.11.1-beta.1",
"id": 135163918,
"node_id": "RE_kwDOHvxvHs4IDnAO",
"tag_name": "v0.11.1-beta.1",
"target_commitish": "canary",
"name": "0.11.1-beta.1",
"draft": false,
"prerelease": true,
"created_at": "2023-12-27T06:39:59Z",
"published_at": "2023-12-27T10:30:52Z",
"tarball_url": "https://api.github.com/repos/toeverything/AFFiNE/tarball/v0.11.1-beta.1",
"zipball_url": "https://api.github.com/repos/toeverything/AFFiNE/zipball/v0.11.1-beta.1",
"mentions_count": 7
},
{
"url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135103520",
"assets_url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135103520/assets",
"upload_url": "https://uploads.github.com/repos/toeverything/AFFiNE/releases/135103520/assets{?name,label}",
"html_url": "https://github.com/toeverything/AFFiNE/releases/tag/v0.11.1-canary.1",
"id": 135103520,
"node_id": "RE_kwDOHvxvHs4IDYQg",
"tag_name": "v0.11.1-canary.2",
"target_commitish": "canary",
"name": "0.11.1-canary.2",
"draft": true,
"prerelease": true,
"created_at": "2023-12-26T12:27:20Z",
"published_at": "2023-12-26T13:24:28Z",
"tarball_url": "https://api.github.com/repos/toeverything/AFFiNE/tarball/v0.11.1-canary.1",
"zipball_url": "https://api.github.com/repos/toeverything/AFFiNE/zipball/v0.11.1-canary.1",
"body": "## What's Changed\r\n* fix(core): remove plugins settings by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5337\r\n* chore: bump up @vitejs/plugin-vue version to v5 by @renovate in https://github.com/toeverything/AFFiNE/pull/5394\r\n* fix(core): correct title of onboarding article-2 by @CatsJuice in https://github.com/toeverything/AFFiNE/pull/5387\r\n* chore(core): add background color to questionnaire by @JimmFly in https://github.com/toeverything/AFFiNE/pull/5396\r\n* ci: define tag name to fix nightly release failing by @joooye34 in https://github.com/toeverything/AFFiNE/pull/5397\r\n* fix(core): workpace list blink issue on open by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5400\r\n* fix(core): about setting blink issue by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5399\r\n* fix(electron): set stable base url to app.affine.pro by @joooye34 in https://github.com/toeverything/AFFiNE/pull/5401\r\n* fix(core): trash page footer display issue by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5402\r\n* chore: bump up @types/supertest version to v6 by @renovate in https://github.com/toeverything/AFFiNE/pull/5376\r\n* chore: bump up react-i18next version to v14 by @renovate in https://github.com/toeverything/AFFiNE/pull/5375\r\n* fix(core): avatars are not aligned by @JimmFly in https://github.com/toeverything/AFFiNE/pull/5404\r\n* fix(infra): workaround for self-referencing in storybook by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5406\r\n\r\n\r\n**Full Changelog**: https://github.com/toeverything/AFFiNE/compare/v0.11.1-canary.0...v0.11.1-canary.1",
"mentions_count": 5
},
{
"url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135103520",
"assets_url": "https://api.github.com/repos/toeverything/AFFiNE/releases/135103520/assets",
"upload_url": "https://uploads.github.com/repos/toeverything/AFFiNE/releases/135103520/assets{?name,label}",
"html_url": "https://github.com/toeverything/AFFiNE/releases/tag/v0.11.1-canary.1",
"id": 135103520,
"node_id": "RE_kwDOHvxvHs4IDYQg",
"tag_name": "v0.11.1-canary.1",
"target_commitish": "canary",
"name": "0.11.1-canary.1",
"draft": false,
"prerelease": true,
"created_at": "2023-12-26T12:27:20Z",
"published_at": "2023-12-26T13:24:28Z",
"tarball_url": "https://api.github.com/repos/toeverything/AFFiNE/tarball/v0.11.1-canary.1",
"zipball_url": "https://api.github.com/repos/toeverything/AFFiNE/zipball/v0.11.1-canary.1",
"body": "## What's Changed\r\n* fix(core): remove plugins settings by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5337\r\n* chore: bump up @vitejs/plugin-vue version to v5 by @renovate in https://github.com/toeverything/AFFiNE/pull/5394\r\n* fix(core): correct title of onboarding article-2 by @CatsJuice in https://github.com/toeverything/AFFiNE/pull/5387\r\n* chore(core): add background color to questionnaire by @JimmFly in https://github.com/toeverything/AFFiNE/pull/5396\r\n* ci: define tag name to fix nightly release failing by @joooye34 in https://github.com/toeverything/AFFiNE/pull/5397\r\n* fix(core): workpace list blink issue on open by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5400\r\n* fix(core): about setting blink issue by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5399\r\n* fix(electron): set stable base url to app.affine.pro by @joooye34 in https://github.com/toeverything/AFFiNE/pull/5401\r\n* fix(core): trash page footer display issue by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5402\r\n* chore: bump up @types/supertest version to v6 by @renovate in https://github.com/toeverything/AFFiNE/pull/5376\r\n* chore: bump up react-i18next version to v14 by @renovate in https://github.com/toeverything/AFFiNE/pull/5375\r\n* fix(core): avatars are not aligned by @JimmFly in https://github.com/toeverything/AFFiNE/pull/5404\r\n* fix(infra): workaround for self-referencing in storybook by @pengx17 in https://github.com/toeverything/AFFiNE/pull/5406\r\n\r\n\r\n**Full Changelog**: https://github.com/toeverything/AFFiNE/compare/v0.11.1-canary.0...v0.11.1-canary.1",
"mentions_count": 5
}
]
@@ -0,0 +1,20 @@
version: 0.11.1-canary.2
files:
- url: affine-canary-windows-x64.exe
sha512: qbK4N6+axVO2dA/iPzfhANWxCZXY1S3ci9qYIT1v/h0oCjc6vqpXU+2KRGL5mplL6wmVgJAOpqrfnq9gHMsfDg==
size: 179526504
- url: affine-canary-macos-arm64.dmg
sha512: ++LAGuxTmFAVd65k8UpKKfU19iisvXHKDDfPkGlTVC000QP3foeS21BmTgYnM1ZuhEC6KGzSGrqvUDVDNYnRmA==
size: 169903530
- url: affine-canary-macos-arm64.zip
sha512: IAWbCpVqPPVVzDowGKGnKZzHN2jPgAW40v+bUZR2tdgDrqIAVy4YdamYz8WmEwpg1TXmi0ueSsWgGFPgBIr0iA==
size: 169085665
- url: affine-canary-macos-x64.dmg
sha512: 4y4/KkmkmFmZ94ntRAN0lSX7aZzgEd4Wg7f85Tff296P3x85sbPF4FFIp++Zx/cgBZBUQwMWe9xeGlefompQ/g==
size: 175920978
- url: affine-canary-macos-x64.zip
sha512: S1MuMHooMOQ9eJ+coRYmyz6k5lnWIMqHotSrywxGGo7sFXBY+O5F4PeKgNREJtwXjAIxv0GxZVvbe5jc+onw9w==
size: 175315484
path: affine-canary-windows-x64.exe
sha512: qbK4N6+axVO2dA/iPzfhANWxCZXY1S3ci9qYIT1v/h0oCjc6vqpXU+2KRGL5mplL6wmVgJAOpqrfnq9gHMsfDg==
releaseDate: 2023-12-26T13:24:28.221Z
@@ -1,10 +1,10 @@
import nodePath from 'node:path';
import type { UpdateCheckResult } from 'electron-updater';
import fs from 'fs-extra';
import { flatten } from 'lodash-es';
import { http, HttpResponse } from 'msw';
import { setupServer } from 'msw/node';
import { compare } from 'semver';
import { afterAll, afterEach, beforeAll, describe, expect, it } from 'vitest';
import { CustomGitHubProvider } from '../../src/main/updater/custom-github-provider';
@@ -22,6 +22,13 @@ const platformTail = (() => {
}
})();
function response404() {
return HttpResponse.text('Not Found', { status: 404 });
}
function response403() {
return HttpResponse.text('403', { status: 403 });
}
describe('testing for client update', () => {
const expectReleaseList = [
{ buildType: 'stable', version: '0.11.1' },
@@ -29,7 +36,7 @@ describe('testing for client update', () => {
{ buildType: 'canary', version: '0.11.1-canary.1' },
];
const restHandlers = [
const basicRequestHandlers = [
http.get(
'https://github.com/toeverything/AFFiNE/releases.atom',
async () => {
@@ -42,14 +49,10 @@ describe('testing for client update', () => {
),
...flatten(
expectReleaseList.map(({ version, buildType }) => {
function response404() {
return HttpResponse.text('Not Found', { status: 404 });
}
return [
http.get(
`https://github.com/toeverything/AFFiNE/releases/download/v${version}/latest${platformTail}.yml`,
async function responseContent() {
async () => {
const buffer = await fs.readFile(
nodePath.join(
__dirname,
@@ -71,34 +74,102 @@ describe('testing for client update', () => {
),
];
const server = setupServer(...restHandlers);
describe('release api request successfully', () => {
const server = setupServer(
...basicRequestHandlers,
http.get(
'https://api.github.com/repos/toeverything/affine/releases',
async () => {
const buffer = await fs.readFile(
nodePath.join(__dirname, 'fixtures', 'release-list.txt')
);
const content = buffer.toString();
return HttpResponse.xml(content);
}
)
);
beforeAll(() => server.listen({ onUnhandledRequest: 'error' }));
afterAll(() => server.close());
afterEach(() => server.resetHandlers());
beforeAll(() => server.listen({ onUnhandledRequest: 'error' }));
afterAll(() => server.close());
afterEach(() => server.resetHandlers());
for (const { buildType, version } of expectReleaseList) {
it(`check update for ${buildType} channel successfully`, async () => {
const app = new MockedAppAdapter('0.10.0');
const updater = new MockedUpdater(null, app);
updater.allowPrerelease = buildType !== 'stable';
for (const { buildType } of expectReleaseList) {
it(`check update for ${buildType} channel successfully`, async () => {
const feedUrl: Parameters<typeof updater.setFeedURL>[0] = {
channel: buildType,
// hack for custom provider
provider: 'custom' as 'github',
repo: 'AFFiNE',
owner: 'toeverything',
releaseType: buildType === 'stable' ? 'release' : 'prerelease',
// @ts-expect-error hack for custom provider
updateProvider: CustomGitHubProvider,
};
updater.setFeedURL(feedUrl);
const info = (await updater.checkForUpdates()) as UpdateCheckResult;
expect(info).not.toBe(null);
expect(info.updateInfo.releaseName).toBe(version);
expect(info.updateInfo.version).toBe(version);
expect(info.updateInfo.releaseNotes?.length).toBeGreaterThan(0);
});
}
});
describe('release api request limited', () => {
const server = setupServer(
...basicRequestHandlers,
http.get(
'https://api.github.com/repos/toeverything/affine/releases',
response403
),
http.get(
`https://github.com/toeverything/AFFiNE/releases/download/v0.11.1-canary.2/latest${platformTail}.yml`,
async () => {
const buffer = await fs.readFile(
nodePath.join(
__dirname,
'fixtures',
'releases',
`0.11.1-canary.2.txt`
)
);
const content = buffer.toString();
return HttpResponse.text(content);
}
)
);
beforeAll(() => server.listen({ onUnhandledRequest: 'error' }));
afterAll(() => server.close());
afterEach(() => server.resetHandlers());
it('check update for canary channel get v0.11.1-canary.2', async () => {
const app = new MockedAppAdapter('0.10.0');
const updater = new MockedUpdater(null, app);
updater.allowPrerelease = buildType !== 'stable';
updater.allowPrerelease = true;
const feedUrl: Parameters<typeof updater.setFeedURL>[0] = {
channel: buildType,
channel: 'canary',
// hack for custom provider
provider: 'custom' as 'github',
repo: 'AFFiNE',
owner: 'toeverything',
releaseType: buildType === 'stable' ? 'release' : 'prerelease',
releaseType: 'prerelease',
// @ts-expect-error hack for custom provider
updateProvider: CustomGitHubProvider,
};
updater.setFeedURL(feedUrl);
const info = await updater.checkForUpdates();
const info = (await updater.checkForUpdates()) as UpdateCheckResult;
expect(info).not.toBe(null);
expect(compare(info!.updateInfo.version, '0.10.0')).toBe(1);
expect(info.updateInfo.releaseName).toBe('0.11.1-canary.2');
expect(info.updateInfo.version).toBe('0.11.1-canary.2');
expect(info.updateInfo.releaseNotes?.length).toBe(0);
});
}
});
});