Skip to content

Commit e73ed0b

Browse files
committed
chore(deps): update all deps with peer deps
1 parent ee2353e commit e73ed0b

File tree

14 files changed

+8348
-7631
lines changed

14 files changed

+8348
-7631
lines changed

.markdownlintignore

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@
44
**/node_modules/
55
website/blog/2018-03-25-medium-article.md
66
website/blog/2020-08-19-devto-article.md
7-
website/versioned_docs/version-0.16.0/
8-
website/versioned_docs/version-0.17.0/
9-
website/versioned_docs/version-0.17.1/
10-
website/versioned_docs/version-0.17.2/
11-
website/versioned_docs/version-0.17.4/
12-
website/versioned_docs/version-0.17.5/
13-
website/versioned_docs/version-0.17.6/
14-
website/versioned_docs/version-1.0.0/
15-
website/versioned_docs/version-1.1.0/
16-
website/versioned_docs/version-1.1.1/
17-
website/versioned_docs/version-1.2.0-rc.1/
18-
7+
website/versioned_docs/*
198
# FIXME: Remove
209
CHANGELOG.md

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
### Others
88

9-
- **Breaking Change**: update `graphql-js` peer dependency to `^16.9.0`
9+
- **Breaking Change**: update `graphql-js` peer dependency to `^16.12.0`
1010
- **Breaking Change**: drop support for Node.js < 20.11.1
11+
- **Breaking Change**: update `graphql-scalars` peer dependency to `^1.25.0`
12+
- **Breaking Change**: update `class-validator` peer dependency to `>=0.14.3`
1113

1214
## v2.0.0-rc.2
1315

docs/emit-schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ hypotheticalFileWatcher.watch("./src/**/*.{resolver,type,input,arg}.ts", async (
3333
});
3434
```
3535

36-
### Emit schema with custom directives
36+
## Emit schema with custom directives
3737

3838
Currently TypeGraphQL does not directly support emitting the schema with custom directives due to `printSchema` function limitations from `graphql-js`.
3939

docs/extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ export class LoggerMiddleware implements MiddlewareInterface<Context> {
114114

115115
## Examples
116116

117-
You can see more detailed examples of usage [here](https://github.com/MichalLytek/type-graphql/tree/master/examples/extensions).
117+
You can see [more detailed examples of usage here](https://github.com/MichalLytek/type-graphql/tree/master/examples/extensions).

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Installation
44

55
Before getting started with TypeGraphQL we need to install some additional dependencies and properly configure the TypeScript configuration for our project.
66

7-
> #### Prerequisites
7+
> **Prerequisites**
88
>
99
> Before we begin, we must make sure our development environment includes Node.js and npm.
1010

examples/typegoose/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"no-underscore-dangle": "off"
4+
}
5+
}

examples/typegoose/entities/recipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Ref } from "../types";
88
@ObjectType()
99
export class Recipe {
1010
@Field()
11-
readonly id!: Types.ObjectId;
11+
readonly _id!: Types.ObjectId;
1212

1313
@Field()
1414
@Property({ required: true })

examples/typegoose/entities/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Field, ObjectType } from "type-graphql";
55
@ObjectType()
66
export class User {
77
@Field()
8-
readonly id!: Types.ObjectId;
8+
readonly _id!: Types.ObjectId;
99

1010
@Field()
1111
@Property({ required: true })

examples/typegoose/helpers.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ export async function seedDatabase() {
1212
{
1313
title: "Recipe 1",
1414
description: "Desc 1",
15-
author: defaultUser.id,
15+
author: defaultUser._id,
1616
ratings: [
17-
{ value: 2, user: defaultUser.id },
18-
{ value: 4, user: defaultUser.id },
19-
{ value: 5, user: defaultUser.id },
20-
{ value: 3, user: defaultUser.id },
21-
{ value: 4, user: defaultUser.id },
17+
{ value: 2, user: defaultUser._id },
18+
{ value: 4, user: defaultUser._id },
19+
{ value: 5, user: defaultUser._id },
20+
{ value: 3, user: defaultUser._id },
21+
{ value: 4, user: defaultUser._id },
2222
],
2323
},
2424
{
2525
title: "Recipe 2",
26-
author: defaultUser.id,
26+
author: defaultUser._id,
2727
ratings: [
28-
{ value: 2, user: defaultUser },
29-
{ value: 4, user: defaultUser },
28+
{ value: 2, user: defaultUser._id },
29+
{ value: 4, user: defaultUser._id },
3030
],
3131
},
3232
]);

examples/typegoose/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function bootstrap() {
1616
const mongoose = await connect(process.env.DATABASE_URL!);
1717

1818
// Clean database
19-
await mongoose.connection.db.dropDatabase();
19+
await mongoose.connection.db?.dropDatabase();
2020
// Seed database with some data
2121
const { defaultUser } = await seedDatabase();
2222

0 commit comments

Comments
 (0)