chore: update BlockSuite version including introducing feature flag, adding upgrade npm script

This commit is contained in:
x1a0t
2023-01-12 14:59:44 +08:00
parent ae6fc7bb18
commit 13de557d24
5 changed files with 45 additions and 46 deletions

View File

@@ -19,7 +19,8 @@
"test:unit": "playwright test --config=playwright.config.unit.ts", "test:unit": "playwright test --config=playwright.config.unit.ts",
"postinstall": "husky install", "postinstall": "husky install",
"notify": "node --experimental-modules scripts/notify.mjs", "notify": "node --experimental-modules scripts/notify.mjs",
"check:ci": "pnpm lint & pnpm test" "check:ci": "pnpm lint & pnpm test",
"update:blocksuite": "chmod 755 update-dep.sh && sh update-dep.sh"
}, },
"lint-staged": { "lint-staged": {
"*": "prettier --write --ignore-unknown", "*": "prettier --write --ignore-unknown",

View File

@@ -11,10 +11,10 @@
"dependencies": { "dependencies": {
"@affine/datacenter": "workspace:*", "@affine/datacenter": "workspace:*",
"@affine/i18n": "workspace:*", "@affine/i18n": "workspace:*",
"@blocksuite/blocks": "0.4.0-20230111164952-fea266a", "@blocksuite/blocks": "0.4.0-20230111171650-bc63456",
"@blocksuite/editor": "0.4.0-20230111164952-fea266a", "@blocksuite/editor": "0.4.0-20230111171650-bc63456",
"@blocksuite/icons": "^2.0.2", "@blocksuite/icons": "^2.0.2",
"@blocksuite/store": "0.4.0-20230111164952-fea266a", "@blocksuite/store": "0.4.0-20230111171650-bc63456",
"@emotion/css": "^11.10.0", "@emotion/css": "^11.10.0",
"@emotion/react": "^11.10.4", "@emotion/react": "^11.10.4",
"@emotion/server": "^11.10.0", "@emotion/server": "^11.10.0",

View File

@@ -26,8 +26,9 @@
"typescript": "^4.8.4" "typescript": "^4.8.4"
}, },
"dependencies": { "dependencies": {
"@blocksuite/blocks": "0.4.0-20230111164952-fea266a", "@blocksuite/blocks": "0.4.0-20230111171650-bc63456",
"@blocksuite/store": "0.4.0-20230111164952-fea266a", "@blocksuite/editor": "0.4.0-20230111171650-bc63456",
"@blocksuite/store": "0.4.0-20230111171650-bc63456",
"debug": "^4.3.4", "debug": "^4.3.4",
"encoding": "^0.1.13", "encoding": "^0.1.13",
"firebase": "^9.15.0", "firebase": "^9.15.0",
@@ -36,8 +37,8 @@
"ky-universal": "^0.11.0", "ky-universal": "^0.11.0",
"lib0": "^0.2.58", "lib0": "^0.2.58",
"swr": "^2.0.0", "swr": "^2.0.0",
"yjs": "^13.5.44", "y-protocols": "^1.0.5",
"y-protocols": "^1.0.5" "yjs": "^13.5.44"
}, },
"peerDependencies": { "peerDependencies": {
"@blocksuite/blocks": "0.3.1-*", "@blocksuite/blocks": "0.3.1-*",

68
pnpm-lock.yaml generated
View File

@@ -40,10 +40,10 @@ importers:
specifiers: specifiers:
'@affine/datacenter': workspace:* '@affine/datacenter': workspace:*
'@affine/i18n': workspace:* '@affine/i18n': workspace:*
'@blocksuite/blocks': 0.4.0-20230111164952-fea266a '@blocksuite/blocks': 0.4.0-20230111171650-bc63456
'@blocksuite/editor': 0.4.0-20230111164952-fea266a '@blocksuite/editor': 0.4.0-20230111171650-bc63456
'@blocksuite/icons': ^2.0.2 '@blocksuite/icons': ^2.0.2
'@blocksuite/store': 0.4.0-20230111164952-fea266a '@blocksuite/store': 0.4.0-20230111171650-bc63456
'@emotion/css': ^11.10.0 '@emotion/css': ^11.10.0
'@emotion/react': ^11.10.4 '@emotion/react': ^11.10.4
'@emotion/server': ^11.10.0 '@emotion/server': ^11.10.0
@@ -81,10 +81,10 @@ importers:
dependencies: dependencies:
'@affine/datacenter': link:../data-center '@affine/datacenter': link:../data-center
'@affine/i18n': link:../i18n '@affine/i18n': link:../i18n
'@blocksuite/blocks': 0.4.0-20230111164952-fea266a_yjs@13.5.44 '@blocksuite/blocks': 0.4.0-20230111171650-bc63456_yjs@13.5.44
'@blocksuite/editor': 0.4.0-20230111164952-fea266a_yjs@13.5.44 '@blocksuite/editor': 0.4.0-20230111171650-bc63456_yjs@13.5.44
'@blocksuite/icons': 2.0.4_w5j4k42lgipnm43s3brx6h3c34 '@blocksuite/icons': 2.0.4_w5j4k42lgipnm43s3brx6h3c34
'@blocksuite/store': 0.4.0-20230111164952-fea266a_yjs@13.5.44 '@blocksuite/store': 0.4.0-20230111171650-bc63456_yjs@13.5.44
'@emotion/css': 11.10.0 '@emotion/css': 11.10.0
'@emotion/react': 11.10.4_w5j4k42lgipnm43s3brx6h3c34 '@emotion/react': 11.10.4_w5j4k42lgipnm43s3brx6h3c34
'@emotion/server': 11.10.0_@emotion+css@11.10.0 '@emotion/server': 11.10.0_@emotion+css@11.10.0
@@ -123,8 +123,9 @@ importers:
packages/data-center: packages/data-center:
specifiers: specifiers:
'@blocksuite/blocks': 0.4.0-20230111164952-fea266a '@blocksuite/blocks': 0.4.0-20230111171650-bc63456
'@blocksuite/store': 0.4.0-20230111164952-fea266a '@blocksuite/editor': 0.4.0-20230111171650-bc63456
'@blocksuite/store': 0.4.0-20230111171650-bc63456
'@playwright/test': ^1.29.1 '@playwright/test': ^1.29.1
'@types/debug': ^4.1.7 '@types/debug': ^4.1.7
debug: ^4.3.4 debug: ^4.3.4
@@ -140,8 +141,9 @@ importers:
y-protocols: ^1.0.5 y-protocols: ^1.0.5
yjs: ^13.5.44 yjs: ^13.5.44
dependencies: dependencies:
'@blocksuite/blocks': 0.4.0-20230111164952-fea266a_yjs@13.5.44 '@blocksuite/blocks': 0.4.0-20230111171650-bc63456_yjs@13.5.44
'@blocksuite/store': 0.4.0-20230111164952-fea266a_yjs@13.5.44 '@blocksuite/editor': 0.4.0-20230111171650-bc63456_yjs@13.5.44
'@blocksuite/store': 0.4.0-20230111171650-bc63456_yjs@13.5.44
debug: 4.3.4 debug: 4.3.4
encoding: 0.1.13 encoding: 0.1.13
firebase: 9.15.0_encoding@0.1.13 firebase: 9.15.0_encoding@0.1.13
@@ -1455,12 +1457,12 @@ packages:
to-fast-properties: 2.0.0 to-fast-properties: 2.0.0
dev: true dev: true
/@blocksuite/blocks/0.4.0-20230111164952-fea266a_yjs@13.5.44: /@blocksuite/blocks/0.4.0-20230111171650-bc63456_yjs@13.5.44:
resolution: {integrity: sha512-bphgTV5YkEfsqkvRJdbH8TevG6l9b9WHTliETJ4UksX4sxOsRDJk0v4XcluIDZXDv4TQ8fc45d5s5uaab48xQQ==} resolution: {integrity: sha512-7fpb++pT9laoyLFWl4h09v7TUqZ/9udMrC1qxdX2XFgMPJjg3MJ9RG+Ud2s/zqZ1SkU1+0hMBvJP5ci9vV44gw==}
dependencies: dependencies:
'@blocksuite/global': 0.4.0-20230111164952-fea266a '@blocksuite/global': 0.4.0-20230111171650-bc63456
'@blocksuite/phasor': 0.4.0-20230111164952-fea266a_yjs@13.5.44 '@blocksuite/phasor': 0.4.0-20230111171650-bc63456_yjs@13.5.44
'@blocksuite/store': 0.4.0-20230111164952-fea266a_yjs@13.5.44 '@blocksuite/store': 0.4.0-20230111171650-bc63456_yjs@13.5.44
'@tldraw/intersect': 1.8.0 '@tldraw/intersect': 1.8.0
autosize: 5.0.2 autosize: 5.0.2
highlight.js: 11.7.0 highlight.js: 11.7.0
@@ -1476,11 +1478,11 @@ packages:
- yjs - yjs
dev: false dev: false
/@blocksuite/editor/0.4.0-20230111164952-fea266a_yjs@13.5.44: /@blocksuite/editor/0.4.0-20230111171650-bc63456_yjs@13.5.44:
resolution: {integrity: sha512-pVHH9nu9FwQErrPI6dHfMUCVtPEaNuB4PhHmyrcrVIgTGaGKdAQZ7PrsEqvjeWnIoX2l6s4u9XCFgdAsxybSfQ==} resolution: {integrity: sha512-NbghDNWDGHXXfEqgnNhbw7zewGRyx9LUzOv1FmY2WVhzDu02MSrTWxMduChH1/tfLHRLe6jusmZKS9BNSUPynA==}
dependencies: dependencies:
'@blocksuite/blocks': 0.4.0-20230111164952-fea266a_yjs@13.5.44 '@blocksuite/blocks': 0.4.0-20230111171650-bc63456_yjs@13.5.44
'@blocksuite/store': 0.4.0-20230111164952-fea266a_yjs@13.5.44 '@blocksuite/store': 0.4.0-20230111171650-bc63456_yjs@13.5.44
lit: 2.6.0 lit: 2.6.0
marked: 4.2.5 marked: 4.2.5
turndown: 7.1.1 turndown: 7.1.1
@@ -1491,8 +1493,8 @@ packages:
- yjs - yjs
dev: false dev: false
/@blocksuite/global/0.4.0-20230111164952-fea266a: /@blocksuite/global/0.4.0-20230111171650-bc63456:
resolution: {integrity: sha512-R2nXYIfyBaSMbLGF/aOUgRPFpWYs+bbK1/E9wChQGvC1D8UhQ6WRUt/khzM/GpdvnmIhmMyolJZ6LjEjGAo6Wg==} resolution: {integrity: sha512-/Kqg73vPLzxiWp6UqRmRoKfYmH4Sij3mU52RJf9adyywZOdM5e9E1gvPP+Eruz/x2jJ1uzR5/ivFqp5t688/tg==}
dev: false dev: false
/@blocksuite/icons/2.0.4_w5j4k42lgipnm43s3brx6h3c34: /@blocksuite/icons/2.0.4_w5j4k42lgipnm43s3brx6h3c34:
@@ -1505,20 +1507,20 @@ packages:
react: 18.2.0 react: 18.2.0
dev: false dev: false
/@blocksuite/phasor/0.4.0-20230111164952-fea266a_yjs@13.5.44: /@blocksuite/phasor/0.4.0-20230111171650-bc63456_yjs@13.5.44:
resolution: {integrity: sha512-AHxLIHi2s3fcfzbx8URVer3LGlZnVKvW+ttpRKIm8a3vkZqaXwb9+8gL8Ajh6YkOvf9Nb1Y5471978284BwCfw==} resolution: {integrity: sha512-fzmrG8KVJXkm5YyvHpPG1RRFhXjzuOey8OIoDu+/z87n9HJc4SkOd9JKH6wEL37F7P5ZoEM9Yl9YHxQjUc4/CA==}
peerDependencies: peerDependencies:
yjs: ^13 yjs: ^13
dependencies: dependencies:
yjs: 13.5.44 yjs: 13.5.44
dev: false dev: false
/@blocksuite/store/0.4.0-20230111164952-fea266a_yjs@13.5.44: /@blocksuite/store/0.4.0-20230111171650-bc63456_yjs@13.5.44:
resolution: {integrity: sha512-2iMDGtbrFK2AO8+j17Z1kpsVzpkFY91+IMD2lorqlGrK8zj2Ane8JypcARFXJJ6rG8yRbB+P8GDLTXXvj+ZgmQ==} resolution: {integrity: sha512-f/PKFPadA0KZq/wSLxxlS29c4SDuMfzHN1/gdrxFEIY0gC8caK2jZnT4K62R9Nquik/mXL60h8fBVAkQ0KbHzg==}
peerDependencies: peerDependencies:
yjs: ^13 yjs: ^13
dependencies: dependencies:
'@blocksuite/global': 0.4.0-20230111164952-fea266a '@blocksuite/global': 0.4.0-20230111171650-bc63456
'@types/flexsearch': 0.7.3 '@types/flexsearch': 0.7.3
'@types/quill': 1.3.10 '@types/quill': 1.3.10
buffer: 6.0.3 buffer: 6.0.3
@@ -2511,10 +2513,6 @@ packages:
resolution: {integrity: sha512-qDv4851VFSaBWzpS02cXHclo40jsbAjRXnebNXpm0uVg32kCneZPo9RYVQtrTNICtZ+1wAYHu1ZtxWSWMbKrBw==} resolution: {integrity: sha512-qDv4851VFSaBWzpS02cXHclo40jsbAjRXnebNXpm0uVg32kCneZPo9RYVQtrTNICtZ+1wAYHu1ZtxWSWMbKrBw==}
dev: false dev: false
/@lit/reactive-element/1.5.0:
resolution: {integrity: sha512-fQh9FDK0LPTwDk+0HhSZEtb8K0LTN1wXerwpGrWA+a8tWulYRDLI4vQDWp4GOIsewn0572KYV/oZ3+492D7osA==}
dev: false
/@lit/reactive-element/1.6.0: /@lit/reactive-element/1.6.0:
resolution: {integrity: sha512-33H04h4tx9NVEADti0haZTNxssCnqZlMlyjri5k9kwDWAe2W1iENroZt7VWwmsPhlWUD8sSoPXSHqd0DdL29Pw==} resolution: {integrity: sha512-33H04h4tx9NVEADti0haZTNxssCnqZlMlyjri5k9kwDWAe2W1iENroZt7VWwmsPhlWUD8sSoPXSHqd0DdL29Pw==}
dependencies: dependencies:
@@ -6212,8 +6210,8 @@ packages:
/lit-element/3.2.2: /lit-element/3.2.2:
resolution: {integrity: sha512-6ZgxBR9KNroqKb6+htkyBwD90XGRiqKDHVrW/Eh0EZ+l+iC+u+v+w3/BA5NGi4nizAVHGYvQBHUDuSmLjPp7NQ==} resolution: {integrity: sha512-6ZgxBR9KNroqKb6+htkyBwD90XGRiqKDHVrW/Eh0EZ+l+iC+u+v+w3/BA5NGi4nizAVHGYvQBHUDuSmLjPp7NQ==}
dependencies: dependencies:
'@lit/reactive-element': 1.5.0 '@lit/reactive-element': 1.6.0
lit-html: 2.5.0 lit-html: 2.6.0
dev: false dev: false
/lit-html/2.4.0: /lit-html/2.4.0:
@@ -6222,12 +6220,6 @@ packages:
'@types/trusted-types': 2.0.2 '@types/trusted-types': 2.0.2
dev: false dev: false
/lit-html/2.5.0:
resolution: {integrity: sha512-bLHosg1XL3JRUcKdSVI0sLCs0y1wWrj2sqqAN3cZ7bDDPNgmDHH29RV48x6Wz3ZmkxIupaE+z7uXSZ/pXWAO1g==}
dependencies:
'@types/trusted-types': 2.0.2
dev: false
/lit-html/2.6.0: /lit-html/2.6.0:
resolution: {integrity: sha512-slNAAYfvC7LxeryDOnPFl5uTpxGYGJ6UR9SFmfY+gQ+sf30z1atDPXlgjcSTtwymNdlwDhfGjq+EemQRXp9z1g==} resolution: {integrity: sha512-slNAAYfvC7LxeryDOnPFl5uTpxGYGJ6UR9SFmfY+gQ+sf30z1atDPXlgjcSTtwymNdlwDhfGjq+EemQRXp9z1g==}
dependencies: dependencies:

5
update-dep.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
cd packages/app
pnpm i @blocksuite/store@nightly @blocksuite/blocks@nightly @blocksuite/editor@nightly
cd ../data-center
pnpm i @blocksuite/store@nightly @blocksuite/blocks@nightly @blocksuite/editor@nightly