graphile-settings 5.3.1 → 5.4.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.
|
@@ -38,7 +38,6 @@ export interface ConstructivePresetOptions {
|
|
|
38
38
|
* - InflectorLoggerPreset (debugging, INFLECTOR_LOG=1)
|
|
39
39
|
* - NoUniqueLookupPreset (primary-key-only lookups)
|
|
40
40
|
* - MetaSchemaPreset (_meta introspection)
|
|
41
|
-
* - SqlExpressionValidatorPreset (@sqlExpression validation)
|
|
42
41
|
* - PgTypeMappingsPreset (email, url, etc.)
|
|
43
42
|
* - RequiredInputPreset (@requiredInput support)
|
|
44
43
|
*
|
|
@@ -2,12 +2,11 @@ import { BucketProvisionerPreset } from 'graphile-bucket-provisioner-plugin';
|
|
|
2
2
|
import { BulkMutationPreset } from 'graphile-bulk-mutations';
|
|
3
3
|
import { ConnectionFilterPreset } from 'graphile-connection-filter';
|
|
4
4
|
import { createFolderOperatorFactory, GraphileLtreePreset } from 'graphile-ltree';
|
|
5
|
-
import { createPostgisOperatorFactory, GraphilePostgisPreset } from 'graphile-postgis';
|
|
6
5
|
import { PgAggregatesPreset } from 'graphile-pg-aggregates';
|
|
6
|
+
import { createPostgisOperatorFactory, GraphilePostgisPreset } from 'graphile-postgis';
|
|
7
7
|
import { PresignedUrlPreset } from 'graphile-presigned-url-plugin';
|
|
8
|
-
import { createMatchesOperatorFactory, createTrgmOperatorFactories, UnifiedSearchPreset } from 'graphile-search';
|
|
9
8
|
import { RealtimeSubscriptionsPreset } from 'graphile-realtime-subscriptions';
|
|
10
|
-
import {
|
|
9
|
+
import { createMatchesOperatorFactory, createTrgmOperatorFactories, UnifiedSearchPreset } from 'graphile-search';
|
|
11
10
|
import { UploadPreset } from 'graphile-upload-plugin';
|
|
12
11
|
import { getBucketProvisionerConnection } from '../bucket-provisioner-resolver';
|
|
13
12
|
import { ConflictDetectorPreset, EnableAllFilterColumnsPreset, InflectorLoggerPreset, InflektPreset, ManyToManyOptInPreset, MetaSchemaPreset, MinimalPreset, NoUniqueLookupPreset, PgTypeMappingsPreset, RequiredInputPreset } from '../plugins';
|
|
@@ -24,7 +23,7 @@ const DEFAULTS = {
|
|
|
24
23
|
enableLtree: true,
|
|
25
24
|
enableLlm: false,
|
|
26
25
|
enableRealtime: false,
|
|
27
|
-
enableBulk: false
|
|
26
|
+
enableBulk: false
|
|
28
27
|
};
|
|
29
28
|
/**
|
|
30
29
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -43,7 +42,6 @@ const DEFAULTS = {
|
|
|
43
42
|
* - InflectorLoggerPreset (debugging, INFLECTOR_LOG=1)
|
|
44
43
|
* - NoUniqueLookupPreset (primary-key-only lookups)
|
|
45
44
|
* - MetaSchemaPreset (_meta introspection)
|
|
46
|
-
* - SqlExpressionValidatorPreset (@sqlExpression validation)
|
|
47
45
|
* - PgTypeMappingsPreset (email, url, etc.)
|
|
48
46
|
* - RequiredInputPreset (@requiredInput support)
|
|
49
47
|
*
|
|
@@ -92,9 +90,8 @@ export function createConstructivePreset(options) {
|
|
|
92
90
|
InflectorLoggerPreset,
|
|
93
91
|
NoUniqueLookupPreset,
|
|
94
92
|
MetaSchemaPreset,
|
|
95
|
-
SqlExpressionValidatorPreset(),
|
|
96
93
|
PgTypeMappingsPreset,
|
|
97
|
-
RequiredInputPreset
|
|
94
|
+
RequiredInputPreset
|
|
98
95
|
];
|
|
99
96
|
if (opts.enableConnectionFilter) {
|
|
100
97
|
presets.push(ConnectionFilterPreset({ connectionFilterRelations: true }), EnableAllFilterColumnsPreset);
|
|
@@ -114,17 +111,17 @@ export function createConstructivePreset(options) {
|
|
|
114
111
|
if (opts.enableDirectUploads) {
|
|
115
112
|
presets.push(UploadPreset({
|
|
116
113
|
uploadFieldDefinitions: constructiveUploadFieldDefinitions,
|
|
117
|
-
maxFileSize: 10 * 1024 * 1024
|
|
114
|
+
maxFileSize: 10 * 1024 * 1024 // 10MB
|
|
118
115
|
}));
|
|
119
116
|
}
|
|
120
117
|
if (opts.enablePresignedUploads) {
|
|
121
118
|
presets.push(PresignedUrlPreset({
|
|
122
119
|
s3: getPresignedUrlS3Config,
|
|
123
120
|
resolveBucketName: createBucketNameResolver(),
|
|
124
|
-
ensureBucketProvisioned: createEnsureBucketProvisioned()
|
|
121
|
+
ensureBucketProvisioned: createEnsureBucketProvisioned()
|
|
125
122
|
}), BucketProvisionerPreset({
|
|
126
123
|
connection: getBucketProvisionerConnection,
|
|
127
|
-
allowedOrigins: getAllowedOrigins()
|
|
124
|
+
allowedOrigins: getAllowedOrigins()
|
|
128
125
|
}));
|
|
129
126
|
}
|
|
130
127
|
if (opts.enableAggregates) {
|
|
@@ -170,7 +167,7 @@ export function createConstructivePreset(options) {
|
|
|
170
167
|
}
|
|
171
168
|
}
|
|
172
169
|
const preset = {
|
|
173
|
-
extends: presets
|
|
170
|
+
extends: presets
|
|
174
171
|
};
|
|
175
172
|
if (disablePlugins.length > 0) {
|
|
176
173
|
preset.disablePlugins = disablePlugins;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-settings",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "graphile settings",
|
|
6
6
|
"main": "index.js",
|
|
@@ -30,42 +30,41 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-sdk/client-s3": "^3.1052.0",
|
|
33
|
-
"@constructive-io/bucket-provisioner": "^0.11.
|
|
34
|
-
"@constructive-io/graphql-env": "^3.12.
|
|
35
|
-
"@constructive-io/graphql-types": "^3.11.
|
|
36
|
-
"@constructive-io/s3-streamer": "^2.25.
|
|
37
|
-
"@constructive-io/s3-utils": "^2.17.
|
|
38
|
-
"@constructive-io/upload-names": "^2.16.
|
|
33
|
+
"@constructive-io/bucket-provisioner": "^0.11.2",
|
|
34
|
+
"@constructive-io/graphql-env": "^3.12.1",
|
|
35
|
+
"@constructive-io/graphql-types": "^3.11.1",
|
|
36
|
+
"@constructive-io/s3-streamer": "^2.25.1",
|
|
37
|
+
"@constructive-io/s3-utils": "^2.17.2",
|
|
38
|
+
"@constructive-io/upload-names": "^2.16.1",
|
|
39
39
|
"@dataplan/json": "1.0.0",
|
|
40
40
|
"@dataplan/pg": "1.0.3",
|
|
41
41
|
"@graphile-contrib/pg-many-to-many": "2.0.0-rc.2",
|
|
42
|
-
"@pgpmjs/logger": "^2.11.
|
|
43
|
-
"@pgpmjs/types": "^2.28.
|
|
42
|
+
"@pgpmjs/logger": "^2.11.1",
|
|
43
|
+
"@pgpmjs/types": "^2.28.1",
|
|
44
44
|
"@pgsql/quotes": "^17.1.0",
|
|
45
45
|
"cors": "^2.8.6",
|
|
46
46
|
"express": "^5.2.1",
|
|
47
47
|
"grafast": "1.0.2",
|
|
48
48
|
"grafserv": "1.0.0",
|
|
49
|
-
"graphile-bucket-provisioner-plugin": "0.11.
|
|
49
|
+
"graphile-bucket-provisioner-plugin": "0.11.2",
|
|
50
50
|
"graphile-build": "5.0.2",
|
|
51
51
|
"graphile-build-pg": "5.0.2",
|
|
52
|
-
"graphile-bulk-mutations": "^0.4.
|
|
52
|
+
"graphile-bulk-mutations": "^0.4.2",
|
|
53
53
|
"graphile-config": "1.0.1",
|
|
54
|
-
"graphile-connection-filter": "^1.11.
|
|
55
|
-
"graphile-ltree": "^1.8.
|
|
56
|
-
"graphile-pg-aggregates": "^1.4.
|
|
57
|
-
"graphile-postgis": "^2.17.
|
|
58
|
-
"graphile-presigned-url-plugin": "^0.19.
|
|
59
|
-
"graphile-realtime-subscriptions": "^0.7.
|
|
60
|
-
"graphile-search": "^1.14.
|
|
61
|
-
"graphile-
|
|
62
|
-
"graphile-upload-plugin": "^2.11.1",
|
|
54
|
+
"graphile-connection-filter": "^1.11.2",
|
|
55
|
+
"graphile-ltree": "^1.8.2",
|
|
56
|
+
"graphile-pg-aggregates": "^1.4.2",
|
|
57
|
+
"graphile-postgis": "^2.17.2",
|
|
58
|
+
"graphile-presigned-url-plugin": "^0.19.2",
|
|
59
|
+
"graphile-realtime-subscriptions": "^0.7.2",
|
|
60
|
+
"graphile-search": "^1.14.2",
|
|
61
|
+
"graphile-upload-plugin": "^2.11.2",
|
|
63
62
|
"graphile-utils": "5.0.1",
|
|
64
63
|
"graphql": "16.13.0",
|
|
65
64
|
"inflekt": "^0.7.1",
|
|
66
65
|
"lru-cache": "^11.2.7",
|
|
67
66
|
"pg": "^8.21.0",
|
|
68
|
-
"pg-query-context": "^2.16.
|
|
67
|
+
"pg-query-context": "^2.16.1",
|
|
69
68
|
"pg-sql2": "5.0.1",
|
|
70
69
|
"postgraphile": "5.0.3",
|
|
71
70
|
"request-ip": "^3.3.0",
|
|
@@ -76,7 +75,7 @@
|
|
|
76
75
|
"@types/express": "^5.0.6",
|
|
77
76
|
"@types/pg": "^8.20.0",
|
|
78
77
|
"@types/request-ip": "^0.0.41",
|
|
79
|
-
"graphile-test": "^4.16.
|
|
78
|
+
"graphile-test": "^4.16.2",
|
|
80
79
|
"makage": "^0.3.0",
|
|
81
80
|
"nodemon": "^3.1.14",
|
|
82
81
|
"ts-node": "^10.9.2"
|
|
@@ -88,5 +87,5 @@
|
|
|
88
87
|
"constructive",
|
|
89
88
|
"graphql"
|
|
90
89
|
],
|
|
91
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "423992019655cc1e780149ce3f7e6e8c9b1c6e80"
|
|
92
91
|
}
|
|
@@ -38,7 +38,6 @@ export interface ConstructivePresetOptions {
|
|
|
38
38
|
* - InflectorLoggerPreset (debugging, INFLECTOR_LOG=1)
|
|
39
39
|
* - NoUniqueLookupPreset (primary-key-only lookups)
|
|
40
40
|
* - MetaSchemaPreset (_meta introspection)
|
|
41
|
-
* - SqlExpressionValidatorPreset (@sqlExpression validation)
|
|
42
41
|
* - PgTypeMappingsPreset (email, url, etc.)
|
|
43
42
|
* - RequiredInputPreset (@requiredInput support)
|
|
44
43
|
*
|
|
@@ -6,12 +6,11 @@ const graphile_bucket_provisioner_plugin_1 = require("graphile-bucket-provisione
|
|
|
6
6
|
const graphile_bulk_mutations_1 = require("graphile-bulk-mutations");
|
|
7
7
|
const graphile_connection_filter_1 = require("graphile-connection-filter");
|
|
8
8
|
const graphile_ltree_1 = require("graphile-ltree");
|
|
9
|
-
const graphile_postgis_1 = require("graphile-postgis");
|
|
10
9
|
const graphile_pg_aggregates_1 = require("graphile-pg-aggregates");
|
|
10
|
+
const graphile_postgis_1 = require("graphile-postgis");
|
|
11
11
|
const graphile_presigned_url_plugin_1 = require("graphile-presigned-url-plugin");
|
|
12
|
-
const graphile_search_1 = require("graphile-search");
|
|
13
12
|
const graphile_realtime_subscriptions_1 = require("graphile-realtime-subscriptions");
|
|
14
|
-
const
|
|
13
|
+
const graphile_search_1 = require("graphile-search");
|
|
15
14
|
const graphile_upload_plugin_1 = require("graphile-upload-plugin");
|
|
16
15
|
const bucket_provisioner_resolver_1 = require("../bucket-provisioner-resolver");
|
|
17
16
|
const plugins_1 = require("../plugins");
|
|
@@ -28,7 +27,7 @@ const DEFAULTS = {
|
|
|
28
27
|
enableLtree: true,
|
|
29
28
|
enableLlm: false,
|
|
30
29
|
enableRealtime: false,
|
|
31
|
-
enableBulk: false
|
|
30
|
+
enableBulk: false
|
|
32
31
|
};
|
|
33
32
|
/**
|
|
34
33
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -47,7 +46,6 @@ const DEFAULTS = {
|
|
|
47
46
|
* - InflectorLoggerPreset (debugging, INFLECTOR_LOG=1)
|
|
48
47
|
* - NoUniqueLookupPreset (primary-key-only lookups)
|
|
49
48
|
* - MetaSchemaPreset (_meta introspection)
|
|
50
|
-
* - SqlExpressionValidatorPreset (@sqlExpression validation)
|
|
51
49
|
* - PgTypeMappingsPreset (email, url, etc.)
|
|
52
50
|
* - RequiredInputPreset (@requiredInput support)
|
|
53
51
|
*
|
|
@@ -96,9 +94,8 @@ function createConstructivePreset(options) {
|
|
|
96
94
|
plugins_1.InflectorLoggerPreset,
|
|
97
95
|
plugins_1.NoUniqueLookupPreset,
|
|
98
96
|
plugins_1.MetaSchemaPreset,
|
|
99
|
-
(0, graphile_sql_expression_validator_1.SqlExpressionValidatorPreset)(),
|
|
100
97
|
plugins_1.PgTypeMappingsPreset,
|
|
101
|
-
plugins_1.RequiredInputPreset
|
|
98
|
+
plugins_1.RequiredInputPreset
|
|
102
99
|
];
|
|
103
100
|
if (opts.enableConnectionFilter) {
|
|
104
101
|
presets.push((0, graphile_connection_filter_1.ConnectionFilterPreset)({ connectionFilterRelations: true }), plugins_1.EnableAllFilterColumnsPreset);
|
|
@@ -118,17 +115,17 @@ function createConstructivePreset(options) {
|
|
|
118
115
|
if (opts.enableDirectUploads) {
|
|
119
116
|
presets.push((0, graphile_upload_plugin_1.UploadPreset)({
|
|
120
117
|
uploadFieldDefinitions: upload_resolver_1.constructiveUploadFieldDefinitions,
|
|
121
|
-
maxFileSize: 10 * 1024 * 1024
|
|
118
|
+
maxFileSize: 10 * 1024 * 1024 // 10MB
|
|
122
119
|
}));
|
|
123
120
|
}
|
|
124
121
|
if (opts.enablePresignedUploads) {
|
|
125
122
|
presets.push((0, graphile_presigned_url_plugin_1.PresignedUrlPreset)({
|
|
126
123
|
s3: presigned_url_resolver_1.getPresignedUrlS3Config,
|
|
127
124
|
resolveBucketName: (0, presigned_url_resolver_1.createBucketNameResolver)(),
|
|
128
|
-
ensureBucketProvisioned: (0, presigned_url_resolver_1.createEnsureBucketProvisioned)()
|
|
125
|
+
ensureBucketProvisioned: (0, presigned_url_resolver_1.createEnsureBucketProvisioned)()
|
|
129
126
|
}), (0, graphile_bucket_provisioner_plugin_1.BucketProvisionerPreset)({
|
|
130
127
|
connection: bucket_provisioner_resolver_1.getBucketProvisionerConnection,
|
|
131
|
-
allowedOrigins: (0, presigned_url_resolver_1.getAllowedOrigins)()
|
|
128
|
+
allowedOrigins: (0, presigned_url_resolver_1.getAllowedOrigins)()
|
|
132
129
|
}));
|
|
133
130
|
}
|
|
134
131
|
if (opts.enableAggregates) {
|
|
@@ -174,7 +171,7 @@ function createConstructivePreset(options) {
|
|
|
174
171
|
}
|
|
175
172
|
}
|
|
176
173
|
const preset = {
|
|
177
|
-
extends: presets
|
|
174
|
+
extends: presets
|
|
178
175
|
};
|
|
179
176
|
if (disablePlugins.length > 0) {
|
|
180
177
|
preset.disablePlugins = disablePlugins;
|