@axinom/mosaic-service-common 0.18.0-rc.2 → 0.18.0
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/CHANGELOG.md +17 -0
- package/dist/postgraphile/postgraphile-options-builder.d.ts +23 -10
- package/dist/postgraphile/postgraphile-options-builder.d.ts.map +1 -1
- package/dist/postgraphile/postgraphile-options-builder.js +64 -17
- package/dist/postgraphile/postgraphile-options-builder.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.18.0](https://dev.azure.com/axinom/CMS/_git/Navy/branchCompare?baseVersion=GT@axinom/mosaic-service-common@0.16.0&targetVersion=GT@axinom/mosaic-service-common@0.18.0) (2022-05-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* enableSubscriptions plugin property is now required ([cbc6eb5](https://dev.azure.com/axinom/CMS/_git/Navy/commit/cbc6eb5fd5fb5d18a030a5577214f644c0837271)), closes [#34151](https://dev.azure.com/axinom/CMS/_workitems/edit/34151)
|
|
12
|
+
* helper functions added that help with JSON schema validation errors formatting ([7b5693c](https://dev.azure.com/axinom/CMS/_git/Navy/commit/7b5693c838223fd3075189261d6236a3c5151dca)), closes [#34889](https://dev.azure.com/axinom/CMS/_workitems/edit/34889)
|
|
13
|
+
* logging adjusted to support global log middleware for all Logger instances ([51f9b83](https://dev.azure.com/axinom/CMS/_git/Navy/commit/51f9b832d77fbbbe3b66c28e8b600ef63a4f46dc)), closes [#34945](https://dev.azure.com/axinom/CMS/_workitems/edit/34945)
|
|
14
|
+
* parameters type changed for enableSubscriptions builder method ([193dd56](https://dev.azure.com/axinom/CMS/_git/Navy/commit/193dd5630a6a3d34afaae32948da3d9a7da4ba99)), closes [#34151](https://dev.azure.com/axinom/CMS/_workitems/edit/34151)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* fix test failure and circular dependency ([3e44923](https://dev.azure.com/axinom/CMS/_git/Navy/commit/3e4492377d36943009f59c6526523e8d8bf650a8)), closes [#34954](https://dev.azure.com/axinom/CMS/_workitems/edit/34954)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [0.17.0](https://dev.azure.com/axinom/CMS/_git/Navy/branchCompare?baseVersion=GT@axinom/mosaic-service-common@0.16.0&targetVersion=GT@axinom/mosaic-service-common@0.17.0) (2022-04-28)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -51,7 +51,7 @@ export declare class PostgraphileOptionsBuilder {
|
|
|
51
51
|
*
|
|
52
52
|
* ```ts
|
|
53
53
|
new PostgraphileOptionsBuilder(config.isDev, config.graphqlGuiEnabled)
|
|
54
|
-
.addHookPluginFactory(
|
|
54
|
+
.addHookPluginFactory(customHookFactory)
|
|
55
55
|
* ```
|
|
56
56
|
*
|
|
57
57
|
* @param hookFunction This is a function which takes an argument of type PostGraphileOptions<Request, Response> and returns a PostGraphilePlugin object.
|
|
@@ -146,7 +146,11 @@ export declare class PostgraphileOptionsBuilder {
|
|
|
146
146
|
*
|
|
147
147
|
* ```ts
|
|
148
148
|
new PostgraphileOptionsBuilder(config.isDev, config.graphqlGuiEnabled)
|
|
149
|
-
.enableSubscriptions(
|
|
149
|
+
.enableSubscriptions({
|
|
150
|
+
plugin: SubscriptionsPlugin,
|
|
151
|
+
websocketMiddlewares: middlewares,
|
|
152
|
+
hookFactory: subscriptionAuthorizationHookFactory
|
|
153
|
+
})
|
|
150
154
|
* ```
|
|
151
155
|
*
|
|
152
156
|
* Results in something like this:
|
|
@@ -157,23 +161,32 @@ export declare class PostgraphileOptionsBuilder {
|
|
|
157
161
|
//.........
|
|
158
162
|
{
|
|
159
163
|
appendPlugins: [SubscriptionsPlugin], // Other plugins will be included if they were added using other methods
|
|
160
|
-
pluginHook: makePluginHook([PgPubsub]),
|
|
164
|
+
pluginHook: makePluginHook([PgPubsub, subscriptionAuthorizationHook]),
|
|
161
165
|
subscriptions: true,
|
|
162
166
|
websocketMiddlewares, // Empty array if websocketMiddlewares are not specified
|
|
163
167
|
}
|
|
164
168
|
* ```
|
|
165
169
|
*
|
|
166
|
-
* To make sure that Postgraphile is able to correctly establish WebSockets
|
|
170
|
+
* To make sure that Postgraphile is able to correctly establish WebSockets
|
|
171
|
+
* connection, additional changes should be done by using
|
|
172
|
+
* `enhanceHttpServerWithSubscriptions`.
|
|
167
173
|
*
|
|
168
174
|
* See more here: https://www.graphile.org/postgraphile/subscriptions/#advanced-setup
|
|
169
175
|
*
|
|
170
|
-
* @param plugin Graphile engine plugin that adds one or multiple subscription
|
|
171
|
-
*
|
|
176
|
+
* @param plugin Graphile engine plugin that adds one or multiple subscription
|
|
177
|
+
* endpoints. Can be added separately.
|
|
178
|
+
* @param websocketMiddlewares If you're using websockets (subscriptions ||
|
|
179
|
+
* live) then you may want to authenticate your users using sessions or
|
|
180
|
+
* similar. You can pass some simple middlewares here that will be executed
|
|
181
|
+
* against the websocket connection in order to perform authentication.
|
|
182
|
+
* @param hookFactory A factory function for a Postgraphile hook plugin to
|
|
183
|
+
* authorize subscription operations done over the web-socket.
|
|
172
184
|
*/
|
|
173
|
-
enableSubscriptions(plugin
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
185
|
+
enableSubscriptions({ plugin, websocketMiddlewares, hookFactory, }: {
|
|
186
|
+
plugin: Plugin;
|
|
187
|
+
websocketMiddlewares?: Middleware<Request, Response>[];
|
|
188
|
+
hookFactory?: HookPluginFactory;
|
|
189
|
+
}): PostgraphileOptionsBuilder;
|
|
177
190
|
/**
|
|
178
191
|
* Adds multiple graphile engine plugins to `appendPlugins` array of postgraphile options object. `setAdditionalGraphQLContextFromRequest` and `addGraphileBuildOptions` methods can be used to pass parameters to said plugins.
|
|
179
192
|
* Example:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgraphile-options-builder.d.ts","sourceRoot":"","sources":["../../src/postgraphile/postgraphile-options-builder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAc,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EACL,oBAAoB,EAEpB,UAAU,EACV,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAIL,IAAI,EAGL,MAAM,WAAW,CAAC;AAEnB;;;;;;;;;;;;;GAaG;AACH,oBAAY,iBAAiB,GAAG,CAC9B,YAAY,EAAE,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,SAAS,KAC7D,kBAAkB,CAAC;AAExB;;GAEG;AACH,qBAAa,0BAA0B;IAgBnC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAhBpC,OAAO,CAAC,YAAY,CAEgC;IAEpD,OAAO,CAAC,OAAO,CAAwC;IACvD,OAAO,CAAC,WAAW,CAA0D;IAC7E,OAAO,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"postgraphile-options-builder.d.ts","sourceRoot":"","sources":["../../src/postgraphile/postgraphile-options-builder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAc,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EACL,oBAAoB,EAEpB,UAAU,EACV,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AACtB,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ilder {
|
|
|
22
22
|
this.transformers = [];
|
|
23
23
|
this.headers = {};
|
|
24
24
|
this.pluginHooks = new Set();
|
|
25
|
-
this.hookFuncs =
|
|
25
|
+
this.hookFuncs = new Set();
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Builds a postgraphile options object with previously used extension methods.
|
|
@@ -34,7 +34,7 @@ class PostgraphileOptionsBuilder {
|
|
|
34
34
|
}
|
|
35
35
|
this.buildHeadersHookPlugin();
|
|
36
36
|
// Build plugin hooks from hook functions
|
|
37
|
-
this.hookFuncs.map((hookFunc) => {
|
|
37
|
+
[...this.hookFuncs].map((hookFunc) => {
|
|
38
38
|
this.pluginHooks.add(hookFunc(options));
|
|
39
39
|
});
|
|
40
40
|
if (this.pluginHooks.size > 0) {
|
|
@@ -67,14 +67,14 @@ class PostgraphileOptionsBuilder {
|
|
|
67
67
|
*
|
|
68
68
|
* ```ts
|
|
69
69
|
new PostgraphileOptionsBuilder(config.isDev, config.graphqlGuiEnabled)
|
|
70
|
-
.addHookPluginFactory(
|
|
70
|
+
.addHookPluginFactory(customHookFactory)
|
|
71
71
|
* ```
|
|
72
72
|
*
|
|
73
73
|
* @param hookFunction This is a function which takes an argument of type PostGraphileOptions<Request, Response> and returns a PostGraphilePlugin object.
|
|
74
74
|
* @returns
|
|
75
75
|
*/
|
|
76
76
|
addHookPluginFactory(hookFunction) {
|
|
77
|
-
this.hookFuncs.
|
|
77
|
+
this.hookFuncs.add(hookFunction);
|
|
78
78
|
return this;
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
@@ -186,25 +186,72 @@ class PostgraphileOptionsBuilder {
|
|
|
186
186
|
}
|
|
187
187
|
return this;
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
/**
|
|
190
|
+
* Sets all necessary postgraphile properties to enable subscriptions.
|
|
191
|
+
* Example:
|
|
192
|
+
*
|
|
193
|
+
* ```ts
|
|
194
|
+
new PostgraphileOptionsBuilder(config.isDev, config.graphqlGuiEnabled)
|
|
195
|
+
.enableSubscriptions({
|
|
196
|
+
plugin: SubscriptionsPlugin,
|
|
197
|
+
websocketMiddlewares: middlewares,
|
|
198
|
+
hookFactory: subscriptionAuthorizationHookFactory
|
|
199
|
+
})
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* Results in something like this:
|
|
203
|
+
*
|
|
204
|
+
* ```ts
|
|
205
|
+
import PgPubsub from '@graphile/pg-pubsub';
|
|
206
|
+
import { makePluginHook } from 'postgraphile';
|
|
207
|
+
//.........
|
|
208
|
+
{
|
|
209
|
+
appendPlugins: [SubscriptionsPlugin], // Other plugins will be included if they were added using other methods
|
|
210
|
+
pluginHook: makePluginHook([PgPubsub, subscriptionAuthorizationHook]),
|
|
211
|
+
subscriptions: true,
|
|
212
|
+
websocketMiddlewares, // Empty array if websocketMiddlewares are not specified
|
|
213
|
+
}
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* To make sure that Postgraphile is able to correctly establish WebSockets
|
|
217
|
+
* connection, additional changes should be done by using
|
|
218
|
+
* `enhanceHttpServerWithSubscriptions`.
|
|
219
|
+
*
|
|
220
|
+
* See more here: https://www.graphile.org/postgraphile/subscriptions/#advanced-setup
|
|
221
|
+
*
|
|
222
|
+
* @param plugin Graphile engine plugin that adds one or multiple subscription
|
|
223
|
+
* endpoints. Can be added separately.
|
|
224
|
+
* @param websocketMiddlewares If you're using websockets (subscriptions ||
|
|
225
|
+
* live) then you may want to authenticate your users using sessions or
|
|
226
|
+
* similar. You can pass some simple middlewares here that will be executed
|
|
227
|
+
* against the websocket connection in order to perform authentication.
|
|
228
|
+
* @param hookFactory A factory function for a Postgraphile hook plugin to
|
|
229
|
+
* authorize subscription operations done over the web-socket.
|
|
230
|
+
*/
|
|
231
|
+
enableSubscriptions({ plugin, websocketMiddlewares, hookFactory, }) {
|
|
190
232
|
this.transformers.push((options) => {
|
|
191
233
|
var _a, _b;
|
|
192
|
-
if (args[0] && !Array.isArray(args[0])) {
|
|
193
|
-
options.appendPlugins = [
|
|
194
|
-
...new Set([...((_a = options.appendPlugins) !== null && _a !== void 0 ? _a : []), args[0]]),
|
|
195
|
-
];
|
|
196
|
-
options.websocketMiddlewares = (_b = args[1]) !== null && _b !== void 0 ? _b : [];
|
|
197
|
-
}
|
|
198
|
-
else if (args[0] && Array.isArray(args[0])) {
|
|
199
|
-
options.websocketMiddlewares = args[0];
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
options.websocketMiddlewares = [];
|
|
203
|
-
}
|
|
204
234
|
options.subscriptions = true;
|
|
235
|
+
options.appendPlugins = [
|
|
236
|
+
...new Set([...((_a = options.appendPlugins) !== null && _a !== void 0 ? _a : []), plugin]),
|
|
237
|
+
];
|
|
205
238
|
// Add the pub/sub realtime provider
|
|
206
239
|
// This is for PostGraphile server plugins: https://www.graphile.org/postgraphile/plugins/
|
|
207
240
|
this.pluginHooks.add(pg_pubsub_1.default);
|
|
241
|
+
if (websocketMiddlewares) {
|
|
242
|
+
options.websocketMiddlewares = [
|
|
243
|
+
...new Set([
|
|
244
|
+
...((_b = options.websocketMiddlewares) !== null && _b !== void 0 ? _b : []),
|
|
245
|
+
...websocketMiddlewares,
|
|
246
|
+
]),
|
|
247
|
+
];
|
|
248
|
+
}
|
|
249
|
+
else if (!options.websocketMiddlewares) {
|
|
250
|
+
options.websocketMiddlewares = [];
|
|
251
|
+
}
|
|
252
|
+
if (hookFactory) {
|
|
253
|
+
this.hookFuncs.add(hookFactory);
|
|
254
|
+
}
|
|
208
255
|
return options;
|
|
209
256
|
});
|
|
210
257
|
return this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgraphile-options-builder.js","sourceRoot":"","sources":["../../src/postgraphile/postgraphile-options-builder.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,mDAA2C;AAE3C,mDAAoD;AAGpD,+CAQsB;AACtB,sCAOmB;AAoBnB;;GAEG;AACH,MAAa,0BAA0B;IASrC;;;;;OAKG;IACH,YACmB,KAAc,EACd,iBAA0B;QAD1B,UAAK,GAAL,KAAK,CAAS;QACd,sBAAiB,GAAjB,iBAAiB,CAAS;QAhBrC,iBAAY,GAE6B,EAAE,CAAC;QAE5C,YAAO,GAAqC,EAAE,CAAC;QAC/C,gBAAW,GAA4B,IAAI,GAAG,EAAsB,CAAC;QACrE,cAAS,
|
|
1
|
+
{"version":3,"file":"postgraphile-options-builder.js","sourceRoot":"","sources":["../../src/postgraphile/postgraphile-options-builder.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,mDAA2C;AAE3C,mDAAoD;AAGpD,+CAQsB;AACtB,sCAOmB;AAoBnB;;GAEG;AACH,MAAa,0BAA0B;IASrC;;;;;OAKG;IACH,YACmB,KAAc,EACd,iBAA0B;QAD1B,UAAK,GAAL,KAAK,CAAS;QACd,sBAAiB,GAAjB,iBAAiB,CAAS;QAhBrC,iBAAY,GAE6B,EAAE,CAAC;QAE5C,YAAO,GAAqC,EAAE,CAAC;QAC/C,gBAAW,GAA4B,IAAI,GAAG,EAAsB,CAAC;QACrE,cAAS,GAA2B,IAAI,GAAG,EAAqB,CAAC;IAWtE,CAAC;IAEJ;;OAEG;IACI,KAAK;QACV,IAAI,OAAO,GAA2C,EAAE,CAAC;QACzD,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,YAAY,EAAE;YACzC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;SAC9B;QAED,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAE9B,yCAAyC;QACzC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;YACnC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;QAEH,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,EAAE;YAC7B,OAAO,CAAC,UAAU,GAAG,IAAA,6BAAc,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,EACN,6BAAoB,EACpB,8BAAqB,EACrB,IAAI,eAAM,CAAC,EAAE,OAAO,EAAE,sCAA6B,EAAE,CAAC,CACvD,CAAC;QACJ,CAAC,CAAC;aACC,aAAa,CAAC;YACb,UAAU,EAAE,IAAI;YAChB,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,KAAK;YACjB,eAAe,EAAE,MAAM;YACvB,0BAA0B,EAAE,KAAK;YAEjC,OAAO,EAAE,KAAK;YACd,eAAe,EAAE,IAAI;YACrB,eAAe,EAAE,IAAI;SACtB,CAAC;aACD,gBAAgB,CAAC;YAChB,mBAAmB,EAAE,wCAAwC;YAC7D,OAAO,EAAE,IAAI;YACb,eAAe,EAAE,KAAK;YACtB,eAAe,EAAE,KAAK;SACvB,CAAC;aACD,WAAW,EAAE;aACb,WAAW,CAAC,2BAAU,CAAC,CAAC,CAAC,6FAA6F;QACzH,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA1dD,gEA0dC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-service-common",
|
|
3
|
-
"version": "0.18.0
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Common helpers and PostgreSQL-related functionality",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "55384231cbfa5112022fed2aaa3148c74f739895"
|
|
66
66
|
}
|