Skip to content

Commit 2389ca3

Browse files
authored
Merge pull request #570 from streamich/bump-json-pack
Bump json pack
2 parents c17dabe + 919e91d commit 2389ca3

File tree

133 files changed

+185
-652
lines changed

Some content is hidden

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

133 files changed

+185
-652
lines changed

package.json

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@
122122
},
123123
"dependencies": {
124124
"@jsonjoy.com/base64": "^1.1.1",
125-
"@jsonjoy.com/json-pack": "^1.0.1",
125+
"@jsonjoy.com/json-pack": "^1.0.2",
126+
"@jsonjoy.com/util": "^1.0.0",
126127
"arg": "^5.0.2",
127128
"hyperdyperid": "^1.2.0",
128129
"multibase": "^4.0.6",
@@ -132,9 +133,6 @@
132133
"@automerge/automerge": "2.1.7",
133134
"@collabs/collabs": "0.13.4",
134135
"@exodus/schemasafe": "^1.0.0-rc.6",
135-
"@msgpack/msgpack": "^3.0.0-beta2",
136-
"@redis/client": "^1.5.12",
137-
"@shelacek/ubjson": "^1.1.1",
138136
"@types/benchmark": "^2.1.2",
139137
"@types/jest": "^29.5.12",
140138
"@types/quill": "^2.0.14",
@@ -143,52 +141,28 @@
143141
"ajv": "^8.11.0",
144142
"app-root-path": "^3.1.0",
145143
"axios": "^1.3.5",
146-
"base64-js": "^1.5.1",
147144
"benchmark": "^2.1.4",
148-
"bson": "^5.4.0",
149-
"cbor": "^8.1.0",
150-
"cbor-js": "^0.1.0",
151-
"cbor-sync": "^1.0.4",
152-
"cbor-x": "^1.3.0",
153-
"cborg": "^2.0.3",
154145
"concurrently": "^8.0.1",
155146
"diamond-types-node": "1.0.2",
156147
"editing-traces": "https://github.com/streamich/editing-traces#6494020428530a6e382378b98d1d7e31334e2d7b",
157148
"eventsource": "^2.0.2",
158-
"fast-deep-equal": "^3.1.3",
159-
"fast-equals": "^5.0.1",
160149
"fast-json-patch": "^3.0.0-1",
161-
"fast-safe-stringify": "^2.1.1",
162-
"fast-stable-stringify": "^1.0.0",
163-
"fastest-stable-stringify": "^2.0.2",
164150
"find-my-way": "^7.6.0",
165151
"fork-ts-checker-webpack-plugin": "^8.0.0",
166152
"gh-pages": "^5.0.0",
167153
"html-webpack-plugin": "^5.5.1",
168154
"husky": "^8.0.3",
169-
"ion-js": "^4.3.0",
170155
"isomorphic-ws": "^5.0.0",
171156
"jest": "^29.7.0",
172-
"js-base64": "^3.7.2",
173157
"js-sdsl": "^4.4.0",
174-
"jsbi": "^4.3.0",
175158
"json-crdt-traces": "https://github.com/streamich/json-crdt-traces#ec825401dc05cbb74b9e0b3c4d6527399f54d54d",
176159
"json-logic-js": "^2.0.1",
177-
"json-pack-napi": "^0.0.2",
178-
"load-script": "^2.0.0",
179-
"lodash": "^4.17.21",
180160
"loro-crdt": "^0.4.1",
181-
"markdown-it": "^13.0.1",
182161
"memfs": "^4.8.1",
183-
"messagepack": "^1.1.12",
184-
"msgpack-lite": "^0.1.26",
185-
"msgpack5": "^6.0.2",
186-
"msgpackr": "^1.6.0",
187162
"nodemon": "^3.0.0",
188163
"ot-text": "^1.0.2",
189164
"ot-text-unicode": "^4.0.0",
190165
"p4-css": "^1.5.1",
191-
"pako": "^2.0.4",
192166
"prettier": "^3.2.5",
193167
"pretty-quick": "^3.1.3",
194168
"quill-delta": "^5.0.0",
@@ -198,8 +172,6 @@
198172
"rimraf": "^5.0.0",
199173
"rope.js": "0.1.0",
200174
"rxjs": "^7.5.5",
201-
"safe-stable-stringify": "^2.3.1",
202-
"secure-json-parse": "^2.4.0",
203175
"sorted-btree": "^1.8.1",
204176
"tinybench": "^2.4.0",
205177
"ts-jest": "^29.1.2",
@@ -254,24 +226,19 @@
254226
"scopes": [
255227
"",
256228
"demo",
257-
"json-binary",
258-
"json-brand",
259229
"json-cli",
260230
"json-clone",
261231
"json-crdt-patch",
262232
"json-crdt-extensions",
263233
"json-crdt-peritext-ui",
264234
"json-crdt",
265-
"json-equal",
266235
"json-expression",
267236
"json-hash",
268237
"json-ot",
269-
"json-pack",
270238
"json-patch-multicore",
271239
"json-patch-ot",
272240
"json-patch",
273241
"json-pointer",
274-
"json-random",
275242
"json-schema",
276243
"json-size",
277244
"json-stable",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
export type * from '@jsonjoy.com/json-pack/lib/json-binary/types';
10-
export type * from '@jsonjoy.com/json-pack/lib/json-brand/types';
10+
export type * from '@jsonjoy.com/util/lib/json-brand/types';
1111
export type * from './json-crdt';
1212
export type * from './json-crdt-patch';
1313
export type * from './json-crdt-extensions';

src/json-brand/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/json-clone/cloneBinary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isUint8Array} from '@jsonjoy.com/json-pack/lib/util/buffers/isUint8Array';
1+
import {isUint8Array} from '@jsonjoy.com/util/lib/buffers/isUint8Array';
22

33
const {isArray} = Array;
44
const objectKeys = Object.keys;

src/json-crdt-patch/PatchBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
NopOp,
1717
} from './operations';
1818
import {IClock, ITimestampStruct, ITimespanStruct, ts, Timestamp} from './clock';
19-
import {isUint8Array} from '@jsonjoy.com/json-pack/lib/util/buffers/isUint8Array';
19+
import {isUint8Array} from '@jsonjoy.com/util/lib/buffers/isUint8Array';
2020
import {Patch} from './Patch';
2121
import {ORIGIN} from './constants';
2222
import {VectorDelayedValue} from './builder/Tuple';

