@powerhousedao/reactor-browser 6.2.3-dev.72 → 6.2.3-dev.74
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.
- package/dist/{attachment-service-qWSadb1P.d.ts → attachment-service-BsOmg2-v.d.ts} +7 -11
- package/dist/{attachment-service-qWSadb1P.d.ts.map → attachment-service-BsOmg2-v.d.ts.map} +1 -1
- package/dist/{dispatch-COa-7Cnf.js → dispatch-BEI1Ai2b.js} +110 -13
- package/dist/dispatch-BEI1Ai2b.js.map +1 -0
- package/dist/{document-by-id-1mRv91Zu.js → document-by-id-bHT2FDHM.js} +2 -2
- package/dist/{document-by-id-1mRv91Zu.js.map → document-by-id-bHT2FDHM.js.map} +1 -1
- package/dist/{document-model-modules-BN6ps-J2.js → document-model-modules-DAx3VAm3.js} +3 -35
- package/dist/document-model-modules-DAx3VAm3.js.map +1 -0
- package/dist/{document-operations-BY6lqh4g.js → document-operations-zQKFs_xu.js} +10 -9
- package/dist/document-operations-zQKFs_xu.js.map +1 -0
- package/dist/{global-DYZzpelW.d.ts → global-DY0jZmcO.d.ts} +5 -4
- package/dist/{global-DYZzpelW.d.ts.map → global-DY0jZmcO.d.ts.map} +1 -1
- package/dist/{index-Fs59YGBB.d.ts → index-DlZsXHpT.d.ts} +2 -2
- package/dist/{index-Fs59YGBB.d.ts.map → index-DlZsXHpT.d.ts.map} +1 -1
- package/dist/index.d.ts +23 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/src/ai/index.d.ts +1 -1
- package/dist/src/ai/index.js +2 -2
- package/dist/src/analytics/index.js +1 -1
- package/dist/src/graphql-client/entry.d.ts +2 -2
- package/dist/src/graphql-client/entry.js +3 -3
- package/dist/src/renown/index.d.ts +1 -1
- package/dist/src/rpc/index.d.ts +45 -11
- package/dist/src/rpc/index.d.ts.map +1 -1
- package/dist/src/rpc/index.js +199 -35
- package/dist/src/rpc/index.js.map +1 -1
- package/dist/{switchboard-BxnVm77m.js → switchboard-G3aKXjNx.js} +4 -3
- package/dist/{switchboard-BxnVm77m.js.map → switchboard-G3aKXjNx.js.map} +1 -1
- package/package.json +10 -9
- package/dist/dispatch-COa-7Cnf.js.map +0 -1
- package/dist/document-model-modules-BN6ps-J2.js.map +0 -1
- package/dist/document-operations-BY6lqh4g.js.map +0 -1
package/dist/src/rpc/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as PGliteWithLive } from "../../index-rtDmzViP.js";
|
|
2
2
|
import { i as createWorkerAdminClient, n as createInspectorProxy, r as IWorkerAdminClient, t as IInspectorProxy } from "../../inspector-proxy-DODqs15F.js";
|
|
3
|
-
import { ChannelConfig, DeadLetterPage, DriveCollectionId, IDocumentModelLoader, IDocumentModelRegistry, IEventBus, IInspector, IInspectorAdmin, IPeerAgreement, IReactorClient, IReactorDbQuery, ISyncAdmin, ISyncInspector, ISyncManager, InspectorAccess, LocalChannelPortRegistry, LocalPeerSyncManager, Remote, RemoteFilter, RemoteOptions, RemoteSyncInspection, ShutdownStatus, SyncHold, SyncStatus, SyncStatusChangeCallback, Unsubscribe } from "@powerhousedao/reactor";
|
|
4
3
|
import { DocumentModelModule, PeerManifest, UpgradeManifest } from "@powerhousedao/shared/document-model";
|
|
4
|
+
import { ChannelConfig, DeadLetterPage, DriveCollectionId, IDocumentModelLoader, IDocumentModelRegistry, IEventBus, IInspector, IInspectorAdmin, IPeerAgreement, IReactorClient, IReactorDbQuery, ISyncAdmin, ISyncInspector, ISyncManager, InspectorAccess, LocalChannelPortRegistry, LocalPeerSyncManager, Remote, RemoteFilter, RemoteOptions, RemoteSyncInspection, ShutdownStatus, SyncHold, SyncStatus, SyncStatusChangeCallback, Unsubscribe } from "@powerhousedao/reactor";
|
|
5
5
|
import { ClientMessage, CorrelationId, ErrorInfo, ICorrelatedSubscriptions, IHostResponder, IRpcTransport, IRpcTransport as IRpcTransport$1, KeyedListeners, Listeners, MessageRouter, MessageRouter as MessageRouter$1, MethodCallMessage, OpKind, OpKind as OpKind$1, OwnerMessage, RPC_PROTOCOL_VERSION, ReactorHostServer, ReactorIdentity, ReactorIdentity as ReactorIdentity$1, RpcAdoptSyncPeer, RpcCorrelator, RpcDbOp, RpcLiveEvent, RpcLiveSubscribe, RpcLiveUnsub, RpcMessage, RpcPoster, RpcRemoveSyncPeer, RpcRequestOptions, SubscriptionStore, VersionFingerprint, VersionFingerprint as VersionFingerprint$1, WorkerInspectorInfo, WorkerMigrationState, WorkerMigrationState as WorkerMigrationState$1, WorkerPackageSource, WorkerPackageSource as WorkerPackageSource$1, createCorrelatedSubscriptions, createPortTransport, createReactorClientProxy, fromErrorInfo, hostResponder, toErrorInfo } from "@powerhousedao/reactor/rpc";
|
|
6
6
|
//#region src/rpc/adopt-sync-peer.d.ts
|
|
7
7
|
type AdoptSyncPeerParams = {
|
|
@@ -213,42 +213,76 @@ export declare class SyncManagerProxy implements ISyncManager, ISyncInspector, I
|
|
|
213
213
|
}
|
|
214
214
|
export declare function createSyncManagerProxy(router: MessageRouter$1, busProxy: IEventBus): ISyncManager;
|
|
215
215
|
//#endregion
|
|
216
|
+
//#region src/rpc/module-graph.d.ts
|
|
217
|
+
/** A bare specifier's URL in the shared table: an exact entry, else the longest trailing-slash prefix, as an import map does. */
|
|
218
|
+
export declare function resolveSharedSpecifier(specifier: string, imports: Record<string, string>): string | undefined;
|
|
219
|
+
type ModuleGraphOptions = {
|
|
220
|
+
sharedImports?: Record<string, string>;
|
|
221
|
+
/** Reads a module's source; defaults to fetch. */
|
|
222
|
+
fetchSource?: (url: string) => Promise<string>;
|
|
223
|
+
/** Makes a rewritten source importable; defaults to a blob URL. */
|
|
224
|
+
createModuleUrl?: (source: string) => string;
|
|
225
|
+
/** Told about dynamic imports with computed specifiers, which stay as they are. */
|
|
226
|
+
warn?: (message: string) => void;
|
|
227
|
+
};
|
|
228
|
+
export declare class ModuleGraph {
|
|
229
|
+
private readonly sharedImports;
|
|
230
|
+
private readonly fetchSource;
|
|
231
|
+
private readonly createModuleUrl;
|
|
232
|
+
private readonly warn;
|
|
233
|
+
private readonly parsed;
|
|
234
|
+
private readonly built;
|
|
235
|
+
constructor(options?: ModuleGraphOptions);
|
|
236
|
+
/** The URL to import in place of `entryUrl`; `entryUrl` itself when nothing needed a rewrite. */
|
|
237
|
+
resolve(entryUrl: string): Promise<string>;
|
|
238
|
+
private collect;
|
|
239
|
+
private parse;
|
|
240
|
+
private readModule;
|
|
241
|
+
private assertAcyclic;
|
|
242
|
+
private assertMapped;
|
|
243
|
+
private needsRewrite;
|
|
244
|
+
private build;
|
|
245
|
+
private rewrite;
|
|
246
|
+
}
|
|
247
|
+
//#endregion
|
|
216
248
|
//#region src/rpc/worker-package-loader.d.ts
|
|
217
249
|
type PackageImporter = (url: string) => Promise<Record<string, unknown>>;
|
|
218
250
|
type WorkerPackageLoaderOptions = {
|
|
219
251
|
cdnUrl: string;
|
|
220
252
|
importPackage: PackageImporter;
|
|
221
253
|
resolvePackages?: (documentType: string) => Promise<string[]>;
|
|
222
|
-
/** Absolute
|
|
223
|
-
* exist, so the source is rewritten to these URLs and blob-imported). */
|
|
254
|
+
/** Absolute URLs for the shared deps a registry package leaves bare; a worker has no import map. */
|
|
224
255
|
sharedImports?: Record<string, string>;
|
|
225
|
-
|
|
226
|
-
* rewrite happened; omit to disable shared-deps loading in a worker. */
|
|
227
|
-
importSource?: (source: string) => Promise<Record<string, unknown>>;
|
|
228
|
-
};
|
|
256
|
+
} & Pick<ModuleGraphOptions, "fetchSource" | "createModuleUrl" | "warn">;
|
|
229
257
|
type PackageLoadFailure = {
|
|
230
258
|
name: string;
|
|
231
259
|
url: string;
|
|
232
260
|
error: unknown;
|
|
233
261
|
};
|
|
262
|
+
/** One line for a failed load: the package, its URL and why. */
|
|
263
|
+
export declare function describeLoadFailure(failure: PackageLoadFailure): string;
|
|
234
264
|
type AnyUpgradeManifest = UpgradeManifest<readonly number[]>;
|
|
235
265
|
export declare class WorkerPackageLoader implements IDocumentModelLoader {
|
|
236
266
|
private readonly cdnUrl;
|
|
237
267
|
private readonly importPackage;
|
|
238
268
|
private readonly resolvePackages;
|
|
239
|
-
private readonly
|
|
240
|
-
private readonly importSource?;
|
|
269
|
+
private readonly moduleGraph;
|
|
241
270
|
private readonly modulesByKey;
|
|
242
271
|
private readonly manifestsByType;
|
|
243
272
|
private readonly keysBySource;
|
|
244
273
|
private readonly manifestTypesBySource;
|
|
245
|
-
private readonly
|
|
274
|
+
private readonly loadedUrls;
|
|
246
275
|
private readonly failures;
|
|
247
276
|
private readonly pendingLoads;
|
|
248
277
|
private readonly generationBySource;
|
|
249
278
|
private generation;
|
|
250
279
|
constructor(options: WorkerPackageLoaderOptions);
|
|
251
280
|
loadPackages(specs: string[]): Promise<DocumentModelModule[]>;
|
|
281
|
+
/** Loads registry packages added or updated after boot; returns the types whose modules changed, and the failures. */
|
|
282
|
+
updatePackages(specs: string[]): Promise<{
|
|
283
|
+
types: string[];
|
|
284
|
+
failures: PackageLoadFailure[];
|
|
285
|
+
}>;
|
|
252
286
|
/** Loads URL-addressed packages (local project packages). Idempotent. */
|
|
253
287
|
loadSources(sources: WorkerPackageSource$1[]): Promise<void>;
|
|
254
288
|
/**
|
|
@@ -278,6 +312,6 @@ export declare class WorkerPackageLoader implements IDocumentModelLoader {
|
|
|
278
312
|
private registerNamespace;
|
|
279
313
|
}
|
|
280
314
|
//#endregion
|
|
281
|
-
export { type AdoptSyncPeerParams, type ClientMessage, type CorrelationId, type ErrorInfo, type ICorrelatedSubscriptions, type IHostResponder, type IInspectorProxy, type ILiveQueryProxy, type IOpChannel, type IRpcTransport, type IWorkerAdminClient, type InspectorOpTargets, KeyedListeners, Listeners, MessageRouter, type MethodCallMessage, type OpKind, type OwnerMessage, type PackageImporter, type PackageLoadFailure, RPC_PROTOCOL_VERSION, type ReactorHello, ReactorHostServer, type ReactorIdentity, type RemoveSyncPeerParams, type RpcAdoptSyncPeer, RpcCorrelator, type RpcDbOp, type RpcLiveEvent, type RpcLiveSubscribe, type RpcLiveUnsub, type RpcMessage, type RpcPoster, type RpcRemoveSyncPeer, type RpcRequestOptions, SubscriptionStore, type SyncInspectionOpTargets, type SyncStatusChangedBusEvent, type VersionFingerprint, type WorkerInspectorInfo, type WorkerMigrationState, type WorkerPackageLoaderOptions, type WorkerPackageSource, createCorrelatedSubscriptions, createInspectorProxy, createPortTransport, createReactorClientProxy, createWorkerAdminClient, fromErrorInfo, hostResponder, toErrorInfo };
|
|
315
|
+
export { type AdoptSyncPeerParams, type ClientMessage, type CorrelationId, type ErrorInfo, type ICorrelatedSubscriptions, type IHostResponder, type IInspectorProxy, type ILiveQueryProxy, type IOpChannel, type IRpcTransport, type IWorkerAdminClient, type InspectorOpTargets, KeyedListeners, Listeners, MessageRouter, type MethodCallMessage, type ModuleGraphOptions, type OpKind, type OwnerMessage, type PackageImporter, type PackageLoadFailure, RPC_PROTOCOL_VERSION, type ReactorHello, ReactorHostServer, type ReactorIdentity, type RemoveSyncPeerParams, type RpcAdoptSyncPeer, RpcCorrelator, type RpcDbOp, type RpcLiveEvent, type RpcLiveSubscribe, type RpcLiveUnsub, type RpcMessage, type RpcPoster, type RpcRemoveSyncPeer, type RpcRequestOptions, SubscriptionStore, type SyncInspectionOpTargets, type SyncStatusChangedBusEvent, type VersionFingerprint, type WorkerInspectorInfo, type WorkerMigrationState, type WorkerPackageLoaderOptions, type WorkerPackageSource, createCorrelatedSubscriptions, createInspectorProxy, createPortTransport, createReactorClientProxy, createWorkerAdminClient, fromErrorInfo, hostResponder, toErrorInfo };
|
|
282
316
|
export {};
|
|
283
317
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/rpc/adopt-sync-peer.ts","../../../src/rpc/reactor-host.ts","../../../src/rpc/local-sync-peer-handlers.ts","../../../src/rpc/inspector-ops.ts","../../../src/rpc/op-channel.ts","../../../src/rpc/live-query-proxy.ts","../../../src/rpc/relational-db-proxy.ts","../../../src/rpc/event-bus-proxy.ts","../../../src/rpc/forwarded-events.ts","../../../src/rpc/connect-reactor.ts","../../../src/rpc/bus-event-ids.ts","../../../src/rpc/sync-manager-proxy.ts","../../../src/rpc/worker-package-loader.ts"],"mappings":";;;;;;KAIY;EACV;EACA;;EAEA;EACA;EACA,QAAQ;;KAGE;EACV;EACA;EACA;;;wBAIc,kBACd,QAAQ,iBACR,QAAQ,qBACR,MAAM,cACL;;wBAmBa,mBACd,QAAQ,iBACR,QAAQ,uBACP;;;KCQS;EACV,SAAS;EACT,SAAS,uBAAuB,QAAQ;EACxC,oBACE,iBACA,UAAU,4BACP;EACL,sBAAsB,oBAAoB;EAC1C,cAAc,MAAM;EACpB,YAAY,gBAAgB,oBAAoB;EAChD,UAAU,gBAAgB,oBAAoB;EAC9C,iBAAiB,gBAAgB,oBAAoB;;EAErD,mBACE,QAAQ,qBACR,MAAM,gBACH;EACL,oBAAoB,QAAQ,yBAAyB;EACrD,eACE,aACA,mBACA,YAAY,8BACT;EAEL;EACA;EACA;EACA;EACA;EACA,4BAA4B;EAC5B,uBAAuB;;EAEvB,YAAY,mBAAmB;;EAE/B,0BAA0B;;;wBA0BZ,4BAA4B;qBA2B/B;qBAMA;mBACM;mBACA;mBACA;UACT;UAEA;UACA;mBACS;mBACA;UACT;UACA;UACA;EAER,YAAY,SAAS;EASrB,QAAQ,WAAW;EAkInB,YAAY,MAAM;EAKlB,kBAAkB,mBAAmB;EAOrC,gBAAgB,gBAAgB;EAQhC,gBAAgB,gBAAgB;UAalB;UAaN;UAMA;EAOR,kBAAkB,OAAO;MAOrB;MAIA;UAII;UAgDM;UAUN;UAmCM;UAUN;UAcM;UA8BA;UASA;UASA;;UAsBA;UAkCA;UAoBA;UAYA;;;;;wBCpmBA,sBACd,aAAa,sBACb,UAAU,2BACT,SAAS,KAAK;;;KCJL;EACV,WAAW,aAAa,QAAQ;EAChC,UAAU;;;wBAII,oBACd,SAAS,oBACT,QAAQ,iBAC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cAAc,qBAAqB,QAAQ;EAM3C,kBAAkB,QAAQ;EAI1B,gBACJ,oBACA,iBACA,iBACC,QAAQ;EAQL,aAAa,qBAAqB;EAIlC,kBAAkB,oBAAoB,aAAa;EAInD,gBAAgB,oBAAoB,aAAa;UAI/C;UAIA;UAIA;UAQA;UAgCM;UAIN;UAmBA;;wBAsBM,uBACd,QAAQ,iBACR,UAAU,YACT
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/rpc/adopt-sync-peer.ts","../../../src/rpc/reactor-host.ts","../../../src/rpc/local-sync-peer-handlers.ts","../../../src/rpc/inspector-ops.ts","../../../src/rpc/op-channel.ts","../../../src/rpc/live-query-proxy.ts","../../../src/rpc/relational-db-proxy.ts","../../../src/rpc/event-bus-proxy.ts","../../../src/rpc/forwarded-events.ts","../../../src/rpc/connect-reactor.ts","../../../src/rpc/bus-event-ids.ts","../../../src/rpc/sync-manager-proxy.ts","../../../src/rpc/module-graph.ts","../../../src/rpc/worker-package-loader.ts"],"mappings":";;;;;;KAIY;EACV;EACA;;EAEA;EACA;EACA,QAAQ;;KAGE;EACV;EACA;EACA;;;wBAIc,kBACd,QAAQ,iBACR,QAAQ,qBACR,MAAM,cACL;;wBAmBa,mBACd,QAAQ,iBACR,QAAQ,uBACP;;;KCQS;EACV,SAAS;EACT,SAAS,uBAAuB,QAAQ;EACxC,oBACE,iBACA,UAAU,4BACP;EACL,sBAAsB,oBAAoB;EAC1C,cAAc,MAAM;EACpB,YAAY,gBAAgB,oBAAoB;EAChD,UAAU,gBAAgB,oBAAoB;EAC9C,iBAAiB,gBAAgB,oBAAoB;;EAErD,mBACE,QAAQ,qBACR,MAAM,gBACH;EACL,oBAAoB,QAAQ,yBAAyB;EACrD,eACE,aACA,mBACA,YAAY,8BACT;EAEL;EACA;EACA;EACA;EACA;EACA,4BAA4B;EAC5B,uBAAuB;;EAEvB,YAAY,mBAAmB;;EAE/B,0BAA0B;;;wBA0BZ,4BAA4B;qBA2B/B;q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T;EAER,YAAY,SAAS;EAgBf,aAAa,kBAAkB,QAAQ;;EAQvC,eACJ,kBACC;IAAU;IAAiB,UAAU;;;EAQlC,YAAY,SAAS,0BAAwB;;;;;;;;;EAc7C,cACJ,SAAS,0BACR;IAAU;IAAiB,UAAU;;EAUlC,KAAK,uBAAuB,QAAQ;MAqBtC,UAAU;MAIV,oBAAoB;MAIpB,gBAAgB;;UAKZ;UAaA;UAwBA;UAYA;UAqBM;UAqCA;;UAWN"}
|
package/dist/src/rpc/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as SYNC_REMOTES_CHANGED_EVENT, t as RegistryClient, u as SYNC_STATUS_CHANGED_EVENT } from "../../client-BFnMV-EO.js";
|
|
2
2
|
import { DriveCollectionId, INSPECTOR_OPS, ReactorEventTypes, SYNC_INSPECTION_OPS, SyncEventTypes, collectionIdFromKey, createPeerAgreement, dispatchTableOp, messagePortTransport, methodOf, opKeyOf, registerLocalPeer, removeLocalPeer } from "@powerhousedao/reactor";
|
|
3
3
|
import { KeyedListeners, KeyedListeners as KeyedListeners$1, Listeners, Listeners as Listeners$1, MessageRouter, RPC_PROTOCOL_VERSION, RPC_PROTOCOL_VERSION as RPC_PROTOCOL_VERSION$1, ReactorHostServer, ReactorHostServer as ReactorHostServer$1, RpcCorrelator, SubscriptionStore, SubscriptionStore as SubscriptionStore$1, createCorrelatedSubscriptions, createCorrelatedSubscriptions as createCorrelatedSubscriptions$1, createPortTransport, createPortTransport as createPortTransport$1, createReactorClientProxy, createReactorClientProxy as createReactorClientProxy$1, fromErrorInfo, fromErrorInfo as fromErrorInfo$1, hostResponder, hostResponder as hostResponder$1, toErrorInfo } from "@powerhousedao/reactor/rpc";
|
|
4
|
-
import {
|
|
4
|
+
import { init, parse } from "es-module-lexer";
|
|
5
5
|
//#region src/rpc/op-channel.ts
|
|
6
6
|
const RPC_DEFAULT_TIMEOUT_MS = 3e4;
|
|
7
7
|
function toVoid(promise) {
|
|
@@ -881,7 +881,174 @@ var ReactorHost = class {
|
|
|
881
881
|
}
|
|
882
882
|
};
|
|
883
883
|
//#endregion
|
|
884
|
+
//#region src/rpc/module-graph.ts
|
|
885
|
+
/** A bare specifier's URL in the shared table: an exact entry, else the longest trailing-slash prefix, as an import map does. */
|
|
886
|
+
function resolveSharedSpecifier(specifier, imports) {
|
|
887
|
+
if (Object.hasOwn(imports, specifier)) return imports[specifier];
|
|
888
|
+
let best;
|
|
889
|
+
for (const key of Object.keys(imports)) if (key.endsWith("/") && specifier.startsWith(key) && (best === void 0 || key.length > best.length)) best = key;
|
|
890
|
+
return best === void 0 ? void 0 : imports[best] + specifier.slice(best.length);
|
|
891
|
+
}
|
|
892
|
+
function isRelative(specifier) {
|
|
893
|
+
return specifier.startsWith("./") || specifier.startsWith("../") || specifier.startsWith("/");
|
|
894
|
+
}
|
|
895
|
+
function isUrl(specifier) {
|
|
896
|
+
return /^[a-z][a-z0-9+.-]*:/i.test(specifier);
|
|
897
|
+
}
|
|
898
|
+
async function fetchModuleSource(url) {
|
|
899
|
+
const response = await fetch(url);
|
|
900
|
+
if (!response.ok) throw new Error(`${response.status} ${response.statusText} for ${url}`);
|
|
901
|
+
return response.text();
|
|
902
|
+
}
|
|
903
|
+
function blobModuleUrl(source) {
|
|
904
|
+
return URL.createObjectURL(new Blob([source], { type: "text/javascript" }));
|
|
905
|
+
}
|
|
906
|
+
var ModuleGraph = class {
|
|
907
|
+
sharedImports;
|
|
908
|
+
fetchSource;
|
|
909
|
+
createModuleUrl;
|
|
910
|
+
warn;
|
|
911
|
+
parsed = /* @__PURE__ */ new Map();
|
|
912
|
+
built = /* @__PURE__ */ new Map();
|
|
913
|
+
constructor(options = {}) {
|
|
914
|
+
this.sharedImports = options.sharedImports ?? {};
|
|
915
|
+
this.fetchSource = options.fetchSource ?? fetchModuleSource;
|
|
916
|
+
this.createModuleUrl = options.createModuleUrl ?? blobModuleUrl;
|
|
917
|
+
this.warn = options.warn ?? ((message) => console.warn(message));
|
|
918
|
+
}
|
|
919
|
+
/** The URL to import in place of `entryUrl`; `entryUrl` itself when nothing needed a rewrite. */
|
|
920
|
+
async resolve(entryUrl) {
|
|
921
|
+
const modules = await this.collect(entryUrl);
|
|
922
|
+
this.assertMapped(entryUrl, modules);
|
|
923
|
+
const rewrite = this.needsRewrite(modules);
|
|
924
|
+
this.assertAcyclic(entryUrl, modules, rewrite);
|
|
925
|
+
return this.build(entryUrl, modules, rewrite);
|
|
926
|
+
}
|
|
927
|
+
async collect(entryUrl) {
|
|
928
|
+
const modules = /* @__PURE__ */ new Map();
|
|
929
|
+
const seen = /* @__PURE__ */ new Set();
|
|
930
|
+
const visit = async (url) => {
|
|
931
|
+
if (seen.has(url)) return;
|
|
932
|
+
seen.add(url);
|
|
933
|
+
const module = await this.parse(url);
|
|
934
|
+
modules.set(url, module);
|
|
935
|
+
await Promise.all(module.deps.map(visit));
|
|
936
|
+
};
|
|
937
|
+
await visit(entryUrl);
|
|
938
|
+
return modules;
|
|
939
|
+
}
|
|
940
|
+
parse(url) {
|
|
941
|
+
let pending = this.parsed.get(url);
|
|
942
|
+
if (!pending) {
|
|
943
|
+
pending = this.readModule(url);
|
|
944
|
+
pending.catch(() => this.parsed.delete(url));
|
|
945
|
+
this.parsed.set(url, pending);
|
|
946
|
+
}
|
|
947
|
+
return pending;
|
|
948
|
+
}
|
|
949
|
+
async readModule(url) {
|
|
950
|
+
const source = await this.fetchSource(url);
|
|
951
|
+
await init;
|
|
952
|
+
const [imports] = parse(source, url);
|
|
953
|
+
const deps = [];
|
|
954
|
+
const bare = [];
|
|
955
|
+
for (const specifier of imports) {
|
|
956
|
+
if (specifier.d === -2) continue;
|
|
957
|
+
const name = specifier.n;
|
|
958
|
+
if (name === void 0) {
|
|
959
|
+
this.warn(`[module-graph] ${url} has a dynamic import with a computed specifier; it is left as is`);
|
|
960
|
+
continue;
|
|
961
|
+
}
|
|
962
|
+
if (isRelative(name)) deps.push(new URL(name, url).href);
|
|
963
|
+
else if (!isUrl(name)) bare.push(name);
|
|
964
|
+
}
|
|
965
|
+
return {
|
|
966
|
+
url,
|
|
967
|
+
source,
|
|
968
|
+
imports,
|
|
969
|
+
deps: [...new Set(deps)],
|
|
970
|
+
bare
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
assertAcyclic(entryUrl, modules, rewrite) {
|
|
974
|
+
const state = /* @__PURE__ */ new Map();
|
|
975
|
+
const stack = [];
|
|
976
|
+
const visit = (url) => {
|
|
977
|
+
const seen = state.get(url);
|
|
978
|
+
if (seen === "done") return;
|
|
979
|
+
if (seen === "visiting") {
|
|
980
|
+
const cycle = [...stack.slice(stack.indexOf(url)), url];
|
|
981
|
+
throw new Error(`Can't load ${entryUrl} in the worker: its modules import each other (${cycle.join(" -> ")})`);
|
|
982
|
+
}
|
|
983
|
+
state.set(url, "visiting");
|
|
984
|
+
stack.push(url);
|
|
985
|
+
for (const dep of modules.get(url).deps) if (rewrite.has(dep)) visit(dep);
|
|
986
|
+
stack.pop();
|
|
987
|
+
state.set(url, "done");
|
|
988
|
+
};
|
|
989
|
+
for (const url of [entryUrl, ...rewrite]) if (rewrite.has(url)) visit(url);
|
|
990
|
+
}
|
|
991
|
+
assertMapped(entryUrl, modules) {
|
|
992
|
+
for (const module of modules.values()) for (const name of module.bare) if (resolveSharedSpecifier(name, this.sharedImports) === void 0) throw new Error(`Can't load ${entryUrl} in the worker: ${module.url} imports "${name}", which the host doesn't share with the worker`);
|
|
993
|
+
}
|
|
994
|
+
needsRewrite(modules) {
|
|
995
|
+
const importers = /* @__PURE__ */ new Map();
|
|
996
|
+
for (const module of modules.values()) for (const dep of module.deps) importers.set(dep, [...importers.get(dep) ?? [], module.url]);
|
|
997
|
+
const rewrite = /* @__PURE__ */ new Set();
|
|
998
|
+
const queue = [...modules.values()].filter((module) => module.bare.length > 0).map((module) => module.url);
|
|
999
|
+
while (queue.length > 0) {
|
|
1000
|
+
const url = queue.pop();
|
|
1001
|
+
if (rewrite.has(url)) continue;
|
|
1002
|
+
rewrite.add(url);
|
|
1003
|
+
queue.push(...importers.get(url) ?? []);
|
|
1004
|
+
}
|
|
1005
|
+
return rewrite;
|
|
1006
|
+
}
|
|
1007
|
+
build(url, modules, rewrite) {
|
|
1008
|
+
if (!rewrite.has(url)) return Promise.resolve(url);
|
|
1009
|
+
let pending = this.built.get(url);
|
|
1010
|
+
if (!pending) {
|
|
1011
|
+
pending = this.rewrite(modules.get(url), modules, rewrite);
|
|
1012
|
+
pending.catch(() => this.built.delete(url));
|
|
1013
|
+
this.built.set(url, pending);
|
|
1014
|
+
}
|
|
1015
|
+
return pending;
|
|
1016
|
+
}
|
|
1017
|
+
async rewrite(module, modules, rewrite) {
|
|
1018
|
+
const depUrls = /* @__PURE__ */ new Map();
|
|
1019
|
+
await Promise.all(module.deps.map(async (dep) => {
|
|
1020
|
+
depUrls.set(dep, await this.build(dep, modules, rewrite));
|
|
1021
|
+
}));
|
|
1022
|
+
let out = "";
|
|
1023
|
+
let last = 0;
|
|
1024
|
+
for (const specifier of module.imports) {
|
|
1025
|
+
const name = specifier.n;
|
|
1026
|
+
if (specifier.d === -2 || name === void 0 || isUrl(name)) continue;
|
|
1027
|
+
const target = isRelative(name) ? depUrls.get(new URL(name, module.url).href) : resolveSharedSpecifier(name, this.sharedImports);
|
|
1028
|
+
const replacement = specifier.d > -1 ? JSON.stringify(target) : target;
|
|
1029
|
+
out += module.source.slice(last, specifier.s) + replacement;
|
|
1030
|
+
last = specifier.e;
|
|
1031
|
+
}
|
|
1032
|
+
return this.createModuleUrl(out + module.source.slice(last));
|
|
1033
|
+
}
|
|
1034
|
+
};
|
|
1035
|
+
//#endregion
|
|
884
1036
|
//#region src/rpc/worker-package-loader.ts
|
|
1037
|
+
/** One line for a failed load: the package, its URL and why. */
|
|
1038
|
+
function describeLoadFailure(failure) {
|
|
1039
|
+
const reason = failure.error instanceof Error ? failure.error.message : String(failure.error);
|
|
1040
|
+
return `${failure.name} (${failure.url}): ${reason}`;
|
|
1041
|
+
}
|
|
1042
|
+
function summarize(results) {
|
|
1043
|
+
const types = /* @__PURE__ */ new Set();
|
|
1044
|
+
const failures = [];
|
|
1045
|
+
for (const result of results) if (result.status === "replaced") for (const type of result.types) types.add(type);
|
|
1046
|
+
else if (result.status === "failed") failures.push(result.failure);
|
|
1047
|
+
return {
|
|
1048
|
+
types: [...types],
|
|
1049
|
+
failures
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
885
1052
|
const SOURCE_KEY_PREFIX = "src:";
|
|
886
1053
|
function packageName(key) {
|
|
887
1054
|
if (key.startsWith(SOURCE_KEY_PREFIX)) return key.slice(4);
|
|
@@ -918,13 +1085,12 @@ var WorkerPackageLoader = class {
|
|
|
918
1085
|
cdnUrl;
|
|
919
1086
|
importPackage;
|
|
920
1087
|
resolvePackages;
|
|
921
|
-
|
|
922
|
-
importSource;
|
|
1088
|
+
moduleGraph;
|
|
923
1089
|
modulesByKey = /* @__PURE__ */ new Map();
|
|
924
1090
|
manifestsByType = /* @__PURE__ */ new Map();
|
|
925
1091
|
keysBySource = /* @__PURE__ */ new Map();
|
|
926
1092
|
manifestTypesBySource = /* @__PURE__ */ new Map();
|
|
927
|
-
|
|
1093
|
+
loadedUrls = /* @__PURE__ */ new Map();
|
|
928
1094
|
failures = [];
|
|
929
1095
|
pendingLoads = /* @__PURE__ */ new Map();
|
|
930
1096
|
generationBySource = /* @__PURE__ */ new Map();
|
|
@@ -932,8 +1098,12 @@ var WorkerPackageLoader = class {
|
|
|
932
1098
|
constructor(options) {
|
|
933
1099
|
this.cdnUrl = options.cdnUrl.replace(/\/$/, "");
|
|
934
1100
|
this.importPackage = options.importPackage;
|
|
935
|
-
this.
|
|
936
|
-
|
|
1101
|
+
this.moduleGraph = new ModuleGraph({
|
|
1102
|
+
sharedImports: options.sharedImports,
|
|
1103
|
+
fetchSource: options.fetchSource,
|
|
1104
|
+
createModuleUrl: options.createModuleUrl,
|
|
1105
|
+
warn: options.warn
|
|
1106
|
+
});
|
|
937
1107
|
const registryClient = new RegistryClient(options.cdnUrl);
|
|
938
1108
|
this.resolvePackages = options.resolvePackages ?? ((documentType) => registryClient.getPackagesByDocumentType(documentType));
|
|
939
1109
|
}
|
|
@@ -941,6 +1111,10 @@ var WorkerPackageLoader = class {
|
|
|
941
1111
|
await Promise.all([...new Set(specs)].map((spec) => this.loadPackage(spec)));
|
|
942
1112
|
return this.models;
|
|
943
1113
|
}
|
|
1114
|
+
/** Loads registry packages added or updated after boot; returns the types whose modules changed, and the failures. */
|
|
1115
|
+
async updatePackages(specs) {
|
|
1116
|
+
return summarize(await Promise.all([...new Set(specs)].map((spec) => this.loadPackage(spec))));
|
|
1117
|
+
}
|
|
944
1118
|
/** Loads URL-addressed packages (local project packages). Idempotent. */
|
|
945
1119
|
async loadSources(sources) {
|
|
946
1120
|
await Promise.all(sources.map((source) => this.loadFromUrl(sourceKey(source), source.url)));
|
|
@@ -954,15 +1128,7 @@ var WorkerPackageLoader = class {
|
|
|
954
1128
|
* by a newer reload of the same source contributes nothing.
|
|
955
1129
|
*/
|
|
956
1130
|
async reloadSources(sources) {
|
|
957
|
-
|
|
958
|
-
const types = /* @__PURE__ */ new Set();
|
|
959
|
-
const failures = [];
|
|
960
|
-
for (const result of results) if (result.status === "replaced") for (const type of result.types) types.add(type);
|
|
961
|
-
else if (result.status === "failed") failures.push(result.failure);
|
|
962
|
-
return {
|
|
963
|
-
types: [...types],
|
|
964
|
-
failures
|
|
965
|
-
};
|
|
1131
|
+
return summarize(await Promise.all(sources.map((source) => this.replaceSource(sourceKey(source), source.url))));
|
|
966
1132
|
}
|
|
967
1133
|
async load(documentType) {
|
|
968
1134
|
const existing = this.latestForType(documentType);
|
|
@@ -998,17 +1164,20 @@ var WorkerPackageLoader = class {
|
|
|
998
1164
|
const cause = failures.length === 1 ? failures[0].error : new AggregateError(failures.map((failure) => failure.error));
|
|
999
1165
|
return new Error(`Failed to import package(s) [${packageNames.join(", ")}] for document model: ${documentType}`, { cause });
|
|
1000
1166
|
}
|
|
1001
|
-
|
|
1167
|
+
loadPackage(spec) {
|
|
1002
1168
|
const name = packageName(spec);
|
|
1003
|
-
const url = `${this.cdnUrl}/${
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1169
|
+
const url = `${this.cdnUrl}/${spec}/browser/document-models/index.js`;
|
|
1170
|
+
const loaded = this.loadedUrls.get(name);
|
|
1171
|
+
if (loaded !== void 0 && (spec === name || loaded === url)) return Promise.resolve({ status: "unchanged" });
|
|
1172
|
+
return this.loadFromUrl(name, url, loaded !== void 0);
|
|
1173
|
+
}
|
|
1174
|
+
loadFromUrl(key, url, replace = false) {
|
|
1175
|
+
if (!replace && this.loadedUrls.has(key)) return Promise.resolve({ status: "unchanged" });
|
|
1176
|
+
const pendingKey = `${key} ${url}`;
|
|
1177
|
+
let pending = this.pendingLoads.get(pendingKey);
|
|
1009
1178
|
if (!pending) {
|
|
1010
|
-
pending = this.replaceSource(key, url).finally(() => this.pendingLoads.delete(
|
|
1011
|
-
this.pendingLoads.set(
|
|
1179
|
+
pending = this.replaceSource(key, url).finally(() => this.pendingLoads.delete(pendingKey));
|
|
1180
|
+
this.pendingLoads.set(pendingKey, pending);
|
|
1012
1181
|
}
|
|
1013
1182
|
return pending;
|
|
1014
1183
|
}
|
|
@@ -1017,7 +1186,7 @@ var WorkerPackageLoader = class {
|
|
|
1017
1186
|
this.generationBySource.set(key, generation);
|
|
1018
1187
|
let namespace;
|
|
1019
1188
|
try {
|
|
1020
|
-
namespace = await this.importNamespace(url);
|
|
1189
|
+
namespace = await this.importNamespace(key, url);
|
|
1021
1190
|
} catch (error) {
|
|
1022
1191
|
if (this.generationBySource.get(key) !== generation) return { status: "stale" };
|
|
1023
1192
|
const failure = {
|
|
@@ -1040,20 +1209,15 @@ var WorkerPackageLoader = class {
|
|
|
1040
1209
|
}
|
|
1041
1210
|
for (const type of this.manifestTypesBySource.get(key) ?? []) this.manifestsByType.delete(type);
|
|
1042
1211
|
for (const added of this.registerNamespace(key, namespace)) types.add(added);
|
|
1043
|
-
this.
|
|
1212
|
+
this.loadedUrls.set(key, url);
|
|
1044
1213
|
return {
|
|
1045
1214
|
status: "replaced",
|
|
1046
1215
|
types
|
|
1047
1216
|
};
|
|
1048
1217
|
}
|
|
1049
|
-
async importNamespace(url) {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
if (rewritten !== void 0 && rewritten !== source) {
|
|
1053
|
-
if (!this.importSource) throw new Error("importSource is required to load a package that imports shared deps");
|
|
1054
|
-
return this.importSource(rewritten);
|
|
1055
|
-
}
|
|
1056
|
-
return this.importPackage(url);
|
|
1218
|
+
async importNamespace(key, url) {
|
|
1219
|
+
if (key.startsWith(SOURCE_KEY_PREFIX)) return this.importPackage(url);
|
|
1220
|
+
return this.importPackage(await this.moduleGraph.resolve(url));
|
|
1057
1221
|
}
|
|
1058
1222
|
/** Registers a namespace as the key's whole contribution; returns its module types. */
|
|
1059
1223
|
registerNamespace(key, namespace) {
|
|
@@ -1079,6 +1243,6 @@ function sourceKey(source) {
|
|
|
1079
1243
|
return `${SOURCE_KEY_PREFIX}${source.name}`;
|
|
1080
1244
|
}
|
|
1081
1245
|
//#endregion
|
|
1082
|
-
export { FORWARDED_BUS_EVENT_TYPES, FORWARDED_EVENT_TYPES, KeyedListeners, Listeners, MessageRouter, RETIRED_WORKER_RELOAD_REASON, RPC_DEFAULT_TIMEOUT_MS, RPC_PROTOCOL_VERSION, ReactorEventBusProxy, ReactorHost, ReactorHostServer, RpcCorrelator, SYNC_STATUS_CHANGED_EVENT, SubscriptionStore, SyncManagerProxy, WorkerPackageLoader, connectReactorClient, createCorrelatedSubscriptions, createInspectorProxy, createLiveQueryProxy, createPortTransport, createReactorClientProxy, createReactorEventBusProxy, createRelationalPgliteProxy, createSyncManagerProxy, createWorkerAdminClient, dispatchInspectorOp, dispatchSyncInspectionOp, fromErrorInfo, hostResponder, isFingerprintMismatchReload, isSyncInspectionOp, localSyncPeerHandlers, opChannel, postReactorIdentity, sendAdoptSyncPeer, sendRemoveSyncPeer, toErrorInfo, toVoid };
|
|
1246
|
+
export { FORWARDED_BUS_EVENT_TYPES, FORWARDED_EVENT_TYPES, KeyedListeners, Listeners, MessageRouter, ModuleGraph, RETIRED_WORKER_RELOAD_REASON, RPC_DEFAULT_TIMEOUT_MS, RPC_PROTOCOL_VERSION, ReactorEventBusProxy, ReactorHost, ReactorHostServer, RpcCorrelator, SYNC_STATUS_CHANGED_EVENT, SubscriptionStore, SyncManagerProxy, WorkerPackageLoader, connectReactorClient, createCorrelatedSubscriptions, createInspectorProxy, createLiveQueryProxy, createPortTransport, createReactorClientProxy, createReactorEventBusProxy, createRelationalPgliteProxy, createSyncManagerProxy, createWorkerAdminClient, describeLoadFailure, dispatchInspectorOp, dispatchSyncInspectionOp, fromErrorInfo, hostResponder, isFingerprintMismatchReload, isSyncInspectionOp, localSyncPeerHandlers, opChannel, postReactorIdentity, resolveSharedSpecifier, sendAdoptSyncPeer, sendRemoveSyncPeer, toErrorInfo, toVoid };
|
|
1083
1247
|
|
|
1084
1248
|
//# sourceMappingURL=index.js.map
|