graphile-settings 2.9.4 → 2.9.6

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 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 [LaunchQL](https://github.com/constructive-io/constructive) ecosystem. It centralizes plugin setup, schema wiring, and feature flags into a single, composable interface — enabling consistent, high-performance GraphQL APIs across projects.
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
- ### `LaunchQLOptions`
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/packages/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/packages/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/packages/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/packages/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.
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
- * [launchql/server](https://github.com/constructive-io/constructive/tree/main/packages/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
179
- * [launchql/explorer](https://github.com/constructive-io/constructive/tree/main/packages/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
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/packages/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/packages/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
185
- * [uuid-hash](https://github.com/constructive-io/constructive/tree/main/packages/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/packages/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
187
- * [launchql/s3-streamer](https://github.com/constructive-io/constructive/tree/main/packages/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
188
- * [launchql/upload-names](https://github.com/constructive-io/constructive/tree/main/packages/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
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/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
193
- * [@launchql/cli](https://github.com/constructive-io/constructive/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing LaunchQL projects—supports database scaffolding, migrations, seeding, code generation, and automation.
194
- * [launchql-gen](https://github.com/constructive-io/constructive/tree/main/packages/launchql-gen): **✨ Auto-generated GraphQL** mutations and queries dynamically built from introspected schema data.
195
- * [@launchql/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
- * [@launchql/query](https://github.com/constructive-io/constructive/tree/main/packages/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
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 '@launchql/env';
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 { LaunchQLOptions } from '@launchql/types';
1
+ import { ConstructiveOptions } from '@constructive-io/graphql-types';
2
2
  import { PostGraphileOptions } from 'postgraphile';
3
- export declare const getGraphileSettings: (rawOpts: LaunchQLOptions) => PostGraphileOptions;
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 env_1 = require("@launchql/env");
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, env_1.getEnvOptions)(rawOpts);
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.4",
3
+ "version": "2.9.6",
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.5",
33
+ "@constructive-io/graphql-types": "^2.12.5",
32
34
  "@graphile-contrib/pg-many-to-many": "^1.0.2",
33
- "@launchql/env": "^2.8.3",
34
- "@launchql/types": "^2.12.3",
35
- "@pgpmjs/types": "^2.12.3",
35
+ "@pgpmjs/types": "^2.12.5",
36
36
  "cors": "^2.8.5",
37
37
  "express": "^5.1.0",
38
38
  "graphile-build": "^4.14.1",
39
- "graphile-i18n": "^0.2.9",
40
- "graphile-meta-schema": "^0.3.9",
41
- "graphile-pg-type-mappings": "^0.3.9",
42
- "graphile-plugin-connection-filter": "^2.4.9",
43
- "graphile-plugin-connection-filter-postgis": "^1.1.9",
44
- "graphile-plugin-fulltext-filter": "^2.1.9",
45
- "graphile-postgis": "^0.2.9",
46
- "graphile-query": "^2.4.4",
47
- "graphile-search-plugin": "^0.2.9",
48
- "graphile-simple-inflector": "^0.2.9",
49
- "graphile-upload-plugin": "^0.5.4",
39
+ "graphile-i18n": "^0.2.11",
40
+ "graphile-meta-schema": "^0.3.11",
41
+ "graphile-pg-type-mappings": "^0.3.11",
42
+ "graphile-plugin-connection-filter": "^2.4.11",
43
+ "graphile-plugin-connection-filter-postgis": "^1.1.11",
44
+ "graphile-plugin-fulltext-filter": "^2.1.11",
45
+ "graphile-postgis": "^0.2.11",
46
+ "graphile-query": "^2.4.6",
47
+ "graphile-search-plugin": "^0.2.11",
48
+ "graphile-simple-inflector": "^0.2.11",
49
+ "graphile-upload-plugin": "^0.5.6",
50
50
  "graphql": "15.10.1",
51
51
  "graphql-tag": "2.12.6",
52
52
  "graphql-upload": "^13.0.0",
@@ -60,7 +60,7 @@
60
60
  "@types/express": "^5.0.6",
61
61
  "@types/pg": "^8.16.0",
62
62
  "@types/request-ip": "^0.0.41",
63
- "makage": "^0.1.8",
63
+ "makage": "^0.1.9",
64
64
  "nodemon": "^3.1.10",
65
65
  "ts-node": "^10.9.2"
66
66
  },
@@ -68,8 +68,8 @@
68
68
  "graphile",
69
69
  "settings",
70
70
  "configuration",
71
- "launchql",
71
+ "constructive",
72
72
  "graphql"
73
73
  ],
74
- "gitHead": "86d74dc4fce9051df0d2b5bcc163607aba42f009"
74
+ "gitHead": "e45ec95404e48d0c0542da882a3baea0cd6de1c7"
75
75
  }