Skip to content

Commit 02e9935

Browse files
authored
Merge pull request #578 from streamich/rm-rx-rpc
Remove Reactive-RPC and related code
2 parents 87483ee + bb5dcca commit 02e9935

File tree

232 files changed

+7
-17793
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+7
-17793
lines changed

.github/workflows/pr.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,4 @@ jobs:
4545
- run: yarn demo:json-patch
4646
- run: yarn demo:json-pointer
4747
- run: yarn typedoc
48-
e2e-rx-rpc:
49-
runs-on: ubuntu-latest
50-
strategy:
51-
matrix:
52-
node-version: [20.x]
53-
steps:
54-
- uses: actions/checkout@v3
55-
- name: Use Node.js ${{ matrix.node-version }}
56-
uses: actions/setup-node@v3
57-
with:
58-
node-version: ${{ matrix.node-version }}
59-
cache: yarn
60-
- run: yarn install --frozen-lockfile
61-
- run: yarn test:reactive-rpc
48+

.github/workflows/release.yml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
- run: yarn test:cli:pack
3030
- run: yarn demo:json-patch
3131
- run: yarn demo:json-pointer
32-
- run: yarn test:reactive-rpc
3332
- name: Semantic Release
3433
uses: cycjimmy/semantic-release-action@v4
3534
env:

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ merging of changes in JSON data models, avoiding conflicts between replicas.
4646
- Very fast binary tree (Radix, AVL, Red-black*, Splay) implementations in JavaScript.
4747
- Very fast JSON Patch (and JSON Pointer) implementation in JavaScript, including many non-standard operations, and JSON Predicate implementation.
4848
- Very fast JSON Expression implementation in JavaScript.
49-
- JSON Reactive RPC protocol (RPC with server push) implementation, for real-time collaborative apps.
5049

5150

5251
[json-joy]: https://jsonjoy.com

package.json

