use non-explicit resolution for lib0

This commit is contained in:
Kevin Jahns 2021-05-14 18:53:24 +02:00
parent 4047890a6e
commit 7bd764fba7
45 changed files with 123 additions and 121 deletions

View File

@ -49,7 +49,8 @@ Sponsorship also comes with special perks! [![Become a Sponsor](https://img.shie
## Who is using Yjs ## Who is using Yjs
* [Serenity Notes](https://www.serenity.re/en/notes) End-to-end encrypted collaborative notes app. * [Serenity Notes](https://www.serenity.re/en/notes) End-to-end encrypted
collaborative notes app.
* [Relm](https://www.relm.us/) A collaborative gameworld for teamwork and * [Relm](https://www.relm.us/) A collaborative gameworld for teamwork and
community. :star2: community. :star2:
* [Input](https://input.com/) A collaborative note taking app. :star2: * [Input](https://input.com/) A collaborative note taking app. :star2:

38
package-lock.json generated
View File

@ -78,9 +78,9 @@
} }
}, },
"@rollup/plugin-node-resolve": { "@rollup/plugin-node-resolve": {
"version": "11.2.0", "version": "11.2.1",
"resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz",
"integrity": "sha512-qHjNIKYt5pCcn+5RUBQxK8krhRvf1HnyVgUCcFFcweDS7fhkOLZeYh0mhHK6Ery8/bb9tvN/ubPzmfF0qjDCTA==", "integrity": "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@rollup/pluginutils": "^3.1.0", "@rollup/pluginutils": "^3.1.0",
@ -135,9 +135,9 @@
"dev": true "dev": true
}, },
"@types/node": { "@types/node": {
"version": "14.14.31", "version": "15.0.3",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.31.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-15.0.3.tgz",
"integrity": "sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g==", "integrity": "sha512-/WbxFeBU+0F79z9RdEOXH4CsDga+ibi5M8uEYr91u3CkT/pdWcV8MCook+4wDPnZBexRdwWS+PiVZ2xJviAzcQ==",
"dev": true "dev": true
}, },
"@types/resolve": { "@types/resolve": {
@ -1479,9 +1479,9 @@
"dev": true "dev": true
}, },
"isomorphic.js": { "isomorphic.js": {
"version": "0.2.0", "version": "0.2.4",
"resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.2.0.tgz", "resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.2.4.tgz",
"integrity": "sha512-U7JlVUbmVYvV1ddGLhc7pvoMNp+1uGwE3sCIGHEh9I4ldSJJ9LtLog5/H8GzZkwLjmbeEvIbQb50nsre57nDuw==" "integrity": "sha512-Y4NjZceAwaPXctwsHgNsmfuPxR8lJ3f8X7QTAkhltrX4oGIv+eTlgHLXn4tWysC9zGTi929gapnPp+8F8cg7nA=="
}, },
"js-tokens": { "js-tokens": {
"version": "4.0.0", "version": "4.0.0",
@ -1598,11 +1598,11 @@
} }
}, },
"lib0": { "lib0": {
"version": "0.2.38", "version": "0.2.41",
"resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.38.tgz", "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.41.tgz",
"integrity": "sha512-ZxnX62R5weebi8bH/Ipc6JBiQIsiQ1D7p3r96zulSSu1byW6DDWSBeI8WC/W5UGtkZ80GktX3JNY2pqhNiXWGA==", "integrity": "sha512-lZ0I6N81tIDgoPIlUTRhb6mNjPsG5BXIbaK/UbtjakcYnfR+O64bKtIrLXDDnfd7nAo4vpGeZ0mPzbTsNTREcg==",
"requires": { "requires": {
"isomorphic.js": "^0.2.0" "isomorphic.js": "^0.2.4"
} }
}, },
"linkify-it": { "linkify-it": {
@ -2430,9 +2430,9 @@
} }
}, },
"rollup": { "rollup": {
"version": "2.39.0", "version": "2.47.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.39.0.tgz", "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.47.0.tgz",
"integrity": "sha512-+WR3bttcq7zE+BntH09UxaW3bQo3vItuYeLsyk4dL2tuwbeSKJuvwiawyhEnvRdRgrII0Uzk00FpctHO/zB1kw==", "integrity": "sha512-rqBjgq9hQfW0vRmz+0S062ORRNJXvwRpzxhFXORvar/maZqY6za3rgQ/p1Glg+j1hnc1GtYyQCPiAei95uTElg==",
"dev": true, "dev": true,
"requires": { "requires": {
"fsevents": "~2.3.1" "fsevents": "~2.3.1"
@ -2828,9 +2828,9 @@
"dev": true "dev": true
}, },
"typescript": { "typescript": {
"version": "4.1.5", "version": "4.2.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.5.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
"integrity": "sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==", "integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
"dev": true "dev": true
}, },
"uc.micro": { "uc.micro": {

View File

@ -58,7 +58,8 @@
"Yjs", "Yjs",
"CRDT", "CRDT",
"offline", "offline",
"shared editing", "offline-first",
"shared-editing",
"concurrency", "concurrency",
"collaboration" "collaboration"
], ],
@ -70,19 +71,19 @@
}, },
"homepage": "https://docs.yjs.dev", "homepage": "https://docs.yjs.dev",
"dependencies": { "dependencies": {
"lib0": "^0.2.38" "lib0": "^0.2.41"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0", "@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.2.0", "@rollup/plugin-node-resolve": "^11.2.1",
"concurrently": "^3.6.1", "concurrently": "^3.6.1",
"http-server": "^0.12.3", "http-server": "^0.12.3",
"jsdoc": "^3.6.6", "jsdoc": "^3.6.6",
"markdownlint-cli": "^0.23.2", "markdownlint-cli": "^0.23.2",
"rollup": "^2.39.0", "rollup": "^2.47.0",
"standard": "^14.3.4", "standard": "^14.3.4",
"tui-jsdoc-template": "^1.2.2", "tui-jsdoc-template": "^1.2.2",
"typescript": "^4.1.5", "typescript": "^4.2.4",
"y-protocols": "^1.0.4" "y-protocols": "^1.0.4"
} }
} }

