Skip to content

Commit

Permalink
sync-interop: import from @ndn/psync and @ndn/svs
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Feb 6, 2024
1 parent 87f9c28 commit 6077d95
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion integ/browser-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@types/webpack": "^5.28.5",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"html-webpack-plugin": "^5.6.0",
"puppeteer": "^21.10.0",
"puppeteer": "^22.0.0",
"ts-loader": "^9.5.1",
"tslib": "^2.6.2",
"type-fest": "^4.10.2",
Expand Down
2 changes: 1 addition & 1 deletion integ/sync-interop/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `@ndn/sync` Interoperability Test
# `@ndn/psync` and `@ndn/svs` Interoperability Test

## PSync

Expand Down
3 changes: 2 additions & 1 deletion integ/sync-interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"@ndn/keychain": "workspace:*",
"@ndn/naming-convention2": "workspace:*",
"@ndn/packet": "workspace:*",
"@ndn/psync": "workspace:*",
"@ndn/repo": "workspace:*",
"@ndn/sync": "workspace:*",
"@ndn/svs": "workspace:*",
"@ndn/util": "workspace:*",
"@types/memdown": "^3.0.5",
"memdown": "^6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion integ/sync-interop/psync-full.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exitClosers, openUplinks } from "@ndn/cli-common";
import { Name } from "@ndn/packet";
import { makePSyncCompatParam, PSyncFull, PSyncZlib } from "@ndn/sync";
import { makePSyncCompatParam, PSyncFull, PSyncZlib } from "@ndn/psync";
import { console } from "@ndn/util";

const syncPrefix = new Name("/psync-interop");
Expand Down
2 changes: 1 addition & 1 deletion integ/sync-interop/psync-partial-publisher.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exitClosers, openUplinks } from "@ndn/cli-common";
import { Name } from "@ndn/packet";
import { makePSyncCompatParam, PSyncPartialPublisher, PSyncZlib, type SyncNode } from "@ndn/sync";
import { makePSyncCompatParam, PSyncPartialPublisher, PSyncZlib, type SyncNode } from "@ndn/psync";
import { console } from "@ndn/util";

const syncPrefix = new Name("/psync-interop");
Expand Down
2 changes: 1 addition & 1 deletion integ/sync-interop/psync-partial-subscriber.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exitClosers, openUplinks } from "@ndn/cli-common";
import { Name } from "@ndn/packet";
import { makePSyncCompatParam, PSyncPartialSubscriber, PSyncZlib, type Subscription } from "@ndn/sync";
import { makePSyncCompatParam, PSyncPartialSubscriber, PSyncZlib, type Subscription } from "@ndn/psync";
import { console } from "@ndn/util";

const syncPrefix = new Name("/psync-interop");
Expand Down
2 changes: 1 addition & 1 deletion integ/sync-interop/svs-common.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { exitClosers, openUplinks } from "@ndn/cli-common";
import { createSigner, createVerifier, HMAC } from "@ndn/keychain";
import { Name } from "@ndn/packet";
import { SvSync } from "@ndn/sync";
import { SvSync } from "@ndn/svs";

export const syncPrefix = new Name("/ndn/svs");
export const myID = new Name(`/${process.pid}-${Date.now()}`);
Expand Down
2 changes: 1 addition & 1 deletion integ/sync-interop/svsps-publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { exitClosers } from "@ndn/cli-common";
import { Timestamp } from "@ndn/naming-convention2";
import { digestSigning, Name } from "@ndn/packet";
import { DataStore } from "@ndn/repo";
import { SvPublisher } from "@ndn/sync";
import { SvPublisher } from "@ndn/svs";
import { console, crypto, toHex, toUtf8 } from "@ndn/util";
import memdown from "memdown";

Expand Down
2 changes: 1 addition & 1 deletion integ/sync-interop/svsps-subscriber.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exitClosers } from "@ndn/cli-common";
import { digestSigning, Name } from "@ndn/packet";
import { SvSubscriber } from "@ndn/sync";
import { SvSubscriber } from "@ndn/svs";
import { console, fromUtf8 } from "@ndn/util";

import { openSvSync } from "./svs-common";
Expand Down
2 changes: 1 addition & 1 deletion integ/sync-interop/syncps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exitClosers, openUplinks } from "@ndn/cli-common";
import { Data, Name } from "@ndn/packet";
import { makeSyncpsCompatParam, SyncpsPubsub } from "@ndn/sync";
import { makeSyncpsCompatParam, SyncpsPubsub } from "@ndn/psync";
import { console } from "@ndn/util";

