graphile-settings 6.9.3 → 6.10.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.
@@ -21,6 +21,7 @@ export interface ConstructivePresetOptions {
21
21
  enableRealtime?: boolean;
22
22
  enableBulk?: boolean;
23
23
  enableI18n?: boolean;
24
+ enableHistory?: boolean;
24
25
  }
25
26
  /**
26
27
  * Create a Constructive PostGraphile v5 Preset.
@@ -54,6 +55,7 @@ export interface ConstructivePresetOptions {
54
55
  * - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
55
56
  * - enableBulk -> BulkMutationPreset (off by default)
56
57
  * - enableI18n -> I18nPreset (off by default)
58
+ * - enableHistory -> HistoryPreset (off by default)
57
59
  * - enableLlm -> GraphileLlmPreset (auto-embed unifiedSearch, vector text fields)
58
60
  *
59
61
  * RELATION FILTERS (when enableConnectionFilter is true):
@@ -1,14 +1,15 @@
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 { HistoryPreset } from 'graphile-history';
4
5
  import { I18nPreset } from 'graphile-i18n';
6
+ import { GraphileLlmPreset } from 'graphile-llm';
5
7
  import { createFolderOperatorFactory, GraphileLtreePreset } from 'graphile-ltree';
6
8
  import { PgAggregatesPreset } from 'graphile-pg-aggregates';
7
9
  import { createPostgisOperatorFactory, GraphilePostgisPreset } from 'graphile-postgis';
8
10
  import { PresignedUrlPreset } from 'graphile-presigned-url-plugin';
9
11
  import { RealtimeSubscriptionsPreset } from 'graphile-realtime-subscriptions';
10
12
  import { createMatchesOperatorFactory, createTrgmOperatorFactories, UnifiedSearchPreset } from 'graphile-search';
11
- import { GraphileLlmPreset } from 'graphile-llm';
12
13
  import { UploadPreset } from 'graphile-upload-plugin';
13
14
  import { getBucketProvisionerConnection } from '../bucket-provisioner-resolver';
14
15
  import { ConflictDetectorPreset, EnableAllFilterColumnsPreset, InflectorLoggerPreset, InflektPreset, ManyToManyOptInPreset, MetaSchemaPreset, MinimalPreset, NoUniqueLookupPreset, PgTypeMappingsPreset, RequiredInputPreset } from '../plugins';
@@ -41,7 +42,8 @@ const DEFAULTS = {
41
42
  enableLlm: true,
42
43
  enableRealtime: false,
43
44
  enableBulk: false,
44
- enableI18n: false
45
+ enableI18n: false,
46
+ enableHistory: false
45
47
  };
46
48
  /**
47
49
  * Create a Constructive PostGraphile v5 Preset.
@@ -75,6 +77,7 @@ const DEFAULTS = {
75
77
  * - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
76
78
  * - enableBulk -> BulkMutationPreset (off by default)
77
79
  * - enableI18n -> I18nPreset (off by default)
80
+ * - enableHistory -> HistoryPreset (off by default)
78
81
  * - enableLlm -> GraphileLlmPreset (auto-embed unifiedSearch, vector text fields)
79
82
  *
80
83
  * RELATION FILTERS (when enableConnectionFilter is true):
@@ -156,6 +159,9 @@ export function createConstructivePreset(options) {
156
159
  if (opts.enableI18n) {
157
160
  presets.push(I18nPreset());
158
161
  }
162
+ if (opts.enableHistory) {
163
+ presets.push(HistoryPreset());
164
+ }
159
165
  if (opts.enableLlm) {
160
166
  presets.push(GraphileLlmPreset());
161
167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-settings",
3
- "version": "6.9.3",
3
+ "version": "6.10.1",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "graphile settings",
6
6
  "main": "index.js",
@@ -30,44 +30,45 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@aws-sdk/client-s3": "^3.1052.0",
33
- "@constructive-io/bucket-provisioner": "^0.22.0",
34
- "@constructive-io/graphql-env": "^3.27.2",
35
- "@constructive-io/graphql-types": "^3.26.2",
36
- "@constructive-io/s3-streamer": "^2.37.2",
37
- "@constructive-io/s3-utils": "^2.28.0",
38
- "@constructive-io/upload-names": "^2.27.0",
33
+ "@constructive-io/bucket-provisioner": "^0.22.1",
34
+ "@constructive-io/graphql-env": "^3.27.4",
35
+ "@constructive-io/graphql-types": "^3.26.4",
36
+ "@constructive-io/s3-streamer": "^2.37.4",
37
+ "@constructive-io/s3-utils": "^2.28.1",
38
+ "@constructive-io/upload-names": "^2.27.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.22.0",
43
- "@pgpmjs/types": "^2.47.0",
42
+ "@pgpmjs/logger": "^2.22.1",
43
+ "@pgpmjs/types": "^2.48.1",
44
44
  "@pgsql/quotes": "^18.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": "1.8.0",
49
+ "graphile-bucket-provisioner-plugin": "1.8.1",
50
50
  "graphile-build": "5.0.2",
51
51
  "graphile-build-pg": "5.0.2",
52
- "graphile-bulk-mutations": "^1.9.3",
52
+ "graphile-bulk-mutations": "^1.9.6",
53
53
  "graphile-config": "1.0.1",
54
- "graphile-connection-filter": "^2.9.3",
55
- "graphile-i18n": "^2.9.3",
56
- "graphile-llm": "^1.9.3",
57
- "graphile-ltree": "^2.9.3",
58
- "graphile-meta": "^1.5.0",
59
- "graphile-pg-aggregates": "^2.9.3",
60
- "graphile-postgis": "^3.9.3",
61
- "graphile-presigned-url-plugin": "^1.8.0",
62
- "graphile-realtime-subscriptions": "^1.8.0",
63
- "graphile-search": "^2.9.3",
64
- "graphile-upload-plugin": "^2.22.0",
54
+ "graphile-connection-filter": "^2.9.6",
55
+ "graphile-history": "^1.1.1",
56
+ "graphile-i18n": "^2.9.6",
57
+ "graphile-llm": "^1.9.6",
58
+ "graphile-ltree": "^2.9.6",
59
+ "graphile-meta": "^1.5.1",
60
+ "graphile-pg-aggregates": "^2.9.6",
61
+ "graphile-postgis": "^3.9.6",
62
+ "graphile-presigned-url-plugin": "^1.8.1",
63
+ "graphile-realtime-subscriptions": "^1.8.1",
64
+ "graphile-search": "^2.9.6",
65
+ "graphile-upload-plugin": "^2.22.1",
65
66
  "graphile-utils": "5.0.1",
66
67
  "graphql": "16.13.0",
67
68
  "inflekt": "^0.7.1",
68
69
  "lru-cache": "^11.2.7",
69
70
  "pg": "^8.21.0",
70
- "pg-query-context": "^2.27.0",
71
+ "pg-query-context": "^2.27.1",
71
72
  "pg-sql2": "5.0.1",
72
73
  "postgraphile": "5.0.3",
73
74
  "request-ip": "^3.3.0",
@@ -78,7 +79,7 @@
78
79
  "@types/express": "^5.0.6",
79
80
  "@types/pg": "^8.20.0",
80
81
  "@types/request-ip": "^0.0.41",
81
- "graphile-test": "^5.9.3",
82
+ "graphile-test": "^5.9.6",
82
83
  "makage": "^0.3.0",
83
84
  "nodemon": "^3.1.14",
84
85
  "ts-node": "^10.9.2"
@@ -90,5 +91,5 @@
90
91
  "constructive",
91
92
  "graphql"
92
93
  ],
93
- "gitHead": "0286d994d98717cb9b28842233d2db6d1e37c48e"
94
+ "gitHead": "a430897efa1488ec24fc636f0d5023207bba7ba7"
94
95
  }
@@ -21,6 +21,7 @@ export interface ConstructivePresetOptions {
21
21
  enableRealtime?: boolean;
22
22
  enableBulk?: boolean;
23
23
  enableI18n?: boolean;
24
+ enableHistory?: boolean;
24
25
  }
25
26
  /**
26
27
  * Create a Constructive PostGraphile v5 Preset.
@@ -54,6 +55,7 @@ export interface ConstructivePresetOptions {
54
55
  * - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
55
56
  * - enableBulk -> BulkMutationPreset (off by default)
56
57
  * - enableI18n -> I18nPreset (off by default)
58
+ * - enableHistory -> HistoryPreset (off by default)
57
59
  * - enableLlm -> GraphileLlmPreset (auto-embed unifiedSearch, vector text fields)
58
60
  *
59
61
  * RELATION FILTERS (when enableConnectionFilter is true):
@@ -5,14 +5,15 @@ 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_history_1 = require("graphile-history");
8
9
  const graphile_i18n_1 = require("graphile-i18n");
10
+ const graphile_llm_1 = require("graphile-llm");
9
11
  const graphile_ltree_1 = require("graphile-ltree");
10
12
  const graphile_pg_aggregates_1 = require("graphile-pg-aggregates");
11
13
  const graphile_postgis_1 = require("graphile-postgis");
12
14
  const graphile_presigned_url_plugin_1 = require("graphile-presigned-url-plugin");
13
15
  const graphile_realtime_subscriptions_1 = require("graphile-realtime-subscriptions");
14
16
  const graphile_search_1 = require("graphile-search");
15
- const graphile_llm_1 = require("graphile-llm");
16
17
  const graphile_upload_plugin_1 = require("graphile-upload-plugin");
17
18
  const bucket_provisioner_resolver_1 = require("../bucket-provisioner-resolver");
18
19
  const plugins_1 = require("../plugins");
@@ -45,7 +46,8 @@ const DEFAULTS = {
45
46
  enableLlm: true,
46
47
  enableRealtime: false,
47
48
  enableBulk: false,
48
- enableI18n: false
49
+ enableI18n: false,
50
+ enableHistory: false
49
51
  };
50
52
  /**
51
53
  * Create a Constructive PostGraphile v5 Preset.
@@ -79,6 +81,7 @@ const DEFAULTS = {
79
81
  * - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
80
82
  * - enableBulk -> BulkMutationPreset (off by default)
81
83
  * - enableI18n -> I18nPreset (off by default)
84
+ * - enableHistory -> HistoryPreset (off by default)
82
85
  * - enableLlm -> GraphileLlmPreset (auto-embed unifiedSearch, vector text fields)
83
86
  *
84
87
  * RELATION FILTERS (when enableConnectionFilter is true):
@@ -160,6 +163,9 @@ function createConstructivePreset(options) {
160
163
  if (opts.enableI18n) {
161
164
  presets.push((0, graphile_i18n_1.I18nPreset)());
162
165
  }
166
+ if (opts.enableHistory) {
167
+ presets.push((0, graphile_history_1.HistoryPreset)());
168
+ }
163
169
  if (opts.enableLlm) {
164
170
  presets.push((0, graphile_llm_1.GraphileLlmPreset)());
165
171
  }