AFFiNE/packages/common
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`.

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/53da3972-7433-4631-b8c2-d3e322066c7d.png)

[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.

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/3b03522a-2a25-4bdb-8287-86a6b94623e1.png)
2024-05-17 03:01:14 +00:00
..
debug chore: bump up all non-major dependencies (#6526) 2024-05-07 10:30:58 +00:00
env chore: bump up blocksuite-canary to v0.15.0-canary-202405131108-aa6f0b7 (#6921) 2024-05-14 05:48:09 +00:00
infra fix(electron): remove all migration code in electron (#6969) 2024-05-17 03:01:14 +00:00
theme refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00