李华桥
eff344a9c1
Merge branch 'canary' into stable
2023-12-12 16:45:47 +08:00
Flrande
9aa33d0228
feat: bump blocksuite ( #5267 )
...
Change history: https://github.com/toeverything/blocksuite/compare/2b5bb47...2b3d2ba
2023-12-12 06:18:30 +00:00
李华桥
c89ebab596
Merge branch 'canary' into stable
2023-12-12 11:04:33 +08:00
LongYinan
681d25c67c
chore: bump up @electron-forge/maker-base version to v7.2.0 ( #5191 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@electron-forge/maker-base](https://togithub.com/electron/forge ) | [`7.1.0` -> `7.2.0`](https://renovatebot.com/diffs/npm/@electron-forge%2fmaker-base/7.1.0/7.2.0 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>electron/forge (@​electron-forge/maker-base)</summary>
### [`v7.2.0`](https://togithub.com/electron/forge/releases/tag/v7.2.0 )
[Compare Source](https://togithub.com/electron/forge/compare/v7.1.0...v7.2.0 )
#### What's Changed
##### Features
- feat: add support for sequential groups of webpack builds by [@​MarshallOfSound](https://togithub.com/MarshallOfSound ) in [https://github.com/electron/forge/pull/3435 ](https://togithub.com/electron/forge/pull/3435 )
##### Fixes
- fix: handle webpack configs exported as default by [@​MarshallOfSound](https://togithub.com/MarshallOfSound ) in [https://github.com/electron/forge/pull/3427 ](https://togithub.com/electron/forge/pull/3427 )
- fix: set empty publicPath for preload scripts by [@​MarshallOfSound](https://togithub.com/MarshallOfSound ) in [https://github.com/electron/forge/pull/3428 ](https://togithub.com/electron/forge/pull/3428 )
- fix: ensure that webpack is run once per arch for universal builds by [@​MarshallOfSound](https://togithub.com/MarshallOfSound ) in [https://github.com/electron/forge/pull/3433 ](https://togithub.com/electron/forge/pull/3433 )
##### Documentation
- docs: remove mention of v5 -> v6 migration by [@​erickzhao](https://togithub.com/erickzhao ) in [https://github.com/electron/forge/pull/3412 ](https://togithub.com/electron/forge/pull/3412 )
- docs: add notes on publishing a new monorepo package by [@​erickzhao](https://togithub.com/erickzhao ) in [https://github.com/electron/forge/pull/3415 ](https://togithub.com/electron/forge/pull/3415 )
##### Other Changes
- build(docs): enable API documentation builds for Forge v7 by [@​erickzhao](https://togithub.com/erickzhao ) in [https://github.com/electron/forge/pull/3413 ](https://togithub.com/electron/forge/pull/3413 )
- ci: allow manual API documentation publish by [@​dsanders11](https://togithub.com/dsanders11 ) in [https://github.com/electron/forge/pull/3414 ](https://togithub.com/electron/forge/pull/3414 )
- refactor: dedupe key resolver for static publishers by [@​MarshallOfSound](https://togithub.com/MarshallOfSound ) in [https://github.com/electron/forge/pull/3421 ](https://togithub.com/electron/forge/pull/3421 )
- chore: bump electronjs/node to 2.1.0 (main) by [@​electron-roller](https://togithub.com/electron-roller ) in [https://github.com/electron/forge/pull/3422 ](https://togithub.com/electron/forge/pull/3422 )
- chore: update deps to clear some audit warnings by [@​dsanders11](https://togithub.com/dsanders11 ) in [https://github.com/electron/forge/pull/3429 ](https://togithub.com/electron/forge/pull/3429 )
**Full Changelog**: https://github.com/electron/forge/compare/v7.1.0...v7.2.0

</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODEuMyIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSJ9-->
2023-12-11 07:43:15 +00:00
Peng Xiao
e8cfc807ea
fix(electron): use tree-kill for electron dev ( #5252 )
...
electron process sometimes do not get re-spawned because of some child process not being closed.
use tree-kill instead.
2023-12-11 04:26:19 +00:00
李华桥
42383dbd29
Merge branch 'canary' into stable
2023-12-10 21:04:15 +08:00
LongYinan
285fd367eb
chore: bump up undici version to v6 ( #5204 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [undici](https://undici.nodejs.org ) ([source](https://togithub.com/nodejs/undici )) | [`^5.27.2` -> `^6.0.0`](https://renovatebot.com/diffs/npm/undici/5.28.0/6.0.1 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>nodejs/undici (undici)</summary>
### [`v6.0.1`](https://togithub.com/nodejs/undici/releases/tag/v6.0.1 )
[Compare Source](https://togithub.com/nodejs/undici/compare/v6.0.0...v6.0.1 )
#### What's Changed
- fix: stream error timings by [@​ronag](https://togithub.com/ronag ) in [https://github.com/nodejs/undici/pull/2497 ](https://togithub.com/nodejs/undici/pull/2497 )
**Full Changelog**: https://github.com/nodejs/undici/compare/v6.0.0...v6.0.1
### [`v6.0.0`](https://togithub.com/nodejs/undici/releases/tag/v6.0.0 )
[Compare Source](https://togithub.com/nodejs/undici/compare/v5.28.2...v6.0.0 )
#### What's Changed
- 16 eol by [@​ronag](https://togithub.com/ronag ) in [https://github.com/nodejs/undici/pull/2480 ](https://togithub.com/nodejs/undici/pull/2480 )
- update spec & wpts by [@​KhafraDev](https://togithub.com/KhafraDev ) in [https://github.com/nodejs/undici/pull/2482 ](https://togithub.com/nodejs/undici/pull/2482 )
- version cleanup by [@​KhafraDev](https://togithub.com/KhafraDev ) in [https://github.com/nodejs/undici/pull/2483 ](https://togithub.com/nodejs/undici/pull/2483 )
- perf: avoid Response initialization by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2489 ](https://togithub.com/nodejs/undici/pull/2489 )
- perf: optimize `parseHeaders` by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2492 ](https://togithub.com/nodejs/undici/pull/2492 )
- chore: fix typo by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2490 ](https://togithub.com/nodejs/undici/pull/2490 )
- feat: print attempted addresses on ConnectTimeoutError by [@​fengmk2](https://togithub.com/fengmk2 ) in [https://github.com/nodejs/undici/pull/2494 ](https://togithub.com/nodejs/undici/pull/2494 )
- Expose HTTP errors that are not meant to be retried by [@​MzUgM](https://togithub.com/MzUgM ) in [https://github.com/nodejs/undici/pull/2496 ](https://togithub.com/nodejs/undici/pull/2496 )
**Full Changelog**: https://github.com/nodejs/undici/compare/v5.28.2...v6.0.0
### [`v5.28.2`](https://togithub.com/nodejs/undici/releases/tag/v5.28.2 )
[Compare Source](https://togithub.com/nodejs/undici/compare/v5.28.1...v5.28.2 )
#### What's Changed
- fix: remove optional chainning for compatible with Nodejs12 and below by [@​bugb](https://togithub.com/bugb ) in [https://github.com/nodejs/undici/pull/2470 ](https://togithub.com/nodejs/undici/pull/2470 )
- fix: remove `node:` prefix by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2471 ](https://togithub.com/nodejs/undici/pull/2471 )
- perf: avoid Headers initialization by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2468 ](https://togithub.com/nodejs/undici/pull/2468 )
- fix: handle SharedArrayBuffer correctly by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2466 ](https://togithub.com/nodejs/undici/pull/2466 )
- fix: Add `null` type to `signal` in `RequestInit` by [@​gebsh](https://togithub.com/gebsh ) in [https://github.com/nodejs/undici/pull/2455 ](https://togithub.com/nodejs/undici/pull/2455 )
- fix: correctly handle data URL with hashes. by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2475 ](https://togithub.com/nodejs/undici/pull/2475 )
- fix: check response for timinginfo allow flag by [@​ToshB](https://togithub.com/ToshB ) in [https://github.com/nodejs/undici/pull/2477 ](https://togithub.com/nodejs/undici/pull/2477 )
- Make call to onBodySent conditional in RetryHandler by [@​MzUgM](https://togithub.com/MzUgM ) in [https://github.com/nodejs/undici/pull/2478 ](https://togithub.com/nodejs/undici/pull/2478 )
- refactor: better integrity check by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2462 ](https://togithub.com/nodejs/undici/pull/2462 )
- fix: Added support for inline URL username:password proxy auth by [@​matt-way](https://togithub.com/matt-way ) in [https://github.com/nodejs/undici/pull/2473 ](https://togithub.com/nodejs/undici/pull/2473 )
- build(deps-dev): bump jsdom from 22.1.0 to 23.0.0 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/nodejs/undici/pull/2472 ](https://togithub.com/nodejs/undici/pull/2472 )
- build(deps-dev): bump sinon from 16.1.3 to 17.0.1 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/nodejs/undici/pull/2405 ](https://togithub.com/nodejs/undici/pull/2405 )
- build(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.1 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/nodejs/undici/pull/2396 ](https://togithub.com/nodejs/undici/pull/2396 )
- build(deps): bump actions/setup-node from 3.8.1 to 4.0.0 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/nodejs/undici/pull/2395 ](https://togithub.com/nodejs/undici/pull/2395 )
- build(deps): bump step-security/harden-runner from 2.5.0 to 2.6.0 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/nodejs/undici/pull/2392 ](https://togithub.com/nodejs/undici/pull/2392 )
- build(deps-dev): bump formdata-node from 4.4.1 to 6.0.3 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/nodejs/undici/pull/2389 ](https://togithub.com/nodejs/undici/pull/2389 )
- build(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/nodejs/undici/pull/2302 ](https://togithub.com/nodejs/undici/pull/2302 )
#### New Contributors
- [@​bugb](https://togithub.com/bugb ) made their first contribution in [https://github.com/nodejs/undici/pull/2470 ](https://togithub.com/nodejs/undici/pull/2470 )
- [@​gebsh](https://togithub.com/gebsh ) made their first contribution in [https://github.com/nodejs/undici/pull/2455 ](https://togithub.com/nodejs/undici/pull/2455 )
- [@​ToshB](https://togithub.com/ToshB ) made their first contribution in [https://github.com/nodejs/undici/pull/2477 ](https://togithub.com/nodejs/undici/pull/2477 )
- [@​MzUgM](https://togithub.com/MzUgM ) made their first contribution in [https://github.com/nodejs/undici/pull/2478 ](https://togithub.com/nodejs/undici/pull/2478 )
- [@​matt-way](https://togithub.com/matt-way ) made their first contribution in [https://github.com/nodejs/undici/pull/2473 ](https://togithub.com/nodejs/undici/pull/2473 )
**Full Changelog**: https://github.com/nodejs/undici/compare/v5.28.1...v5.28.2
### [`v5.28.1`](https://togithub.com/nodejs/undici/releases/tag/v5.28.1 )
[Compare Source](https://togithub.com/nodejs/undici/compare/v5.28.0...v5.28.1 )
#### What's Changed
- perf: Improve `normalizeMethod` by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2456 ](https://togithub.com/nodejs/undici/pull/2456 )
- fix: dispatch error handling by [@​ronag](https://togithub.com/ronag ) in [https://github.com/nodejs/undici/pull/2459 ](https://togithub.com/nodejs/undici/pull/2459 )
- perf(request): optimize if headers are given by [@​tsctx](https://togithub.com/tsctx ) in [https://github.com/nodejs/undici/pull/2454 ](https://togithub.com/nodejs/undici/pull/2454 )
**Full Changelog**: https://github.com/nodejs/undici/compare/v5.28.0...v5.28.1
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSJ9-->
2023-12-08 06:57:56 +00:00
Yifeng Wang
d507c24570
feat: bump blocksuite ( #5228 )
2023-12-07 19:28:49 +08:00
Yifeng Wang
819f0243d5
feat: bump blocksuite ( #5218 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com >
2023-12-07 18:24:23 +08:00
LongYinan
febe5cc2ae
ci: fix ts-node scripts ( #5225 )
...
- Ref: https://github.com/TypeStrong/ts-node/issues/2094
2023-12-07 09:13:00 +00:00
Yifeng Wang
6cbf5b2a92
feat: bump blocksuite ( #5194 )
...
Co-authored-by: AyushAgrawal-A2 <ayushagl06@gmail.com >
2023-12-06 18:15:03 +08:00
Flrande
a2784c352f
chore: bump blocksuite ( #5138 )
2023-12-04 12:02:35 +00:00
李华桥
24123ad01c
Revert "Revert "Merge remote-tracking branch 'origin/canary' into stable""
...
This reverts commit 89197bacef .
2023-12-01 13:29:43 +08:00
李华桥
ad50320391
v0.10.3
2023-12-01 12:52:15 +08:00
李华桥
eb21a60dda
v0.10.3-beta.7
2023-12-01 12:12:20 +08:00
李华桥
09d3b72358
v0.10.3-beta.6
2023-11-30 23:02:26 +08:00
李华桥
dc279d062b
v0.10.3-beta.5
2023-11-30 16:49:55 +08:00
李华桥
1d0bcc80a0
v0.10.3-beta.4
2023-11-29 16:14:06 +08:00
李华桥
89197bacef
Revert "Merge remote-tracking branch 'origin/canary' into stable"
...
This reverts commit 992ed89a89 , reversing
changes made to d272d7922d .
2023-11-29 11:18:45 +08:00
LongYinan
992ed89a89
Merge remote-tracking branch 'origin/canary' into stable
2023-11-28 15:12:52 +08:00
Peng Xiao
71d6b730f7
chore: bump blocksuite ( #5051 )
...
https://github.com/toeverything/blocksuite/pull/5337
2023-11-27 04:46:23 +00:00
李华桥
d272d7922d
v0.10.3-beta.2
2023-11-25 23:50:40 +08:00
李华桥
b20e91bee0
v0.10.3-beta.1
2023-11-25 14:14:40 +08:00
李华桥
2019838ae7
v0.10.3-beta.0
2023-11-24 11:39:23 +08:00
Joooye_34
317ca7f4e7
ci: fix storybook publish problem ( #5047 )
2023-11-23 23:38:09 +08:00
李华桥
8742f28148
Merge branch 'canary' into stable
2023-11-23 21:31:42 +08:00
LongYinan
25eda22af6
v0.10.3-canary.2
2023-11-23 16:47:40 +08:00
李华桥
9ded6afb4b
chore: v0.10.3-canary.1
2023-11-23 14:39:55 +08:00
LongYinan
3499dbbb7f
feat: upgrade dependencies and lockfile ( #5016 )
...
- Close https://github.com/toeverything/AFFiNE/security/dependabot/47
2023-11-23 05:18:05 +00:00
Flrande
d7d47853fe
chore: bump blocksuite ( #5030 )
2023-11-22 20:51:35 +08:00
Flrande
a3d880daa3
chore: bump blocksuite ( #5026 )
2023-11-22 20:12:52 +08:00
Peng Xiao
3839a9bd15
build(electron): asar ( #4965 )
...
Due to restrictions on how Electron package works, the `node_modules` should not be hoisted and not to use s/h-links at all. This is why we need to have two separate installs for electron and non-electron packages in the build.
Tested via the following script
```bash
#!/bin/bash
echo "step 1: clean up"
find . -name "node_modules" -prune -exec rm -rf '{}' +
# git clean -dfX
build_type=canary
echo "step 2: install web dependencies"
# firstly, build web static
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 SENTRYCLI_SKIP_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=1 yarn
echo "step 3: generate assets"
BUILD_TYPE="$build_type" yarn workspace @affine/electron generate-assets
# cleanup node_modules
find . -name "node_modules" -prune -exec rm -rf '{}' +
echo "step 4: install electron dependencies"
# install electron deps
yarn config set nmHoistingLimits workspaces
yarn config set enableScripts false
yarn config set nmMode classic
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn workspaces focus @affine/electron @affine/monorepo
echo "step 5: build native"
# build native
yarn workspace @affine/native build
yarn workspace @affine/storage build
echo "step 6: build electron"
# build electron
yarn workspace @affine/electron build
echo "step 7: package electron"
# package
SKIP_GENERATE_ASSETS=1 BUILD_TYPE="$build_type" HOIST_NODE_MODULES=1 yarn workspace @affine/electron package
```
2023-11-21 17:44:30 +00:00
李华桥
00c11d40cf
v0.10.3-canary.0
2023-11-21 10:02:46 +08:00
李华桥
0f6b28fd06
c0.11.0-canary.0
2023-11-20 23:53:50 +08:00
Flrande
8b2c3d4c41
chore: bump blocksuite ( #4958 )
2023-11-16 22:01:03 +08:00
Joooye_34
00c940f7df
chore: bump affine version to 0.10.2 ( #4959 )
2023-11-16 15:48:37 +08:00
Flrande
931b459fbd
chore: bump blocksuite ( #4958 )
2023-11-16 14:27:39 +08:00
李华桥
6f18ddbe85
v0.10.1
2023-11-13 19:49:26 +08:00
Peng Xiao
bd9f66fbc7
fix(infra): compatibility fix for space prefix ( #4912 )
...
It seems there are some cases that [this upstream PR](https://github.com/toeverything/blocksuite/pull/4747 ) will cause data loss.
Because of some historical reasons, the page id could be different with its doc id.
It might be caused by subdoc migration in the following (not 100% sure if all white screen issue is caused by it) https://github.com/toeverything/AFFiNE/blob/0714c12703ff8840acc180633e5489c755ddfba3/packages/common/infra/src/blocksuite/index.ts#L538-L540
In version 0.10, page id in spaces no longer has prefix "space:"
The data flow for fetching a doc's updates is:
- page id in `meta.pages` -> find `${page-id}` in `doc.spaces` -> `doc` -> `doc.guid`
if `doc` is not found in `doc.spaces`, a new doc will be created and its `doc.guid` is the same with its pageId
- because of guid logic change, the doc that previously prefixed with `space:` will not be found in `doc.spaces`
- when fetching the rows of this doc using the doc id === page id,
it will return EMPTY since there is no updates associated with the page id
The provided fix in the PR will patch the `spaces` field of the root doc so that after 0.10 the page doc can still be found in the `spaces` map. It shall apply to both of the idb & sqlite datasources.
Special thanks to @lawvs 's db file for investigation!
2023-11-13 17:57:56 +08:00
Peng Xiao
a8d89254ce
fix(electron): dev reload ( #4911 )
2023-11-12 03:19:27 +00:00
Yifeng Wang
2117d6b232
chore: bump blocksuite ( #4901 )
2023-11-10 13:23:29 +08:00
李华桥
5c48c83301
v0.10.0
2023-11-10 11:42:04 +08:00
李华桥
063f5a683e
v0.10.0-canary.16
2023-11-10 10:10:54 +08:00
李华桥
075eead9fa
v0.10.0-canary.15
2023-11-09 23:27:12 +08:00
Peng Xiao
442115632b
chore(component): bump bs ( #4880 )
2023-11-09 04:47:10 +00:00
Joooye_34
744cd47481
v0.10.0-canary.14
2023-11-08 15:36:54 +08:00
Hongtao Lye
12c72e63b1
chore: bump blocksuite version ( #4862 )
2023-11-08 07:12:48 +00:00
Joooye_34
f50b8002b3
v0.10.0-canary.13
2023-11-07 09:55:30 +08:00
Joooye_34
8554d5d791
v0.10.0-canary.12
2023-11-07 00:13:51 +08:00
Joooye_34
3b74ff2b92
v0.10.0-canary.11
2023-11-06 18:10:28 +08:00