diff --git a/README.v13.md b/README.v13.md
index d8148aba..ce462225 100644
--- a/README.v13.md
+++ b/README.v13.md
@@ -139,11 +139,11 @@ import * as Y from 'yjs'
const yarray = new Y.Array()
- insert(index:number, content:Array<object|string|number|Uint8Array|Y.Type>)
+ insert(index:number, content:Array<object|boolean|Array|string|number|Uint8Array|Y.Type>)
-
Insert content at index. Note that content is an array of elements. I.e.
array.insert(0, [1]
splices the list and inserts 1 at position 0.
- push(Array<Object|Array|string|number|Uint8Array|Y.Type>)
+ push(Array<Object|boolean|Array|string|number|Uint8Array|Y.Type>)
delete(index:number, length:number)
@@ -153,9 +153,9 @@ import * as Y from 'yjs'
map(function(T, number, YArray):M):Array<M>
- toArray():Array<Object|Array|string|number|Uint8Array|Y.Type>
+ toArray():Array<object|boolean|Array|string|number|Uint8Array|Y.Type>
- Copies the content of this YArray to a new Array.
- toJSON():Array<Object|Array|string|number>
+ toJSON():Array<Object|boolean|Array|string|number>
- Copies the content of this YArray to a new Array. It transforms all child types to JSON using their
toJSON
method.
[Symbol.Iterator]
-
@@ -188,9 +188,9 @@ import * as Y from 'yjs'
const ymap = new Y.Map()
- get(key:string):object|string|number|Uint8Array|Y.Type
+ get(key:string):object|boolean|string|number|Uint8Array|Y.Type
- set(key:string, value:object|string|number|Uint8Array|Y.Type)
+ set(key:string, value:object|boolean|string|number|Uint8Array|Y.Type)
delete(key:string)
@@ -198,7 +198,7 @@ import * as Y from 'yjs'
get(index:number)
- toJSON():Object<string, Object|Array|string|number>
+ toJSON():Object<string, Object|boolean|Array|string|number>
- Copies the
[key,value]
pairs of this YMap to a new Object. It transforms all child types to JSON using their toJSON
method.
[Symbol.Iterator]
-
diff --git a/package-lock.json b/package-lock.json
index 7e0231ba..da63fe34 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1779,8 +1779,7 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"aproba": {
"version": "1.2.0",
@@ -1801,14 +1800,12 @@
"balanced-match": {
"version": "1.0.0",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -1823,20 +1820,17 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"core-util-is": {
"version": "1.0.2",
@@ -1953,8 +1947,7 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"ini": {
"version": "1.3.5",
@@ -1966,7 +1959,6 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -1981,7 +1973,6 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
@@ -1989,14 +1980,12 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@@ -2015,7 +2004,6 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -2096,8 +2084,7 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"object-assign": {
"version": "4.1.1",
@@ -2109,7 +2096,6 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"wrappy": "1"
}
@@ -2195,8 +2181,7 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -2232,7 +2217,6 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -2252,7 +2236,6 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -2296,14 +2279,12 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
}
}
},
@@ -5111,20 +5092,12 @@
"dev": true
},
"y-protocols": {
- "version": "0.0.4",
- "resolved": "https://registry.npmjs.org/y-protocols/-/y-protocols-0.0.4.tgz",
- "integrity": "sha512-a7F8t16y6rVPYGvwsbfeN5EauHFBo+SIsYadvaONdp6jCyhcKokDK8u30BQOJCOxwd1FkuAhMs14m6CtJbfRqg==",
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/y-protocols/-/y-protocols-0.0.6.tgz",
+ "integrity": "sha512-XgUBKrFesfUYN3wXmVp9Exy7dOUOeX3A56gHNuI1ZNy9N7OdwoBv2TGfbvSH6+YpV1IEvEq7u5v0/je5MwXKJg==",
"dev": true,
"requires": {
- "lib0": "0.0.4"
- },
- "dependencies": {
- "lib0": {
- "version": "0.0.4",
- "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.0.4.tgz",
- "integrity": "sha512-osSGIxFM0mUuVAclVOQAio4lq0YYk1xFfj6J+1i3u5az8rXAQKDil2skA19aiiG0sfAdasOtr8Mk+9Mrw10cfQ==",
- "dev": true
- }
+ "lib0": "0.0.5"
}
},
"yallist": {
diff --git a/package.json b/package.json
index c15ad5a1..9ad948c9 100644
--- a/package.json
+++ b/package.json
@@ -65,6 +65,6 @@
"standard": "^11.0.1",
"tui-jsdoc-template": "^1.2.2",
"typescript": "^3.4.5",
- "y-protocols": "0.0.4"
+ "y-protocols": "0.0.6"
}
}
diff --git a/rollup.config.js b/rollup.config.js
index d926a781..16fdc00a 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -23,12 +23,14 @@ const debugResolve = {
if (importee === 'yjs') {
return `${process.cwd()}/src/index.js`
}
+ /*
if (customModules.has(importee.split('/')[0])) {
return `${process.cwd()}/../${importee}/src/${importee}.js`
}
if (customLibModules.has(importee.split('/')[0])) {
return `${process.cwd()}/../${importee}`
}
+ */
return null
}
}
diff --git a/src/types/AbstractType.js b/src/types/AbstractType.js
index c0ad077f..c1ffc18f 100644
--- a/src/types/AbstractType.js
+++ b/src/types/AbstractType.js
@@ -363,7 +363,7 @@ export const typeListGet = (type, index) => {
* @param {Transaction} transaction
* @param {AbstractType} parent
* @param {AbstractItem?} referenceItem
- * @param {Array