@powerhousedao/reactor 6.2.0-dev.3 → 6.2.0-dev.31
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/{build-worker-executor-DDVXB921.js → build-worker-executor-DeJ2DW16.js} +2 -2
- package/dist/{build-worker-executor-DDVXB921.js.map → build-worker-executor-DeJ2DW16.js.map} +1 -1
- package/dist/{drive-container-types-BNpMlgT_.js → drive-container-types-BxnXaOAp.js} +128 -104
- package/dist/drive-container-types-BxnXaOAp.js.map +1 -0
- package/dist/entry.js +2 -2
- package/dist/index.d.ts +84 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +104 -26
- package/dist/index.js.map +1 -1
- package/dist/projection-entry.js +2 -2
- package/dist/{worker-SUoDhurA.js → worker-XYrQaEmt.js} +2 -2
- package/dist/{worker-SUoDhurA.js.map → worker-XYrQaEmt.js.map} +1 -1
- package/package.json +19 -7
- package/dist/drive-container-types-BNpMlgT_.js.map +0 -1
package/dist/projection-entry.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as CollectionMembershipCache, _ as KyselyWriteCache, d as KyselyKeyframeStore, f as DocumentModelRegistry, g as EventBus, n as REACTOR_SCHEMA, o as instrumentPgPool, s as KyselyOperationStore, v as KyselyOperationIndex, y as DocumentMetaCache } from "./drive-container-types-
|
|
1
|
+
import { S as CollectionMembershipCache, _ as KyselyWriteCache, d as KyselyKeyframeStore, f as DocumentModelRegistry, g as EventBus, n as REACTOR_SCHEMA, o as instrumentPgPool, s as KyselyOperationStore, v as KyselyOperationIndex, y as DocumentMetaCache } from "./drive-container-types-BxnXaOAp.js";
|
|
2
2
|
import { n as ReactorEventTypes } from "./types-CxSpmNGK.js";
|
|
3
3
|
import { a as ReadModelCoordinator, i as KyselyDocumentView, n as ConsistencyTracker, t as KyselyDocumentIndexer } from "./document-indexer-B2iLRB0o.js";
|
|
4
4
|
import { n as errorToInfo, t as createForwardingLogger } from "./forwarding-logger-BBkMSxuJ.js";
|
|
5
|
-
import { n as defaultLoadFactory } from "./build-worker-executor-
|
|
5
|
+
import { n as defaultLoadFactory } from "./build-worker-executor-DeJ2DW16.js";
|
|
6
6
|
import { ConsoleLogger } from "document-model";
|
|
7
7
|
import { isMainThread, parentPort } from "node:worker_threads";
|
|
8
8
|
//#region src/projection/projection-worker/build-projection-stack.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as __exportAll } from "./drive-container-types-
|
|
1
|
+
import { M as __exportAll } from "./drive-container-types-BxnXaOAp.js";
|
|
2
2
|
import { n as errorToInfo, r as sanitizeArg, t as createForwardingLogger } from "./forwarding-logger-BBkMSxuJ.js";
|
|
3
3
|
//#region src/executor/worker/index.ts
|
|
4
4
|
var worker_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -19,4 +19,4 @@ const workerEntryPath = resolveWorkerEntryPath();
|
|
|
19
19
|
//#endregion
|
|
20
20
|
export { worker_exports as n, workerEntryPath as t };
|
|
21
21
|
|
|
22
|
-
//# sourceMappingURL=worker-
|
|
22
|
+
//# sourceMappingURL=worker-XYrQaEmt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-
|
|
1
|
+
{"version":3,"file":"worker-XYrQaEmt.js","names":[],"sources":["../src/executor/worker/index.ts"],"sourcesContent":["export { createForwardingLogger } from \"./forwarding-logger.js\";\nexport { errorToInfo, sanitizeArg } from \"./sanitize.js\";\n\nfunction resolveWorkerEntryPath(): string {\n const url = new URL(\"./entry.js\", import.meta.url);\n if (url.protocol !== \"file:\") {\n return url.href;\n }\n let pathname = decodeURIComponent(url.pathname);\n if (/^\\/[A-Za-z]:[/\\\\]/.test(pathname)) {\n pathname = pathname.slice(1);\n }\n return pathname;\n}\n\n/** Absolute path to the worker entry script for use with `new Worker(workerEntryPath)`. */\nexport const workerEntryPath = resolveWorkerEntryPath();\n"],"mappings":";;;;;;;;;AAGA,SAAS,yBAAiC;CACxC,MAAM,MAAM,IAAI,IAAI,cAAc,OAAO,KAAK,IAAI;AAClD,KAAI,IAAI,aAAa,QACnB,QAAO,IAAI;CAEb,IAAI,WAAW,mBAAmB,IAAI,SAAS;AAC/C,KAAI,oBAAoB,KAAK,SAAS,CACpC,YAAW,SAAS,MAAM,EAAE;AAE9B,QAAO;;;AAIT,MAAa,kBAAkB,wBAAwB"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/reactor",
|
|
3
|
-
"version": "6.2.0-dev.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "6.2.0-dev.31",
|
|
4
|
+
"description": "Core Powerhouse reactor — stores documents, resolves conflicts, and reprocesses operation histories. Supports local, cloud, and decentralized storage backends.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/powerhouse-inc/powerhouse",
|
|
7
|
-
"directory": "packages/reactor"
|
|
7
|
+
"directory": "packages/reactor",
|
|
8
|
+
"type": "git"
|
|
8
9
|
},
|
|
9
10
|
"type": "module",
|
|
10
11
|
"sideEffects": false,
|
|
@@ -21,7 +22,17 @@
|
|
|
21
22
|
"publishConfig": {
|
|
22
23
|
"access": "public"
|
|
23
24
|
},
|
|
24
|
-
"keywords": [
|
|
25
|
+
"keywords": [
|
|
26
|
+
"powerhouse",
|
|
27
|
+
"vetra",
|
|
28
|
+
"document-model",
|
|
29
|
+
"local-first",
|
|
30
|
+
"event-sourcing",
|
|
31
|
+
"reactor",
|
|
32
|
+
"cqrs",
|
|
33
|
+
"decentralized",
|
|
34
|
+
"sync"
|
|
35
|
+
],
|
|
25
36
|
"author": "",
|
|
26
37
|
"license": "AGPL-3.0-only",
|
|
27
38
|
"dependencies": {
|
|
@@ -31,8 +42,8 @@
|
|
|
31
42
|
"@electric-sql/pglite": "0.3.15",
|
|
32
43
|
"pg": "8.18.0",
|
|
33
44
|
"@sindresorhus/fnv1a": "3.1.0",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
45
|
+
"@powerhousedao/shared": "6.2.0-dev.31",
|
|
46
|
+
"document-model": "6.2.0-dev.31"
|
|
36
47
|
},
|
|
37
48
|
"devDependencies": {
|
|
38
49
|
"@types/pg": "8.16.0",
|
|
@@ -43,8 +54,9 @@
|
|
|
43
54
|
"vitest": "4.1.1",
|
|
44
55
|
"@types/bun": "1.3.8",
|
|
45
56
|
"tsdown": "0.21.1",
|
|
46
|
-
"@powerhousedao/pglite-fs": "6.2.0-dev.
|
|
57
|
+
"@powerhousedao/pglite-fs": "6.2.0-dev.31"
|
|
47
58
|
},
|
|
59
|
+
"homepage": "https://academy.vetra.io/academy/Reference/Reactor/WorkingWithTheReactor",
|
|
48
60
|
"scripts": {
|
|
49
61
|
"build": "tsdown",
|
|
50
62
|
"test": "vitest run --coverage --printConsoleTrace=true --silent=false",
|