Skip to content

Commit 56bb18c

Browse files
committed
fix: 🐛 switch to using @jsonjoy.com/json-pointer library
1 parent 3399e36 commit 56bb18c

File tree

109 files changed

+90
-1180
lines changed

Some content is hidden

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

109 files changed

+90
-1180
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
"peerDependencies": {
118118
"@jsonjoy.com/base64": "^1.1.2",
119119
"@jsonjoy.com/json-pack": "^1.0.4",
120+
"@jsonjoy.com/json-pointer": "^1.0.0",
120121
"@jsonjoy.com/util": "^1.3.0",
121122
"rxjs": "7",
122123
"tslib": "2"
@@ -136,6 +137,7 @@
136137
"devDependencies": {
137138
"@jsonjoy.com/base64": "^1.1.2",
138139
"@jsonjoy.com/json-pack": "^1.0.4",
140+
"@jsonjoy.com/json-pointer": "^1.0.0",
139141
"@jsonjoy.com/util": "^1.3.0",
140142
"@types/benchmark": "^2.1.5",
141143
"@types/jest": "^29.5.12",
@@ -197,7 +199,6 @@
197199
"json-ot",
198200
"json-patch-ot",
199201
"json-patch",
200-
"json-pointer",
201202
"json-schema",
202203
"json-size",
203204
"json-stable",

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ export type * from './json-crdt-patch';
1313
export type * from './json-crdt-extensions';
1414
export type * from './json-expression/types';
1515
export type * from './json-patch/types';
16-
export type * from './json-pointer/types';
1716
export type * from './json-schema/types';

src/json-cli/json-pointer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* tslint:disable no-string-throw */
22

33
import {readFileSync} from 'fs';
4-
import {findByPointer} from '../json-pointer';
4+
import {findByPointer} from '@jsonjoy.com/json-pointer';
55

66
try {
77
const buf = readFileSync(0);

src/json-crdt-extensions/peritext/block/Block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {MarkerOverlayPoint} from '../overlay/MarkerOverlayPoint';
44
import {OverlayPoint} from '../overlay/OverlayPoint';
55
import {UndefEndIter, type UndefIterator} from '../../../util/iterator';
66
import {Inline} from './Inline';
7-
import type {Path} from '../../../json-pointer';
7+
import type {Path} from '@jsonjoy.com/json-pointer';
88
import type {Printable} from 'tree-dump';
99
import type {Peritext} from '../Peritext';
1010
import type {Stateful} from '../types';

src/json-crdt-extensions/peritext/block/Blocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {MarkerOverlayPoint} from '../overlay/MarkerOverlayPoint';
33
import {commonLength} from '../util/commonLength';
44
import {printTree} from 'tree-dump/lib/printTree';
55
import {LeafBlock} from './LeafBlock';
6-
import type {Path} from '../../../json-pointer';
6+
import type {Path} from '@jsonjoy.com/json-pointer';
77
import type {Stateful} from '../types';
88
import type {Printable} from 'tree-dump/lib/types';
99
import type {Peritext} from '../Peritext';

src/json-crdt-extensions/peritext/block/Inline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {updateNum} from '../../../json-hash';
88
import {MarkerOverlayPoint} from '../overlay/MarkerOverlayPoint';
99
import type {AbstractRga} from '../../../json-crdt/nodes/rga';
1010
import type {Printable} from 'tree-dump/lib/types';
11-
import type {PathStep} from '../../../json-pointer';
11+
import type {PathStep} from '@jsonjoy.com/json-pointer';
1212
import type {Peritext} from '../Peritext';
1313

1414
export const enum InlineAttrPos {

src/json-crdt-extensions/peritext/block/LeafBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {printTree} from 'tree-dump/lib/printTree';
22
import {Block} from './Block';
3-
import type {Path} from '../../../json-pointer';
3+
import type {Path} from '@jsonjoy.com/json-pointer';
44

55
export interface IBlock<Attr = unknown> {
66
readonly path: Path;

src/json-crdt-extensions/peritext/util/commonLength.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {Path} from '../../../json-pointer';
1+
import type {Path} from '@jsonjoy.com/json-pointer';
22

33
export const commonLength = (a: Path, b: Path): number => {
44
let i = 0;

src/json-crdt-extensions/quill-delta/QuillDeltaApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {QuillConst} from './constants';
2-
import {PathStep} from '../../json-pointer';
2+
import {PathStep} from '@jsonjoy.com/json-pointer';
33
import {QuillDeltaNode} from './QuillDeltaNode';
44
import {NodeApi} from '../../json-crdt/model/api/nodes';
55
import {konst} from '../../json-crdt-patch/builder/Konst';

src/json-crdt-extensions/quill-delta/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {PersistedSlice} from '../peritext/slice/PersistedSlice';
33
import {SliceBehavior} from '../peritext/slice/constants';
44
import type {OverlayPoint} from '../peritext/overlay/OverlayPoint';
55
import type {QuillDeltaAttributes} from './types';
6-
import type {PathStep} from '../../json-pointer';
6+
import type {PathStep} from '@jsonjoy.com/json-pointer';
77

88
export const getAttributes = (overlayPoint: OverlayPoint): QuillDeltaAttributes | undefined => {
99
const layers = overlayPoint.layers;

0 commit comments

Comments
 (0)