Skip to content

Commit 2a04eca

Browse files
authored
Merge pull request #712 from streamich/json-pointer
Switch to using @jsonjoy.com/json-pointer library
2 parents 3399e36 + d26928a commit 2a04eca

File tree

111 files changed

+91
-1184
lines changed

Some content is hidden

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

111 files changed

+91
-1184
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
- run: yarn test:cli:patch
4444
- run: yarn test:cli:pack
4545
- run: yarn demo:json-patch
46-
- run: yarn demo:json-pointer
4746
typedoc:
4847
runs-on: ubuntu-latest
4948
strategy:

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
- run: yarn test:cli:patch
2828
- run: yarn test:cli:pack
2929
- run: yarn demo:json-patch
30-
- run: yarn demo:json-pointer
3130
- name: Semantic Release
3231
uses: cycjimmy/semantic-release-action@v4
3332
env:

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,13 @@
8787
"build": "yarn build:es2020",
8888
"jest": "jest",
8989
"test": "jest --maxWorkers 7",
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",
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",
9191
"test:ci": "yarn jest --maxWorkers 3 --no-cache",
9292
"test:cli": "yarn test:cli:pointer && yarn test:cli:patch && yarn test:cli:pack",
9393
"test:cli:pointer": "./bin/json-pointer-test.js ./bin/json-pointer.js",
9494
"test:cli:patch": "./bin/json-patch-test.js ./bin/json-patch.js",
9595
"test:cli:pack": "./bin/json-pack-test.js ./bin/json-pack.js",
9696
"demo:json-patch": "npx ts-node src/json-patch/__demos__/json-patch.ts",
97-
"demo:json-pointer": "npx ts-node src/json-pointer/__demos__/json-pointer.ts",
9897
"bench:json-crdt:traces:crdt-libs": "cd src/json-crdt/__bench__ && yarn && yarn bench:traces:crdt-libs",
9998
"bench:json-crdt:traces:non-crdt-libs": "cd src/json-crdt/__bench__ && yarn && yarn bench:traces:non-crdt-libs",
10099
"bench:json-crdt:concurrent-traces": "cd src/json-crdt/__bench__ && yarn && yarn bench:concurrent-traces",
@@ -117,6 +116,7 @@
117116
"peerDependencies": {
118117
"@jsonjoy.com/base64": "^1.1.2",
119118
"@jsonjoy.com/json-pack": "^1.0.4",
119+
"@jsonjoy.com/json-pointer": "^1.0.0",
120120
"@jsonjoy.com/util": "^1.3.0",
121121
"rxjs": "7",
122122
"tslib": "2"
@@ -136,6 +136,7 @@
136136
"devDependencies": {
137137
"@jsonjoy.com/base64": "^1.1.2",
138138
"@jsonjoy.com/json-pack": "^1.0.4",
139+
"@jsonjoy.com/json-pointer": "^1.0.0",
139140
"@jsonjoy.com/util": "^1.3.0",
140141
"@types/benchmark": "^2.1.5",
141142
"@types/jest": "^29.5.12",
@@ -197,7 +198,6 @@
197198
"json-ot",
198199
"json-patch-ot",
199200
"json-patch",
200-
"json-pointer",
201201
"json-schema",
202202
"json-size",
203203
"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;

0 commit comments

Comments
 (0)