test: enable compatibility test (#367)

This commit is contained in:
Zixuan Chen 2024-05-21 15:18:02 +08:00 committed by GitHub
parent c8bbb437ca
commit 6d5083cfc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View file

@ -31,7 +31,7 @@
"@vitest/ui": "^1.0.4",
"esbuild": "^0.18.20",
"eslint": "^8.46.0",
"loro-crdt-old": "npm:loro-crdt@0.15.4",
"loro-crdt-old": "npm:loro-crdt@=0.16.0",
"prettier": "^3.0.0",
"rollup": "^3.20.1",
"rollup-plugin-dts": "^5.3.0",

View file

@ -15,7 +15,7 @@ import {
import * as OLD from "loro-crdt-old";
// TODO: This is skip because we know it will fail for the current version as we've introduced BREAKING CHANGES on the serialization format
describe.skip("compatibility", () => {
describe("compatibility", () => {
it("basic forward compatibility on exportFrom", () => {
const docA = new Loro();
docA.getText("text").insert(0, "123");

View file

@ -83,8 +83,8 @@ importers:
specifier: ^8.46.0
version: 8.57.0
loro-crdt-old:
specifier: npm:loro-crdt@0.15.4
version: /loro-crdt@0.15.4
specifier: npm:loro-crdt@=0.16.0
version: /loro-crdt@0.16.0
prettier:
specifier: ^3.0.0
version: 3.2.5
@ -2957,14 +2957,14 @@ packages:
resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}
dev: true
/loro-crdt@0.15.4:
resolution: {integrity: sha512-F/c6SVQWsXDmcfwjJE1Gwoj7N3pgn7PHk6fUjBNoFs/niahB3lAvepqnbdzLeKjthZo4r4jopbhlRf5kG8V4VQ==}
/loro-crdt@0.16.0:
resolution: {integrity: sha512-U/fwXPfe3GjE96tP97qzIjGoDOz5K/zSNPs1QZ7ZO4pqOAkjkLhBifSYZWW2v1t7ufFgUa4XqXpS1pn7Hyze2A==}
dependencies:
loro-wasm: 0.15.4
loro-wasm: 0.16.0
dev: true
/loro-wasm@0.15.4:
resolution: {integrity: sha512-EDK+hh+KMCuzMotHmN/9+hMSH3SW0xzLxdJm3vAiV00DQYzFwN6w1IaSkGdEhGV5QZFspOn/6GKLEgJHgYF2zg==}
/loro-wasm@0.16.0:
resolution: {integrity: sha512-2puF09ppACoUwMf9+6BkuYlogY+qZqqStq6RbYYXMhL8Uxrf8DXJdmLA+XGgI4suxXh39jvt6XfwdafqcUuu4A==}
dev: true
/loupe@2.3.7: