pengx17
5e1528b50b
fix: export then add test case ( #7024 )
2024-05-24 04:49:08 +00:00
pengx17
fdc33bd3ec
refactor(electron): always save one update to electron ( #7009 )
...
not sure do we still need this one
2024-05-22 05:03:49 +00:00
pengx17
96cdb041c6
fix(electron): incorrect db rows docId when doing trim ( #7008 )
2024-05-21 13:53:16 +00:00
pengx17
bd5023d4ab
fix(electron): remove all migration code in electron ( #6969 )
...
The migration code import blocksuite in the dependency tree and prevent affine from running because electron's helper process tries to run browser only code that is part of the side effect of `@blocksuite/blocks`.

[The side effect free trick in esbuild config](https://github.com/toeverything/AFFiNE/pull/6415 ) does not clean up these - not sure why.
It has been already 6 month since we introduced the migration code in DB.
Instead of finding out the real root cause, I think may be better to remove the migration code completely so that no blocksuite code will be in the import paths in helper.js.

2024-05-17 03:01:14 +00:00
pengx17
3cca879a83
refactor(electron): use sqlite to store server clock & sync meta ( #6957 )
...
After this PR, IDB should not be used in desktop any longer.
2024-05-16 06:31:05 +00:00
pengx17
27af9b4d1a
perf(electron): add index for updates ( #6951 )
...

Above image shows the performance on querying a 20k rows of updates table, which is super slow at 150+ms. After adding index for doc_id the performance should be greatly improved.
After:

fix TOV-866
2024-05-16 06:30:53 +00:00
pengx17
5d114ea965
refactor(electron): cleanup secondary db logic ( #6710 )
2024-04-26 10:57:09 +00:00
renovate
313952c45d
chore: bump up all non-major dependencies ( #6235 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@aws-sdk/client-s3](https://togithub.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3 ) ([source](https://togithub.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3 )) | [`3.537.0` -> `3.552.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-s3/3.537.0/3.552.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/ ) |
| [@electron-forge/maker-base](https://togithub.com/electron/forge ) | [`7.3.0` -> `7.3.1`](https://renovatebot.com/diffs/npm/@electron-forge%2fmaker-base/7.3.0/7.3.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/ ) |
| [@napi-rs/cli](https://togithub.com/napi-rs/napi-rs ) | [`3.0.0-alpha.43` -> `3.0.0-alpha.46`](https://renovatebot.com/diffs/npm/@napi-rs%2fcli/3.0.0-alpha.43/3.0.0-alpha.46 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
| [@nx/vite](https://nx.dev ) ([source](https://togithub.com/nrwl/nx/tree/HEAD/packages/vite )) | [`18.1.2` -> `18.2.4`](https://renovatebot.com/diffs/npm/@nx%2fvite/18.1.2/18.2.4 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
| [@opentelemetry/exporter-prometheus](https://togithub.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-prometheus ) ([source](https://togithub.com/open-telemetry/opentelemetry-js )) | [`^0.49.0` -> `^0.50.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2fexporter-prometheus/0.49.1/0.50.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/ ) |
| [@opentelemetry/instrumentation](https://togithub.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation ) ([source](https://togithub.com/open-telemetry/opentelemetry-js )) | [`^0.49.0` -> `^0.50.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation/0.49.1/0.50.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/ ) |
| [@opentelemetry/instrumentation-graphql](https://togithub.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-graphql#readme ) ([source](https://togithub.com/open-telemetry/opentelemetry-js-contrib )) | [`^0.38.0` -> `^0.39.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-graphql/0.38.0/0.39.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/ ) |
| [@opentelemetry/instrumentation-http](https://togithub.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http ) ([source](https://togithub.com/open-telemetry/opentelemetry-js )) | [`^0.49.0` -> `^0.50.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-http/0.49.1/0.50.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/ ) |
| [@opentelemetry/instrumentation-ioredis](https://togithub.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-ioredis#readme ) ([source](https://togithub.com/open-telemetry/opentelemetry-js-contrib )) | [`^0.38.0` -> `^0.39.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-ioredis/0.38.0/0.39.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/ ) |
| [@opentelemetry/instrumentation-nestjs-core](https://togithub.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-nestjs-core#readme ) ([source](https://togithub.com/open-telemetry/opentelemetry-js-contrib )) | [`^0.35.0` -> `^0.36.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-nestjs-core/0.35.0/0.36.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/ ) |
| [@opentelemetry/instrumentation-socket.io](https://togithub.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-socket.io#readme ) ([source](https://togithub.com/open-telemetry/opentelemetry-js-contrib )) | [`^0.37.0` -> `^0.38.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-socket.io/0.37.0/0.38.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/ ) |
| [@opentelemetry/sdk-node](https://togithub.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-sdk-node ) ([source](https://togithub.com/open-telemetry/opentelemetry-js )) | [`^0.49.0` -> `^0.50.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2fsdk-node/0.49.1/0.50.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/ ) |
| [eslint-plugin-import-x](https://togithub.com/un-ts/eslint-plugin-import-x ) | [`^0.4.1` -> `^0.5.0`](https://renovatebot.com/diffs/npm/eslint-plugin-import-x/0.4.4/0.5.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/ ) |
| [eslint-plugin-sonarjs](https://togithub.com/SonarSource/eslint-plugin-sonarjs ) | [`^0.24.0` -> `^0.25.0`](https://renovatebot.com/diffs/npm/eslint-plugin-sonarjs/0.24.0/0.25.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/ ) |
| [vite-plugin-dts](https://togithub.com/qmhc/vite-plugin-dts ) | [`3.7.3` -> `3.8.1`](https://renovatebot.com/diffs/npm/vite-plugin-dts/3.7.3/3.8.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>aws/aws-sdk-js-v3 (@​aws-sdk/client-s3)</summary>
### [`v3.552.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35520-2024-04-09 )
[Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.550.0...v3.552.0 )
**Note:** Version bump only for package [@​aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3 )
### [`v3.550.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35500-2024-04-05 )
[Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.549.0...v3.550.0 )
**Note:** Version bump only for package [@​aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3 )
### [`v3.549.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35490-2024-04-04 )
[Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.540.0...v3.549.0 )
**Note:** Version bump only for package [@​aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3 )
### [`v3.540.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35400-2024-03-22 )
[Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.537.0...v3.540.0 )
##### Bug Fixes
- **util-endpoints:** augment endpointFunctions inline in endpointResolver functions ([#​5933](https://togithub.com/aws/aws-sdk-js-v3/issues/5933 )) ([42a791d](42a791defb ))
</details>
<details>
<summary>electron/forge (@​electron-forge/maker-base)</summary>
### [`v7.3.1`](https://togithub.com/electron/forge/releases/tag/v7.3.1 )
[Compare Source](https://togithub.com/electron/forge/compare/v7.3.0...v7.3.1 )
##### What's Changed
##### Highlighted Feature:
- build: Bump [@​electron/windows-sign](https://togithub.com/electron/windows-sign ) deps by [@​felixrieseberg](https://togithub.com/felixrieseberg ) in [https://github.com/electron/forge/pull/3524 ](https://togithub.com/electron/forge/pull/3524 )
This change enables advanced code signing with \[[@​electron/windows-sign](https://togithub.com/electron/windows-sign )]\[[@​electron/windows-sign](https://togithub.com/electron/windows-sign )], supporting two different ways to codesign your application and the installer:
1. Modern: By passing a `windowsSign` option, which will be passed to \[[@​electron/windows-sign](https://togithub.com/electron/windows-sign )]. This method allows full customization of the code-signing process - and supports more complicated scenarios like cloud-hosted EV certificates, custom sign pipelines, and per-file overrides. It also supports all existing "simple" codesigning scenarios, including just passing a certificate file and password. Please see https://github.com/[@​electron/windows-sign](https://togithub.com/electron/windows-sign) for all possible configuration options.
When passing `windowsSign`, do not pass any other available parameters at the top level (like `certificateFile`, `certificatePassword`, or `signWithParams`).
2. Legacy: By passing the top-level settings (`certificateFile`, `certificatePassword`, and `signWithParams`). For simple codesigning scenarios, there's no reason not to use this method - it'll work just as fine as the modern method.
##### Bug Fixes and Improvements
- fix(publisher-github): don't sanitize asset names before upload by [@​dsanders11](https://togithub.com/dsanders11 ) in [https://github.com/electron/forge/pull/3485 ](https://togithub.com/electron/forge/pull/3485 )
- build: bump memory limit for docs:generate script by [@​dsanders11](https://togithub.com/dsanders11 ) in [https://github.com/electron/forge/pull/3500 ](https://togithub.com/electron/forge/pull/3500 )
- build: fix keyv type resolution warning during dev by [@​MarshallOfSound](https://togithub.com/MarshallOfSound ) in [https://github.com/electron/forge/pull/3507 ](https://togithub.com/electron/forge/pull/3507 )
- build(deps): bump actions/setup-node from 4.0.1 to 4.0.2 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/electron/forge/pull/3522 ](https://togithub.com/electron/forge/pull/3522 )
- build(deps): bump follow-redirects from 1.15.4 to 1.15.6 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/electron/forge/pull/3537 ](https://togithub.com/electron/forge/pull/3537 )
- ci(windows): pin version of wix toolset to v3.14.0 by [@​erickzhao](https://togithub.com/erickzhao ) in [https://github.com/electron/forge/pull/3525 ](https://togithub.com/electron/forge/pull/3525 )
- docs: update forge create-electron-app template to match tutorial by [@​alicelovescake](https://togithub.com/alicelovescake ) in [https://github.com/electron/forge/pull/3528 ](https://togithub.com/electron/forge/pull/3528 )
##### New Contributors
- [@​alicelovescake](https://togithub.com/alicelovescake ) made their first contribution in [https://github.com/electron/forge/pull/3528 ](https://togithub.com/electron/forge/pull/3528 )
**Full Changelog**: https://github.com/electron/forge/compare/v7.3.0...v7.3.1

</details>
<details>
<summary>napi-rs/napi-rs (@​napi-rs/cli)</summary>
### [`v3.0.0-alpha.46`](https://togithub.com/napi-rs/napi-rs/releases/tag/%40napi-rs/cli%403.0.0-alpha.46 )
[Compare Source](https://togithub.com/napi-rs/napi-rs/compare/@napi-rs/cli@3.0.0-alpha.45...@napi-rs/cli@3.0.0-alpha.46 )
#### What's Changed
- fix(deps): update dependency emnapi to v1.1.1 by [@​renovate](https://togithub.com/renovate ) in [https://github.com/napi-rs/napi-rs/pull/2017 ](https://togithub.com/napi-rs/napi-rs/pull/2017 )
- feat(cli): add support for armv7-unknown-linux-muslebihf by [@​sapphi-red](https://togithub.com/sapphi-red ) in [https://github.com/napi-rs/napi-rs/pull/2019 ](https://togithub.com/napi-rs/napi-rs/pull/2019 )
- feat(cli): add support for powerpc64le-unknown-linux-gnu by [@​sapphi-red](https://togithub.com/sapphi-red ) in [https://github.com/napi-rs/napi-rs/pull/2023 ](https://togithub.com/napi-rs/napi-rs/pull/2023 )
- feat(cli): add support for s390x-unknown-linux-gnu by [@​sapphi-red](https://togithub.com/sapphi-red ) in [https://github.com/napi-rs/napi-rs/pull/2028 ](https://togithub.com/napi-rs/napi-rs/pull/2028 )
- feat(cli): support wasm32-wasipxx targets by [@​Brooooooklyn](https://togithub.com/Brooooooklyn ) in [https://github.com/napi-rs/napi-rs/pull/2030 ](https://togithub.com/napi-rs/napi-rs/pull/2030 )
**Full Changelog**: https://github.com/napi-rs/napi-rs/compare/[@​napi-rs/cli](https://togithub.com/napi-rs/cli)[@​3](https://togithub.com/3).0.0-alpha.45...[@​napi-rs/cli](https://togithub.com/napi-rs/cli)[@​3](https://togithub.com/3).0.0-alpha.46
### [`v3.0.0-alpha.45`](https://togithub.com/napi-rs/napi-rs/compare/@napi-rs/cli@3.0.0-alpha.44...@napi-rs/cli@3.0.0-alpha.45 )
[Compare Source](https://togithub.com/napi-rs/napi-rs/compare/@napi-rs/cli@3.0.0-alpha.44...@napi-rs/cli@3.0.0-alpha.45 )
### [`v3.0.0-alpha.44`](https://togithub.com/napi-rs/napi-rs/releases/tag/%40napi-rs/cli%403.0.0-alpha.44 )
[Compare Source](https://togithub.com/napi-rs/napi-rs/compare/@napi-rs/cli@3.0.0-alpha.43...@napi-rs/cli@3.0.0-alpha.44 )
#### What's Changed
- fix(cli): cleanup js binding template by [@​Brooooooklyn](https://togithub.com/Brooooooklyn ) in [https://github.com/napi-rs/napi-rs/pull/1984 ](https://togithub.com/napi-rs/napi-rs/pull/1984 )
- chore(deps): lock file maintenance by [@​renovate](https://togithub.com/renovate ) in [https://github.com/napi-rs/napi-rs/pull/1987 ](https://togithub.com/napi-rs/napi-rs/pull/1987 )
- chore(deps): update yarn to v4.1.1 by [@​renovate](https://togithub.com/renovate ) in [https://github.com/napi-rs/napi-rs/pull/1989 ](https://togithub.com/napi-rs/napi-rs/pull/1989 )
- ci: fix arm64 job by [@​Brooooooklyn](https://togithub.com/Brooooooklyn ) in [https://github.com/napi-rs/napi-rs/pull/1998 ](https://togithub.com/napi-rs/napi-rs/pull/1998 )
- chore(deps): bump follow-redirects from 1.15.5 to 1.15.6 by [@​dependabot](https://togithub.com/dependabot ) in [https://github.com/napi-rs/napi-rs/pull/2004 ](https://togithub.com/napi-rs/napi-rs/pull/2004 )
- fix(deps): update dependency emnapi to v1.1.0 by [@​renovate](https://togithub.com/renovate ) in [https://github.com/napi-rs/napi-rs/pull/2006 ](https://togithub.com/napi-rs/napi-rs/pull/2006 )
- chore(wasm-runtime): upgrade emnapi by [@​Brooooooklyn](https://togithub.com/Brooooooklyn ) in [https://github.com/napi-rs/napi-rs/pull/2008 ](https://togithub.com/napi-rs/napi-rs/pull/2008 )
**Full Changelog**: https://github.com/napi-rs/napi-rs/compare/napi@2.16.0...[@​napi-rs/cli](https://togithub.com/napi-rs/cli)[@​3](https://togithub.com/3).0.0-alpha.44
</details>
<details>
<summary>nrwl/nx (@​nx/vite)</summary>
### [`v18.2.4`](https://togithub.com/nrwl/nx/releases/tag/18.2.4 )
[Compare Source](https://togithub.com/nrwl/nx/compare/18.2.3...18.2.4 )
##### 18.2.4 (2024-04-09)
##### 🩹 Fixes
- **angular:** fix dynamic module federation generation ([#​22724](https://togithub.com/nrwl/nx/pull/22724 ))
- **core:** update pty version to add windows specific flags ([#​22711](https://togithub.com/nrwl/nx/pull/22711 ))
- **nextjs:** Adding tailwind should work when creating an app OOTB ([#​22709](https://togithub.com/nrwl/nx/pull/22709 ))
##### ❤️ Thank You
- Craigory Coppola [@​AgentEnder](https://togithub.com/AgentEnder )
- Leosvel Pérez Espinosa [@​leosvelperez](https://togithub.com/leosvelperez )
- Nicholas Cunningham [@​ndcunningham](https://togithub.com/ndcunningham )
### [`v18.2.3`](https://togithub.com/nrwl/nx/releases/tag/18.2.3 )
[Compare Source](https://togithub.com/nrwl/nx/compare/18.2.2...18.2.3 )
#### 18.2.3 (2024-04-05)
##### 🚀 Features
- **core:** list crystal plugins with nx report ([#​22649](https://togithub.com/nrwl/nx/pull/22649 ))
##### 🩹 Fixes
- **bundling:** print errors from rollup build ([#​22707](https://togithub.com/nrwl/nx/pull/22707 ))
- **core:** write terminal output to cache folder ([#​22673](https://togithub.com/nrwl/nx/pull/22673 ))
- **core:** errors from create dependencies should show properly ([#​22695](https://togithub.com/nrwl/nx/pull/22695 ))
- **core:** not passing props of run-commands to underlying command ([#​22595](https://togithub.com/nrwl/nx/pull/22595 ))
- **js:** update jest snapshot after vite-plugin-dts bump ([#​22621](https://togithub.com/nrwl/nx/pull/22621 ))
- **js:** append target when generating tmp tsconfig to prevent conflicts [#​21396](https://togithub.com/nrwl/nx/issues/21396 ) ([#​22671](https://togithub.com/nrwl/nx/pull/22671 ), [#​21396](https://togithub.com/nrwl/nx/issues/21396 ))
- **js:** propagate error from child process to [@​nx/js](https://togithub.com/nx/js ):node executor ([#​22705](https://togithub.com/nrwl/nx/pull/22705 ))
- **misc:** fix optional branch tracking on ci pipeline ([#​22652](https://togithub.com/nrwl/nx/pull/22652 ))
- **module-federation:** serve dynamic remotes statically in their own processes ([#​22688](https://togithub.com/nrwl/nx/pull/22688 ))
- **nx-dev:** Update urls that are 404 ([#​22653](https://togithub.com/nrwl/nx/pull/22653 ))
- **release:** respect root .npmrc registry settings for publishing ([9dd97c43a1](https://togithub.com/nrwl/nx/commit/9dd97c43a1 ))
- **testing:** fix playwright executor uiPort option schema ([#​22610](https://togithub.com/nrwl/nx/pull/22610 ))
- **testing:** app generators should create correct e2e config at generation time ([#​22565](https://togithub.com/nrwl/nx/pull/22565 ))
- **vite:** ensure cache is created correctly for separate vite and vitest config files [#​22244](https://togithub.com/nrwl/nx/issues/22244 ) ([#​22618](https://togithub.com/nrwl/nx/pull/22618 ), [#​22244](https://togithub.com/nrwl/nx/issues/22244 ))
- **webpack:** bring back previous SVG and SVGR behavior for React projects ([#​22628](https://togithub.com/nrwl/nx/pull/22628 ))
- **webpack:** support standard webpack config with [@​nx/webpack](https://togithub.com/nx/webpack ):dev-server ([#​22660](https://togithub.com/nrwl/nx/pull/22660 ))
- **webpack:** remove url-loader from dependencies since it is replaced by asset modules ([#​22698](https://togithub.com/nrwl/nx/pull/22698 ))
##### ❤️ Thank You
- Altan Stalker
- Austin Fahsl [@​fahslaj](https://togithub.com/fahslaj )
- Colum Ferry [@​Coly010](https://togithub.com/Coly010 )
- Craigory Coppola [@​AgentEnder](https://togithub.com/AgentEnder )
- Emily Xiong [@​xiongemi](https://togithub.com/xiongemi )
- Jack Hsu [@​jaysoo](https://togithub.com/jaysoo )
- Leosvel Pérez Espinosa [@​leosvelperez](https://togithub.com/leosvelperez )
- Miroslav Jonaš [@​meeroslav](https://togithub.com/meeroslav )
- Nicholas Cunningham [@​ndcunningham](https://togithub.com/ndcunningham )
### [`v18.2.2`](https://togithub.com/nrwl/nx/releases/tag/18.2.2 )
[Compare Source](https://togithub.com/nrwl/nx/compare/18.2.1...18.2.2 )
#### 18.2.2 (2024-04-02)
##### 🚀 Features
- **vite:** migrate to latest vite-plugin-dts ([#​22614](https://togithub.com/nrwl/nx/pull/22614 ))
##### 🩹 Fixes
- **angular:** prevent false positive validation due to option default value in dev-server executor ([#​22606](https://togithub.com/nrwl/nx/pull/22606 ))
- **angular:** respect skipPackageJson correctly in library generator ([#​22608](https://togithub.com/nrwl/nx/pull/22608 ))
- **angular:** fix @​nx/angular/src/utils entry point ([#​22609](https://togithub.com/nrwl/nx/pull/22609 ))
- **core:** do not assume workspace inputs cause all projects to be af… ([#​22573](https://togithub.com/nrwl/nx/pull/22573 ))
- **react-native:** storybook relative paths ([#​22031](https://togithub.com/nrwl/nx/pull/22031 ))
##### ❤️ Thank You
- arekkubaczkowski [@​arekkubaczkowski](https://togithub.com/arekkubaczkowski )
- Colum Ferry [@​Coly010](https://togithub.com/Coly010 )
- Jason Jean [@​FrozenPandaz](https://togithub.com/FrozenPandaz )
- Leosvel Pérez Espinosa [@​leosvelperez](https://togithub.com/leosvelperez )
### [`v18.2.1`](https://togithub.com/nrwl/nx/releases/tag/18.2.1 )
[Compare Source](https://togithub.com/nrwl/nx/compare/18.2.0...18.2.1 )
##### 18.2.1 (2024-03-28)
##### 🩹 Fixes
- **nuxt:** use loadConfigFile from devkit rather than [@​nuxt/kit](https://togithub.com/nuxt/kit ) ([#​22571](https://togithub.com/nrwl/nx/pull/22571 ))
##### ❤️ Thank You
- Jack Hsu [@​jaysoo](https://togithub.com/jaysoo )
### [`v18.2.0`](https://togithub.com/nrwl/nx/releases/tag/18.2.0 )
[Compare Source](https://togithub.com/nrwl/nx/compare/18.1.3...18.2.0 )
##### 18.2.0 (2024-03-28)
##### 🚀 Features
- **angular:** support angular 17.3.0 ([#​22202](https://togithub.com/nrwl/nx/pull/22202 ))
- **bundling:** refactor rollup executor to perform single build for all formats ([#​22436](https://togithub.com/nrwl/nx/pull/22436 ))
- **core:** add ability to add metadata to projects ([#​22299](https://togithub.com/nrwl/nx/pull/22299 ))
- **core:** create structured project graph errors with all plugin er… ([#​22404](https://togithub.com/nrwl/nx/pull/22404 ))
- **core:** add ability to scope plugins ([#​22379](https://togithub.com/nrwl/nx/pull/22379 ))
- **gradle:** add gradle init generator ([#​22245](https://togithub.com/nrwl/nx/pull/22245 ))
- **gradle:** make gradle public ([#​22399](https://togithub.com/nrwl/nx/pull/22399 ))
- **gradle:** add gradle init generator ([#​22245](https://togithub.com/nrwl/nx/pull/22245 ))
- **gradle:** add technology ([#​22528](https://togithub.com/nrwl/nx/pull/22528 ))
- **graph:** remove polyfills from graph client ([#​22494](https://togithub.com/nrwl/nx/pull/22494 ))
- **testing:** infer open-cypress task ([#​22556](https://togithub.com/nrwl/nx/pull/22556 ))
- **webpack:** create build log for remotes to help debug errors ([#​22539](https://togithub.com/nrwl/nx/pull/22539 ))
##### 🩹 Fixes
- **angular:** target correct versions of ng-packagr to create stylesheet worker synchronously ([#​22485](https://togithub.com/nrwl/nx/pull/22485 ))
- **angular:** prevent creating stylesheet worker multiple times in ng-packagr executors ([#​22491](https://togithub.com/nrwl/nx/pull/22491 ))
- **bundling:** prevent sensitive keys from being bundled ([#​22413](https://togithub.com/nrwl/nx/pull/22413 ))
- **bundling:** prevent sensitive keys from being bundled ([#​22413](https://togithub.com/nrwl/nx/pull/22413 ))
- **core:** override Path env variable on Windows platform ([#​22382](https://togithub.com/nrwl/nx/pull/22382 ))
- **core:** Should work if extends is a string ([a00f6438b9](https://togithub.com/nrwl/nx/commit/a00f6438b9 ))
- **core:** fix no plugins found for nx init without packge.json ([#​22434](https://togithub.com/nrwl/nx/pull/22434 ))
- **core:** exponential backoff retry on cache put fail ([#​21926](https://togithub.com/nrwl/nx/pull/21926 ))
- **core:** override Path env variable on Windows platform ([#​22382](https://togithub.com/nrwl/nx/pull/22382 ))
- **core:** Should work if extends is a string ([66ae83e569](https://togithub.com/nrwl/nx/commit/66ae83e569 ))
- **core:** fix no plugins found for nx init without packge.json ([#​22434](https://togithub.com/nrwl/nx/pull/22434 ))
- **core:** exponential backoff retry on cache put fail ([#​21926](https://togithub.com/nrwl/nx/pull/21926 ))
- **core:** cannot read property kind of undefined ([#​21715](https://togithub.com/nrwl/nx/pull/21715 ))
- **core:** rethrow unknown errors during incremental graph calculation ([#​22522](https://togithub.com/nrwl/nx/pull/22522 ))
- **core:** ignore yarn/cache when watching with the daemon ([#​22516](https://togithub.com/nrwl/nx/pull/22516 ))
- **core:** handle undefined properties in schemas with additionalProperties ([#​22426](https://togithub.com/nrwl/nx/pull/22426 ))
- **core:** fix caching outputs which have symlinks ([#​22548](https://togithub.com/nrwl/nx/pull/22548 ))
- **gradle:** fix missing tasks ([#​22400](https://togithub.com/nrwl/nx/pull/22400 ))
- **gradle:** fix gradle plugin path ([#​22405](https://togithub.com/nrwl/nx/pull/22405 ))
- **gradle:** fix missing tasks ([#​22400](https://togithub.com/nrwl/nx/pull/22400 ))
- **gradle:** fix gradle plugin path ([#​22405](https://togithub.com/nrwl/nx/pull/22405 ))
- **gradle:** fix gradle to work on windows ([#​22470](https://togithub.com/nrwl/nx/pull/22470 ))
- **gradle:** fix gradle icon ([#​22553](https://togithub.com/nrwl/nx/pull/22553 ))
- **gradle:** only allow certain types of task to be cached ([#​22559](https://togithub.com/nrwl/nx/pull/22559 ))
- **gradle:** add [@​nx/gradle](https://togithub.com/nx/gradle ) to nx migrations ([#​22567](https://togithub.com/nrwl/nx/pull/22567 ))
- **js:** update babel preset to specify minor version of core-js for better optimization ([#​22433](https://togithub.com/nrwl/nx/pull/22433 ))
- **js:** match core-js version with babel options ([#​22493](https://togithub.com/nrwl/nx/pull/22493 ))
- **js:** migrate core-js to 3.36 for workspaces that use it ([#​22495](https://togithub.com/nrwl/nx/pull/22495 ))
- **js:** handle case where tslib or [@​swc/helpers](https://togithub.com/swc/helpers ) are missing from externalNodes ([#​22523](https://togithub.com/nrwl/nx/pull/22523 ))
- **js:** do not write cached lockfile parsed results when an error is… ([#​22526](https://togithub.com/nrwl/nx/pull/22526 ))
- **linter:** convert parser options to flat config even is parser is missing ([#​22388](https://togithub.com/nrwl/nx/pull/22388 ))
- **linter:** convert parser options to flat config even is parser is missing ([#​22388](https://togithub.com/nrwl/nx/pull/22388 ))
- **misc:** handle cwd correctly when generating artifacts with as-provided ([#​22411](https://togithub.com/nrwl/nx/pull/22411 ))
- **misc:** handle cwd correctly when generating artifacts with as-provided ([#​22411](https://togithub.com/nrwl/nx/pull/22411 ))
- **misc:** align nx init package.json scripts handling when deselecting all plugins ([#​22490](https://togithub.com/nrwl/nx/pull/22490 ))
- **react:** HMR for withModuleFederation [#​22300](https://togithub.com/nrwl/nx/issues/22300 ) ([#​22562](https://togithub.com/nrwl/nx/pull/22562 ), [#​22300](https://togithub.com/nrwl/nx/issues/22300 ))
- **remix:** generate correct e2e config if Crystal is used ([#​22558](https://togithub.com/nrwl/nx/pull/22558 ))
- **rollup:** remove exports field from @​nx/rollup/package.json since is a breaking change ([#​22545](https://togithub.com/nrwl/nx/pull/22545 ))
- **storybook:** do not set cacheableOperations if not previously set ([#​22535](https://togithub.com/nrwl/nx/pull/22535 ))
- **testing:** remove root from the cypress ci-e2e group ([#​22468](https://togithub.com/nrwl/nx/pull/22468 ))
- **testing:** name group of e2e ci tasks distinctly from target name ([#​22525](https://togithub.com/nrwl/nx/pull/22525 ))
- **web:** spa flag should correctly define redirect ([#​22487](https://togithub.com/nrwl/nx/pull/22487 ))
- **webpack:** Stylus loader path ([#​22373](https://togithub.com/nrwl/nx/pull/22373 ))
- **webpack:** Stylus loader path ([#​22373](https://togithub.com/nrwl/nx/pull/22373 ))
- **webpack:** pass options from executor to NxWebpackPlugin correctly ([#​22529](https://togithub.com/nrwl/nx/pull/22529 ))
- **webpack:** resolve assets from executor options as relative to workspace root ([#​22544](https://togithub.com/nrwl/nx/pull/22544 ))
##### ❤️ Thank You
- Colum Ferry [@​Coly010](https://togithub.com/Coly010 )
- Emily Xiong [@​xiongemi](https://togithub.com/xiongemi )
- Jack Hsu [@​jaysoo](https://togithub.com/jaysoo )
- Jason Jean [@​FrozenPandaz](https://togithub.com/FrozenPandaz )
- Joel Pelaez Jorge
- Leosvel Pérez Espinosa [@​leosvelperez](https://togithub.com/leosvelperez )
- Maxence LEFEBVRE
- MaxKless [@​MaxKless](https://togithub.com/MaxKless )
- Mike Pham
- Miroslav Jonaš [@​meeroslav](https://togithub.com/meeroslav )
- Nicholas Cunningham [@​ndcunningham](https://togithub.com/ndcunningham )
### [`v18.1.3`](https://togithub.com/nrwl/nx/releases/tag/18.1.3 )
[Compare Source](https://togithub.com/nrwl/nx/compare/18.1.2...18.1.3 )
##### 18.1.3 (2024-03-25)
##### 🚀 Features
- **gradle:** add gradle init generator ([#​22245](https://togithub.com/nrwl/nx/pull/22245 ))
##### 🩹 Fixes
- **angular:** prevent creating stylesheet worker multiple times in ng-packagr executors ([#​22491](https://togithub.com/nrwl/nx/pull/22491 ))
- **bundling:** prevent sensitive keys from being bundled ([#​22413](https://togithub.com/nrwl/nx/pull/22413 ))
- **core:** override Path env variable on Windows platform ([#​22382](https://togithub.com/nrwl/nx/pull/22382 ))
- **core:** Should work if extends is a string ([66ae83e569](https://togithub.com/nrwl/nx/commit/66ae83e569 ))
- **core:** fix no plugins found for nx init without packge.json ([#​22434](https://togithub.com/nrwl/nx/pull/22434 ))
- **core:** exponential backoff retry on cache put fail ([#​21926](https://togithub.com/nrwl/nx/pull/21926 ))
- **gradle:** fix missing tasks ([#​22400](https://togithub.com/nrwl/nx/pull/22400 ))
- **gradle:** fix gradle plugin path ([#​22405](https://togithub.com/nrwl/nx/pull/22405 ))
- **linter:** convert parser options to flat config even is parser is missing ([#​22388](https://togithub.com/nrwl/nx/pull/22388 ))
- **misc:** handle cwd correctly when generating artifacts with as-provided ([#​22411](https://togithub.com/nrwl/nx/pull/22411 ))
- **webpack:** Stylus loader path ([#​22373](https://togithub.com/nrwl/nx/pull/22373 ))
##### ❤️ Thank You
- Emily Xiong
- Jack Hsu
- Jason Jean
- Joel Pelaez Jorge
- Leosvel Pérez Espinosa
- Mike Pham
- Miroslav Jonaš
- Nicholas Cunningham
</details>
<details>
<summary>open-telemetry/opentelemetry-js (@​opentelemetry/exporter-prometheus)</summary>
### [`v0.50.0`](3920b158d0...5231aa2550 )
[Compare Source](3920b158d0...5231aa2550 )
</details>
<details>
<summary>open-telemetry/opentelemetry-js-contrib (@​opentelemetry/instrumentation-graphql)</summary>
### [`v0.39.0`](9d19ca4103...17a0bc1da3 )
[Compare Source](9d19ca4103...17a0bc1da3 )
### [`v0.38.1`](32204a362d...39c34df61f )
[Compare Source](fcea8ca0c8...9d19ca4103 )
</details>
<details>
<summary>un-ts/eslint-plugin-import-x (eslint-plugin-import-x)</summary>
### [`v0.5.0`](https://togithub.com/un-ts/eslint-plugin-import-x/blob/HEAD/CHANGELOG.md#050 )
[Compare Source](https://togithub.com/un-ts/eslint-plugin-import-x/compare/v0.4.4...v0.5.0 )
##### Minor Changes
- [#​66](https://togithub.com/un-ts/eslint-plugin-import-x/pull/66 ) [`49418a0`](49418a0352 ) Thanks [@​JounQin](https://togithub.com/JounQin )! - chore(dep)!: drop eslint <8.56 support
- [#​66](https://togithub.com/un-ts/eslint-plugin-import-x/pull/66 ) [`49418a0`](49418a0352 ) Thanks [@​JounQin](https://togithub.com/JounQin )! - feat!: upgrade [@​typescript-eslint/utils](https://togithub.com/typescript-eslint/utils ) to v7
</details>
<details>
<summary>SonarSource/eslint-plugin-sonarjs (eslint-plugin-sonarjs)</summary>
### [`v0.25.1`](https://togithub.com/SonarSource/eslint-plugin-sonarjs/releases/tag/0.25.1 )
[Compare Source](https://togithub.com/SonarSource/eslint-plugin-sonarjs/compare/0.25.0...0.25.1 )
##### What's Changed
- Resolve issue [#​456](https://togithub.com/SonarSource/eslint-plugin-sonarjs/issues/456 ) - [@​typescript-eslint/utils](https://togithub.com/typescript-eslint/utils ) dependency is missing by [@​ericmorand-sonarsource](https://togithub.com/ericmorand-sonarsource ) in [https://github.com/SonarSource/eslint-plugin-sonarjs/pull/457 ](https://togithub.com/SonarSource/eslint-plugin-sonarjs/pull/457 )
- Bump the project manifest version to 0.25.1 by [@​ericmorand-sonarsource](https://togithub.com/ericmorand-sonarsource ) in [https://github.com/SonarSource/eslint-plugin-sonarjs/pull/458 ](https://togithub.com/SonarSource/eslint-plugin-sonarjs/pull/458 )
##### New Contributors
- [@​ericmorand-sonarsource](https://togithub.com/ericmorand-sonarsource ) made their first contribution in [https://github.com/SonarSource/eslint-plugin-sonarjs/pull/457 ](https://togithub.com/SonarSource/eslint-plugin-sonarjs/pull/457 )
**Full Changelog**: https://github.com/SonarSource/eslint-plugin-sonarjs/compare/0.25.0...0.25.1
### [`v0.25.0`](https://togithub.com/SonarSource/eslint-plugin-sonarjs/releases/tag/0.25.0 )
[Compare Source](https://togithub.com/SonarSource/eslint-plugin-sonarjs/compare/0.24.0...0.25.0 )
#### What's Changed
- Prepare for next development iteration by [@​yassin-kammoun-sonarsource](https://togithub.com/yassin-kammoun-sonarsource ) in [https://github.com/SonarSource/eslint-plugin-sonarjs/pull/446 ](https://togithub.com/SonarSource/eslint-plugin-sonarjs/pull/446 )
- Fix FP 3699 (no-use-of-empty-return-values) to handle ambient functions by [@​zglicz](https://togithub.com/zglicz ) in [https://github.com/SonarSource/eslint-plugin-sonarjs/pull/451 ](https://togithub.com/SonarSource/eslint-plugin-sonarjs/pull/451 )
- Make no-unused-collection not trigger if writing to elements of said collection by [@​zglicz](https://togithub.com/zglicz ) in [https://github.com/SonarSource/eslint-plugin-sonarjs/pull/452 ](https://togithub.com/SonarSource/eslint-plugin-sonarjs/pull/452 )
- Replace devDependency `@typescript-eslint/experimental-utils` with `@typescript-eslint/utils` by [@​yassin-kammoun-sonarsource](https://togithub.com/yassin-kammoun-sonarsource ) in [https://github.com/SonarSource/eslint-plugin-sonarjs/pull/453 ](https://togithub.com/SonarSource/eslint-plugin-sonarjs/pull/453 )
#### New Contributors
- [@​zglicz](https://togithub.com/zglicz ) made their first contribution in [https://github.com/SonarSource/eslint-plugin-sonarjs/pull/451 ](https://togithub.com/SonarSource/eslint-plugin-sonarjs/pull/451 )
**Full Changelog**: https://github.com/SonarSource/eslint-plugin-sonarjs/compare/0.24.0...0.25.0
</details>
<details>
<summary>qmhc/vite-plugin-dts (vite-plugin-dts)</summary>
### [`v3.8.1`](https://togithub.com/qmhc/vite-plugin-dts/blob/HEAD/CHANGELOG.md#381-2024-03-28 )
[Compare Source](https://togithub.com/qmhc/vite-plugin-dts/compare/v3.8.0...v3.8.1 )
##### Bug Fixes
- correct process property names in imports ([fb320fb](fb320fb814 )), closes [#​316](https://togithub.com/qmhc/vite-plugin-dts/issues/316 )
### [`v3.8.0`](https://togithub.com/qmhc/vite-plugin-dts/blob/HEAD/CHANGELOG.md#380-2024-03-27 )
[Compare Source](https://togithub.com/qmhc/vite-plugin-dts/compare/v3.7.3...v3.8.0 )
##### Bug Fixes
- add syntactic and semantic diagnostics ([#​310](https://togithub.com/qmhc/vite-plugin-dts/issues/310 )) ([7c10782](7c10782284 ))
##### Features
- collect declared modules when rollup types ([39606bd](39606bd345 )), closes [#​240](https://togithub.com/qmhc/vite-plugin-dts/issues/240 )
#### [3.7.3](https://togithub.com/qmhc/vite-plugin-dts/compare/v3.7.2...v3.7.3 ) (2024-02-21)
##### Bug Fixes
- incorrect process for removing pure import ([d0c0c86](d0c0c867d6 )), closes [#​301](https://togithub.com/qmhc/vite-plugin-dts/issues/301 )
#### [3.7.2](https://togithub.com/qmhc/vite-plugin-dts/compare/v3.7.1...v3.7.2 ) (2024-01-24)
##### Bug Fixes
- correct match result for alias form tsconfig ([88469d0](88469d0e6a )), closes [#​298](https://togithub.com/qmhc/vite-plugin-dts/issues/298 )
#### [3.7.1](https://togithub.com/qmhc/vite-plugin-dts/compare/v3.7.0...v3.7.1 ) (2024-01-15)
##### Bug Fixes
- improve aliases replacement logic ([e8827cb](e8827cb6c8 )), closes [#​294](https://togithub.com/qmhc/vite-plugin-dts/issues/294 )
- manually collect compiler options for types rollup ([0d0b255](0d0b255ad2 )), closes [#​297](https://togithub.com/qmhc/vite-plugin-dts/issues/297 )
</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.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions ) if that's undesired.
---
- [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-04-11 10:17:32 +00:00
pengx17
1c9d899831
fix: runtime issue for electron app ( #6306 )
...
Looks like we need to be careful to share common libraries between electron (nodejs) & web

2024-03-26 02:04:13 +00:00
EYHN
f2adbdaba4
style: enable import-x/no-duplicates ( #6279 )
2024-03-25 03:55:33 +00:00
EYHN
7ce2bfbf0b
style: no import infra submodule ( #6278 )
2024-03-25 03:55:29 +00:00
EYHN
2b42a75e5a
style: enable rxjs/finnish ( #6276 )
...
chore(infra): use finnish notation for observables
do rename
2024-03-24 17:04:51 +00:00
Chen
ebf7a74387
feat: bump blocksuite ( #6010 )
2024-03-05 14:19:11 +08:00
EYHN
4e861d8118
refactor(electron): create electron api package ( #5334 )
2023-12-27 06:38:37 +00:00
EYHN
fe2851d3e9
refactor: workspace manager ( #5060 )
2023-12-15 07:20:50 +00:00
Joooye_34
761c3c2551
fix(electron): only update db after data changed ( #5226 )
2023-12-07 12:27:53 +00:00
Peng Xiao
7463e87742
fix(electron): clone db file when enable cloud for desktop ( #5028 )
...
At the moment on desktop the user's local blob data will be lost after enable cloud.
This is because blob data is only synced from old idb to new idb, but not sync into sqlitedb.
This pr will simply clone the db file for desktop app. It should also speed up the time when enabling cloud for a large local workspace.
2023-11-23 07:23:16 +00:00
Joooye_34
4c8d54b3a7
refactor(core): use manual upgrade to replace auto migration when web setup ( #5022 )
...
1. Split logic in `packages/common/infra/src/blocksuite/index.ts` to multiple single files
2. Move migration logic from setup to upgrade module, to prevent auto migration problems and loading problem
2023-11-23 02:26:06 +00:00
Peng Xiao
16488d594c
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) 0714c12703/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-14 14:39:50 +08:00
Alex Yang
97d8660a54
refactor(electron): fix vitest and add behavior test ( #4655 )
2023-10-18 22:14:30 -05:00
Joooye_34
bed9310519
refactor(infra): directory structure ( #4615 )
2023-10-18 15:30:08 +00:00