diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 00000000..dbfd56f7
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,7 @@
+version: 2.1
+orbs:
+ node: circleci/node@3.0.0
+workflows:
+ node-tests:
+ jobs:
+ - node/test
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
new file mode 100644
index 00000000..a391700d
--- /dev/null
+++ b/.github/workflows/node.js.yml
@@ -0,0 +1,29 @@
+# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
+
+name: Node.js CI
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [10.x, 12.x, 14.x]
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - run: npm ci
+ - run: npm run build --if-present
+ - run: npm test
diff --git a/README.md b/README.md
index d36b15b8..d19a48b0 100644
--- a/README.md
+++ b/README.md
@@ -31,18 +31,19 @@ I'm currently looking for sponsors that allow me to be less dependent on
contracting work. These awesome backers already fund further development of
Yjs:
-[](https://github.com/vwall)
-[
](https://input.com/)
-[](https://github.com/canadaduane)
-[](https://github.com/ISNIT0)
-[
](https://room.sh/)
+[](https://github.com/davidhq)
+[](https://github.com/ifiokjr)
+[](https://github.com/burke)
+[](https://github.com/cben)
+[](https://github.com/tommoor)
+[](https://github.com/michaelemeyers)
+[](https://github.com/csbenjamin)
+[](https://github.com/AdventureBeard)
+[](https://github.com/nimbuswebinc)
[](https://github.com/journeyapps)
[](https://github.com/adabru)
[](https://github.com/NathanaelA)
-[](https://github.com/gremloon)
-[](https://github.com/ifiokjr)
-[](https://github.com/mrfambo)
+[
](https://room.sh/)
Sponsorship also comes with special perks! [](https://github.com/sponsors/dmonad)
diff --git a/package-lock.json b/package-lock.json
index 09f6357b..b4c81fca 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "yjs",
- "version": "13.4.4",
+ "version": "13.4.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 3ad5de32..d0eea0c8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "yjs",
- "version": "13.4.4",
+ "version": "13.4.6",
"description": "Shared Editing Library",
"main": "./dist/yjs.cjs",
"module": "./dist/yjs.mjs",
diff --git a/src/index.js b/src/index.js
index 91d34893..3daecee2 100644
--- a/src/index.js
+++ b/src/index.js
@@ -45,6 +45,7 @@ export {
snapshot,
emptySnapshot,
findRootTypeKey,
+ getItem,
typeListToArraySnapshot,
typeMapGetSnapshot,
createDocFromSnapshot,
diff --git a/src/utils/Doc.js b/src/utils/Doc.js
index 41c241b3..bec8966b 100644
--- a/src/utils/Doc.js
+++ b/src/utils/Doc.js
@@ -257,6 +257,7 @@ export class Doc extends Observable {
}, null, true)
}
this.emit('destroyed', [true])
+ this.emit('destroy', [this])
super.destroy()
}