@powerhousedao/reactor-local 1.6.0 → 1.7.0

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 (3) hide show
  1. package/CHANGELOG.md +14 -35
  2. package/package.json +12 -13
  3. package/src/server.ts +6 -6
package/CHANGELOG.md CHANGED
@@ -1,46 +1,25 @@
1
- ## 1.6.0 (2024-11-29)
1
+ ## 1.7.0 (2024-12-03)
2
2
 
3
3
  ### 🚀 Features
4
4
 
5
- - **monorepo:** do not skip nx cache ([dfadd970](https://github.com/powerhouse-inc/powerhouse/commit/dfadd970))
6
- - **monorepo:** uncomment test ([dbd42350](https://github.com/powerhouse-inc/powerhouse/commit/dbd42350))
7
- - **monorepo:** readd special check pr for document drive ([f1b9f7fe](https://github.com/powerhouse-inc/powerhouse/commit/f1b9f7fe))
8
- - **monorepo:** use explicit paths ([ce5deb4c](https://github.com/powerhouse-inc/powerhouse/commit/ce5deb4c))
9
- - **monorepo:** remove set dir as safe ([e8033645](https://github.com/powerhouse-inc/powerhouse/commit/e8033645))
10
- - **monorepo:** handle document drive separately ([a94d4c26](https://github.com/powerhouse-inc/powerhouse/commit/a94d4c26))
11
- - **monorepo:** add debug info ([ee1b7cab](https://github.com/powerhouse-inc/powerhouse/commit/ee1b7cab))
12
- - **monorepo:** add read permissions ([ee6397d2](https://github.com/powerhouse-inc/powerhouse/commit/ee6397d2))
13
- - **monorepo:** use set shas lib ([769e74a6](https://github.com/powerhouse-inc/powerhouse/commit/769e74a6))
14
- - **monorepo:** add base ([22a5fffd](https://github.com/powerhouse-inc/powerhouse/commit/22a5fffd))
15
- - **monorepo:** simplify commands ([75000bb4](https://github.com/powerhouse-inc/powerhouse/commit/75000bb4))
16
- - **monorepo:** fix yaml syntax error ([5c82fcec](https://github.com/powerhouse-inc/powerhouse/commit/5c82fcec))
17
- - **monorepo:** use workflow dispatch ([d1b4bde9](https://github.com/powerhouse-inc/powerhouse/commit/d1b4bde9))
18
- - **monorepo:** still run on pushes ([86998628](https://github.com/powerhouse-inc/powerhouse/commit/86998628))
19
- - **monorepo:** add if statements to prevent redundant runs ([193c5df5](https://github.com/powerhouse-inc/powerhouse/commit/193c5df5))
20
- - **monorepo:** prevent duplicate runs ([1ce210b9](https://github.com/powerhouse-inc/powerhouse/commit/1ce210b9))
21
- - **monorepo:** remove package manager config ([f177433b](https://github.com/powerhouse-inc/powerhouse/commit/f177433b))
22
- - **monorepo:** install pnpm before doing node cache ([ab1cc5a6](https://github.com/powerhouse-inc/powerhouse/commit/ab1cc5a6))
23
- - **monorepo:** simplify pr checks ([40d0cb59](https://github.com/powerhouse-inc/powerhouse/commit/40d0cb59))
24
- - **monorepo:** add dry run version of release package action for testing ([323807f8](https://github.com/powerhouse-inc/powerhouse/commit/323807f8))
25
- - **monorepo:** update release package manual ([405b6877](https://github.com/powerhouse-inc/powerhouse/commit/405b6877))
26
- - **monorepo:** use workspace protocol in package deps ([2584e9dd](https://github.com/powerhouse-inc/powerhouse/commit/2584e9dd))
27
- - **monorepo:** add preserve local dependency protocols to nx config ([b1902311](https://github.com/powerhouse-inc/powerhouse/commit/b1902311))
28
- - **powerhouse:** regenerate lockfile ([#588](https://github.com/powerhouse-inc/powerhouse/pull/588))
29
- - **reactor-local:** added automatic loading and activation of proces… ([#574](https://github.com/powerhouse-inc/powerhouse/pull/574))
30
- - **document-model-libs:** regenerate lockfile ([04f0b0e6](https://github.com/powerhouse-inc/powerhouse/commit/04f0b0e6))
31
- - **monorepo:** fix eslint config for react files ([019fa584](https://github.com/powerhouse-inc/powerhouse/commit/019fa584))
5
+ - **design-system:** bump storybook deps ([f21d9539](https://github.com/powerhouse-inc/powerhouse/commit/f21d9539))
6
+ - **monorepo:** remove eslint args ([4677e343](https://github.com/powerhouse-inc/powerhouse/commit/4677e343))
7
+ - **monorepo:** readd vite for reactor local ([24a9e56b](https://github.com/powerhouse-inc/powerhouse/commit/24a9e56b))
8
+ - **monorepo:** add linting for switchboard gui ([dc56c561](https://github.com/powerhouse-inc/powerhouse/commit/dc56c561))
9
+ - **monorepo:** gitignore tsbuildinfo files ([d676a703](https://github.com/powerhouse-inc/powerhouse/commit/d676a703))
10
+ - **monorepo:** unify typescript and linting ([24b9a205](https://github.com/powerhouse-inc/powerhouse/commit/24b9a205))
32
11
 
33
12
  ### 🧱 Updated Dependencies
34
13
 
35
- - Updated @powerhousedao/general-document-indexer to 1.4.0
36
- - Updated document-model-libs to 1.117.0
37
- - Updated document-drive to 1.5.0
38
- - Updated @powerhousedao/reactor-api to 1.6.0
14
+ - Updated @powerhousedao/general-document-indexer to 1.5.0
15
+ - Updated document-model-libs to 1.117.1
16
+ - Updated document-drive to 1.6.0
17
+ - Updated document-model to 2.8.0
18
+ - Updated @powerhousedao/reactor-api to 1.7.0
19
+ - Updated @powerhousedao/scalars to 1.10.0
39
20
 
40
- ### ❤️ Thank You
21
+ ### ❤️ Thank You
41
22
 
42
- - frankp.eth @froid1911
43
- - Ryan Wolhuter @ryanwolhuter
44
23
  - ryanwolhuter @ryanwolhuter
45
24
 
46
25
  ## 1.1.0 (2024-10-29)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/reactor-local",
3
3
  "type": "module",
4
- "version": "1.6.0",
4
+ "version": "1.7.0",
5
5
  "main": "dist/server.js",
6
6
  "bin": {
7
7
  "reactor-local": "dist/cli.js"
@@ -30,13 +30,13 @@
30
30
  "pg": "^8.13.0",
31
31
  "sanitize-filename": "^1.6.3",
32
32
  "uuid": "^11.0.2",
33
- "vite": "^5.4.11",
34
- "vite-node": "^2.1.2",
35
- "@powerhousedao/general-document-indexer": "1.4.0",
36
- "@powerhousedao/reactor-api": "1.6.0",
37
- "document-model-libs": "1.117.0",
38
- "document-model": "2.7.1",
39
- "@powerhousedao/scalars": "1.9.0"
33
+ "vite": "^6.0.2",
34
+ "vite-node": "^2.1.7",
35
+ "@powerhousedao/general-document-indexer": "1.5.0",
36
+ "@powerhousedao/scalars": "1.10.0",
37
+ "document-model": "2.8.0",
38
+ "document-model-libs": "1.117.1",
39
+ "@powerhousedao/reactor-api": "1.7.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/body-parser": "^1.19.5",
@@ -46,13 +46,12 @@
46
46
  "@types/node": "^22.7.5",
47
47
  "@types/pg": "^8.11.10",
48
48
  "postcss": "^8.4.47",
49
- "tsup": "^8.3.0",
50
- "typescript": "^5.6.2",
51
- "@powerhousedao/scalars": "1.9.0",
52
- "document-drive": "1.5.0"
49
+ "tsup": "^8.3.5",
50
+ "@powerhousedao/scalars": "1.10.0",
51
+ "document-drive": "1.6.0"
53
52
  },
54
53
  "peerDependencies": {
55
- "@powerhousedao/scalars": "1.9.0"
54
+ "@powerhousedao/scalars": "1.10.0"
56
55
  },
57
56
  "scripts": {
58
57
  "start": "vite-node src/index.ts",
package/src/server.ts CHANGED
@@ -63,7 +63,7 @@ export type LocalReactor = {
63
63
  label: string;
64
64
  block: boolean;
65
65
  filter: ListenerFilter;
66
- }
66
+ },
67
67
  ) => Promise<InternalTransmitter>;
68
68
  };
69
69
 
@@ -73,7 +73,7 @@ const baseDocumentModels = [
73
73
  ] as DocumentModel[];
74
74
 
75
75
  const startServer = async (
76
- options?: StartServerOptions
76
+ options?: StartServerOptions,
77
77
  ): Promise<LocalReactor> => {
78
78
  const { port, storagePath, drive, dev } = {
79
79
  ...DefaultStartServerOptions,
@@ -84,7 +84,7 @@ const startServer = async (
84
84
  // start document drive server with all available document models & filesystem storage
85
85
  const driveServer = new DocumentDriveServer(
86
86
  baseDocumentModels,
87
- new FilesystemStorage(storagePath)
87
+ new FilesystemStorage(storagePath),
88
88
  );
89
89
 
90
90
  // init drive server
@@ -145,7 +145,7 @@ const startServer = async (
145
145
  const processorsPath = path.join(process.cwd(), "./processors");
146
146
  console.log("Loading processors from", processorsPath);
147
147
  const localProcessors = (await vite.ssrLoadModule(
148
- processorsPath
148
+ processorsPath,
149
149
  )) as Record<string, any>;
150
150
 
151
151
  for (const [name, processor] of Object.entries(localProcessors)) {
@@ -156,7 +156,7 @@ const startServer = async (
156
156
  createSchema(
157
157
  driveServer,
158
158
  processor.resolvers,
159
- processor.typeDefs
159
+ processor.typeDefs,
160
160
  ),
161
161
  }),
162
162
  registerInternalListener({
@@ -184,7 +184,7 @@ const startServer = async (
184
184
  label: string;
185
185
  block: boolean;
186
186
  filter: ListenerFilter;
187
- }
187
+ },
188
188
  ) => driveServer.addInternalListener(driveId, receiver, options),
189
189
  };
190
190
  };