diff --git a/packages/app/package.json b/packages/app/package.json index 3a1f655483..45187e271a 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -12,10 +12,10 @@ "@affine/component": "workspace:*", "@affine/datacenter": "workspace:*", "@affine/i18n": "workspace:*", - "@blocksuite/blocks": "0.4.0-alpha.3", - "@blocksuite/editor": "0.4.0-alpha.3", + "@blocksuite/blocks": "0.4.0-20230209191848-0a912e3", + "@blocksuite/editor": "0.4.0-20230209191848-0a912e3", "@blocksuite/icons": "^2.0.2", - "@blocksuite/store": "0.4.0-alpha.3", + "@blocksuite/store": "0.4.0-20230209191848-0a912e3", "@emotion/css": "^11.10.5", "@emotion/react": "^11.10.5", "@emotion/server": "^11.10.0", diff --git a/packages/component/package.json b/packages/component/package.json index 4117e52f4c..6f717692c8 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "@affine/i18n": "workspace:*", - "@blocksuite/editor": "0.4.0-alpha.3", + "@blocksuite/editor": "0.4.0-20230209191848-0a912e3", "@blocksuite/icons": "^2.0.2", "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", diff --git a/packages/data-center/package.json b/packages/data-center/package.json index 9ee7ef4942..1fceb10d61 100644 --- a/packages/data-center/package.json +++ b/packages/data-center/package.json @@ -27,8 +27,8 @@ "yjs": "^13.5.45" }, "dependencies": { - "@blocksuite/blocks": "0.4.0-alpha.3", - "@blocksuite/store": "0.4.0-alpha.3", + "@blocksuite/blocks": "0.4.0-20230209191848-0a912e3", + "@blocksuite/store": "0.4.0-20230209191848-0a912e3", "debug": "^4.3.4", "encoding": "^0.1.13", "firebase": "^9.15.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3caffd7e8c..7b43fdb020 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,10 +52,10 @@ importers: '@affine/component': workspace:* '@affine/datacenter': workspace:* '@affine/i18n': workspace:* - '@blocksuite/blocks': 0.4.0-alpha.3 - '@blocksuite/editor': 0.4.0-alpha.3 + '@blocksuite/blocks': 0.4.0-20230209191848-0a912e3 + '@blocksuite/editor': 0.4.0-20230209191848-0a912e3 '@blocksuite/icons': ^2.0.2 - '@blocksuite/store': 0.4.0-alpha.3 + '@blocksuite/store': 0.4.0-20230209191848-0a912e3 '@emotion/css': ^11.10.5 '@emotion/react': ^11.10.5 '@emotion/server': ^11.10.0 @@ -94,10 +94,10 @@ importers: '@affine/component': link:../component '@affine/datacenter': link:../data-center '@affine/i18n': link:../i18n - '@blocksuite/blocks': 0.4.0-alpha.3_yjs@13.5.45 - '@blocksuite/editor': 0.4.0-alpha.3_yjs@13.5.45 + '@blocksuite/blocks': 0.4.0-20230209191848-0a912e3_yjs@13.5.45 + '@blocksuite/editor': 0.4.0-20230209191848-0a912e3_yjs@13.5.45 '@blocksuite/icons': 2.0.4_w5j4k42lgipnm43s3brx6h3c34 - '@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45 + '@blocksuite/store': 0.4.0-20230209191848-0a912e3_lit@2.6.1+yjs@13.5.45 '@emotion/css': 11.10.5 '@emotion/react': 11.10.5_w5j4k42lgipnm43s3brx6h3c34 '@emotion/server': 11.10.0_@emotion+css@11.10.5 @@ -137,7 +137,7 @@ importers: packages/component: specifiers: '@affine/i18n': workspace:* - '@blocksuite/editor': 0.4.0-alpha.3 + '@blocksuite/editor': 0.4.0-20230209191848-0a912e3 '@blocksuite/icons': ^2.0.2 '@emotion/react': ^11.10.5 '@emotion/styled': ^11.10.5 @@ -161,7 +161,7 @@ importers: webpack: ^5.75.0 dependencies: '@affine/i18n': link:../i18n - '@blocksuite/editor': 0.4.0-alpha.3 + '@blocksuite/editor': 0.4.0-20230209191848-0a912e3 '@blocksuite/icons': 2.0.4_3stiutgnnbnfnf3uowm5cip22i '@emotion/react': 11.10.5_3stiutgnnbnfnf3uowm5cip22i '@emotion/styled': 11.10.5_jrh5enlbqfbnumycmktdqgd6se @@ -187,8 +187,8 @@ importers: packages/data-center: specifiers: - '@blocksuite/blocks': 0.4.0-alpha.3 - '@blocksuite/store': 0.4.0-alpha.3 + '@blocksuite/blocks': 0.4.0-20230209191848-0a912e3 + '@blocksuite/store': 0.4.0-20230209191848-0a912e3 '@playwright/test': ^1.29.1 '@types/debug': ^4.1.7 debug: ^4.3.4 @@ -206,8 +206,8 @@ importers: y-protocols: ^1.0.5 yjs: ^13.5.45 dependencies: - '@blocksuite/blocks': 0.4.0-alpha.3_yjs@13.5.45 - '@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45 + '@blocksuite/blocks': 0.4.0-20230209191848-0a912e3_yjs@13.5.45 + '@blocksuite/store': 0.4.0-20230209191848-0a912e3_lit@2.6.1+yjs@13.5.45 debug: 4.3.4 encoding: 0.1.13 firebase: 9.15.0_encoding@0.1.13 @@ -2620,13 +2620,13 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@blocksuite/blocks/0.4.0-alpha.3: - resolution: {integrity: sha512-DKRWJmNhaCLQSMYRdVMR6okuWRjvU3o+NZcrnXitNzEH2jes7gl9DxpCI4kfAWTGHKLtblDqkMwRtKJhhxE8ng==} + /@blocksuite/blocks/0.4.0-20230209191848-0a912e3: + resolution: {integrity: sha512-OnGaBTdLVAapQ0DzO6CeqYOZff1yB+IIb2BFNydOu6mkZpwJwp3wRUwSAi5dLiMOETzCq4Z7eojW2IadqWhdyw==} dependencies: - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 - '@blocksuite/phasor': 0.4.0-alpha.3_lit@2.6.1 - '@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1 - '@blocksuite/virgo': 0.4.0-alpha.3_lit@2.6.1 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 + '@blocksuite/phasor': 0.4.0-20230209191848-0a912e3_lit@2.6.1 + '@blocksuite/store': 0.4.0-20230209191848-0a912e3_lit@2.6.1 + '@blocksuite/virgo': 0.4.0-20230209191848-0a912e3_lit@2.6.1 '@popperjs/core': 2.11.6 autosize: 5.0.2 highlight.js: 11.7.0 @@ -2634,7 +2634,7 @@ packages: lit: 2.6.1 quill: 1.3.7 quill-cursors: 4.0.2 - zod: 3.20.5 + zod: 3.20.6 transitivePeerDependencies: - bufferutil - supports-color @@ -2642,13 +2642,13 @@ packages: - yjs dev: false - /@blocksuite/blocks/0.4.0-alpha.3_yjs@13.5.45: - resolution: {integrity: sha512-DKRWJmNhaCLQSMYRdVMR6okuWRjvU3o+NZcrnXitNzEH2jes7gl9DxpCI4kfAWTGHKLtblDqkMwRtKJhhxE8ng==} + /@blocksuite/blocks/0.4.0-20230209191848-0a912e3_yjs@13.5.45: + resolution: {integrity: sha512-OnGaBTdLVAapQ0DzO6CeqYOZff1yB+IIb2BFNydOu6mkZpwJwp3wRUwSAi5dLiMOETzCq4Z7eojW2IadqWhdyw==} dependencies: - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 - '@blocksuite/phasor': 0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45 - '@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45 - '@blocksuite/virgo': 0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 + '@blocksuite/phasor': 0.4.0-20230209191848-0a912e3_lit@2.6.1+yjs@13.5.45 + '@blocksuite/store': 0.4.0-20230209191848-0a912e3_lit@2.6.1+yjs@13.5.45 + '@blocksuite/virgo': 0.4.0-20230209191848-0a912e3_lit@2.6.1+yjs@13.5.45 '@popperjs/core': 2.11.6 autosize: 5.0.2 highlight.js: 11.7.0 @@ -2656,7 +2656,7 @@ packages: lit: 2.6.1 quill: 1.3.7 quill-cursors: 4.0.2 - zod: 3.20.5 + zod: 3.20.6 transitivePeerDependencies: - bufferutil - supports-color @@ -2664,12 +2664,12 @@ packages: - yjs dev: false - /@blocksuite/editor/0.4.0-alpha.3: - resolution: {integrity: sha512-PLF8apMEOzvwS8sliZFRyHrgWKwR5XgpeIoqZ3CTUXvmkZ2cX6d8UP+GjS6GWKZarbpGJNtvuABYTFraJycMig==} + /@blocksuite/editor/0.4.0-20230209191848-0a912e3: + resolution: {integrity: sha512-xKD+zdgPIO9JGauVLqwJOaDaOQj56P+ksIkSu5bi6/mXbemk9D4eDiEAK++cAOOwNUTHJUM3JcGBSHt5ripd5A==} dependencies: - '@blocksuite/blocks': 0.4.0-alpha.3 - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 - '@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1 + '@blocksuite/blocks': 0.4.0-20230209191848-0a912e3 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 + '@blocksuite/store': 0.4.0-20230209191848-0a912e3_lit@2.6.1 lit: 2.6.1 marked: 4.2.12 turndown: 7.1.1 @@ -2680,12 +2680,12 @@ packages: - yjs dev: false - /@blocksuite/editor/0.4.0-alpha.3_yjs@13.5.45: - resolution: {integrity: sha512-PLF8apMEOzvwS8sliZFRyHrgWKwR5XgpeIoqZ3CTUXvmkZ2cX6d8UP+GjS6GWKZarbpGJNtvuABYTFraJycMig==} + /@blocksuite/editor/0.4.0-20230209191848-0a912e3_yjs@13.5.45: + resolution: {integrity: sha512-xKD+zdgPIO9JGauVLqwJOaDaOQj56P+ksIkSu5bi6/mXbemk9D4eDiEAK++cAOOwNUTHJUM3JcGBSHt5ripd5A==} dependencies: - '@blocksuite/blocks': 0.4.0-alpha.3_yjs@13.5.45 - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 - '@blocksuite/store': 0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45 + '@blocksuite/blocks': 0.4.0-20230209191848-0a912e3_yjs@13.5.45 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 + '@blocksuite/store': 0.4.0-20230209191848-0a912e3_lit@2.6.1+yjs@13.5.45 lit: 2.6.1 marked: 4.2.12 turndown: 7.1.1 @@ -2696,8 +2696,8 @@ packages: - yjs dev: false - /@blocksuite/global/0.4.0-alpha.3_lit@2.6.1: - resolution: {integrity: sha512-nCxWV8PoZNgoIMQjBX/c9x7BrvivCabY712bHy89K/QSNgXlKsPT0KN3tuLHdm96/q+3Suf6RhvB60SurPYv1g==} + /@blocksuite/global/0.4.0-20230209191848-0a912e3_lit@2.6.1: + resolution: {integrity: sha512-ILUBzQ+sgD46GyGTEK9KyqkqcmCHxyHIrc3Y/q1oPtbN4yO3jJtEM1kmrfJ31oDT8PjjklqCiNHYtYsWuxuuug==} peerDependencies: lit: ^2.6 peerDependenciesMeta: @@ -2706,7 +2706,7 @@ packages: dependencies: ansi-colors: 4.1.3 lit: 2.6.1 - zod: 3.20.5 + zod: 3.20.6 dev: false /@blocksuite/icons/2.0.4_3stiutgnnbnfnf3uowm5cip22i: @@ -2729,12 +2729,12 @@ packages: react: 18.2.0 dev: false - /@blocksuite/phasor/0.4.0-alpha.3_lit@2.6.1: - resolution: {integrity: sha512-GLw+LPK5avc/fXZk9fxtAQtYxovTHMPrEs48OJtSlrVqvTAJwGQpK3W2BL7HKBhgHlsbOcaBQ2pAaqKAFypwEw==} + /@blocksuite/phasor/0.4.0-20230209191848-0a912e3_lit@2.6.1: + resolution: {integrity: sha512-7plV7v9F4KoqbGUZCyyI78HzxfZlP6jNZ9I8PEEap+JlUtsmryxHrEVC/oEta4FW6kBflmtQm46YOAlz3bBQFw==} peerDependencies: yjs: ^13 dependencies: - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 fractional-indexing: 3.2.0 nanoid: 4.0.1 perfect-freehand: 1.2.0 @@ -2742,12 +2742,12 @@ packages: - lit dev: false - /@blocksuite/phasor/0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45: - resolution: {integrity: sha512-GLw+LPK5avc/fXZk9fxtAQtYxovTHMPrEs48OJtSlrVqvTAJwGQpK3W2BL7HKBhgHlsbOcaBQ2pAaqKAFypwEw==} + /@blocksuite/phasor/0.4.0-20230209191848-0a912e3_lit@2.6.1+yjs@13.5.45: + resolution: {integrity: sha512-7plV7v9F4KoqbGUZCyyI78HzxfZlP6jNZ9I8PEEap+JlUtsmryxHrEVC/oEta4FW6kBflmtQm46YOAlz3bBQFw==} peerDependencies: yjs: ^13 dependencies: - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 fractional-indexing: 3.2.0 nanoid: 4.0.1 perfect-freehand: 1.2.0 @@ -2756,12 +2756,12 @@ packages: - lit dev: false - /@blocksuite/store/0.4.0-alpha.3_lit@2.6.1: - resolution: {integrity: sha512-Ib8vjhMIC4PeWrbfz7usiXKIgw0VYPujfWwDZ3fDq+OWHbb2KzfnXBQ93W5oDZhv0tVpxoT2RYCtVSvrh7sY5A==} + /@blocksuite/store/0.4.0-20230209191848-0a912e3_lit@2.6.1: + resolution: {integrity: sha512-QMUWLW6VR+XGN9ENlRy7DvGQgDKMDKpQeRdc3XYvQKE1h3TAkeh4mQw5fWKN0c8tj45W7orzU1PIXATmHT0/FQ==} peerDependencies: yjs: ^13 dependencies: - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 '@types/flexsearch': 0.7.3 buffer: 6.0.3 flexsearch: 0.7.21 @@ -2772,7 +2772,7 @@ packages: nanoid: 4.0.1 y-protocols: 1.0.5 y-webrtc: 10.2.4 - zod: 3.20.5 + zod: 3.20.6 transitivePeerDependencies: - bufferutil - lit @@ -2780,12 +2780,12 @@ packages: - utf-8-validate dev: false - /@blocksuite/store/0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45: - resolution: {integrity: sha512-Ib8vjhMIC4PeWrbfz7usiXKIgw0VYPujfWwDZ3fDq+OWHbb2KzfnXBQ93W5oDZhv0tVpxoT2RYCtVSvrh7sY5A==} + /@blocksuite/store/0.4.0-20230209191848-0a912e3_lit@2.6.1+yjs@13.5.45: + resolution: {integrity: sha512-QMUWLW6VR+XGN9ENlRy7DvGQgDKMDKpQeRdc3XYvQKE1h3TAkeh4mQw5fWKN0c8tj45W7orzU1PIXATmHT0/FQ==} peerDependencies: yjs: ^13 dependencies: - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 '@types/flexsearch': 0.7.3 buffer: 6.0.3 flexsearch: 0.7.21 @@ -2797,7 +2797,7 @@ packages: y-protocols: 1.0.5 y-webrtc: 10.2.4 yjs: 13.5.45 - zod: 3.20.5 + zod: 3.20.6 transitivePeerDependencies: - bufferutil - lit @@ -2805,25 +2805,27 @@ packages: - utf-8-validate dev: false - /@blocksuite/virgo/0.4.0-alpha.3_lit@2.6.1: - resolution: {integrity: sha512-uEa2bH2XCNI5whF3LUJAOogmv+5gux4m80dge7dXslw+6UfbdS6tDTP268a0k7FCPiV7suAcGbT/y5wZUbJ0ow==} + /@blocksuite/virgo/0.4.0-20230209191848-0a912e3_lit@2.6.1: + resolution: {integrity: sha512-KSIVFf+xfwDoPKcw8OCD1HmCsOXGpuZoP1FgCSGsCWtYoG/jOseF//1VPCrM3A9uL0fOd3mdXRUBYXFFVgdxow==} peerDependencies: lit: ^2 yjs: ^13 dependencies: - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 lit: 2.6.1 + zod: 3.20.6 dev: false - /@blocksuite/virgo/0.4.0-alpha.3_lit@2.6.1+yjs@13.5.45: - resolution: {integrity: sha512-uEa2bH2XCNI5whF3LUJAOogmv+5gux4m80dge7dXslw+6UfbdS6tDTP268a0k7FCPiV7suAcGbT/y5wZUbJ0ow==} + /@blocksuite/virgo/0.4.0-20230209191848-0a912e3_lit@2.6.1+yjs@13.5.45: + resolution: {integrity: sha512-KSIVFf+xfwDoPKcw8OCD1HmCsOXGpuZoP1FgCSGsCWtYoG/jOseF//1VPCrM3A9uL0fOd3mdXRUBYXFFVgdxow==} peerDependencies: lit: ^2 yjs: ^13 dependencies: - '@blocksuite/global': 0.4.0-alpha.3_lit@2.6.1 + '@blocksuite/global': 0.4.0-20230209191848-0a912e3_lit@2.6.1 lit: 2.6.1 yjs: 13.5.45 + zod: 3.20.6 dev: false /@changesets/apply-release-plan/6.1.3: @@ -18177,8 +18179,8 @@ packages: engines: {node: '>=10'} dev: true - /zod/3.20.5: - resolution: {integrity: sha512-BTAAliwfoB9dWf2hC+TXlyWKk/YTqRGZjHQR0WLC2A2pzierWo7KuQ1ebjS4SNaFaxg/lDItzl9/QTgLjcHbgw==} + /zod/3.20.6: + resolution: {integrity: sha512-oyu0m54SGCtzh6EClBVqDDlAYRz4jrVtKwQ7ZnsEmMI9HnzuZFj8QFwAY1M5uniIYACdGvv0PBWPF2kO0aNofA==} dev: false /zwitch/1.0.5: diff --git a/scripts/upgrade-blocksuite.sh b/scripts/upgrade-blocksuite.sh index 4a25a65986..e197be434f 100755 --- a/scripts/upgrade-blocksuite.sh +++ b/scripts/upgrade-blocksuite.sh @@ -1,6 +1,11 @@ #!/usr/bin/env bash # Usage: -# ./scripts/upgrade-blocksuite.sh # ./scripts/upgrade-blocksuite.sh --latest +# ./scripts/upgrade-blocksuite.sh 0.4.0-20230209191848-0a912e3 + +if [ "$1" == "--latest" ]; then + pnpm up "@blocksuite/*" "!@blocksuite/icons" -r -i --latest +else + pnpm up "@blocksuite/*@${1}" "!@blocksuite/icons" -r +fi -pnpm up "@blocksuite/*" "!@blocksuite/icons" -r -i "$@"