Skip to content

Commit 2c03ad1

Browse files
committed
rename: @cocalc/nats --> @cocalc/conat
1 parent db75469 commit 2c03ad1

File tree

168 files changed

+425
-450
lines changed

Some content is hidden

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

168 files changed

+425
-450
lines changed

src/compute/compute/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@cocalc/backend": "workspace:*",
3333
"@cocalc/compute": "link:",
3434
"@cocalc/jupyter": "workspace:*",
35-
"@cocalc/nats": "workspace:*",
35+
"@cocalc/conat": "workspace:*",
3636
"@cocalc/project": "workspace:*",
3737
"@cocalc/sync": "workspace:*",
3838
"@cocalc/sync-client": "workspace:*",

src/compute/conat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../packages/conat

src/compute/nats

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

src/compute/pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/compute/pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ packages:
33
- backend
44
- comm
55
- jupyter
6-
- nats
6+
- conat
77
- project
88
- sync
99
- sync-fs

src/packages/backend/nats/conat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
connect as connect0,
44
Client,
55
type ConnectOptions,
6-
} from "@cocalc/nats/core/client";
6+
} from "@cocalc/conat/core/client";
77

88
export type { Client };
99

src/packages/backend/nats/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { readFile } from "node:fs/promises";
99
import getLogger from "@cocalc/backend/logger";
1010
import { getEnv } from "./env";
1111
export { getEnv };
12-
import { inboxPrefix } from "@cocalc/nats/names";
13-
import { setNatsClient } from "@cocalc/nats/client";
12+
import { inboxPrefix } from "@cocalc/conat/names";
13+
import { setNatsClient } from "@cocalc/conat/client";
1414
import getConnection, {
1515
setConnectionOptions,
1616
} from "@cocalc/backend/nats/persistent-connection";

src/packages/backend/nats/persist.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "./index";
22
import betterSqlite3 from "better-sqlite3";
3-
import { initContext } from "@cocalc/nats/persist/context";
3+
import { initContext } from "@cocalc/conat/persist/context";
44
import { compress, decompress } from "zstd-napi";
55
import { syncFiles } from "@cocalc/backend/data";
66
import ensureContainingDirectoryExists from "@cocalc/backend/misc/ensure-containing-directory-exists";
@@ -13,9 +13,9 @@ initContext({
1313
ensureContainingDirectoryExists,
1414
});
1515

16-
export { pstream } from "@cocalc/nats/persist/storage";
16+
export { pstream } from "@cocalc/conat/persist/storage";
1717
export {
1818
init as initServer,
1919
terminate as terminateServer,
20-
} from "@cocalc/nats/persist/server";
21-
export { getAll, set, get } from "@cocalc/nats/persist/client";
20+
} from "@cocalc/conat/persist/server";
21+
export { getAll, set, get } from "@cocalc/conat/persist/client";

src/packages/backend/nats/persistent-connection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ the connection object itself, so it's possible to do this at all! :-)
2828
import { getLogger } from "@cocalc/backend/logger";
2929
import { delay } from "awaiting";
3030
import { reuseInFlight } from "@cocalc/util/reuse-in-flight";
31-
import type { NatsConnection } from "@cocalc/nats/types";
31+
import type { NatsConnection } from "@cocalc/conat/types";
3232
import { connect as connectViaTCP } from "nats";
3333
import { connect as connectViaWebsocket } from "nats.ws";
3434
import { CONNECT_OPTIONS } from "@cocalc/util/nats";
@@ -59,7 +59,7 @@ const getConnection = reuseInFlight(async (): Promise<NatsConnection> => {
5959
export default getConnection;
6060

6161
// NOTE: this monitorConnection also has to work properly with the
62-
// waitUntilConnected function from @cocalc/nats/util.
62+
// waitUntilConnected function from @cocalc/conat/util.
6363

6464
// The NATS docs ensure us that "the client will always attempt to
6565
// reconnect if the connection is disrupted for a reason other than

src/packages/backend/nats/sync.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { stream as createStream, type Stream } from "@cocalc/nats/sync/stream";
1+
import { stream as createStream, type Stream } from "@cocalc/conat/sync/stream";
22
import {
33
dstream as createDstream,
44
type DStream,
5-
} from "@cocalc/nats/sync/dstream";
6-
import { kv as createKV, type KV } from "@cocalc/nats/sync/kv";
7-
import { dkv as createDKV, type DKV } from "@cocalc/nats/sync/dkv";
8-
import { dko as createDKO, type DKO } from "@cocalc/nats/sync/dko";
9-
import { akv as createAKV, type AKV } from "@cocalc/nats/sync/akv";
10-
import { createOpenFiles, type OpenFiles } from "@cocalc/nats/sync/open-files";
11-
export { inventory } from "@cocalc/nats/sync/inventory";
5+
} from "@cocalc/conat/sync/dstream";
6+
import { kv as createKV, type KV } from "@cocalc/conat/sync/kv";
7+
import { dkv as createDKV, type DKV } from "@cocalc/conat/sync/dkv";
8+
import { dko as createDKO, type DKO } from "@cocalc/conat/sync/dko";
9+
import { akv as createAKV, type AKV } from "@cocalc/conat/sync/akv";
10+
import { createOpenFiles, type OpenFiles } from "@cocalc/conat/sync/open-files";
11+
export { inventory } from "@cocalc/conat/sync/inventory";
1212
import "./index";
1313

1414
export type { Stream, DStream, KV, DKV, DKO, AKV };

0 commit comments

Comments
 (0)