graphile-settings 2.9.4 → 2.9.5
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 +19 -19
- package/esm/index.js +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +18 -18
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
**`graphile-settings`** is a batteries-included configuration builder for [PostGraphile](https://www.graphile.org/postgraphile/), purpose-built for the
|
|
19
|
+
**`graphile-settings`** is a batteries-included configuration builder for [PostGraphile](https://www.graphile.org/postgraphile/), purpose-built for the Constructive ecosystem. It centralizes plugin setup, schema wiring, and feature flags into a single, composable interface — enabling consistent, high-performance GraphQL APIs across projects.
|
|
20
20
|
|
|
21
21
|
## 🚀 Installation
|
|
22
22
|
|
|
@@ -83,7 +83,7 @@ app.listen(settings.port);
|
|
|
83
83
|
|
|
84
84
|
## 🧰 Configuration Options
|
|
85
85
|
|
|
86
|
-
### `
|
|
86
|
+
### `ConstructiveOptions`
|
|
87
87
|
|
|
88
88
|
#### `server`
|
|
89
89
|
|
|
@@ -158,10 +158,10 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
158
158
|
|
|
159
159
|
### 🧪 Testing
|
|
160
160
|
|
|
161
|
-
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/
|
|
162
|
-
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/
|
|
163
|
-
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/
|
|
164
|
-
* [pg-query-context](https://github.com/constructive-io/constructive/tree/main/
|
|
161
|
+
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
|
|
162
|
+
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/postgres/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
|
|
163
|
+
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/graphile/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
|
|
164
|
+
* [pg-query-context](https://github.com/constructive-io/constructive/tree/main/postgres/pg-query-context): **🔒 Session context injection** to add session-local context (e.g., `SET LOCAL`) into queries—ideal for setting `role`, `jwt.claims`, and other session settings.
|
|
165
165
|
|
|
166
166
|
### 🧠 Parsing & AST
|
|
167
167
|
|
|
@@ -175,25 +175,25 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
175
175
|
|
|
176
176
|
### 🚀 API & Dev Tools
|
|
177
177
|
|
|
178
|
-
* [
|
|
179
|
-
* [
|
|
178
|
+
* [@constructive-io/graphql-server](https://github.com/constructive-io/constructive/tree/main/graphql/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
|
|
179
|
+
* [@constructive-io/graphql-explorer](https://github.com/constructive-io/constructive/tree/main/graphql/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
|
|
180
180
|
|
|
181
181
|
### 🔁 Streaming & Uploads
|
|
182
182
|
|
|
183
|
-
* [etag-hash](https://github.com/constructive-io/constructive/tree/main/
|
|
184
|
-
* [etag-stream](https://github.com/constructive-io/constructive/tree/main/
|
|
185
|
-
* [uuid-hash](https://github.com/constructive-io/constructive/tree/main/
|
|
186
|
-
* [uuid-stream](https://github.com/constructive-io/constructive/tree/main/
|
|
187
|
-
* [
|
|
188
|
-
* [
|
|
183
|
+
* [etag-hash](https://github.com/constructive-io/constructive/tree/main/streaming/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
|
|
184
|
+
* [etag-stream](https://github.com/constructive-io/constructive/tree/main/streaming/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
|
|
185
|
+
* [uuid-hash](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
|
|
186
|
+
* [uuid-stream](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
|
|
187
|
+
* [@constructive-io/s3-streamer](https://github.com/constructive-io/constructive/tree/main/streaming/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
|
|
188
|
+
* [@constructive-io/upload-names](https://github.com/constructive-io/constructive/tree/main/streaming/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
|
|
189
189
|
|
|
190
190
|
### 🧰 CLI & Codegen
|
|
191
191
|
|
|
192
|
-
* [pgpm](https://github.com/constructive-io/constructive/tree/main/
|
|
193
|
-
* [@
|
|
194
|
-
* [
|
|
195
|
-
* [@
|
|
196
|
-
* [@
|
|
192
|
+
* [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
|
|
193
|
+
* [@constructive-io/cli](https://github.com/constructive-io/constructive/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing Constructive projects—supports database scaffolding, migrations, seeding, code generation, and automation.
|
|
194
|
+
* [@constructive-io/graphql-codegen](https://github.com/constructive-io/constructive/tree/main/graphql/codegen): **✨ GraphQL code generation** (types, operations, SDK) from schema/endpoint introspection.
|
|
195
|
+
* [@constructive-io/query-builder](https://github.com/constructive-io/constructive/tree/main/packages/query-builder): **🏗️ SQL constructor** providing a robust TypeScript-based query builder for dynamic generation of `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and stored procedure calls—supports advanced SQL features like `JOIN`, `GROUP BY`, and schema-qualified queries.
|
|
196
|
+
* [@constructive-io/graphql-query](https://github.com/constructive-io/constructive/tree/main/graphql/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
|
|
197
197
|
|
|
198
198
|
## Credits
|
|
199
199
|
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PgManyToMany from '@graphile-contrib/pg-many-to-many';
|
|
2
|
-
import { getEnvOptions } from '@
|
|
2
|
+
import { getEnvOptions } from '@constructive-io/graphql-env';
|
|
3
3
|
import PgPostgis from 'graphile-postgis';
|
|
4
4
|
import FulltextFilterPlugin from 'graphile-plugin-fulltext-filter';
|
|
5
5
|
import { NodePlugin } from 'graphile-build';
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConstructiveOptions } from '@constructive-io/graphql-types';
|
|
2
2
|
import { PostGraphileOptions } from 'postgraphile';
|
|
3
|
-
export declare const getGraphileSettings: (rawOpts:
|
|
3
|
+
export declare const getGraphileSettings: (rawOpts: ConstructiveOptions) => PostGraphileOptions;
|
package/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getGraphileSettings = void 0;
|
|
40
40
|
const pg_many_to_many_1 = __importDefault(require("@graphile-contrib/pg-many-to-many"));
|
|
41
|
-
const
|
|
41
|
+
const graphql_env_1 = require("@constructive-io/graphql-env");
|
|
42
42
|
const graphile_postgis_1 = __importDefault(require("graphile-postgis"));
|
|
43
43
|
const graphile_plugin_fulltext_filter_1 = __importDefault(require("graphile-plugin-fulltext-filter"));
|
|
44
44
|
const graphile_build_1 = require("graphile-build");
|
|
@@ -51,7 +51,7 @@ const graphile_plugin_connection_filter_postgis_1 = __importDefault(require("gra
|
|
|
51
51
|
const graphile_pg_type_mappings_1 = __importDefault(require("graphile-pg-type-mappings"));
|
|
52
52
|
const graphile_upload_plugin_1 = __importStar(require("graphile-upload-plugin"));
|
|
53
53
|
const getGraphileSettings = (rawOpts) => {
|
|
54
|
-
const opts = (0,
|
|
54
|
+
const opts = (0, graphql_env_1.getEnvOptions)(rawOpts);
|
|
55
55
|
const { server, graphile, features, cdn } = opts;
|
|
56
56
|
// Instantiate uploader with merged cdn opts
|
|
57
57
|
const uploader = new graphile_upload_plugin_1.Uploader({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-settings",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.5",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "graphile settings",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
"build": "makage build",
|
|
26
26
|
"build:dev": "makage build --dev",
|
|
27
27
|
"lint": "eslint . --fix",
|
|
28
|
-
"test": "jest",
|
|
28
|
+
"test": "jest --passWithNoTests",
|
|
29
29
|
"test:watch": "jest --watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
+
"@constructive-io/graphql-env": "^2.8.4",
|
|
33
|
+
"@constructive-io/graphql-types": "^2.12.4",
|
|
32
34
|
"@graphile-contrib/pg-many-to-many": "^1.0.2",
|
|
33
|
-
"@
|
|
34
|
-
"@launchql/types": "^2.12.3",
|
|
35
|
-
"@pgpmjs/types": "^2.12.3",
|
|
35
|
+
"@pgpmjs/types": "^2.12.4",
|
|
36
36
|
"cors": "^2.8.5",
|
|
37
37
|
"express": "^5.1.0",
|
|
38
38
|
"graphile-build": "^4.14.1",
|
|
39
|
-
"graphile-i18n": "^0.2.
|
|
40
|
-
"graphile-meta-schema": "^0.3.
|
|
41
|
-
"graphile-pg-type-mappings": "^0.3.
|
|
42
|
-
"graphile-plugin-connection-filter": "^2.4.
|
|
43
|
-
"graphile-plugin-connection-filter-postgis": "^1.1.
|
|
44
|
-
"graphile-plugin-fulltext-filter": "^2.1.
|
|
45
|
-
"graphile-postgis": "^0.2.
|
|
46
|
-
"graphile-query": "^2.4.
|
|
47
|
-
"graphile-search-plugin": "^0.2.
|
|
48
|
-
"graphile-simple-inflector": "^0.2.
|
|
49
|
-
"graphile-upload-plugin": "^0.5.
|
|
39
|
+
"graphile-i18n": "^0.2.10",
|
|
40
|
+
"graphile-meta-schema": "^0.3.10",
|
|
41
|
+
"graphile-pg-type-mappings": "^0.3.10",
|
|
42
|
+
"graphile-plugin-connection-filter": "^2.4.10",
|
|
43
|
+
"graphile-plugin-connection-filter-postgis": "^1.1.10",
|
|
44
|
+
"graphile-plugin-fulltext-filter": "^2.1.10",
|
|
45
|
+
"graphile-postgis": "^0.2.10",
|
|
46
|
+
"graphile-query": "^2.4.5",
|
|
47
|
+
"graphile-search-plugin": "^0.2.10",
|
|
48
|
+
"graphile-simple-inflector": "^0.2.10",
|
|
49
|
+
"graphile-upload-plugin": "^0.5.5",
|
|
50
50
|
"graphql": "15.10.1",
|
|
51
51
|
"graphql-tag": "2.12.6",
|
|
52
52
|
"graphql-upload": "^13.0.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"graphile",
|
|
69
69
|
"settings",
|
|
70
70
|
"configuration",
|
|
71
|
-
"
|
|
71
|
+
"constructive",
|
|
72
72
|
"graphql"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "22cfe32e994e26a6490e04e28bab26d1e7e6345c"
|
|
75
75
|
}
|