graphile-settings 4.32.0 → 4.33.2
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.
|
@@ -18,6 +18,7 @@ export interface ConstructivePresetOptions {
|
|
|
18
18
|
enableConnectionFilter?: boolean;
|
|
19
19
|
enableLtree?: boolean;
|
|
20
20
|
enableLlm?: boolean;
|
|
21
|
+
enableRealtime?: boolean;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -49,6 +50,7 @@ export interface ConstructivePresetOptions {
|
|
|
49
50
|
* - enableDirectUploads -> UploadPreset
|
|
50
51
|
* - enablePresignedUploads -> PresignedUrlPreset, BucketProvisionerPreset
|
|
51
52
|
* - enableAggregates -> PgAggregatesPreset (off by default)
|
|
53
|
+
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
52
54
|
* - enableLlm -> (no plugin yet, reserved for future use)
|
|
53
55
|
*
|
|
54
56
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
@@ -5,6 +5,7 @@ import { createPostgisOperatorFactory, GraphilePostgisPreset } from 'graphile-po
|
|
|
5
5
|
import { PgAggregatesPreset } from 'graphile-pg-aggregates';
|
|
6
6
|
import { PresignedUrlPreset } from 'graphile-presigned-url-plugin';
|
|
7
7
|
import { createMatchesOperatorFactory, createTrgmOperatorFactories, UnifiedSearchPreset } from 'graphile-search';
|
|
8
|
+
import { RealtimeSubscriptionsPreset } from 'graphile-realtime-subscriptions';
|
|
8
9
|
import { SqlExpressionValidatorPreset } from 'graphile-sql-expression-validator';
|
|
9
10
|
import { UploadPreset } from 'graphile-upload-plugin';
|
|
10
11
|
import { getBucketProvisionerConnection } from '../bucket-provisioner-resolver';
|
|
@@ -21,6 +22,7 @@ const DEFAULTS = {
|
|
|
21
22
|
enableConnectionFilter: true,
|
|
22
23
|
enableLtree: true,
|
|
23
24
|
enableLlm: false,
|
|
25
|
+
enableRealtime: false,
|
|
24
26
|
};
|
|
25
27
|
/**
|
|
26
28
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -52,6 +54,7 @@ const DEFAULTS = {
|
|
|
52
54
|
* - enableDirectUploads -> UploadPreset
|
|
53
55
|
* - enablePresignedUploads -> PresignedUrlPreset, BucketProvisionerPreset
|
|
54
56
|
* - enableAggregates -> PgAggregatesPreset (off by default)
|
|
57
|
+
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
55
58
|
* - enableLlm -> (no plugin yet, reserved for future use)
|
|
56
59
|
*
|
|
57
60
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
@@ -124,6 +127,9 @@ export function createConstructivePreset(options) {
|
|
|
124
127
|
if (opts.enableAggregates) {
|
|
125
128
|
presets.push(PgAggregatesPreset);
|
|
126
129
|
}
|
|
130
|
+
if (opts.enableRealtime) {
|
|
131
|
+
presets.push(RealtimeSubscriptionsPreset());
|
|
132
|
+
}
|
|
127
133
|
// ----- connectionFilterOperatorFactories -----
|
|
128
134
|
// Only include operator factories for features that are actually enabled.
|
|
129
135
|
// 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": "4.
|
|
3
|
+
"version": "4.33.2",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "graphile settings",
|
|
6
6
|
"main": "index.js",
|
|
@@ -30,40 +30,41 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-sdk/client-s3": "^3.1009.0",
|
|
33
|
-
"@constructive-io/bucket-provisioner": "^0.10.
|
|
34
|
-
"@constructive-io/graphql-env": "^3.10.
|
|
35
|
-
"@constructive-io/graphql-types": "^3.9.
|
|
36
|
-
"@constructive-io/s3-streamer": "^2.23.
|
|
37
|
-
"@constructive-io/s3-utils": "^2.16.
|
|
38
|
-
"@constructive-io/upload-names": "^2.15.
|
|
33
|
+
"@constructive-io/bucket-provisioner": "^0.10.1",
|
|
34
|
+
"@constructive-io/graphql-env": "^3.10.1",
|
|
35
|
+
"@constructive-io/graphql-types": "^3.9.1",
|
|
36
|
+
"@constructive-io/s3-streamer": "^2.23.1",
|
|
37
|
+
"@constructive-io/s3-utils": "^2.16.1",
|
|
38
|
+
"@constructive-io/upload-names": "^2.15.1",
|
|
39
39
|
"@dataplan/json": "1.0.0",
|
|
40
40
|
"@dataplan/pg": "1.0.0",
|
|
41
41
|
"@graphile-contrib/pg-many-to-many": "2.0.0-rc.2",
|
|
42
|
-
"@pgpmjs/logger": "^2.10.
|
|
43
|
-
"@pgpmjs/types": "^2.26.
|
|
42
|
+
"@pgpmjs/logger": "^2.10.1",
|
|
43
|
+
"@pgpmjs/types": "^2.26.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.0",
|
|
48
48
|
"grafserv": "1.0.0",
|
|
49
|
-
"graphile-bucket-provisioner-plugin": "0.10.
|
|
49
|
+
"graphile-bucket-provisioner-plugin": "0.10.1",
|
|
50
50
|
"graphile-build": "5.0.0",
|
|
51
51
|
"graphile-build-pg": "5.0.0",
|
|
52
52
|
"graphile-config": "1.0.0",
|
|
53
|
-
"graphile-connection-filter": "^1.9.
|
|
54
|
-
"graphile-ltree": "^1.6.
|
|
55
|
-
"graphile-pg-aggregates": "^1.2.
|
|
56
|
-
"graphile-postgis": "^2.15.
|
|
57
|
-
"graphile-presigned-url-plugin": "^0.17.
|
|
58
|
-
"graphile-
|
|
59
|
-
"graphile-
|
|
60
|
-
"graphile-
|
|
53
|
+
"graphile-connection-filter": "^1.9.2",
|
|
54
|
+
"graphile-ltree": "^1.6.2",
|
|
55
|
+
"graphile-pg-aggregates": "^1.2.2",
|
|
56
|
+
"graphile-postgis": "^2.15.2",
|
|
57
|
+
"graphile-presigned-url-plugin": "^0.17.1",
|
|
58
|
+
"graphile-realtime-subscriptions": "^0.5.2",
|
|
59
|
+
"graphile-search": "^1.11.2",
|
|
60
|
+
"graphile-sql-expression-validator": "^2.11.1",
|
|
61
|
+
"graphile-upload-plugin": "^2.10.1",
|
|
61
62
|
"graphile-utils": "5.0.0",
|
|
62
63
|
"graphql": "16.13.0",
|
|
63
64
|
"inflekt": "^0.7.1",
|
|
64
65
|
"lru-cache": "^11.2.7",
|
|
65
66
|
"pg": "^8.20.0",
|
|
66
|
-
"pg-query-context": "^2.14.
|
|
67
|
+
"pg-query-context": "^2.14.1",
|
|
67
68
|
"pg-sql2": "5.0.0",
|
|
68
69
|
"postgraphile": "5.0.0",
|
|
69
70
|
"request-ip": "^3.3.0",
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
"@types/express": "^5.0.6",
|
|
75
76
|
"@types/pg": "^8.18.0",
|
|
76
77
|
"@types/request-ip": "^0.0.41",
|
|
77
|
-
"graphile-test": "^4.14.
|
|
78
|
+
"graphile-test": "^4.14.2",
|
|
78
79
|
"makage": "^0.3.0",
|
|
79
80
|
"nodemon": "^3.1.14",
|
|
80
81
|
"ts-node": "^10.9.2"
|
|
@@ -86,5 +87,5 @@
|
|
|
86
87
|
"constructive",
|
|
87
88
|
"graphql"
|
|
88
89
|
],
|
|
89
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "ea590e1b9e1ee38c267f8dbbb37aa3f83a5d3fb7"
|
|
90
91
|
}
|
|
@@ -18,6 +18,7 @@ export interface ConstructivePresetOptions {
|
|
|
18
18
|
enableConnectionFilter?: boolean;
|
|
19
19
|
enableLtree?: boolean;
|
|
20
20
|
enableLlm?: boolean;
|
|
21
|
+
enableRealtime?: boolean;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -49,6 +50,7 @@ export interface ConstructivePresetOptions {
|
|
|
49
50
|
* - enableDirectUploads -> UploadPreset
|
|
50
51
|
* - enablePresignedUploads -> PresignedUrlPreset, BucketProvisionerPreset
|
|
51
52
|
* - enableAggregates -> PgAggregatesPreset (off by default)
|
|
53
|
+
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
52
54
|
* - enableLlm -> (no plugin yet, reserved for future use)
|
|
53
55
|
*
|
|
54
56
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
@@ -9,6 +9,7 @@ const graphile_postgis_1 = require("graphile-postgis");
|
|
|
9
9
|
const graphile_pg_aggregates_1 = require("graphile-pg-aggregates");
|
|
10
10
|
const graphile_presigned_url_plugin_1 = require("graphile-presigned-url-plugin");
|
|
11
11
|
const graphile_search_1 = require("graphile-search");
|
|
12
|
+
const graphile_realtime_subscriptions_1 = require("graphile-realtime-subscriptions");
|
|
12
13
|
const graphile_sql_expression_validator_1 = require("graphile-sql-expression-validator");
|
|
13
14
|
const graphile_upload_plugin_1 = require("graphile-upload-plugin");
|
|
14
15
|
const bucket_provisioner_resolver_1 = require("../bucket-provisioner-resolver");
|
|
@@ -25,6 +26,7 @@ const DEFAULTS = {
|
|
|
25
26
|
enableConnectionFilter: true,
|
|
26
27
|
enableLtree: true,
|
|
27
28
|
enableLlm: false,
|
|
29
|
+
enableRealtime: false,
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* Create a Constructive PostGraphile v5 Preset.
|
|
@@ -56,6 +58,7 @@ const DEFAULTS = {
|
|
|
56
58
|
* - enableDirectUploads -> UploadPreset
|
|
57
59
|
* - enablePresignedUploads -> PresignedUrlPreset, BucketProvisionerPreset
|
|
58
60
|
* - enableAggregates -> PgAggregatesPreset (off by default)
|
|
61
|
+
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
59
62
|
* - enableLlm -> (no plugin yet, reserved for future use)
|
|
60
63
|
*
|
|
61
64
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
@@ -128,6 +131,9 @@ function createConstructivePreset(options) {
|
|
|
128
131
|
if (opts.enableAggregates) {
|
|
129
132
|
presets.push(graphile_pg_aggregates_1.PgAggregatesPreset);
|
|
130
133
|
}
|
|
134
|
+
if (opts.enableRealtime) {
|
|
135
|
+
presets.push((0, graphile_realtime_subscriptions_1.RealtimeSubscriptionsPreset)());
|
|
136
|
+
}
|
|
131
137
|
// ----- connectionFilterOperatorFactories -----
|
|
132
138
|
// Only include operator factories for features that are actually enabled.
|
|
133
139
|
// graphile-config replaces (not concatenates) arrays when merging presets,
|