Skip to content

Commit aab8be8

Browse files
committed
chore(deps): update graphql to 15.4 and other deps
1 parent d508613 commit aab8be8

File tree

12 files changed

+10041
-9313
lines changed

12 files changed

+10041
-9313
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
- **Breaking Change**: `AuthChecker` type is now "function or class" - update to `AuthCheckerFn` if the function form is needed in the code
77
- support class-based auth checker, which allows for dependency injection
88
- allow defining directives for interface types and theirs fields, with inheritance for object types fields (#744)
9+
### Others
10+
- **Breaking Change**: update `graphql-js` peer dependency to `^15.4.0`
911

1012
## v1.1.1
1113
### Fixes

examples/redis-subscriptions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "reflect-metadata";
22
import { ApolloServer } from "apollo-server";
3-
import * as Redis from "ioredis";
3+
import Redis from "ioredis";
44
import { RedisPubSub } from "graphql-redis-subscriptions";
55
import { buildSchema } from "../../src";
66

examples/using-container/recipe-resolver.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import { Service } from "typedi";
12
import { Resolver, Query, FieldResolver, Arg, Root, Mutation } from "../../src";
23

34
import { Recipe } from "./recipe-type";
45
import { RecipeService } from "./recipe-service";
56
import { RecipeInput } from "./recipe-input";
67

8+
@Service()
79
@Resolver(of => Recipe)
810
export class RecipeResolver {
911
constructor(

examples/using-scoped-container/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function bootstrap() {
2424
// we need to provide unique context with `requestId` for each request
2525
context: (): Context => {
2626
const requestId = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER); // uuid-like
27-
const container = Container.of(requestId); // get scoped container
27+
const container = Container.of(requestId.toString()); // get scoped container
2828
const context = { requestId, container }; // create our context
2929
container.set("context", context); // place context or other data in container
3030
return context;
@@ -35,7 +35,7 @@ async function bootstrap() {
3535
requestDidStart: () => ({
3636
willSendResponse(requestContext: GraphQLRequestContext<Context>) {
3737
// remember to dispose the scoped container to prevent memory leaks
38-
Container.reset(requestContext.context.requestId);
38+
Container.reset(requestContext.context.requestId.toString());
3939

4040
// for developers curiosity purpose, here is the logging of current scoped container instances
4141
// we can make multiple parallel requests to see in console how this works

0 commit comments

Comments
 (0)