+1-20
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
"sync",
3030
"synchronization",
3131
"distributed-state",
32-
"rpc",
33-
"reactive-rpc",
3432
"marshaling",
3533
"serializations",
3634
"json-patch",
@@ -89,17 +87,14 @@
8987
"build": "yarn build:es2020",
9088
"jest": "node -r ts-node/register ./node_modules/.bin/jest",
9189
"test": "jest --maxWorkers 7",
92-
"test:all": "yarn lint && yarn test && yarn build:all && yarn test:cli:pointer && yarn test:cli:patch && yarn test:cli:pack && yarn test:reactive-rpc && yarn demo:json-patch && yarn demo:json-pointer",
90+
"test:all": "yarn lint && yarn test && yarn build:all && yarn test:cli:pointer && yarn test:cli:patch && yarn test:cli:pack && yarn demo:json-patch && yarn demo:json-pointer",
9391
"test:ci": "yarn jest --maxWorkers 3 --no-cache",
9492
"test:cli": "yarn test:cli:pointer && yarn test:cli:patch && yarn test:cli:pack",
9593
"test:cli:pointer": "./bin/json-pointer-test.js ./bin/json-pointer.js",
9694
"test:cli:patch": "./bin/json-patch-test.js ./bin/json-patch.js",
9795
"test:cli:pack": "./bin/json-pack-test.js ./bin/json-pack.js",
98-
"test:reactive-rpc": "node -r ts-node/register/transpile-only src/reactive-rpc/__tests__/e2e/run.ts",
99-
"test:reactive-rpc:jest": "TEST_E2E=1 jest --maxWorkers 1 --no-cache src/reactive-rpc/__tests__/e2e/",
10096
"demo:json-patch": "ts-node src/json-patch/__demos__/json-patch.ts",
10197
"demo:json-pointer": "ts-node src/json-pointer/__demos__/json-pointer.ts",
102-
"demo:reactive-rpc:server": "ts-node src/reactive-rpc/__demos__/server.ts",
10398
"coverage": "yarn test --collectCoverage",
10499
"typedoc": "typedoc",
105100
"build:pages": "rimraf gh-pages && mkdir -p gh-pages && cp -r typedocs/* gh-pages && cp -r coverage gh-pages/coverage",
@@ -136,18 +131,14 @@
136131
"@types/benchmark": "^2.1.2",
137132
"@types/jest": "^29.5.12",
138133
"@types/quill": "^2.0.14",
139-
"@types/react": "^18.2.74",
140-
"@types/react-dom": "^18.2.24",
141134
"ajv": "^8.11.0",
142135
"app-root-path": "^3.1.0",
143136
"axios": "^1.3.5",
144137
"benchmark": "^2.1.4",
145138
"concurrently": "^8.0.1",
146139
"diamond-types-node": "1.0.2",
147140
"editing-traces": "https://github.com/streamich/editing-traces#6494020428530a6e382378b98d1d7e31334e2d7b",
148-
"eventsource": "^2.0.2",
149141
"fast-json-patch": "^3.0.0-1",
150-
"find-my-way": "^7.6.0",
151142
"fork-ts-checker-webpack-plugin": "^8.0.0",
152143
"gh-pages": "^5.0.0",
153144
"html-webpack-plugin": "^5.5.1",
@@ -158,20 +149,15 @@
158149
"json-crdt-traces": "https://github.com/streamich/json-crdt-traces#ec825401dc05cbb74b9e0b3c4d6527399f54d54d",
159150
"json-logic-js": "^2.0.1",
160151
"loro-crdt": "^0.4.1",
161-
"memfs": "^4.8.1",
162152
"nodemon": "^3.0.0",
163153
"ot-text": "^1.0.2",
164154
"ot-text-unicode": "^4.0.0",
165155
"p4-css": "^1.5.1",
166156
"prettier": "^3.2.5",
167157
"pretty-quick": "^3.1.3",
168158
"quill-delta": "^5.0.0",
169-
"react": "^18.2.0",
170-
"react-dom": "^18.2.0",
171-
"redis-parser": "^3.0.0",
172159
"rimraf": "^5.0.0",
173160
"rope.js": "0.1.0",
174-
"rxjs": "^7.5.5",
175161
"sorted-btree": "^1.8.1",
176162
"tinybench": "^2.4.0",
177163
"ts-jest": "^29.1.2",
@@ -182,12 +168,9 @@
182168
"tslint-config-common": "^1.6.2",
183169
"typedoc": "^0.25.13",
184170
"typescript": "^5.4.4",
185-
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.23.0",
186171
"webpack": "^5.91.0",
187172
"webpack-cli": "^5.1.4",
188173
"webpack-dev-server": "^5.0.4",
189-
"websocket": "^1.0.34",
190-
"ws": "^8.16.0",
191174
"yjs": "13.6.9",
192175
"ywasm": "0.16.10"
193176
},
@@ -235,7 +218,6 @@
235218
"json-expression",
236219
"json-hash",
237220
"json-ot",
238-
"json-patch-multicore",
239221
"json-patch-ot",
240222
"json-patch",
241223
"json-pointer",
@@ -246,7 +228,6 @@
246228
"json-type",
247229
"json-type-value",
248230
"json-walk",
249-
"reactive-rpc",
250231
"util"
251232
]
252233
}

src/__tests__/README.md

-5
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,3 @@ yarn test:cli:pointer
5656
yarn test:cli:patch
5757
yarn test:cli:pack
5858
```
59-
60-
### Reactive-RPC
61-
62-
`/src/__tests__/reactive-rcp/` folder contains E2E tests for Reactive-RPC server
63-
and its clients. See [README](./reactive-rpc/README.md) for more info.

src/json-cli/jj.ts

-20
This file was deleted.

src/json-cli/routes/crdt.ts

-89
This file was deleted.

src/json-cli/routes/patch.ts

-40
This file was deleted.

src/json-cli/routes/util.ts

-40
This file was deleted.

0 commit comments

Comments
 (0)