@powerhousedao/reactor-local 1.17.0 → 1.18.1

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/CHANGELOG.md CHANGED
@@ -1,28 +1,21 @@
1
- ## 1.17.0 (2025-01-24)
2
-
3
- ### 🚀 Features
4
-
5
- - **reactor-local:** load document models from installed packages ([3d434fd7](https://github.com/powerhouse-inc/powerhouse/commit/3d434fd7))
6
- - **ph-cli:** use getConfig in connect command ([#917](https://github.com/powerhouse-inc/powerhouse/pull/917))
7
- - **ph-cli:** trigger release ([6624a561](https://github.com/powerhouse-inc/powerhouse/commit/6624a561))
1
+ ## 1.18.1 (2025-01-29)
8
2
 
9
3
  ### 🩹 Fixes
10
4
 
11
- - **ph-cmd:** read version from package.json ([#920](https://github.com/powerhouse-inc/powerhouse/pull/920))
12
- - **ph-cli:** update connect dep ([#919](https://github.com/powerhouse-inc/powerhouse/pull/919))
5
+ - **connect:** setup npm release ([650f0888](https://github.com/powerhouse-inc/powerhouse/commit/650f0888))
6
+ - **connect:** lint ([4ada2650](https://github.com/powerhouse-inc/powerhouse/commit/4ada2650))
7
+ - **connect:** updated dependencies ([de205722](https://github.com/powerhouse-inc/powerhouse/commit/de205722))
13
8
 
14
9
  ### 🧱 Updated Dependencies
15
10
 
16
- - Updated document-model-libs to 1.129.0
17
- - Updated document-drive to 1.16.1
18
- - Updated @powerhousedao/reactor-api to 1.18.0
19
- - Updated @powerhousedao/scalars to 1.21.0
11
+ - Updated document-model-libs to 1.130.1
12
+ - Updated document-drive to 1.16.3
13
+ - Updated @powerhousedao/reactor-api to 1.19.1
14
+ - Updated @powerhousedao/scalars to 1.21.1
20
15
 
21
16
  ### ❤️ Thank You
22
17
 
23
- - acaldas @acaldas
24
- - Frank @froid1911
25
- - Guillermo Puente Sandoval @gpuente
18
+ - Guillermo Puente @gpuente
26
19
 
27
20
  ## 1.1.0 (2024-10-29)
28
21
 
@@ -15,8 +15,8 @@ import sanitize from 'sanitize-filename';
15
15
  import * as DocumentModelsLibs from 'document-model-libs/document-models';
16
16
  import { module } from 'document-model/document-model';
17
17
  import dotenv from 'dotenv';
18
- import path2 from 'node:path';
19
18
  import { access } from 'node:fs/promises';
19
+ import path2 from 'node:path';
20
20
  import { createServer } from 'vite';
21
21
 
22
22
  // src/server.ts
@@ -3984,7 +3984,8 @@ var startServer = async (options) => {
3984
3984
  try {
3985
3985
  const api = await startAPI(driveServer, {
3986
3986
  port: serverPort,
3987
- dbPath
3987
+ dbPath,
3988
+ https: options?.https
3988
3989
  });
3989
3990
  driveUrl = `http://localhost:${serverPort}/${driveId ? `d/${drive.global.slug ?? drive.global.id}` : ""}`;
3990
3991
  console.log(` \u279C Reactor: ${driveUrl}`);
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #! /usr/bin/env node
2
- import { startServer } from './chunk-LB7K3WHR.js';
2
+ import { startServer } from './chunk-VSPFGFDT.js';
3
3
  import { Command } from 'commander';
4
4
 
5
5
  var reactorLocalAction = (options) => {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { DefaultStartServerOptions, startServer } from './chunk-LB7K3WHR.js';
1
+ export { DefaultStartServerOptions, startServer } from './chunk-VSPFGFDT.js';
package/dist/server.d.ts CHANGED
@@ -249,6 +249,10 @@ type StartServerOptions = {
249
249
  dbPath?: string;
250
250
  drive?: DriveInput;
251
251
  packages?: Packages;
252
+ https?: {
253
+ keyPath: string;
254
+ certPath: string;
255
+ };
252
256
  };
253
257
  declare const DefaultStartServerOptions: {
254
258
  port: number;
package/dist/server.js CHANGED
@@ -1 +1 @@
1
- export { DefaultStartServerOptions, startServer } from './chunk-LB7K3WHR.js';
1
+ export { DefaultStartServerOptions, startServer } from './chunk-VSPFGFDT.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/reactor-local",
3
3
  "type": "module",
4
- "version": "1.17.0",
4
+ "version": "1.18.1",
5
5
  "main": "dist/server.js",
6
6
  "bin": {
7
7
  "reactor-local": "dist/cli.js"
@@ -27,10 +27,10 @@
27
27
  "nanoevents": "^9.0.0",
28
28
  "sanitize-filename": "^1.6.3",
29
29
  "uuid": "^11.0.2",
30
- "@powerhousedao/reactor-api": "1.18.0",
31
- "@powerhousedao/scalars": "1.21.0",
30
+ "@powerhousedao/reactor-api": "1.19.1",
32
31
  "document-model": "2.18.0",
33
- "document-model-libs": "1.129.0"
32
+ "document-model-libs": "1.130.1",
33
+ "@powerhousedao/scalars": "1.21.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@powerhousedao/analytics-engine-graphql": "^0.2.1",
@@ -40,7 +40,7 @@
40
40
  "@types/ms": "^0.7.34",
41
41
  "@types/node": "^22.7.5",
42
42
  "tsup": "^8.3.5",
43
- "document-drive": "1.16.1"
43
+ "document-drive": "1.16.3"
44
44
  },
45
45
  "scripts": {
46
46
  "start": "vite-node src/index.ts",
package/src/server.ts CHANGED
@@ -2,10 +2,11 @@ import {
2
2
  API,
3
3
  IProcessorManager,
4
4
  isProcessorClass,
5
+ isSubgraphClass,
5
6
  startAPI,
7
+ SubgraphClass,
6
8
  SubgraphManager,
7
9
  } from "@powerhousedao/reactor-api";
8
- import { isSubgraphClass, SubgraphClass } from "@powerhousedao/reactor-api";
9
10
  import {
10
11
  DocumentDriveServer,
11
12
  DriveAlreadyExistsError,
@@ -20,8 +21,8 @@ import * as DocumentModelsLibs from "document-model-libs/document-models";
20
21
  import { DocumentModel } from "document-model/document";
21
22
  import { module as DocumentModelLib } from "document-model/document-model";
22
23
  import dotenv from "dotenv";
23
- import path from "node:path";
24
24
  import { access } from "node:fs/promises";
25
+ import path from "node:path";
25
26
  import { createServer as createViteServer, ViteDevServer } from "vite";
26
27
 
27
28
  type FSError = {
@@ -46,6 +47,10 @@ export type StartServerOptions = {
46
47
  dbPath?: string;
47
48
  drive?: DriveInput;
48
49
  packages?: Packages;
50
+ https?: {
51
+ keyPath: string;
52
+ certPath: string;
53
+ };
49
54
  };
50
55
 
51
56
  export const DefaultStartServerOptions = {
@@ -143,6 +148,7 @@ const startServer = async (
143
148
  const api = await startAPI(driveServer, {
144
149
  port: serverPort,
145
150
  dbPath,
151
+ https: options?.https,
146
152
  });
147
153
  driveUrl = `http://localhost:${serverPort}/${driveId ? `d/${drive.global.slug ?? drive.global.id}` : ""}`;
148
154
  console.log(` ➜ Reactor: ${driveUrl}`);