From b812a3dd6cb26ff96d5ecf43fddbb392ed8f9f14 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sat, 21 Nov 2020 19:27:12 +0100 Subject: [PATCH 1/9] Add getItem to the exports --- src/index.js | 1 + 1 file changed, 1 insertion(+) 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, From bf2ee3680bc23663513f06cfc294065132f90b40 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sat, 21 Nov 2020 19:28:56 +0100 Subject: [PATCH 2/9] 13.4.5 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 09f6357b..33073711 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "yjs", - "version": "13.4.4", + "version": "13.4.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3ad5de32..1be4a27e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yjs", - "version": "13.4.4", + "version": "13.4.5", "description": "Shared Editing Library", "main": "./dist/yjs.cjs", "module": "./dist/yjs.mjs", From ba713983e315acfca0771e7d1637bbf350171902 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 1 Dec 2020 15:41:45 +0100 Subject: [PATCH 3/9] update sponsors --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 60dcf892..52758333 100644 --- a/README.md +++ b/README.md @@ -31,18 +31,18 @@ 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: -[![Vincent Waller](https://github.com/vwall.png?size=60)](https://github.com/vwall) -[](https://input.com/) -[![Duane Johnson](https://github.com/canadaduane.png?size=60)](https://github.com/canadaduane) -[![Joe Reeve](https://github.com/ISNIT0.png?size=60)](https://github.com/ISNIT0) -[](https://room.sh/) +[![Ifiok Jr.](https://github.com/ifiokjr.png?size=60)](https://github.com/ifiokjr) +[![Burke Libbey](https://github.com/burke.png?size=60)](https://github.com/burke) +[![Beni Cherniavsky-Paskin](https://github.com/cben.png?size=60)](https://github.com/cben) +[![Tom Moor](https://github.com/tommoor.png?size=60)](https://github.com/tommoor) +[![Michael Meyers](https://github.com/michaelemeyers.png?size=60)](https://github.com/michaelemeyers) +[![Cristiano Benjamin](https://github.com/csbenjamin.png?size=60)](https://github.com/csbenjamin) +[![Braden](https://github.com/AdventureBeard.png?size=60)](https://github.com/AdventureBeard) +[![nimbuswebinc](https://github.com/nimbuswebinc.png?size=60)](https://github.com/nimbuswebinc) [![JourneyApps](https://github.com/journeyapps.png?size=60)](https://github.com/journeyapps) [![Adam Brunnmeier](https://github.com/adabru.png?size=60)](https://github.com/adabru) [![Nathanael Anderson](https://github.com/NathanaelA.png?size=60)](https://github.com/NathanaelA) -[![Gremloon](https://github.com/gremloon.png?size=60)](https://github.com/gremloon) -[![ifiokjr](https://github.com/ifiokjr.png?size=60)](https://github.com/ifiokjr) -[![mrfambo](https://github.com/mrfambo.png?size=60)](https://github.com/mrfambo) +[](https://room.sh/) Sponsorship also comes with special perks! [![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=d42f2d)](https://github.com/sponsors/dmonad) From 563c34f81a23da2aaec895c1bbf481392b89a87c Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 1 Dec 2020 15:50:58 +0100 Subject: [PATCH 4/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 52758333..0e44f11f 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Yjs: [![Michael Meyers](https://github.com/michaelemeyers.png?size=60)](https://github.com/michaelemeyers) [![Cristiano Benjamin](https://github.com/csbenjamin.png?size=60)](https://github.com/csbenjamin) [![Braden](https://github.com/AdventureBeard.png?size=60)](https://github.com/AdventureBeard) -[![nimbuswebinc](https://github.com/nimbuswebinc.png?size=60)](https://github.com/nimbuswebinc) +[![nimbuswebinc](https://nimbusweb.me/new-style-img/note-icon.svg)](https://github.com/nimbuswebinc) [![JourneyApps](https://github.com/journeyapps.png?size=60)](https://github.com/journeyapps) [![Adam Brunnmeier](https://github.com/adabru.png?size=60)](https://github.com/adabru) [![Nathanael Anderson](https://github.com/NathanaelA.png?size=60)](https://github.com/NathanaelA) From e81267d4df8a35245bba668cd6c726a1a36677bb Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Fri, 4 Dec 2020 14:01:14 +0100 Subject: [PATCH 5/9] implement correct destroy event --- src/utils/Doc.js | 1 + 1 file changed, 1 insertion(+) 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() } From fdf206394322db0a48e3299f8c7353451362f475 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Fri, 4 Dec 2020 14:02:53 +0100 Subject: [PATCH 6/9] 13.4.6 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 33073711..b4c81fca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "yjs", - "version": "13.4.5", + "version": "13.4.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 1be4a27e..d0eea0c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yjs", - "version": "13.4.5", + "version": "13.4.6", "description": "Shared Editing Library", "main": "./dist/yjs.cjs", "module": "./dist/yjs.mjs", From 972d15dda55a00f3035670fedb62e431a0cab7b9 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sat, 5 Dec 2020 13:17:14 +0100 Subject: [PATCH 7/9] Update Sponsors --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0e44f11f..01eea0e1 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ 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: +[![davidhq](https://github.com/davidhq.png?size=60)](https://github.com/davidhq) [![Ifiok Jr.](https://github.com/ifiokjr.png?size=60)](https://github.com/ifiokjr) [![Burke Libbey](https://github.com/burke.png?size=60)](https://github.com/burke) [![Beni Cherniavsky-Paskin](https://github.com/cben.png?size=60)](https://github.com/cben) From 45af21f31ed3f2a93b29be272ceef99cca077972 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sat, 12 Dec 2020 21:18:14 +0100 Subject: [PATCH 8/9] Add .circleci/config.yml --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .circleci/config.yml 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 From 510354d99f14bc16a749d08b7fe601a86ed120dd Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sat, 12 Dec 2020 21:22:55 +0100 Subject: [PATCH 9/9] add github workflow --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/node.js.yml 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