@rocicorp/zero 0.0.2024100501 → 0.0.2024100502

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/out/replicache/src/btree/node.d.ts +1 -1
  2. package/out/replicache/src/config.d.ts +1 -1
  3. package/out/replicache/src/connection-loop.d.ts +1 -1
  4. package/out/replicache/src/cookies.d.ts +1 -1
  5. package/out/replicache/src/dag/gc.d.ts +1 -1
  6. package/out/replicache/src/dag/lazy-store.d.ts +1 -1
  7. package/out/replicache/src/db/scan.d.ts +1 -1
  8. package/out/replicache/src/frozen-json.d.ts +1 -1
  9. package/out/replicache/src/hash.d.ts +1 -1
  10. package/out/replicache/src/index-defs.d.ts +1 -1
  11. package/out/replicache/src/kv/store.d.ts +1 -1
  12. package/out/replicache/src/kv/write-impl-base.d.ts +1 -1
  13. package/out/replicache/src/mod.d.ts +2 -2
  14. package/out/replicache/src/mutation-recovery.d.ts +1 -1
  15. package/out/replicache/src/patch-operation.d.ts +1 -1
  16. package/out/replicache/src/pending-mutations.d.ts +1 -1
  17. package/out/replicache/src/persist/client-groups.d.ts +1 -1
  18. package/out/replicache/src/persist/clients.d.ts +1 -1
  19. package/out/replicache/src/puller.d.ts +1 -1
  20. package/out/replicache/src/replicache-impl.d.ts +1 -1
  21. package/out/replicache/src/replicache.d.ts +1 -1
  22. package/out/replicache/src/scan-iterator.d.ts +1 -1
  23. package/out/replicache/src/sync/ids.d.ts +1 -1
  24. package/out/replicache/src/sync/pull.d.ts +1 -1
  25. package/out/replicache/src/sync/push.d.ts +1 -1
  26. package/out/replicache/src/transactions.d.ts +1 -1
  27. package/out/replicache/src/types.d.ts +1 -1
  28. package/out/zero/src/react.d.ts +1 -1
  29. package/out/zero/src/zero.d.ts +1 -1
  30. package/out/zero-client/src/client/context.d.ts +5 -5
  31. package/out/zero-client/src/client/crud.d.ts +6 -6
  32. package/out/zero-client/src/client/keys.d.ts +1 -1
  33. package/out/zero-client/src/client/metrics.d.ts +1 -1
  34. package/out/zero-client/src/client/options.d.ts +1 -1
  35. package/out/zero-client/src/client/query-manager.d.ts +1 -1
  36. package/out/zero-client/src/client/zero.d.ts +2 -2
  37. package/out/zero-client/src/mod.d.ts +6 -6
  38. package/out/zero-client/src/util/socket.d.ts +1 -1
  39. package/out/zero-protocol/src/ast.d.ts +2 -2
  40. package/out/zero-protocol/src/change-desired-queries.d.ts +3 -3
  41. package/out/zero-protocol/src/clients-patch.d.ts +1 -1
  42. package/out/zero-protocol/src/connect.d.ts +3 -3
  43. package/out/zero-protocol/src/delete-clients.d.ts +1 -1
  44. package/out/zero-protocol/src/down.d.ts +5 -5
  45. package/out/zero-protocol/src/entities-patch.d.ts +7 -7
  46. package/out/zero-protocol/src/entity.d.ts +1 -1
  47. package/out/zero-protocol/src/error.d.ts +1 -1
  48. package/out/zero-protocol/src/ping.d.ts +1 -1
  49. package/out/zero-protocol/src/poke.d.ts +9 -9
  50. package/out/zero-protocol/src/pong.d.ts +1 -1
  51. package/out/zero-protocol/src/pull.d.ts +1 -1
  52. package/out/zero-protocol/src/push.d.ts +26 -26
  53. package/out/zero-protocol/src/queries-patch.d.ts +4 -4
  54. package/out/zero-protocol/src/up.d.ts +7 -7
  55. package/out/zero-protocol/src/version.d.ts +1 -1
  56. package/out/zql/src/zql/builder/builder.d.ts +1 -1
  57. package/out/zql/src/zql/ivm/array-view.d.ts +1 -1
  58. package/out/zql/src/zql/ivm/memory-storage.d.ts +1 -1
  59. package/out/zql/src/zql/ivm/operator.d.ts +1 -1
  60. package/out/zql/src/zql/query/typed-view.d.ts +1 -1
  61. package/package.json +2 -4