src/json-crdt-patch/codec/__tests__/PatchFuzzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {RandomJson} from '../../../json-random';
2-
import {Fuzzer} from '../../../util/Fuzzer';
2+
import {Fuzzer} from '@jsonjoy.com/util/lib/Fuzzer';
33
import {interval, ITimestampStruct, Timespan, ClockVector, ServerClockVector, ts} from '../../clock';
44
import {SESSION} from '../../constants';
55
import {Patch} from '../../Patch';

src/json-crdt-patch/util/binary/CrdtReader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Reader} from '@jsonjoy.com/json-pack/lib/util/buffers/Reader';
1+
import {Reader} from '@jsonjoy.com/util/lib/buffers/Reader';
22

33
/** @todo Rename file name. */
44
export class CrdtReader extends Reader {

src/json-crdt-patch/util/binary/CrdtWriter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Writer} from '@jsonjoy.com/json-pack/lib/util/buffers/Writer';
1+
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';
22

33
export class CrdtWriter extends Writer {
44
/**

src/json-crdt/__bench__/util/fuzzer-traces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as fs from 'fs';
33
import {Patch} from '../../../json-crdt-patch';
44
import {CborDecoder} from '@jsonjoy.com/json-pack/lib/cbor/CborDecoder';
55
import {Model} from '../../model';
6-
import {bufferToUint8Array} from '@jsonjoy.com/json-pack/lib/util/buffers/bufferToUint8Array';
6+
import {bufferToUint8Array} from '@jsonjoy.com/util/lib/buffers/bufferToUint8Array';
77

88
export const loadFuzzerTrace = (traceName: string): [batch: Patch[], model: Model] => {
99
const root = path.resolve(__dirname, '..', '..', '..', '..');

src/json-crdt/__tests__/fuzzer/Picker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {DelOp, InsObjOp, InsStrOp, InsBinOp, InsArrOp} from '../../../json-crdt-
22
import {RandomJson} from '../../../json-random';
33
import {JsonNode, ObjNode, ArrNode, BinNode, StrNode} from '../../nodes';
44
import {Model} from '../../model/Model';
5-
import {Fuzzer} from '../../../util/Fuzzer';
5+
import {Fuzzer} from '@jsonjoy.com/util/lib/Fuzzer';
66
import {FuzzerOptions} from './types';
77

88
type StringOp = typeof InsStrOp | typeof DelOp;

0 commit comments

Comments
 (0)