@constructive-io/graphql-dev-server 3.22.12 → 3.23.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.
- package/README.md +2 -2
- package/esm/preset.js +3 -4
- package/package.json +3 -3
- package/preset.d.ts +3 -4
- package/preset.js +3 -4
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ await server.stop();
|
|
|
39
39
|
|
|
40
40
|
## What it does
|
|
41
41
|
|
|
42
|
-
- Builds a Constructive-style PostGraphile v5 preset via `createConstructivePreset()`, so all the standard presets (connection filters, search, PostGIS, ltree,
|
|
42
|
+
- Builds a Constructive-style PostGraphile v5 preset via `createConstructivePreset()`, so all the standard presets (connection filters, search, PostGIS, ltree, meta-schema, inflection, type mappings, etc.) are baked in automatically.
|
|
43
43
|
- Serves the schemas in `api.exposedSchemas` from a single database.
|
|
44
44
|
- Runs every request as one fixed role (`api.roleName` → `api.anonRole` → `pg.user`). There is no per-request auth and no routing.
|
|
45
45
|
- Exposes `/healthz`, `/graphql`, and `/graphiql`.
|
|
@@ -51,7 +51,7 @@ The following plugin groups resolve per-tenant configuration from a `database_id
|
|
|
51
51
|
- **Presigned uploads / bucket provisioner** (`enablePresignedUploads: false`) — resolve per-tenant storage config keyed by `database_id`.
|
|
52
52
|
- **LLM** (`enableLlm: false`) — resolves per-tenant billing / inference-log config keyed by `database_id`.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
The dev server therefore has no upload path; uploads are presigned and resolve the tenant's storage module.
|
|
55
55
|
|
|
56
56
|
## Configuration
|
|
57
57
|
|
package/esm/preset.js
CHANGED
|
@@ -6,10 +6,9 @@ import { createConstructivePreset, makePgService } from 'graphile-settings';
|
|
|
6
6
|
* configured schemas with a fixed role and no scoped-routing plane. Only
|
|
7
7
|
* plugins that do NOT depend on a tenant database id are enabled. The presigned
|
|
8
8
|
* upload / bucket-provisioner plugins resolve per-tenant storage config from a
|
|
9
|
-
* `database_id`, and the LLM plugin resolves per-tenant
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* Nothing enabled here reads `jwt.claims.database_id`.
|
|
9
|
+
* `database_id`, and the LLM plugin resolves per-tenant model config from a
|
|
10
|
+
* `database_id`, so all three are excluded here. Nothing enabled here reads
|
|
11
|
+
* `jwt.claims.database_id`.
|
|
13
12
|
*/
|
|
14
13
|
export const buildDevPreset = ({ pool, schemas, role }) => ({
|
|
15
14
|
extends: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-dev-server",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Pure-PostGraphile single-tenant dev server (no scoped routing, no database-id plugins)",
|
|
6
6
|
"main": "index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"graphile-build-pg": "5.1.3",
|
|
46
46
|
"graphile-cache": "^4.16.1",
|
|
47
47
|
"graphile-config": "1.1.0",
|
|
48
|
-
"graphile-settings": "^6.
|
|
48
|
+
"graphile-settings": "^6.31.0",
|
|
49
49
|
"graphile-utils": "5.0.3",
|
|
50
50
|
"graphql": "16.13.0",
|
|
51
51
|
"pg": "^8.21.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"dev-server",
|
|
63
63
|
"single-tenant"
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "b579521f138b5f9a2922ed1066e2ad5dfe2a7073"
|
|
66
66
|
}
|
package/preset.d.ts
CHANGED
|
@@ -13,9 +13,8 @@ export interface DevPresetInput {
|
|
|
13
13
|
* configured schemas with a fixed role and no scoped-routing plane. Only
|
|
14
14
|
* plugins that do NOT depend on a tenant database id are enabled. The presigned
|
|
15
15
|
* upload / bucket-provisioner plugins resolve per-tenant storage config from a
|
|
16
|
-
* `database_id`, and the LLM plugin resolves per-tenant
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* Nothing enabled here reads `jwt.claims.database_id`.
|
|
16
|
+
* `database_id`, and the LLM plugin resolves per-tenant model config from a
|
|
17
|
+
* `database_id`, so all three are excluded here. Nothing enabled here reads
|
|
18
|
+
* `jwt.claims.database_id`.
|
|
20
19
|
*/
|
|
21
20
|
export declare const buildDevPreset: ({ pool, schemas, role }: DevPresetInput) => GraphileConfig.Preset;
|
package/preset.js
CHANGED
|
@@ -9,10 +9,9 @@ const graphile_settings_1 = require("graphile-settings");
|
|
|
9
9
|
* configured schemas with a fixed role and no scoped-routing plane. Only
|
|
10
10
|
* plugins that do NOT depend on a tenant database id are enabled. The presigned
|
|
11
11
|
* upload / bucket-provisioner plugins resolve per-tenant storage config from a
|
|
12
|
-
* `database_id`, and the LLM plugin resolves per-tenant
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* Nothing enabled here reads `jwt.claims.database_id`.
|
|
12
|
+
* `database_id`, and the LLM plugin resolves per-tenant model config from a
|
|
13
|
+
* `database_id`, so all three are excluded here. Nothing enabled here reads
|
|
14
|
+
* `jwt.claims.database_id`.
|
|
16
15
|
*/
|
|
17
16
|
const buildDevPreset = ({ pool, schemas, role }) => ({
|
|
18
17
|
extends: [
|