@@ -1,4 +1,4 @@
1
- import { type ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import { type ReadonlyJSONValue } from '../../../shared/src/json.js';
2
2
  import type { IndexKey } from '../db/index.js';
3
3
  import * as FormatVersion from '../format-version-enum.js';
4
4
  import { type FrozenJSONValue, type FrozenTag } from '../frozen-json.js';
@@ -1,4 +1,4 @@
1
- import { isProd } from 'shared/src/config.js';
1
+ import { isProd } from '../../shared/src/config.js';
2
2
  export { isProd as skipBTreeNodeAsserts, isProd as skipCommitDataAsserts,
3
3
  /**
4
4
  * In debug mode we deeply freeze the values we read out of the IDB store and we
@@ -1,5 +1,5 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { DocumentVisibilityWatcher } from 'shared/src/document-visible.js';
2
+ import type { DocumentVisibilityWatcher } from '../../shared/src/document-visible.js';
3
3
  export declare const DEBOUNCE_DELAY_MS = 10;
4
4
  export declare const MIN_DELAY_MS = 30;
5
5
  export declare const MAX_DELAY_MS = 60000;
@@ -1,4 +1,4 @@
1
- import { type ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import { type ReadonlyJSONValue } from '../../shared/src/json.js';
2
2
  import type { FrozenJSONValue } from './frozen-json.js';
3
3
  /**
4
4
  * A cookie is a value that is used to determine the order of snapshots. It
@@ -1,4 +1,4 @@
1
- import type { MaybePromise } from 'shared/src/types.js';
1
+ import type { MaybePromise } from '../../../shared/src/types.js';
2
2
  import { type Hash } from '../hash.js';
3
3
  export type HeadChange = {
4
4
  new: Hash | undefined;
@@ -1,4 +1,4 @@
1
- import type { MaybePromise } from 'shared/src/types.js';
1
+ import type { MaybePromise } from '../../../shared/src/types.js';
2
2
  import type { Hash } from '../hash.js';
3
3
  import { Chunk, type ChunkHasher, type Refs } from './chunk.js';
4
4
  import { type HeadChange, type RefCountUpdatesDelegate } from './gc.js';
@@ -1,4 +1,4 @@
1
- import type { ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import type { ReadonlyJSONValue } from '../../../shared/src/json.js';
2
2
  export type ScanOptions = {
3
3
  prefix?: string | undefined;
4
4
  startSecondaryKey?: string | undefined;
@@ -1,4 +1,4 @@
1
- import type { ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import type { ReadonlyJSONValue } from '../../shared/src/json.js';
2
2
  import type { Cookie, FrozenCookie } from './cookies.js';
3
3
  declare const frozenJSONTag: unique symbol;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import * as valita from 'shared/src/valita.js';
1
+ import * as valita from '../../shared/src/valita.js';
2
2
  export declare const STRING_LENGTH = 22;
3
3
  declare const hashTag: unique symbol;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import * as valita from 'shared/src/valita.js';
1
+ import * as valita from '../../shared/src/valita.js';
2
2
  /**
3
3
  * The definition of a single index.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import type { ReadonlyJSONValue } from '../../../shared/src/json.js';
2
2
  /**
3
3
  * Store defines a transactional key/value store that Replicache stores all data
4
4
  * within.
@@ -1,4 +1,4 @@
1
- import type { ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import type { ReadonlyJSONValue } from '../../../shared/src/json.js';
2
2
  import { type FrozenJSONValue } from '../frozen-json.js';
3
3
  import type { Read } from './store.js';
4
4
  export declare const deleteSentinel: unique symbol;
@@ -1,7 +1,7 @@
1
1
  export { consoleLogSink } from '@rocicorp/logger';
2
2
  export type { LogLevel, LogSink } from '@rocicorp/logger';
3
- export type { JSONObject, JSONValue, ReadonlyJSONObject, ReadonlyJSONValue, } from 'shared/src/json.js';
4
- export type { MaybePromise } from 'shared/src/types.js';
3
+ export type { JSONObject, JSONValue, ReadonlyJSONObject, ReadonlyJSONValue, } from '../../shared/src/json.js';
4
+ export type { MaybePromise } from '../../shared/src/types.js';
5
5
  export type { Diff as ExperimentalDiff, DiffOperation as ExperimentalDiffOperation, DiffOperationAdd as ExperimentalDiffOperationAdd, DiffOperationChange as ExperimentalDiffOperationChange, DiffOperationDel as ExperimentalDiffOperationDel, IndexDiff as ExperimentalIndexDiff, NoIndexDiff as ExperimentalNoIndexDiff, } from './btree/node.js';
6
6
  export type { Cookie } from './cookies.js';
7
7
  export type { IndexKey } from './db/index.js';
@@ -1,5 +1,5 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { MaybePromise } from 'shared/src/types.js';
2
+ import type { MaybePromise } from '../../shared/src/types.js';
3
3
  import type { Store } from './dag/store.js';
4
4
  import type { HTTPRequestInfo } from './http-request-info.js';
5
5
  import type { CreateStore } from './kv/store.js';
@@ -1,4 +1,4 @@
1
- import { type ReadonlyJSONObject, type ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import { type ReadonlyJSONObject, type ReadonlyJSONValue } from '../../shared/src/json.js';
2
2
  export type PatchOperationInternal = {
3
3
  readonly op: 'put';
4
4
  readonly key: string;
@@ -1,4 +1,4 @@
1
- import type { ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import type { ReadonlyJSONValue } from '../../shared/src/json.js';
2
2
  import { type Read } from './dag/store.js';
3
3
  import type { ClientID } from './sync/ids.js';
4
4
  export type PendingMutation = {
@@ -1,4 +1,4 @@
1
- import * as valita from 'shared/src/valita.js';
1
+ import * as valita from '../../../shared/src/valita.js';
2
2
  import type { Read, Write } from '../dag/store.js';
3
3
  import { type Hash } from '../hash.js';
4
4
  import type { ClientGroupID } from '../sync/ids.js';
@@ -1,5 +1,5 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import * as valita from 'shared/src/valita.js';
2
+ import * as valita from '../../../shared/src/valita.js';
3
3
  import type { Read, Store, Write } from '../dag/store.js';
4
4
  import { Commit, type SnapshotMetaDD31 } from '../db/commit.js';
5
5
  import type { FormatVersion } from '../format-version-enum.js';
@@ -1,4 +1,4 @@
1
- import type { ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import type { ReadonlyJSONValue } from '../../shared/src/json.js';
2
2
  import type { Cookie } from './cookies.js';
3
3
  import type { ClientStateNotFoundResponse, VersionNotSupportedResponse } from './error-responses.js';
4
4
  import type { HTTPRequestInfo } from './http-request-info.js';
@@ -1,5 +1,5 @@
1
1
  import { LogContext } from '@rocicorp/logger';
2
- import type { MaybePromise } from 'shared/src/types.js';
2
+ import type { MaybePromise } from '../../shared/src/types.js';
3
3
  import { type Cookie } from './cookies.js';
4
4
  import { LazyStore } from './dag/lazy-store.js';
5
5
  import { type Store } from './dag/store.js';
@@ -1,5 +1,5 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { MaybePromise } from 'shared/src/types.js';
2
+ import type { MaybePromise } from '../../shared/src/types.js';
3
3
  import type { StoreProvider } from './kv/store.js';
4
4
  import type { PendingMutation } from './pending-mutations.js';
5
5
  import type { Puller } from './puller.js';
@@ -1,4 +1,4 @@
1
- import type { ReadonlyJSONValue } from 'shared/src/json.js';
1
+ import type { ReadonlyJSONValue } from '../../shared/src/json.js';
2
2
  import { type IndexKey } from './db/index.js';
3
3
  import type { IterableUnion } from './iterable-union.js';
4
4
  import { type KeyTypeForScanOptions, type ScanIndexOptions, type ScanOptions } from './scan-options.js';
@@ -1,4 +1,4 @@
1
- import * as valita from 'shared/src/valita.js';
1
+ import * as valita from '../../../shared/src/valita.js';
2
2
  /**
3
3
  * The ID describing a group of clients. All clients in the same group share a
4
4
  * persistent storage (IDB).
@@ -1,5 +1,5 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import { type ReadonlyJSONValue } from 'shared/src/json.js';
2
+ import { type ReadonlyJSONValue } from '../../../shared/src/json.js';
3
3
  import { type Cookie } from '../cookies.js';
4
4
  import type { Store } from '../dag/store.js';
5
5
  import { Commit, type LocalMeta, type LocalMetaSDD, type Meta } from '../db/commit.js';
@@ -1,5 +1,5 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { ReadonlyJSONValue } from 'shared/src/json.js';
2
+ import type { ReadonlyJSONValue } from '../../../shared/src/json.js';
3
3
  import type { Store } from '../dag/store.js';
4
4
  import { type Pusher, type PusherResult } from '../pusher.js';
5
5
  import { type ClientGroupID, type ClientID } from './ids.js';
@@ -1,5 +1,5 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { JSONValue, ReadonlyJSONValue } from 'shared/src/json.js';
2
+ import type { JSONValue, ReadonlyJSONValue } from '../../shared/src/json.js';
3
3
  import { type IndexKey } from './db/index.js';
4
4
  import type { Read } from './db/read.js';
5
5
  import type { Write } from './db/write.js';
@@ -1,4 +1,4 @@
1
- import type { MaybePromise } from 'shared/src/types.js';
1
+ import type { MaybePromise } from '../../shared/src/types.js';
2
2
  import type { Hash } from './hash.js';
3
3
  import type { ReadonlyJSONValue, WriteTransaction } from './mod.js';
4
4
  import type { PullResponseV1, PullResponseV1Internal } from './puller.js';
@@ -1,2 +1,2 @@
1
- export * from 'zero-react';
1
+ export * from '../../zero-react';
2
2
  //# sourceMappingURL=react.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from 'zero-client';
1
+ export * from '../../zero-client';
2
2
  //# sourceMappingURL=zero.d.ts.map
@@ -1,9 +1,9 @@
1
1
  import type { ExperimentalNoIndexDiff } from '../../../replicache/src/mod.js';
2
- import type { AST } from 'zql/src/zql/ast/ast.js';
3
- import type { Storage } from 'zql/src/zql/ivm/operator.js';
4
- import type { Source } from 'zql/src/zql/ivm/source.js';
5
- import type { CommitListener, QueryDelegate } from 'zql/src/zql/query/query-impl.js';
6
- import type { TableSchema } from 'zql/src/zql/query/schema.js';
2
+ import type { AST } from '../../../zql/src/zql/ast/ast.js';
3
+ import type { Storage } from '../../../zql/src/zql/ivm/operator.js';
4
+ import type { Source } from '../../../zql/src/zql/ivm/source.js';
5
+ import type { CommitListener, QueryDelegate } from '../../../zql/src/zql/query/query-impl.js';
6
+ import type { TableSchema } from '../../../zql/src/zql/query/schema.js';
7
7
  export type AddQuery = (ast: AST) => () => void;
8
8
  /**
9
9
  * ZeroContext glues together zql and Replicache. It listens to changes in
@@ -1,9 +1,9 @@
1
- import type { ReadonlyJSONObject } from 'shared/src/json.js';
2
- import type { MaybePromise } from 'shared/src/types.js';
3
- import type { EntityID } from 'zero-protocol/src/entity.js';
4
- import { type CRUDMutationArg, type CRUDOp, CRUD_MUTATION_NAME, type CreateOp, type DeleteOp, type SetOp, type UpdateOp } from 'zero-protocol/src/push.js';
5
- import type { Row } from 'zql/src/zql/ivm/data.js';
6
- import type { SchemaToRow } from 'zql/src/zql/query/query.js';
1
+ import type { ReadonlyJSONObject } from '../../../shared/src/json.js';
2
+ import type { MaybePromise } from '../../../shared/src/types.js';
3
+ import type { EntityID } from '../../../zero-protocol/src/entity.js';
4
+ import { type CRUDMutationArg, type CRUDOp, CRUD_MUTATION_NAME, type CreateOp, type DeleteOp, type SetOp, type UpdateOp } from '../../../zero-protocol/src/push.js';
5
+ import type { Row } from '../../../zql/src/zql/ivm/data.js';
6
+ import type { SchemaToRow } from '../../../zql/src/zql/query/query.js';
7
7
  import type { MutatorDefs, WriteTransaction } from './replicache-types.js';
8
8
  import type { Schema } from './zero.js';
9
9
  export type Parse<E extends Row> = (v: ReadonlyJSONObject) => E;
@@ -1,4 +1,4 @@
1
- import type { EntityID } from 'zero-protocol/src/entity.js';
1
+ import type { EntityID } from '../../../zero-protocol/src/entity.js';
2
2
  export declare const CLIENTS_KEY_PREFIX = "c/";
3
3
  export declare const DESIRED_QUERIES_KEY_PREFIX = "d/";
4
4
  export declare const GOT_QUERIES_KEY_PREFIX = "g/";
@@ -1,5 +1,5 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { MaybePromise } from 'shared/src/types.js';
2
+ import type { MaybePromise } from '../../../shared/src/types.js';
3
3
  import type { ErrorKind as ServerErrorKind } from '../../../zero-protocol/src/mod.js';
4
4
  export declare enum MetricName {
5
5
  TimeToConnectMs = "time_to_connect_ms",
@@ -1,6 +1,6 @@
1
1
  import type { LogLevel } from '@rocicorp/logger';
2
2
  import type { KVStoreProvider } from '../../../replicache/src/mod.js';
3
- import type { MaybePromise } from 'shared/src/types.js';
3
+ import type { MaybePromise } from '../../../shared/src/types.js';
4
4
  import type { Schema } from './zero.js';
5
5
  /**
6
6
  * Configuration for [[Zero]].
@@ -1,6 +1,6 @@
1
1
  import type { ClientID } from '../../../replicache/src/mod.js';
2
2
  import type { ChangeDesiredQueriesMessage, QueriesPatch } from '../../../zero-protocol/src/mod.js';
3
- import { type AST } from 'zql/src/zql/ast/ast.js';
3
+ import { type AST } from '../../../zql/src/zql/ast/ast.js';
4
4
  import type { ReadTransaction } from '../mod.js';
5
5
  /**
6
6
  * Tracks what queries the client is currently subscribed to on the server.
@@ -3,8 +3,8 @@ import { type Resolver } from '@rocicorp/resolver';
3
3
  import { type ClientGroupID, type ClientID, type MutatorDefs, type Puller, type Pusher } from '../../../replicache/src/mod.js';
4
4
  import { ReplicacheImpl } from '../../../replicache/src/impl.js';
5
5
  import { type NullableVersion } from '../../../zero-protocol/src/mod.js';
6
- import type { Query } from 'zql/src/zql/query/query.js';
7
- import type { TableSchema } from 'zql/src/zql/query/schema.js';
6
+ import type { Query } from '../../../zql/src/zql/query/query.js';
7
+ import type { TableSchema } from '../../../zql/src/zql/query/schema.js';
8
8
  import { type MakeCRUDMutate } from './crud.js';
9
9
  import { type WSString } from './http-string.js';
10
10
  import { type LogOptions } from './log-options.js';
@@ -1,9 +1,9 @@
1
- export { IDBNotFoundError, TransactionClosedError, dropAllDatabases, dropDatabase, getDefaultPuller, makeIDBName, } from 'replicache';
2
- export type { AsyncIterableIteratorToArray, ClientGroupID, ClientID, CreateKVStore, ExperimentalDiff, ExperimentalDiffOperation, ExperimentalDiffOperationAdd, ExperimentalDiffOperationChange, ExperimentalDiffOperationDel, ExperimentalIndexDiff, ExperimentalNoIndexDiff, ExperimentalWatchCallbackForOptions, ExperimentalWatchIndexCallback, ExperimentalWatchIndexOptions, ExperimentalWatchNoIndexCallback, ExperimentalWatchNoIndexOptions, ExperimentalWatchOptions, GetIndexScanIterator, GetScanIterator, HTTPRequestInfo, IndexDefinition, IndexDefinitions, IndexKey, IterableUnion, JSONObject, JSONValue, KVRead, KVStore, KVWrite, KeyTypeForScanOptions, MaybePromise, MutatorDefs, MutatorReturn, PatchOperation, ReadTransaction, ReadonlyJSONObject, ReadonlyJSONValue, ScanIndexOptions, ScanNoIndexOptions, ScanOptionIndexedStartKey, ScanOptions, ScanResult, SubscribeOptions, TransactionEnvironment, TransactionLocation, TransactionReason, UpdateNeededReason, VersionNotSupportedResponse, WriteTransaction, } from 'replicache';
3
- export { QueryImpl } from 'zql/src/zql/query/query-impl.js';
4
- export type { DefaultQueryResultRow as EmptyQueryResultRow, Query, QueryReturnType, QueryRowType, QueryType, SchemaToRow, Smash, } from 'zql/src/zql/query/query.js';
5
- export type { TableSchema } from 'zql/src/zql/query/schema.js';
6
- export type { TypedView } from 'zql/src/zql/query/typed-view.js';
1
+ export { IDBNotFoundError, TransactionClosedError, dropAllDatabases, dropDatabase, getDefaultPuller, makeIDBName, } from '../../replicache';
2
+ export type { AsyncIterableIteratorToArray, ClientGroupID, ClientID, CreateKVStore, ExperimentalDiff, ExperimentalDiffOperation, ExperimentalDiffOperationAdd, ExperimentalDiffOperationChange, ExperimentalDiffOperationDel, ExperimentalIndexDiff, ExperimentalNoIndexDiff, ExperimentalWatchCallbackForOptions, ExperimentalWatchIndexCallback, ExperimentalWatchIndexOptions, ExperimentalWatchNoIndexCallback, ExperimentalWatchNoIndexOptions, ExperimentalWatchOptions, GetIndexScanIterator, GetScanIterator, HTTPRequestInfo, IndexDefinition, IndexDefinitions, IndexKey, IterableUnion, JSONObject, JSONValue, KVRead, KVStore, KVWrite, KeyTypeForScanOptions, MaybePromise, MutatorDefs, MutatorReturn, PatchOperation, ReadTransaction, ReadonlyJSONObject, ReadonlyJSONValue, ScanIndexOptions, ScanNoIndexOptions, ScanOptionIndexedStartKey, ScanOptions, ScanResult, SubscribeOptions, TransactionEnvironment, TransactionLocation, TransactionReason, UpdateNeededReason, VersionNotSupportedResponse, WriteTransaction, } from '../../replicache';
3
+ export { QueryImpl } from '../../zql/src/zql/query/query-impl.js';
4
+ export type { DefaultQueryResultRow as EmptyQueryResultRow, Query, QueryReturnType, QueryRowType, QueryType, SchemaToRow, Smash, } from '../../zql/src/zql/query/query.js';
5
+ export type { TableSchema } from '../../zql/src/zql/query/schema.js';
6
+ export type { TypedView } from '../../zql/src/zql/query/typed-view.js';
7
7
  export type { ZeroOptions } from './client/options.js';
8
8
  export { Zero, type Schema } from './client/zero.js';
9
9
  //# sourceMappingURL=mod.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { Upstream } from 'zero-protocol/src/up.js';
1
+ import type { Upstream } from '../../../zero-protocol/src/up.js';
2
2
  export declare function send(ws: WebSocket, data: Upstream): void;
3
3
  //# sourceMappingURL=socket.d.ts.map
@@ -5,8 +5,8 @@
5
5
  * that the schemas satisfy the zql type definitions. (Incidentally, explicit types
6
6
  * are also required for recursive schema definitions.)
7
7
  */
8
- import * as v from 'shared/src/valita.js';
9
- import type { CorrelatedSubQuery } from 'zql/src/zql/ast/ast.js';
8
+ import * as v from '../../shared/src/valita.js';
9
+ import type { CorrelatedSubQuery } from '../../zql/src/zql/ast/ast.js';
10
10
  export declare const selectorSchema: v.Type<string>;
11
11
  export declare const orderingSchema: v.Type<readonly (readonly [string, "asc" | "desc"])[]>;
12
12
  export declare const primitiveSchema: v.UnionType<[v.Type<string>, v.Type<number>, v.Type<boolean>, v.Type<null>]>;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  declare const changeDesiredQueriesBodySchema: v.ObjectType<{
3
3
  desiredQueriesPatch: v.ArrayType<[], v.UnionType<[v.ObjectType<{
4
4
  op: v.Type<"put">;
@@ -17,7 +17,7 @@ declare const changeDesiredQueriesBodySchema: v.ObjectType<{
17
17
  field: string;
18
18
  };
19
19
  }[]>;
20
- related: v.Optional<readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
20
+ related: v.Optional<readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
21
21
  limit: v.Optional<number>;
22
22
  orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
23
23
  start: v.Optional<{
@@ -50,7 +50,7 @@ export declare const changeDesiredQueriesMessageSchema: v.ArrayType<[v.Type<"cha
50
50
  field: string;
51
51
  };
52
52
  }[]>;
53
- related: v.Optional<readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
53
+ related: v.Optional<readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
54
54
  limit: v.Optional<number>;
55
55
  orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
56
56
  start: v.Optional<{
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  declare const putOpSchema: v.ObjectType<{
3
3
  op: v.Type<"put">;
4
4
  clientID: v.Type<string>;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  /**
3
3
  * After opening a websocket the client waits for a `connected` message
4
4
  * from the server. It then sends an `initConnection` message to the
@@ -32,7 +32,7 @@ declare const initConnectionBodySchema: v.ObjectType<{
32
32
  field: string;
33
33
  };
34
34
  }[]>;
35
- related: v.Optional<readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
35
+ related: v.Optional<readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
36
36
  limit: v.Optional<number>;
37
37
  orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
38
38
  start: v.Optional<{
@@ -65,7 +65,7 @@ export declare const initConnectionMessageSchema: v.ArrayType<[v.Type<"initConne
65
65
  field: string;
66
66
  };
67
67
  }[]>;
68
- related: v.Optional<readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
68
+ related: v.Optional<readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
69
69
  limit: v.Optional<number>;
70
70
  orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
71
71
  start: v.Optional<{
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  declare const deleteClientsBodySchema: v.ObjectType<{
3
3
  clientIDs: v.ArrayType<[], v.Type<string>>;
4
4
  }, undefined>;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  export declare const downstreamSchema: v.UnionType<[v.ArrayType<[v.Type<"connected">, v.ObjectType<{
3
3
  wsid: v.Type<string>;
4
4
  timestamp: v.Optional<number>;
@@ -35,7 +35,7 @@ export declare const downstreamSchema: v.UnionType<[v.ArrayType<[v.Type<"connect
35
35
  field: string;
36
36
  };
37
37
  }[] | undefined;
38
- related?: readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
38
+ related?: readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
39
39
  limit?: number | undefined;
40
40
  orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
41
41
  start?: {
@@ -66,7 +66,7 @@ export declare const downstreamSchema: v.UnionType<[v.ArrayType<[v.Type<"connect
66
66
  field: string;
67
67
  };
68
68
  }[] | undefined;
69
- related?: readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
69
+ related?: readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
70
70
  limit?: number | undefined;
71
71
  orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
72
72
  start?: {
@@ -85,9 +85,9 @@ export declare const downstreamSchema: v.UnionType<[v.ArrayType<[v.Type<"connect
85
85
  op: "put";
86
86
  entityType: string;
87
87
  entityID: Record<string, string>;
88
- value: import("replicache").ReadonlyJSONObject;
88
+ value: import("../../replicache").ReadonlyJSONObject;
89
89
  } | {
90
- merge?: import("replicache").ReadonlyJSONObject | undefined;
90
+ merge?: import("../../replicache").ReadonlyJSONObject | undefined;
91
91
  constrain?: string[] | undefined;
92
92
  op: "update";
93
93
  entityType: string;
@@ -1,15 +1,15 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  declare const putOpSchema: v.ObjectType<{
3
3
  op: v.Type<"put">;
4
4
  entityType: v.Type<string>;
5
5
  entityID: v.Type<Record<string, string>>;
6
- value: v.Type<import("replicache").ReadonlyJSONObject>;
6
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
7
7
  }, undefined>;
8
8
  declare const updateOpSchema: v.ObjectType<{
9
9
  op: v.Type<"update">;
10
10
  entityType: v.Type<string>;
11
11
  entityID: v.Type<Record<string, string>>;
12
- merge: v.Optional<import("replicache").ReadonlyJSONObject>;
12
+ merge: v.Optional<import("../../replicache").ReadonlyJSONObject>;
13
13
  constrain: v.Optional<string[]>;
14
14
  }, undefined>;
15
15
  declare const delOpSchema: v.ObjectType<{
@@ -24,12 +24,12 @@ declare const entityPatchOpSchema: v.UnionType<[v.ObjectType<{
24
24
  op: v.Type<"put">;
25
25
  entityType: v.Type<string>;
26
26
  entityID: v.Type<Record<string, string>>;
27
- value: v.Type<import("replicache").ReadonlyJSONObject>;
27
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
28
28
  }, undefined>, v.ObjectType<{
29
29
  op: v.Type<"update">;
30
30
  entityType: v.Type<string>;
31
31
  entityID: v.Type<Record<string, string>>;
32
- merge: v.Optional<import("replicache").ReadonlyJSONObject>;
32
+ merge: v.Optional<import("../../replicache").ReadonlyJSONObject>;
33
33
  constrain: v.Optional<string[]>;
34
34
  }, undefined>, v.ObjectType<{
35
35
  op: v.Type<"del">;
@@ -42,12 +42,12 @@ export declare const entitiesPatchSchema: v.ArrayType<[], v.UnionType<[v.ObjectT
42
42
  op: v.Type<"put">;
43
43
  entityType: v.Type<string>;
44
44
  entityID: v.Type<Record<string, string>>;
45
- value: v.Type<import("replicache").ReadonlyJSONObject>;
45
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
46
46
  }, undefined>, v.ObjectType<{
47
47
  op: v.Type<"update">;
48
48
  entityType: v.Type<string>;
49
49
  entityID: v.Type<Record<string, string>>;
50
- merge: v.Optional<import("replicache").ReadonlyJSONObject>;
50
+ merge: v.Optional<import("../../replicache").ReadonlyJSONObject>;
51
51
  constrain: v.Optional<string[]>;
52
52
  }, undefined>, v.ObjectType<{
53
53
  op: v.Type<"del">;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  /**
3
3
  * attribute name => value
4
4
  * Single entry models simple primary keys.
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  export declare enum ErrorKind {
3
3
  AuthInvalidated = "AuthInvalidated",
4
4
  ClientNotFound = "ClientNotFound",
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  export declare const pingBodySchema: v.ObjectType<{}, undefined>;
3
3
  export declare const pingMessageSchema: v.ArrayType<[v.Type<"ping">, v.ObjectType<{}, undefined>], undefined>;
4
4
  export type PingBody = v.Infer<typeof pingBodySchema>;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  /**
3
3
  * Pokes use a multi-part format. Pokes send entity data to the client and can
4
4
  * be multiple mega-bytes in size. Using a multi-part format allows the server
@@ -57,7 +57,7 @@ export declare const pokePartBodySchema: v.ObjectType<{
57
57
  field: string;
58
58
  };
59
59
  }[] | undefined;
60
- related?: readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
60
+ related?: readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
61
61
  limit?: number | undefined;
62
62
  orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
63
63
  start?: {
@@ -88,7 +88,7 @@ export declare const pokePartBodySchema: v.ObjectType<{
88
88
  field: string;
89
89
  };
90
90
  }[] | undefined;
91
- related?: readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
91
+ related?: readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
92
92
  limit?: number | undefined;
93
93
  orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
94
94
  start?: {
@@ -107,9 +107,9 @@ export declare const pokePartBodySchema: v.ObjectType<{
107
107
  op: "put";
108
108
  entityType: string;
109
109
  entityID: Record<string, string>;
110
- value: import("replicache").ReadonlyJSONObject;
110
+ value: import("../../replicache").ReadonlyJSONObject;
111
111
  } | {
112
- merge?: import("replicache").ReadonlyJSONObject | undefined;
112
+ merge?: import("../../replicache").ReadonlyJSONObject | undefined;
113
113
  constrain?: string[] | undefined;
114
114
  op: "update";
115
115
  entityType: string;
@@ -159,7 +159,7 @@ export declare const pokePartMessageSchema: v.ArrayType<[v.Type<"pokePart">, v.O
159
159
  field: string;
160
160
  };
161
161
  }[] | undefined;
162
- related?: readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
162
+ related?: readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
163
163
  limit?: number | undefined;
164
164
  orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
165
165
  start?: {
@@ -190,7 +190,7 @@ export declare const pokePartMessageSchema: v.ArrayType<[v.Type<"pokePart">, v.O
190
190
  field: string;
191
191
  };
192
192
  }[] | undefined;
193
- related?: readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
193
+ related?: readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
194
194
  limit?: number | undefined;
195
195
  orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
196
196
  start?: {
@@ -209,9 +209,9 @@ export declare const pokePartMessageSchema: v.ArrayType<[v.Type<"pokePart">, v.O
209
209
  op: "put";
210
210
  entityType: string;
211
211
  entityID: Record<string, string>;
212
- value: import("replicache").ReadonlyJSONObject;
212
+ value: import("../../replicache").ReadonlyJSONObject;
213
213
  } | {
214
- merge?: import("replicache").ReadonlyJSONObject | undefined;
214
+ merge?: import("../../replicache").ReadonlyJSONObject | undefined;
215
215
  constrain?: string[] | undefined;
216
216
  op: "update";
217
217
  entityType: string;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  export declare const pongBodySchema: v.ObjectType<{}, undefined>;
3
3
  export declare const pongMessageSchema: v.ArrayType<[v.Type<"pong">, v.ObjectType<{}, undefined>], undefined>;
4
4
  export type PongBody = v.Infer<typeof pongBodySchema>;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  export declare const pullRequestBodySchema: v.ObjectType<{
3
3
  clientGroupID: v.Type<string>;
4
4
  cookie: v.UnionType<[v.Type<string>, v.Type<null>]>;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  export declare const CRUD_MUTATION_NAME = "_zero_crud";
3
3
  export declare enum MutationType {
4
4
  CRUD = "crud",
@@ -11,7 +11,7 @@ declare const createOpSchema: v.ObjectType<{
11
11
  op: v.Type<"create">;
12
12
  entityType: v.Type<string>;
13
13
  id: v.Type<Record<string, string>>;
14
- value: v.Type<import("replicache").ReadonlyJSONObject>;
14
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
15
15
  }, undefined>;
16
16
  /**
17
17
  * Upsert semantics. Inserts if entity with id does not already exist,
@@ -21,7 +21,7 @@ declare const setOpSchema: v.ObjectType<{
21
21
  op: v.Type<"set">;
22
22
  entityType: v.Type<string>;
23
23
  id: v.Type<Record<string, string>>;
24
- value: v.Type<import("replicache").ReadonlyJSONObject>;
24
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
25
25
  }, undefined>;
26
26
  /**
27
27
  * Updates if entity with id exists, otherwise does nothing.
@@ -30,7 +30,7 @@ declare const updateOpSchema: v.ObjectType<{
30
30
  op: v.Type<"update">;
31
31
  entityType: v.Type<string>;
32
32
  id: v.Type<Record<string, string>>;
33
- partialValue: v.Type<import("replicache").ReadonlyJSONObject>;
33
+ partialValue: v.Type<import("../../replicache").ReadonlyJSONObject>;
34
34
  }, undefined>;
35
35
  /**
36
36
  * Deletes entity with id if it exists, otherwise does nothing.
@@ -44,17 +44,17 @@ declare const crudOpSchema: v.UnionType<[v.ObjectType<{
44
44
  op: v.Type<"create">;
45
45
  entityType: v.Type<string>;
46
46
  id: v.Type<Record<string, string>>;
47
- value: v.Type<import("replicache").ReadonlyJSONObject>;
47
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
48
48
  }, undefined>, v.ObjectType<{
49
49
  op: v.Type<"set">;
50
50
  entityType: v.Type<string>;
51
51
  id: v.Type<Record<string, string>>;
52
- value: v.Type<import("replicache").ReadonlyJSONObject>;
52
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
53
53
  }, undefined>, v.ObjectType<{
54
54
  op: v.Type<"update">;
55
55
  entityType: v.Type<string>;
56
56
  id: v.Type<Record<string, string>>;
57
- partialValue: v.Type<import("replicache").ReadonlyJSONObject>;
57
+ partialValue: v.Type<import("../../replicache").ReadonlyJSONObject>;
58
58
  }, undefined>, v.ObjectType<{
59
59
  op: v.Type<"delete">;
60
60
  entityType: v.Type<string>;
@@ -65,17 +65,17 @@ declare const crudArgSchema: v.ObjectType<{
65
65
  op: v.Type<"create">;
66
66
  entityType: v.Type<string>;
67
67
  id: v.Type<Record<string, string>>;
68
- value: v.Type<import("replicache").ReadonlyJSONObject>;
68
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
69
69
  }, undefined>, v.ObjectType<{
70
70
  op: v.Type<"set">;
71
71
  entityType: v.Type<string>;
72
72
  id: v.Type<Record<string, string>>;
73
- value: v.Type<import("replicache").ReadonlyJSONObject>;
73
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
74
74
  }, undefined>, v.ObjectType<{
75
75
  op: v.Type<"update">;
76
76
  entityType: v.Type<string>;
77
77
  id: v.Type<Record<string, string>>;
78
- partialValue: v.Type<import("replicache").ReadonlyJSONObject>;
78
+ partialValue: v.Type<import("../../replicache").ReadonlyJSONObject>;
79
79
  }, undefined>, v.ObjectType<{
80
80
  op: v.Type<"delete">;
81
81
  entityType: v.Type<string>;
@@ -92,17 +92,17 @@ export declare const crudMutationSchema: v.ObjectType<{
92
92
  op: v.Type<"create">;
93
93
  entityType: v.Type<string>;
94
94
  id: v.Type<Record<string, string>>;
95
- value: v.Type<import("replicache").ReadonlyJSONObject>;
95
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
96
96
  }, undefined>, v.ObjectType<{
97
97
  op: v.Type<"set">;
98
98
  entityType: v.Type<string>;
99
99
  id: v.Type<Record<string, string>>;
100
- value: v.Type<import("replicache").ReadonlyJSONObject>;
100
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
101
101
  }, undefined>, v.ObjectType<{
102
102
  op: v.Type<"update">;
103
103
  entityType: v.Type<string>;
104
104
  id: v.Type<Record<string, string>>;
105
- partialValue: v.Type<import("replicache").ReadonlyJSONObject>;
105
+ partialValue: v.Type<import("../../replicache").ReadonlyJSONObject>;
106
106
  }, undefined>, v.ObjectType<{
107
107
  op: v.Type<"delete">;
108
108
  entityType: v.Type<string>;
@@ -116,7 +116,7 @@ export declare const customMutationSchema: v.ObjectType<{
116
116
  id: v.Type<number>;
117
117
  clientID: v.Type<string>;
118
118
  name: v.Type<string>;
119
- args: v.ArrayType<[], v.Type<import("replicache").ReadonlyJSONValue>>;
119
+ args: v.ArrayType<[], v.Type<import("../../replicache").ReadonlyJSONValue>>;
120
120
  timestamp: v.Type<number>;
121
121
  }, undefined>;
122
122
  export declare const mutationSchema: v.UnionType<[v.ObjectType<{
@@ -129,17 +129,17 @@ export declare const mutationSchema: v.UnionType<[v.ObjectType<{
129
129
  op: v.Type<"create">;
130
130
  entityType: v.Type<string>;
131
131
  id: v.Type<Record<string, string>>;
132
- value: v.Type<import("replicache").ReadonlyJSONObject>;
132
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
133
133
  }, undefined>, v.ObjectType<{
134
134
  op: v.Type<"set">;
135
135
  entityType: v.Type<string>;
136
136
  id: v.Type<Record<string, string>>;
137
- value: v.Type<import("replicache").ReadonlyJSONObject>;
137
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
138
138
  }, undefined>, v.ObjectType<{
139
139
  op: v.Type<"update">;
140
140
  entityType: v.Type<string>;
141
141
  id: v.Type<Record<string, string>>;
142
- partialValue: v.Type<import("replicache").ReadonlyJSONObject>;
142
+ partialValue: v.Type<import("../../replicache").ReadonlyJSONObject>;
143
143
  }, undefined>, v.ObjectType<{
144
144
  op: v.Type<"delete">;
145
145
  entityType: v.Type<string>;
@@ -152,7 +152,7 @@ export declare const mutationSchema: v.UnionType<[v.ObjectType<{
152
152
  id: v.Type<number>;
153
153
  clientID: v.Type<string>;
154
154
  name: v.Type<string>;
155
- args: v.ArrayType<[], v.Type<import("replicache").ReadonlyJSONValue>>;
155
+ args: v.ArrayType<[], v.Type<import("../../replicache").ReadonlyJSONValue>>;
156
156
  timestamp: v.Type<number>;
157
157
  }, undefined>]>;
158
158
  export declare const pushBodySchema: v.ObjectType<{
@@ -167,17 +167,17 @@ export declare const pushBodySchema: v.ObjectType<{
167
167
  op: v.Type<"create">;
168
168
  entityType: v.Type<string>;
169
169
  id: v.Type<Record<string, string>>;
170
- value: v.Type<import("replicache").ReadonlyJSONObject>;
170
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
171
171
  }, undefined>, v.ObjectType<{
172
172
  op: v.Type<"set">;
173
173
  entityType: v.Type<string>;
174
174
  id: v.Type<Record<string, string>>;
175
- value: v.Type<import("replicache").ReadonlyJSONObject>;
175
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
176
176
  }, undefined>, v.ObjectType<{
177
177
  op: v.Type<"update">;
178
178
  entityType: v.Type<string>;
179
179
  id: v.Type<Record<string, string>>;
180
- partialValue: v.Type<import("replicache").ReadonlyJSONObject>;
180
+ partialValue: v.Type<import("../../replicache").ReadonlyJSONObject>;
181
181
  }, undefined>, v.ObjectType<{
182
182
  op: v.Type<"delete">;
183
183
  entityType: v.Type<string>;
@@ -190,7 +190,7 @@ export declare const pushBodySchema: v.ObjectType<{
190
190
  id: v.Type<number>;
191
191
  clientID: v.Type<string>;
192
192
  name: v.Type<string>;
193
- args: v.ArrayType<[], v.Type<import("replicache").ReadonlyJSONValue>>;
193
+ args: v.ArrayType<[], v.Type<import("../../replicache").ReadonlyJSONValue>>;
194
194
  timestamp: v.Type<number>;
195
195
  }, undefined>]>>;
196
196
  pushVersion: v.Type<number>;
@@ -210,17 +210,17 @@ export declare const pushMessageSchema: v.ArrayType<[v.Type<"push">, v.ObjectTyp
210
210
  op: v.Type<"create">;
211
211
  entityType: v.Type<string>;
212
212
  id: v.Type<Record<string, string>>;
213
- value: v.Type<import("replicache").ReadonlyJSONObject>;
213
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
214
214
  }, undefined>, v.ObjectType<{
215
215
  op: v.Type<"set">;
216
216
  entityType: v.Type<string>;
217
217
  id: v.Type<Record<string, string>>;
218
- value: v.Type<import("replicache").ReadonlyJSONObject>;
218
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
219
219
  }, undefined>, v.ObjectType<{
220
220
  op: v.Type<"update">;
221
221
  entityType: v.Type<string>;
222
222
  id: v.Type<Record<string, string>>;
223
- partialValue: v.Type<import("replicache").ReadonlyJSONObject>;
223
+ partialValue: v.Type<import("../../replicache").ReadonlyJSONObject>;
224
224
  }, undefined>, v.ObjectType<{
225
225
  op: v.Type<"delete">;
226
226
  entityType: v.Type<string>;
@@ -233,7 +233,7 @@ export declare const pushMessageSchema: v.ArrayType<[v.Type<"push">, v.ObjectTyp
233
233
  id: v.Type<number>;
234
234
  clientID: v.Type<string>;
235
235
  name: v.Type<string>;
236
- args: v.ArrayType<[], v.Type<import("replicache").ReadonlyJSONValue>>;
236
+ args: v.ArrayType<[], v.Type<import("../../replicache").ReadonlyJSONValue>>;
237
237
  timestamp: v.Type<number>;
238
238
  }, undefined>]>>;
239
239
  pushVersion: v.Type<number>;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  declare const putOpSchema: v.ObjectType<{
3
3
  op: v.Type<"put">;
4
4
  hash: v.Type<string>;
@@ -16,7 +16,7 @@ declare const putOpSchema: v.ObjectType<{
16
16
  field: string;
17
17
  };
18
18
  }[]>;
19
- related: v.Optional<readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
19
+ related: v.Optional<readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
20
20
  limit: v.Optional<number>;
21
21
  orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
22
22
  start: v.Optional<{
@@ -49,7 +49,7 @@ declare const patchOpSchema: v.UnionType<[v.ObjectType<{
49
49
  field: string;
50
50
  };
51
51
  }[]>;
52
- related: v.Optional<readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
52
+ related: v.Optional<readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
53
53
  limit: v.Optional<number>;
54
54
  orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
55
55
  start: v.Optional<{
@@ -80,7 +80,7 @@ export declare const queriesPatchSchema: v.ArrayType<[], v.UnionType<[v.ObjectTy
80
80
  field: string;
81
81
  };
82
82
  }[]>;
83
- related: v.Optional<readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
83
+ related: v.Optional<readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
84
84
  limit: v.Optional<number>;
85
85
  orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
86
86
  start: v.Optional<{
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  export declare const upstreamSchema: v.UnionType<[v.ArrayType<[v.Type<"initConnection">, v.ObjectType<{
3
3
  desiredQueriesPatch: v.ArrayType<[], v.UnionType<[v.ObjectType<{
4
4
  op: v.Type<"put">;
@@ -17,7 +17,7 @@ export declare const upstreamSchema: v.UnionType<[v.ArrayType<[v.Type<"initConne
17
17
  field: string;
18
18
  };
19
19
  }[]>;
20
- related: v.Optional<readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
20
+ related: v.Optional<readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
21
21
  limit: v.Optional<number>;
22
22
  orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
23
23
  start: v.Optional<{
@@ -51,7 +51,7 @@ export declare const upstreamSchema: v.UnionType<[v.ArrayType<[v.Type<"initConne
51
51
  field: string;
52
52
  };
53
53
  }[]>;
54
- related: v.Optional<readonly import("zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
54
+ related: v.Optional<readonly import("../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
55
55
  limit: v.Optional<number>;
56
56
  orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
57
57
  start: v.Optional<{
@@ -81,17 +81,17 @@ export declare const upstreamSchema: v.UnionType<[v.ArrayType<[v.Type<"initConne
81
81
  op: v.Type<"create">;
82
82
  entityType: v.Type<string>;
83
83
  id: v.Type<Record<string, string>>;
84
- value: v.Type<import("replicache").ReadonlyJSONObject>;
84
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
85
85
  }, undefined>, v.ObjectType<{
86
86
  op: v.Type<"set">;
87
87
  entityType: v.Type<string>;
88
88
  id: v.Type<Record<string, string>>;
89
- value: v.Type<import("replicache").ReadonlyJSONObject>;
89
+ value: v.Type<import("../../replicache").ReadonlyJSONObject>;
90
90
  }, undefined>, v.ObjectType<{
91
91
  op: v.Type<"update">;
92
92
  entityType: v.Type<string>;
93
93
  id: v.Type<Record<string, string>>;
94
- partialValue: v.Type<import("replicache").ReadonlyJSONObject>;
94
+ partialValue: v.Type<import("../../replicache").ReadonlyJSONObject>;
95
95
  }, undefined>, v.ObjectType<{
96
96
  op: v.Type<"delete">;
97
97
  entityType: v.Type<string>;
@@ -104,7 +104,7 @@ export declare const upstreamSchema: v.UnionType<[v.ArrayType<[v.Type<"initConne
104
104
  id: v.Type<number>;
105
105
  clientID: v.Type<string>;
106
106
  name: v.Type<string>;
107
- args: v.ArrayType<[], v.Type<import("replicache").ReadonlyJSONValue>>;
107
+ args: v.ArrayType<[], v.Type<import("../../replicache").ReadonlyJSONValue>>;
108
108
  timestamp: v.Type<number>;
109
109
  }, undefined>]>>;
110
110
  pushVersion: v.Type<number>;
@@ -1,4 +1,4 @@
1
- import * as v from 'shared/src/valita.js';
1
+ import * as v from '../../shared/src/valita.js';
2
2
  export declare const versionSchema: v.Type<string>;
3
3
  export declare const nullableVersionSchema: v.UnionType<[v.Type<string>, v.Type<null>]>;
4
4
  export type Version = v.Infer<typeof versionSchema>;
@@ -1,4 +1,4 @@
1
- import type { JSONValue } from 'shared/src/json.js';
1
+ import type { JSONValue } from '../../../../shared/src/json.js';
2
2
  import type { AST, Ordering } from '../ast/ast.js';
3
3
  import type { Row } from '../ivm/data.js';
4
4
  import type { Input, Storage } from '../ivm/operator.js';
@@ -1,4 +1,4 @@
1
- import type { Immutable } from 'shared/src/immutable.js';
1
+ import type { Immutable } from '../../../../shared/src/immutable.js';
2
2
  import type { Change } from './change.js';
3
3
  import type { Value } from './data.js';
4
4
  import type { Input, Output } from './operator.js';
@@ -1,4 +1,4 @@
1
- import type { JSONValue } from 'shared/src/json.js';
1
+ import type { JSONValue } from '../../../../shared/src/json.js';
2
2
  import type { Storage } from './operator.js';
3
3
  import type { Stream } from './stream.js';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { JSONValue } from 'shared/src/json.js';
1
+ import type { JSONValue } from '../../../../shared/src/json.js';
2
2
  import type { Change } from './change.js';
3
3
  import type { Node, Row, Value } from './data.js';
4
4
  import type { TableSchema } from './schema.js';
@@ -1,4 +1,4 @@
1
- import type { Immutable } from 'shared/src/immutable.js';
1
+ import type { Immutable } from '../../../../shared/src/immutable.js';
2
2
  export type Listener<T> = (data: Immutable<T>) => void;
3
3
  export type TypedView<T> = {
4
4
  addListener(listener: Listener<T>): () => void;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@rocicorp/zero",
3
- "version": "0.0.2024100501+0de056",
3
+ "version": "0.0.2024100502+50481a",
4
4
  "scripts": {
5
5
  "prepack": "rm -rf deps && mkdir -p deps/sqlite3 && cp -r ../../deps/sqlite3/* deps/sqlite3/",
6
6
  "preinstall": "node tool/install-sqlite3.js",
7
7
  "build": "rm -rf out && npm run build-server && npm run build-client",
8
- "build-client": "tsc -p tsconfig.client.json && node tool/build.js",
8
+ "build-client": "tsc -p tsconfig.client.json && tsc-alias -p tsconfig.client.json && node tool/build.js",
9
9
  "build-server": "tsc -p tsconfig.server.json && tsc-alias -p tsconfig.server.json",
10
10
  "check-types": "tsc --noEmit",
11
11
  "check-types:watch": "tsc --noEmit --watch",
@@ -42,8 +42,6 @@
42
42
  "devDependencies": {
43
43
  "@rocicorp/eslint-config": "^0.5.1",
44
44
  "@rocicorp/prettier-config": "^0.2.0",
45
- "zero-client": "0.0.0",
46
- "zero-cache": "0.0.0",
47
45
  "esbuild": "^0.20.2",
48
46
  "replicache": "15.2.1",
49
47
  "tsc-alias": "^1.8.10",