bump y-protocols

This commit is contained in:
Kevin Jahns
2025-05-01 15:26:26 +02:00
parent d8143efb12
commit 7528541713
5 changed files with 5947 additions and 9 deletions

5939
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

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

View File

@@ -11,7 +11,7 @@ export default [{
entryFileNames: '[name].cjs',
sourcemap: true
},
external: id => /^(lib0|y-protocols)\//.test(id)
external: id => /^(lib0|@y)\//.test(id)
}, {
// esm output
input: {
@@ -25,5 +25,5 @@ export default [{
entryFileNames: '[name].mjs',
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 encoding from 'lib0/encoding'
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 map from 'lib0/map'
import * as Y from '../src/index.js'

View File

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