View File

@ -45,7 +45,7 @@ export default [{
sourcemap: true, sourcemap: true,
paths: path => { paths: path => {
if (/^lib0\//.test(path)) { if (/^lib0\//.test(path)) {
return `lib0/dist/${path.slice(5, -3)}.cjs` return `lib0/dist/${path.slice(5)}.cjs`
} }
return path return path
} }

View File

@ -3,7 +3,7 @@ import {
UpdateEncoderV1, UpdateEncoderV2, ID, Transaction // eslint-disable-line UpdateEncoderV1, UpdateEncoderV2, ID, Transaction // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
export class AbstractStruct { export class AbstractStruct {
/** /**

View File

@ -2,7 +2,7 @@ import {
UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, StructStore, Item, Transaction // eslint-disable-line UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, StructStore, Item, Transaction // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
export class ContentBinary { export class ContentBinary {
/** /**

View File

@ -3,7 +3,7 @@ import {
Doc, UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, StructStore, Transaction, Item // eslint-disable-line Doc, UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, StructStore, Transaction, Item // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
/** /**
* @private * @private

View File

@ -3,7 +3,7 @@ import {
UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, StructStore, Item, Transaction // eslint-disable-line UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, StructStore, Item, Transaction // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
/** /**
* @private * @private

View File

@ -3,7 +3,7 @@ import {
AbstractType, UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, Item, StructStore, Transaction // eslint-disable-line AbstractType, UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, Item, StructStore, Transaction // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
/** /**
* @private * @private

View File

@ -10,7 +10,7 @@ import {
UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, StructStore, Transaction, Item, YEvent, AbstractType // eslint-disable-line UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, StructStore, Transaction, Item, YEvent, AbstractType // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
/** /**
* @type {Array<function(UpdateDecoderV1 | UpdateDecoderV2):AbstractType<any>>} * @type {Array<function(UpdateDecoderV1 | UpdateDecoderV2):AbstractType<any>>}

View File

@ -25,8 +25,8 @@ import {
UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, ContentType, ContentDeleted, StructStore, ID, AbstractType, Transaction // eslint-disable-line UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, ContentType, ContentDeleted, StructStore, ID, AbstractType, Transaction // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
import * as binary from 'lib0/binary.js' import * as binary from 'lib0/binary'
/** /**
* @todo This should return several items * @todo This should return several items

View File

@ -3,8 +3,8 @@ import {
AbstractStruct, AbstractStruct,
UpdateEncoderV1, UpdateEncoderV2, StructStore, Transaction, ID // eslint-disable-line UpdateEncoderV1, UpdateEncoderV2, StructStore, Transaction, ID // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
export const structSkipRefNumber = 10 export const structSkipRefNumber = 10

View File

@ -14,10 +14,10 @@ import {
ContentDoc, YText, YArray, UpdateEncoderV1, UpdateEncoderV2, Doc, Snapshot, Transaction, EventHandler, YEvent, Item, // eslint-disable-line ContentDoc, YText, YArray, UpdateEncoderV1, UpdateEncoderV2, Doc, Snapshot, Transaction, EventHandler, YEvent, Item, // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as map from 'lib0/map.js' import * as map from 'lib0/map'
import * as iterator from 'lib0/iterator.js' import * as iterator from 'lib0/iterator'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
import * as math from 'lib0/math.js' import * as math from 'lib0/math'
const maxSearchMarker = 80 const maxSearchMarker = 80

View File

@ -17,7 +17,7 @@ import {
UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, Doc, Transaction, Item // eslint-disable-line UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, Doc, Transaction, Item // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as iterator from 'lib0/iterator.js' import * as iterator from 'lib0/iterator'
/** /**
* @template T * @template T

View File

@ -29,9 +29,9 @@ import {
ArraySearchMarker, UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, ID, Doc, Item, Snapshot, Transaction // eslint-disable-line ArraySearchMarker, UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, ID, Doc, Item, Snapshot, Transaction // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as object from 'lib0/object.js' import * as object from 'lib0/object'
import * as map from 'lib0/map.js' import * as map from 'lib0/map'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
/** /**
* @param {any} a * @param {any} a

View File

@ -20,7 +20,7 @@ import {
UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, Doc, ContentType, Transaction, Item, YXmlText, YXmlHook, Snapshot // eslint-disable-line UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, Doc, ContentType, Transaction, Item, YXmlText, YXmlHook, Snapshot // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
/** /**
* Define the elements to which a set of CSS queries apply. * Define the elements to which a set of CSS queries apply.

View File

@ -1,5 +1,5 @@
import { Observable } from 'lib0/observable.js' import { Observable } from 'lib0/observable'
import { import {
Doc // eslint-disable-line Doc // eslint-disable-line

View File

@ -8,11 +8,11 @@ import {
DSDecoderV1, DSEncoderV1, DSDecoderV2, DSEncoderV2, Item, GC, StructStore, Transaction, ID // eslint-disable-line DSDecoderV1, DSEncoderV1, DSDecoderV2, DSEncoderV2, Item, GC, StructStore, Transaction, ID // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as array from 'lib0/array.js' import * as array from 'lib0/array'
import * as math from 'lib0/math.js' import * as math from 'lib0/math'
import * as map from 'lib0/map.js' import * as map from 'lib0/map'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
export class DeleteItem { export class DeleteItem {
/** /**

View File

@ -13,10 +13,10 @@ import {
ContentDoc, Item, Transaction, YEvent // eslint-disable-line ContentDoc, Item, Transaction, YEvent // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import { Observable } from 'lib0/observable.js' import { Observable } from 'lib0/observable'
import * as random from 'lib0/random.js' import * as random from 'lib0/random'
import * as map from 'lib0/map.js' import * as map from 'lib0/map'
import * as array from 'lib0/array.js' import * as array from 'lib0/array'
export const generateNewClientId = random.uint32 export const generateNewClientId = random.uint32

View File

@ -1,4 +1,4 @@
import * as f from 'lib0/function.js' import * as f from 'lib0/function'
/** /**
* General event handler implementation. * General event handler implementation.

View File

@ -1,9 +1,9 @@
import { AbstractType } from '../internals.js' // eslint-disable-line import { AbstractType } from '../internals.js' // eslint-disable-line
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
export class ID { export class ID {
/** /**

View File

@ -8,7 +8,7 @@ import {
DSEncoderV1, DSDecoderV1, ID, DeleteSet, YArrayEvent, Transaction, Doc // eslint-disable-line DSEncoderV1, DSDecoderV1, ID, DeleteSet, YArrayEvent, Transaction, Doc // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
import { mergeDeleteSets, isDeleted } from './DeleteSet.js' import { mergeDeleteSets, isDeleted } from './DeleteSet.js'

View File

@ -12,9 +12,9 @@ import {
ID, Doc, AbstractType // eslint-disable-line ID, Doc, AbstractType // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
/** /**
* A relative position is based on the Yjs model and is not affected by document changes. * A relative position is based on the Yjs model and is not affected by document changes.

View File

@ -18,10 +18,10 @@ import {
DSEncoderV1, DSEncoderV2, DSDecoderV1, DSDecoderV2, Transaction, Doc, DeleteSet, Item // eslint-disable-line DSEncoderV1, DSEncoderV2, DSDecoderV1, DSDecoderV2, Transaction, Doc, DeleteSet, Item // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as map from 'lib0/map.js' import * as map from 'lib0/map'
import * as set from 'lib0/set.js' import * as set from 'lib0/set'
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
export class Snapshot { export class Snapshot {
/** /**

View File

@ -5,8 +5,8 @@ import {
Transaction, ID, Item, DSDecoderV2 // eslint-disable-line Transaction, ID, Item, DSDecoderV2 // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as math from 'lib0/math.js' import * as math from 'lib0/math'
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
export class StructStore { export class StructStore {
constructor () { constructor () {

View File

@ -11,14 +11,14 @@ import {
Item, Item,
generateNewClientId, generateNewClientId,
createID, createID,
UpdateDecoderV1, UpdateDecoderV2, UpdateEncoderV1, UpdateEncoderV2, GC, StructStore, AbstractType, AbstractStruct, YEvent, Doc // eslint-disable-line UpdateEncoderV1, UpdateEncoderV2, GC, StructStore, AbstractType, AbstractStruct, YEvent, Doc // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as map from 'lib0/map.js' import * as map from 'lib0/map'
import * as math from 'lib0/math.js' import * as math from 'lib0/math'
import * as set from 'lib0/set.js' import * as set from 'lib0/set'
import * as logging from 'lib0/logging.js' import * as logging from 'lib0/logging'
import { callAll } from 'lib0/function.js' import { callAll } from 'lib0/function'
/** /**
* A transaction is created for every change on the Yjs model. It is possible * A transaction is created for every change on the Yjs model. It is possible

View File

@ -13,8 +13,8 @@ import {
Transaction, Doc, Item, GC, DeleteSet, AbstractType, YEvent // eslint-disable-line Transaction, Doc, Item, GC, DeleteSet, AbstractType, YEvent // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as time from 'lib0/time.js' import * as time from 'lib0/time'
import { Observable } from 'lib0/observable.js' import { Observable } from 'lib0/observable'
class StackItem { class StackItem {
/** /**

View File

@ -1,5 +1,5 @@
import * as buffer from 'lib0/buffer.js' import * as buffer from 'lib0/buffer'
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
import { import {
ID, createID ID, createID
} from '../internals.js' } from '../internals.js'

View File

@ -1,6 +1,6 @@
import * as error from 'lib0/error.js' import * as error from 'lib0/error'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
import { import {
ID // eslint-disable-line ID // eslint-disable-line

View File

@ -4,8 +4,8 @@ import {
Item, AbstractType, Transaction, AbstractStruct // eslint-disable-line Item, AbstractType, Transaction, AbstractStruct // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as set from 'lib0/set.js' import * as set from 'lib0/set'
import * as array from 'lib0/array.js' import * as array from 'lib0/array'
/** /**
* YEvent describes the changes on a YType. * YEvent describes the changes on a YType.

View File

@ -38,11 +38,11 @@ import {
DSDecoderV2, Doc, Transaction, GC, Item, StructStore // eslint-disable-line DSDecoderV2, Doc, Transaction, GC, Item, StructStore // eslint-disable-line
} from '../internals.js' } from '../internals.js'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
import * as binary from 'lib0/binary.js' import * as binary from 'lib0/binary'
import * as map from 'lib0/map.js' import * as map from 'lib0/map'
import * as math from 'lib0/math.js' import * as math from 'lib0/math'
/** /**
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder

View File

@ -1,9 +1,9 @@
import * as binary from 'lib0/binary.js' import * as binary from 'lib0/binary'
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
import * as logging from 'lib0/logging.js' import * as logging from 'lib0/logging'
import * as math from 'lib0/math.js' import * as math from 'lib0/math'
import { import {
createID, createID,
readItemContent, readItemContent,

View File

@ -7,8 +7,8 @@
*/ */
import * as Y from '../src/index.js' import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
import * as buffer from 'lib0/buffer.js' import * as buffer from 'lib0/buffer'
/** /**
* @param {t.TestCase} tc * @param {t.TestCase} tc

View File

@ -1,6 +1,6 @@
import * as Y from '../src/index.js' import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
/** /**
* Client id should be changed when an instance receives updates from another client using the same client id. * Client id should be changed when an instance receives updates from another client using the same client id.

View File

@ -1,5 +1,5 @@
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
import * as promise from 'lib0/promise.js' import * as promise from 'lib0/promise'
import { import {
contentRefs, contentRefs,

View File

@ -11,9 +11,9 @@ import * as snapshot from './snapshot.tests.js'
import * as updates from './updates.tests.js' import * as updates from './updates.tests.js'
import * as relativePositions from './relativePositions.tests.js' import * as relativePositions from './relativePositions.tests.js'
import { runTests } from 'lib0/testing.js' import { runTests } from 'lib0/testing'
import { isBrowser, isNode } from 'lib0/environment.js' import { isBrowser, isNode } from 'lib0/environment'
import * as log from 'lib0/logging.js' import * as log from 'lib0/logging'
if (isBrowser) { if (isBrowser) {
log.createVConsole(document.body) log.createVConsole(document.body)

View File

@ -1,6 +1,6 @@
import * as Y from '../src/internals' import * as Y from '../src/internals'
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
/** /**
* @param {Y.YText} ytext * @param {Y.YText} ytext

View File

@ -1,5 +1,5 @@
import { createDocFromSnapshot, Doc, snapshot, YMap } from '../src/internals' import { createDocFromSnapshot, Doc, snapshot, YMap } from '../src/internals'
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
import { init } from './testHelper' import { init } from './testHelper'
/** /**

View File

@ -1,10 +1,10 @@
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
import * as prng from 'lib0/prng.js' import * as prng from 'lib0/prng'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
import * as syncProtocol from 'y-protocols/sync.js' import * as syncProtocol from 'y-protocols/sync.js'
import * as object from 'lib0/object.js' import * as object from 'lib0/object'
import * as Y from '../src/internals.js' import * as Y from '../src/internals.js'
export * from '../src/internals.js' export * from '../src/internals.js'

View File

@ -5,7 +5,7 @@ import {
} from '../src/internals.js' } from '../src/internals.js'
import * as Y from '../src/index.js' import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
/** /**
* @param {t.TestCase} tc * @param {t.TestCase} tc

View File

@ -1,9 +1,9 @@
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
import { init, compare } from './testHelper.js' // eslint-disable-line import { init, compare } from './testHelper.js' // eslint-disable-line
import * as Y from '../src/index.js' import * as Y from '../src/index.js'
import { readClientsStructRefs, readDeleteSet, UpdateDecoderV2, UpdateEncoderV2, writeDeleteSet } from '../src/internals.js' import { readClientsStructRefs, readDeleteSet, UpdateDecoderV2, UpdateEncoderV2, writeDeleteSet } from '../src/internals.js'
import * as encoding from 'lib0/encoding.js' import * as encoding from 'lib0/encoding'
import * as decoding from 'lib0/decoding.js' import * as decoding from 'lib0/decoding'
/** /**
* @typedef {Object} Enc * @typedef {Object} Enc

View File

@ -1,9 +1,9 @@
import { init, compare, applyRandomTests, Doc } from './testHelper.js' // eslint-disable-line import { init, compare, applyRandomTests, Doc } from './testHelper.js' // eslint-disable-line
import * as Y from '../src/index.js' import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
import * as prng from 'lib0/prng.js' import * as prng from 'lib0/prng'
import * as math from 'lib0/math.js' import * as math from 'lib0/math'
/** /**
* @param {t.TestCase} tc * @param {t.TestCase} tc

View File

@ -5,8 +5,8 @@ import {
} from '../src/internals.js' } from '../src/internals.js'
import * as Y from '../src/index.js' import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
import * as prng from 'lib0/prng.js' import * as prng from 'lib0/prng'
/** /**
* @param {t.TestCase} tc * @param {t.TestCase} tc

View File

@ -1,7 +1,7 @@
import * as Y from './testHelper.js' import * as Y from './testHelper.js'
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
import * as prng from 'lib0/prng.js' import * as prng from 'lib0/prng'
import * as math from 'lib0/math.js' import * as math from 'lib0/math'
const { init, compare } = Y const { init, compare } = Y

View File

@ -1,7 +1,7 @@
import { init, compare } from './testHelper.js' import { init, compare } from './testHelper.js'
import * as Y from '../src/index.js' import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js' import * as t from 'lib0/testing'
/** /**
* @param {t.TestCase} tc * @param {t.TestCase} tc