const syncPrefix = new Name("/syncps-interop");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^20.11.16",
"@types/wtfnode": "^0.7.3",
"@typescript/lib-dom": "npm:@types/[email protected].137",
"@typescript/lib-dom": "npm:@types/[email protected].138",
"@vitest/coverage-v8": "^1.2.2",
"@yoursunny/xo-config": "0.56.2",
"codedown": "^3.1.0",
Expand Down
4 changes: 2 additions & 2 deletions pkg/endpoint/src/producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export interface ProducerOptions {
*
* @remarks
* If all nexthops of a FIB entry are set to non-capture, FIB lookup may continue onto nexthops
* on FIB entries with shorter prefixes. One use case is in `@ndn/sync` package, where both local
* and remote sync participants want to receive each other's Interests.
* on FIB entries with shorter prefixes. One use case is in dataset synchronization protocols,
* where both local and remote sync participants want to receive each other's Interests.
*/
routeCapture?: boolean;

Expand Down
2 changes: 1 addition & 1 deletion pkg/fileserver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@ndn/segmented-object": "workspace:*",
"@ndn/tlv": "workspace:*",
"@ndn/util": "workspace:*",
"mnemonist": "^0.39.7",
"mnemonist": "^0.39.8",
"obliterator": "^2.0.4",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2"
Expand Down
2 changes: 1 addition & 1 deletion pkg/fw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@ndn/util": "workspace:*",
"@types/retry": "^0.12.5",
"hirestime": "^7.0.3",
"mnemonist": "^0.39.7",
"mnemonist": "^0.39.8",
"retry": "^0.13.1",
"streaming-iterables": "^8.0.1",
"tslib": "^2.6.2",
Expand Down
2 changes: 1 addition & 1 deletion pkg/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@yoursunny/asn1": "0.0.20200718",
"@yoursunny/webcrypto-ed25519": "0.0.20230624",
"idb-keyval": "^6.2.1",
"mnemonist": "^0.39.7",
"mnemonist": "^0.39.8",
"throat": "^6.0.2",
"tslib": "^2.6.2",
"type-fest": "^4.10.2"
Expand Down
2 changes: 1 addition & 1 deletion pkg/nac/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@ndn/tlv": "workspace:*",
"@ndn/util": "workspace:*",
"@yoursunny/asn1": "0.0.20200718",
"mnemonist": "^0.39.7",
"mnemonist": "^0.39.8",
"tslib": "^2.6.2",
"type-fest": "^4.10.2"
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/packet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@ndn/tlv": "workspace:*",
"@ndn/util": "workspace:*",
"buffer-compare": "^1.1.1",
"mnemonist": "^0.39.7",
"mnemonist": "^0.39.8",
"tslib": "^2.6.2",
"type-fest": "^4.10.2"
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/psync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@ndn/util": "workspace:*",
"@yoursunny/psync-bloom": "github:yoursunny/PSyncBloom-wasm#build",
"applymixins": "^1.1.0",
"mnemonist": "^0.39.7",
"mnemonist": "^0.39.8",
"murmurhash3js-revisited": "^3.0.0",
"obliterator": "^2.0.4",
"p-defer": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion pkg/segmented-object/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@ndn/util": "workspace:*",
"event-iterator": "^2.0.0",
"hirestime": "^7.0.3",
"mnemonist": "^0.39.7",
"mnemonist": "^0.39.8",
"p-defer": "^4.0.0",
"p-event": "^6.0.0",
"p-lazy": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion pkg/svs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"@ndn/l3face": "workspace:*",
"@ndn/repo": "workspace:*",
"memdown": "^6.1.1",
"mnemonist": "^0.39.7"
"mnemonist": "^0.39.8"
}
}
2 changes: 1 addition & 1 deletion pkg/tlv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@ndn/util": "workspace:*",
"mnemonist": "^0.39.7",
"mnemonist": "^0.39.8",
"tslib": "^2.6.2",
"type-fest": "^4.10.2"
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/trust-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@ndn/naming-convention2": "workspace:*",
"@ndn/packet": "workspace:*",
"@ndn/util": "workspace:*",
"mnemonist": "^0.39.7",
"mnemonist": "^0.39.8",
"tslib": "^2.6.2",
"type-fest": "^4.10.2"
},
Expand Down

0 comments on commit 6077d95

Please sign in to comment.