bump y-protocols

This commit is contained in:
Kevin Jahns
2025-05-01 15:26:26 +02:00
parent a5e390160c
commit 91985c95ed
5 changed files with 35 additions and 33 deletions

51
package-lock.json generated
View File

@@ -9,11 +9,11 @@
"version": "14.0.0-2", "version": "14.0.0-2",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"lib0": "^0.2.105", "lib0": "^0.2.105"
"y-protocols": "^1.0.5"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^22.14.1", "@types/node": "^22.14.1",
"@y/protocols": "^1.0.6-1",
"concurrently": "^3.6.1", "concurrently": "^3.6.1",
"jsdoc": "^3.6.7", "jsdoc": "^3.6.7",
"markdownlint-cli": "^0.41.0", "markdownlint-cli": "^0.41.0",
@@ -566,6 +566,27 @@
"undici-types": "~6.21.0" "undici-types": "~6.21.0"
} }
}, },
"node_modules/@y/protocols": {
"version": "1.0.6-1",
"resolved": "https://registry.npmjs.org/@y/protocols/-/protocols-1.0.6-1.tgz",
"integrity": "sha512-6hyVR4Azg+JVqeyCkPQMsg9BMpB7fgAldsIDwb5EqJTPLXkQuk/mqK/j0rvIZUuPvJjlYSDBIOQWNsy92iXQsQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"lib0": "^0.2.85"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"funding": {
"type": "GitHub Sponsors ❤",
"url": "https://github.com/sponsors/dmonad"
},
"peerDependencies": {
"yjs": "^14.0.0-1 || ^14 || ^13"
}
},
"node_modules/acorn": { "node_modules/acorn": {
"version": "7.4.1", "version": "7.4.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",
@@ -942,10 +963,11 @@
} }
}, },
"node_modules/cross-spawn": { "node_modules/cross-spawn": {
"version": "7.0.3", "version": "7.0.6",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"path-key": "^3.1.0", "path-key": "^3.1.0",
"shebang-command": "^2.0.0", "shebang-command": "^2.0.0",
@@ -4827,25 +4849,6 @@
"integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==",
"dev": true "dev": true
}, },
"node_modules/y-protocols": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/y-protocols/-/y-protocols-1.0.6.tgz",
"integrity": "sha512-vHRF2L6iT3rwj1jub/K5tYcTT/mEYDUppgNPXwp8fmLpui9f7Yeq3OEtTLVF012j39QnV+KEQpNqoN7CWU7Y9Q==",
"dependencies": {
"lib0": "^0.2.85"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"funding": {
"type": "GitHub Sponsors ❤",
"url": "https://github.com/sponsors/dmonad"
},
"peerDependencies": {
"yjs": "^13.0.0"
}
},
"node_modules/yallist": { "node_modules/yallist": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",

View File

@@ -48,12 +48,11 @@
"./package.json": "./package.json" "./package.json": "./package.json"
}, },
"files": [ "files": [
"dist/yjs.*", "dist/*",
"dist/src", "dist/src",
"src", "src",
"tests/testHelper.js", "tests/testHelper.js",
"dist/testHelper.mjs", "dist/testHelper.mjs"
"sponsor-y.js"
], ],
"dictionaries": { "dictionaries": {
"test": "tests" "test": "tests"
@@ -86,10 +85,10 @@
}, },
"homepage": "https://docs.yjs.dev", "homepage": "https://docs.yjs.dev",
"dependencies": { "dependencies": {
"lib0": "^0.2.105", "lib0": "^0.2.105"
"y-protocols": "^1.0.5"
}, },
"devDependencies": { "devDependencies": {
"@y/protocols": "^1.0.6-1",
"@types/node": "^22.14.1", "@types/node": "^22.14.1",
"concurrently": "^3.6.1", "concurrently": "^3.6.1",
"jsdoc": "^3.6.7", "jsdoc": "^3.6.7",

View File

@@ -11,7 +11,7 @@ export default [{
entryFileNames: '[name].cjs', entryFileNames: '[name].cjs',
sourcemap: true sourcemap: true
}, },
external: id => /^(lib0|y-protocols)\//.test(id) external: id => /^(lib0|@y)\//.test(id)
}, { }, {
// esm output // esm output
input: { input: {
@@ -25,5 +25,5 @@ export default [{
entryFileNames: '[name].mjs', entryFileNames: '[name].mjs',
sourcemap: true sourcemap: true
}, },
external: id => /^(lib0|y-protocols)\//.test(id) external: id => /^(lib0|@y)\//.test(id)
}] }]

View File

@@ -2,7 +2,7 @@ import * as t from 'lib0/testing'
import * as prng from 'lib0/prng' import * as prng from 'lib0/prng'
import * as encoding from 'lib0/encoding' import * as encoding from 'lib0/encoding'
import * as decoding from 'lib0/decoding' import * as decoding from 'lib0/decoding'
import * as syncProtocol from 'y-protocols/sync' import * as syncProtocol from '@y/protocols/sync'
import * as object from 'lib0/object' import * as object from 'lib0/object'
import * as map from 'lib0/map' import * as map from 'lib0/map'
import * as Y from '../src/index.js' import * as Y from '../src/index.js'

View File

@@ -2613,7 +2613,7 @@ const checkResult = result => {
* @param {t.TestCase} tc * @param {t.TestCase} tc
*/ */
export const testAttributionManagerDefaultPerformance = tc => { export const testAttributionManagerDefaultPerformance = tc => {
const N = 100000 const N = 10000
const MaxDeletionLength = 5 // 25% chance of deletion const MaxDeletionLength = 5 // 25% chance of deletion
const MaxInsertionLength = 5 const MaxInsertionLength = 5
const ydoc = new Y.Doc() const ydoc = new Y.Doc()