graphile-settings 5.5.0 → 5.6.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/README.md
CHANGED
|
@@ -262,6 +262,10 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
262
262
|
* [@pgsql/types](https://www.npmjs.com/package/@pgsql/types): **📝 Type definitions** for PostgreSQL AST nodes in TypeScript.
|
|
263
263
|
* [@pgsql/utils](https://www.npmjs.com/package/@pgsql/utils): **🛠️ AST utilities** for constructing and transforming PostgreSQL syntax trees.
|
|
264
264
|
|
|
265
|
+
### 📚 Documentation & Skills
|
|
266
|
+
|
|
267
|
+
* [constructive-skills](https://github.com/constructive-io/constructive-skills): **📖 Platform documentation and AI agent skills** — feature catalog, blueprint reference, SDK guides (i18n, billing, limits, events, uploads, security, entities, search, AI), and deployment guides.
|
|
268
|
+
|
|
265
269
|
## Credits
|
|
266
270
|
|
|
267
271
|
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
|
|
@@ -20,6 +20,7 @@ export interface ConstructivePresetOptions {
|
|
|
20
20
|
enableLlm?: boolean;
|
|
21
21
|
enableRealtime?: boolean;
|
|
22
22
|
enableBulk?: boolean;
|
|
23
|
+
enableI18n?: boolean;
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -52,6 +53,7 @@ export interface ConstructivePresetOptions {
|
|
|
52
53
|
* - enableAggregates -> PgAggregatesPreset (off by default)
|
|
53
54
|
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
54
55
|
* - enableBulk -> BulkMutationPreset (off by default)
|
|
56
|
+
* - enableI18n -> I18nPreset (off by default)
|
|
55
57
|
* - enableLlm -> (no plugin yet, reserved for future use)
|
|
56
58
|
*
|
|
57
59
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BucketProvisionerPreset } from 'graphile-bucket-provisioner-plugin';
|
|
2
2
|
import { BulkMutationPreset } from 'graphile-bulk-mutations';
|
|
3
3
|
import { ConnectionFilterPreset } from 'graphile-connection-filter';
|
|
4
|
+
import { I18nPreset } from 'graphile-i18n';
|
|
4
5
|
import { createFolderOperatorFactory, GraphileLtreePreset } from 'graphile-ltree';
|
|
5
6
|
import { PgAggregatesPreset } from 'graphile-pg-aggregates';
|
|
6
7
|
import { createPostgisOperatorFactory, GraphilePostgisPreset } from 'graphile-postgis';
|
|
@@ -23,7 +24,8 @@ const DEFAULTS = {
|
|
|
23
24
|
enableLtree: true,
|
|
24
25
|
enableLlm: false,
|
|
25
26
|
enableRealtime: false,
|
|
26
|
-
enableBulk: false
|
|
27
|
+
enableBulk: false,
|
|
28
|
+
enableI18n: false
|
|
27
29
|
};
|
|
28
30
|
/**
|
|
29
31
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -56,6 +58,7 @@ const DEFAULTS = {
|
|
|
56
58
|
* - enableAggregates -> PgAggregatesPreset (off by default)
|
|
57
59
|
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
58
60
|
* - enableBulk -> BulkMutationPreset (off by default)
|
|
61
|
+
* - enableI18n -> I18nPreset (off by default)
|
|
59
62
|
* - enableLlm -> (no plugin yet, reserved for future use)
|
|
60
63
|
*
|
|
61
64
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
@@ -133,6 +136,9 @@ export function createConstructivePreset(options) {
|
|
|
133
136
|
if (opts.enableBulk) {
|
|
134
137
|
presets.push(BulkMutationPreset());
|
|
135
138
|
}
|
|
139
|
+
if (opts.enableI18n) {
|
|
140
|
+
presets.push(I18nPreset());
|
|
141
|
+
}
|
|
136
142
|
// ----- connectionFilterOperatorFactories -----
|
|
137
143
|
// Only include operator factories for features that are actually enabled.
|
|
138
144
|
// graphile-config replaces (not concatenates) arrays when merging presets,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-settings",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "graphile settings",
|
|
6
6
|
"main": "index.js",
|
|
@@ -49,15 +49,16 @@
|
|
|
49
49
|
"graphile-bucket-provisioner-plugin": "0.12.0",
|
|
50
50
|
"graphile-build": "5.0.2",
|
|
51
51
|
"graphile-build-pg": "5.0.2",
|
|
52
|
-
"graphile-bulk-mutations": "^0.5.
|
|
52
|
+
"graphile-bulk-mutations": "^0.5.1",
|
|
53
53
|
"graphile-config": "1.0.1",
|
|
54
|
-
"graphile-connection-filter": "^1.12.
|
|
55
|
-
"graphile-
|
|
56
|
-
"graphile-
|
|
57
|
-
"graphile-
|
|
54
|
+
"graphile-connection-filter": "^1.12.1",
|
|
55
|
+
"graphile-i18n": "^1.2.2",
|
|
56
|
+
"graphile-ltree": "^1.9.1",
|
|
57
|
+
"graphile-pg-aggregates": "^1.5.1",
|
|
58
|
+
"graphile-postgis": "^2.18.1",
|
|
58
59
|
"graphile-presigned-url-plugin": "^0.20.0",
|
|
59
60
|
"graphile-realtime-subscriptions": "^0.8.0",
|
|
60
|
-
"graphile-search": "^1.15.
|
|
61
|
+
"graphile-search": "^1.15.1",
|
|
61
62
|
"graphile-upload-plugin": "^2.12.0",
|
|
62
63
|
"graphile-utils": "5.0.1",
|
|
63
64
|
"graphql": "16.13.0",
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
"@types/express": "^5.0.6",
|
|
76
77
|
"@types/pg": "^8.20.0",
|
|
77
78
|
"@types/request-ip": "^0.0.41",
|
|
78
|
-
"graphile-test": "^4.17.
|
|
79
|
+
"graphile-test": "^4.17.1",
|
|
79
80
|
"makage": "^0.3.0",
|
|
80
81
|
"nodemon": "^3.1.14",
|
|
81
82
|
"ts-node": "^10.9.2"
|
|
@@ -87,5 +88,5 @@
|
|
|
87
88
|
"constructive",
|
|
88
89
|
"graphql"
|
|
89
90
|
],
|
|
90
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "12515d72a1c3db748a317157770e7aec4db34c34"
|
|
91
92
|
}
|
|
@@ -20,6 +20,7 @@ export interface ConstructivePresetOptions {
|
|
|
20
20
|
enableLlm?: boolean;
|
|
21
21
|
enableRealtime?: boolean;
|
|
22
22
|
enableBulk?: boolean;
|
|
23
|
+
enableI18n?: boolean;
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -52,6 +53,7 @@ export interface ConstructivePresetOptions {
|
|
|
52
53
|
* - enableAggregates -> PgAggregatesPreset (off by default)
|
|
53
54
|
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
54
55
|
* - enableBulk -> BulkMutationPreset (off by default)
|
|
56
|
+
* - enableI18n -> I18nPreset (off by default)
|
|
55
57
|
* - enableLlm -> (no plugin yet, reserved for future use)
|
|
56
58
|
*
|
|
57
59
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
@@ -5,6 +5,7 @@ exports.createConstructivePreset = createConstructivePreset;
|
|
|
5
5
|
const graphile_bucket_provisioner_plugin_1 = require("graphile-bucket-provisioner-plugin");
|
|
6
6
|
const graphile_bulk_mutations_1 = require("graphile-bulk-mutations");
|
|
7
7
|
const graphile_connection_filter_1 = require("graphile-connection-filter");
|
|
8
|
+
const graphile_i18n_1 = require("graphile-i18n");
|
|
8
9
|
const graphile_ltree_1 = require("graphile-ltree");
|
|
9
10
|
const graphile_pg_aggregates_1 = require("graphile-pg-aggregates");
|
|
10
11
|
const graphile_postgis_1 = require("graphile-postgis");
|
|
@@ -27,7 +28,8 @@ const DEFAULTS = {
|
|
|
27
28
|
enableLtree: true,
|
|
28
29
|
enableLlm: false,
|
|
29
30
|
enableRealtime: false,
|
|
30
|
-
enableBulk: false
|
|
31
|
+
enableBulk: false,
|
|
32
|
+
enableI18n: false
|
|
31
33
|
};
|
|
32
34
|
/**
|
|
33
35
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -60,6 +62,7 @@ const DEFAULTS = {
|
|
|
60
62
|
* - enableAggregates -> PgAggregatesPreset (off by default)
|
|
61
63
|
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
62
64
|
* - enableBulk -> BulkMutationPreset (off by default)
|
|
65
|
+
* - enableI18n -> I18nPreset (off by default)
|
|
63
66
|
* - enableLlm -> (no plugin yet, reserved for future use)
|
|
64
67
|
*
|
|
65
68
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
@@ -137,6 +140,9 @@ function createConstructivePreset(options) {
|
|
|
137
140
|
if (opts.enableBulk) {
|
|
138
141
|
presets.push((0, graphile_bulk_mutations_1.BulkMutationPreset)());
|
|
139
142
|
}
|
|
143
|
+
if (opts.enableI18n) {
|
|
144
|
+
presets.push((0, graphile_i18n_1.I18nPreset)());
|
|
145
|
+
}
|
|
140
146
|
// ----- connectionFilterOperatorFactories -----
|
|
141
147
|
// Only include operator factories for features that are actually enabled.
|
|
142
148
|
// graphile-config replaces (not concatenates) arrays when merging presets,
|