Comparing version 13.6.18 to 13.6.19
@@ -81,2 +81,3 @@ export const generateNewClientId: typeof random.uint32; | ||
isSynced: boolean; | ||
isDestroyed: boolean; | ||
/** | ||
@@ -83,0 +84,0 @@ * Promise that resolves once the document has been loaded from a presistence provider. |
{ | ||
"name": "yjs", | ||
"version": "13.6.18", | ||
"version": "13.6.19", | ||
"description": "Shared Editing Library", | ||
@@ -88,3 +88,3 @@ "main": "./dist/yjs.cjs", | ||
"jsdoc": "^3.6.7", | ||
"markdownlint-cli": "^0.23.2", | ||
"markdownlint-cli": "^0.41.0", | ||
"rollup": "^3.20.0", | ||
@@ -91,0 +91,0 @@ "standard": "^16.0.4", |
@@ -6,3 +6,3 @@ | ||
Yjs is a [CRDT implementation](#Yjs-CRDT-Algorithm) that exposes its internal | ||
Yjs is a [CRDT implementation](#yjs-crdt-algorithm) that exposes its internal | ||
data structure as *shared types*. Shared types are common data types like `Map` | ||
@@ -117,19 +117,25 @@ or `Array` with superpowers: changes are automatically distributed to other | ||
* [GoPeer](https://gopeer.org/) - Collaborative tutoring | ||
* [screen.garden](https://screen.garden) Collaborative backend for PKM apps. | ||
* [screen.garden](https://screen.garden) - Collaborative backend for PKM apps. | ||
* [NextCloud](https://nextcloud.com/) - Content Collaboration Platform | ||
* [keystatic](https://github.com/Thinkmill/keystatic) - git-based CMS | ||
* [QDAcity](https://qdacity.com) - Collaborative qualitative data analysis platform | ||
* [Kanbert](https://kanbert.com) - Project management software | ||
* [Eclipse Theia](https://github.com/eclipse-theia/theia) - A cloud & desktop | ||
IDE that runs in the browser. | ||
## Table of Contents | ||
* [Overview](#Overview) | ||
* [Bindings](#Bindings) | ||
* [Providers](#Providers) | ||
* [Ports](#Ports) | ||
* [Getting Started](#Getting-Started) | ||
* [API](#API) | ||
* [Shared Types](#Shared-Types) | ||
* [Y.Doc](#YDoc) | ||
* [Document Updates](#Document-Updates) | ||
* [Relative Positions](#Relative-Positions) | ||
* [Y.UndoManager](#YUndoManager) | ||
* [Yjs CRDT Algorithm](#Yjs-CRDT-Algorithm) | ||
* [License and Author](#License-and-Author) | ||
* [Overview](#overview) | ||
* [Bindings](#bindings) | ||
* [Providers](#providers) | ||
* [Ports](#ports) | ||
* [Getting Started](#getting-started) | ||
* [API](#api) | ||
* [Shared Types](#shared-types) | ||
* [Y.Doc](#ydoc) | ||
* [Document Updates](#document-updates) | ||
* [Relative Positions](#relative-positions) | ||
* [Y.UndoManager](#yundomanager) | ||
* [Yjs CRDT Algorithm](#yjs-crdt-algorithm) | ||
* [License and Author](#license-and-author) | ||
@@ -155,2 +161,3 @@ ## Overview | ||
| [immer](https://github.com/immerjs/immer) | | [immer-yjs](https://github.com/sep2/immer-yjs) | [demo](https://codesandbox.io/s/immer-yjs-demo-6e0znb) | | ||
| React | | [react-yjs](https://github.com/nikgraf/react-yjs) | [demo](https://react-yjs-example.vercel.app/) | | ||
| React / Vue / Svelte / MobX | | [SyncedStore](https://syncedstore.org) | [demo](https://syncedstore.org/docs/react) | | ||
@@ -249,2 +256,7 @@ | [mobx-keystone](https://mobx-keystone.js.org/) | | [mobx-keystone-yjs](https://github.com/xaviergonz/mobx-keystone/tree/master/packages/mobx-keystone-yjs) | [demo](https://mobx-keystone.js.org/examples/yjs-binding) | | ||
</dd> | ||
<dt><a href="https://www.secsync.com/">secsync</a></dt> | ||
<dd> | ||
An architecture to relay end-to-end encrypted CRDTs over a central service. | ||
</dd> | ||
</dl> | ||
@@ -416,2 +428,7 @@ | ||
<dl> | ||
<b><code> | ||
Y.Array.from(Array<object|boolean|Array|string|number|null|Uint8Array|Y.Type>): | ||
Y.Array | ||
</code></b> | ||
<dd>An alternative factory function to create a Y.Array based on existing content.</dd> | ||
<b><code>parent:Y.AbstractType|null</code></b> | ||
@@ -446,2 +463,7 @@ <dd></dd> | ||
<dd></dd> | ||
<b><code>clone(): Y.Array</code></b> | ||
<dd> | ||
Clone all values into a fresh Y.Array instance. The returned type can be | ||
included into the Yjs document. | ||
</dd> | ||
<b><code>toArray():Array<object|boolean|Array|string|number|null|Uint8Array|Y.Type></code></b> | ||
@@ -503,4 +525,2 @@ <dd>Copies the content of this YArray to a new Array.</dd> | ||
<dd></dd> | ||
<b><code>get(index:number)</code></b> | ||
<dd></dd> | ||
<b><code>clear()</code></b> | ||
@@ -859,3 +879,3 @@ <dd>Removes all elements from this YMap.</dd> | ||
Yjs internally maintains a [state vector](#State-Vector) that denotes the next | ||
Yjs internally maintains a [state vector](#state-vector) that denotes the next | ||
expected clock from each client. In a different interpretation it holds the | ||
@@ -862,0 +882,0 @@ number of structs created by each client. When two clients sync, you can either |
@@ -107,2 +107,3 @@ /** | ||
this.isSynced = false | ||
this.isDestroyed = false | ||
/** | ||
@@ -326,2 +327,3 @@ * Promise that resolves once the document has been loaded from a presistence provider. | ||
destroy () { | ||
this.isDestroyed = true | ||
array.from(this.subdocs).forEach(subdoc => subdoc.destroy()) | ||
@@ -328,0 +330,0 @@ const item = this._item |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2284919
34210
1320