@nestjs/apollo 13.1.0 → 13.2.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/dist/drivers/apollo-base.driver.d.ts +1 -1
- package/dist/drivers/apollo-base.driver.d.ts.map +1 -1
- package/dist/drivers/apollo-base.driver.js +2 -2
- package/dist/drivers/apollo-federation.driver.d.ts +1 -0
- package/dist/drivers/apollo-federation.driver.d.ts.map +1 -1
- package/dist/drivers/apollo-federation.driver.js +7 -2
- package/dist/utils/async-iterator.util.d.ts.map +1 -1
- package/package.json +17 -13
|
@@ -7,7 +7,7 @@ export declare abstract class ApolloBaseDriver<T extends Record<string, any> = A
|
|
|
7
7
|
start(apolloOptions: T): Promise<void>;
|
|
8
8
|
stop(): Promise<void>;
|
|
9
9
|
mergeDefaultOptions(options: T): Promise<T>;
|
|
10
|
-
subscriptionWithFilter(instanceRef: unknown, filterFn: (payload: any, variables: any, context: any) => boolean | Promise<boolean>, createSubscribeContext: Function): <TPayload, TVariables, TContext, TInfo>(
|
|
10
|
+
subscriptionWithFilter(instanceRef: unknown, filterFn: (payload: any, variables: any, context: any) => boolean | Promise<boolean>, createSubscribeContext: Function): <TPayload, TVariables, TContext, TInfo>(...args: [TPayload, TVariables, TContext, TInfo]) => any;
|
|
11
11
|
protected registerExpress(options: T, { preStartHook }?: {
|
|
12
12
|
preStartHook?: () => void;
|
|
13
13
|
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-base.driver.d.ts","sourceRoot":"","sources":["../../lib/drivers/apollo-base.driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAYhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAKxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAUnD,8BAAsB,gBAAgB,CACpC,CAAC,SAAS,MA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B,WAAW,EAAE,OAAO,EACpB,QAAQ,EAAE,CACR,OAAO,EAAE,GAAG,EACZ,SAAS,EAAE,GAAG,EACd,OAAO,EAAE,GAAG,KACT,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAC/B,sBAAsB,EAAE,QAAQ,IAExB,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAC3C,GAAG,MAAM,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,CAAC,KAC/C,GAAG;cAMQ,eAAe,CAC7B,OAAO,EAAE,CAAC,EACV,EAAE,YAAY,EAAE,GAAE;QAAE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;KAAO;cA6CtC,eAAe,CAC7B,OAAO,EAAE,CAAC,EACV,EAAE,YAAY,EAAE,GAAE;QAAE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;KAAO;IAuCtD,OAAO,CAAC,iBAAiB;IAuBzB,OAAO,CAAC,0BAA0B;IA0ClC,OAAO,CAAC,mBAAmB;IA8B3B,OAAO,CAAC,iBAAiB;CAgB1B"}
|
|
@@ -4,7 +4,7 @@ exports.ApolloBaseDriver = void 0;
|
|
|
4
4
|
const server_1 = require("@apollo/server");
|
|
5
5
|
const server_plugin_landing_page_graphql_playground_1 = require("@apollo/server-plugin-landing-page-graphql-playground");
|
|
6
6
|
const errors_1 = require("@apollo/server/errors");
|
|
7
|
-
const
|
|
7
|
+
const express5_1 = require("@as-integrations/express5");
|
|
8
8
|
const disabled_1 = require("@apollo/server/plugin/disabled");
|
|
9
9
|
const drainHttpServer_1 = require("@apollo/server/plugin/drainHttpServer");
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
@@ -110,7 +110,7 @@ class ApolloBaseDriver extends graphql_1.AbstractGraphQLDriver {
|
|
|
110
110
|
: [drainHttpServerPlugin],
|
|
111
111
|
});
|
|
112
112
|
await server.start();
|
|
113
|
-
app.use(path, (0,
|
|
113
|
+
app.use(path, (0, express5_1.expressMiddleware)(server, {
|
|
114
114
|
context: options.context,
|
|
115
115
|
}));
|
|
116
116
|
this.apolloServer = server;
|
|
@@ -8,6 +8,7 @@ import { ApolloBaseDriver } from './apollo-base.driver';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class ApolloFederationDriver extends ApolloBaseDriver {
|
|
10
10
|
private readonly graphqlFederationFactory;
|
|
11
|
+
private _subscriptionService?;
|
|
11
12
|
private readonly pluginsExplorerService;
|
|
12
13
|
constructor(graphqlFederationFactory: GraphQLFederationFactory, modulesContainer: ModulesContainer);
|
|
13
14
|
start(options: ApolloDriverConfig): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-federation.driver.d.ts","sourceRoot":"","sources":["../../lib/drivers/apollo-federation.driver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"apollo-federation.driver.d.ts","sourceRoot":"","sources":["../../lib/drivers/apollo-federation.driver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAGL,wBAAwB,EAEzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;GAEG;AACH,qBACa,sBAAuB,SAAQ,gBAAgB;IAKxD,OAAO,CAAC,QAAQ,CAAC,wBAAwB;IAJ3C,OAAO,CAAC,oBAAoB,CAAC,CAAyB;IACtD,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAyB;gBAG7C,wBAAwB,EAAE,wBAAwB,EACnE,gBAAgB,EAAE,gBAAgB;IAMvB,KAAK,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmCvD,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;CAG3E"}
|
|
@@ -25,8 +25,13 @@ let ApolloFederationDriver = class ApolloFederationDriver extends apollo_base_dr
|
|
|
25
25
|
}
|
|
26
26
|
await super.start(options);
|
|
27
27
|
if (options.installSubscriptionHandlers || options.subscriptions) {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
const subscriptionsOptions = options.subscriptions || { 'subscriptions-transport-ws': {} };
|
|
29
|
+
this._subscriptionService = new graphql_1.GqlSubscriptionService({
|
|
30
|
+
schema: options.schema,
|
|
31
|
+
path: options.path,
|
|
32
|
+
context: options.context,
|
|
33
|
+
...subscriptionsOptions,
|
|
34
|
+
}, this.httpAdapterHost.httpAdapter?.getHttpServer());
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
37
|
generateSchema(options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-iterator.util.d.ts","sourceRoot":"","sources":["../../lib/utils/async-iterator.util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,CAAC;IACd,KAAK,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC;IACvB,CAAC,eAAe,CAAC,EAAE,GAAG,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"async-iterator.util.d.ts","sourceRoot":"","sources":["../../lib/utils/async-iterator.util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,CAAC;IACd,KAAK,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC;IACvB,CAAC,eAAe,CAAC,EAAE,GAAG,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,CAAC,GAAG,GAAG,EAC/C,aAAa,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EACtC,UAAU,QAAQ,KACjB,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CA0D1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/apollo",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.2.0",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@apollo)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,15 +23,16 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@apollo/gateway": "2.10.1",
|
|
26
|
-
"@apollo/server": "
|
|
27
|
-
"@apollo/server-plugin-response-cache": "
|
|
28
|
-
"@apollo/subgraph": "2.2
|
|
29
|
-
"@as-integrations/
|
|
30
|
-
"@
|
|
31
|
-
"@nestjs/
|
|
32
|
-
"@nestjs/
|
|
33
|
-
"@nestjs/platform-
|
|
34
|
-
"@nestjs/
|
|
26
|
+
"@apollo/server": "5.0.0",
|
|
27
|
+
"@apollo/server-plugin-response-cache": "5.0.0",
|
|
28
|
+
"@apollo/subgraph": "2.11.2",
|
|
29
|
+
"@as-integrations/express5": "^1.1.2",
|
|
30
|
+
"@as-integrations/fastify": "3.0.0",
|
|
31
|
+
"@nestjs/common": "11.1.6",
|
|
32
|
+
"@nestjs/core": "11.1.6",
|
|
33
|
+
"@nestjs/platform-express": "11.1.6",
|
|
34
|
+
"@nestjs/platform-fastify": "11.1.6",
|
|
35
|
+
"@nestjs/testing": "11.1.6",
|
|
35
36
|
"apollo-cache-inmemory": "1.6.6",
|
|
36
37
|
"apollo-client": "2.6.10",
|
|
37
38
|
"apollo-link-ws": "1.0.20"
|
|
@@ -44,9 +45,9 @@
|
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"@apollo/gateway": "^2.0.0",
|
|
47
|
-
"@apollo/server": "^
|
|
48
|
+
"@apollo/server": "^5.0.0",
|
|
48
49
|
"@apollo/subgraph": "^2.0.0",
|
|
49
|
-
"@as-integrations/fastify": "^2.1.1",
|
|
50
|
+
"@as-integrations/fastify": "^2.1.1 || ^3.0.0",
|
|
50
51
|
"@nestjs/common": "^11.0.1",
|
|
51
52
|
"@nestjs/core": "^11.0.1",
|
|
52
53
|
"@nestjs/graphql": "^13.0.0",
|
|
@@ -61,7 +62,10 @@
|
|
|
61
62
|
},
|
|
62
63
|
"@as-integrations/fastify": {
|
|
63
64
|
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"@as-integrations/express5": {
|
|
67
|
+
"optional": true
|
|
64
68
|
}
|
|
65
69
|
},
|
|
66
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "f700174f6fc3581089938b188299dfa636d6f732"
|
|
67
71
|
}
|