Skip to content

Commit c2569df

Browse files
committed
feat: upgrade to nestjs v11
BREAKING CHANGE: Drop support for Node 16 / 18 resolves #2570
1 parent 4a830f1 commit c2569df

38 files changed

+13428
-9492
lines changed

.github/workflows/build-samples.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [16.x, 18.x, 20.x]
12+
node-version: [18.x, 20.x, 22.x]
1313

1414
steps:
1515
- uses: actions/checkout@v4

.github/workflows/e2e.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [16.x, 18.x, 20.x]
12+
node-version: [18.x, 20.x, 22.x]
1313

1414
steps:
1515
- uses: actions/checkout@v4

.github/workflows/format.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v4
12-
- name: Use Node.js 18.x
12+
- name: Use Node.js 20.x
1313
uses: actions/setup-node@v4
1414
with:
15-
node-version: 18.x
15+
node-version: 20.x
1616

1717
- name: Cache node modules
1818
id: cache-npm

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v4
12-
- name: Use Node.js 18.x
12+
- name: Use Node.js 20.x
1313
uses: actions/setup-node@v4
1414
with:
15-
node-version: 18.x
15+
node-version: 20.x
1616

1717
- name: Cache node modules
1818
id: cache-npm

.github/workflows/unit-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [16.x, 18.x, 20.x]
12+
node-version: [18.x, 20.x, 22.x]
1313

1414
steps:
1515
- uses: actions/checkout@v4

.husky/commit-msg

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx --no-install commitlint --edit $1

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx lint-staged

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.20.2
1+
v20.18.2

e2e/helper/bootstrap-testing-module.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { MongoDriver } from '@mikro-orm/mongodb';
2+
import { MySqlDriver } from '@mikro-orm/mysql';
13
import { MikroOrmModule } from '@mikro-orm/nestjs';
24
import { HttpModule } from '@nestjs/axios';
35
import {
@@ -152,7 +154,6 @@ export function bootstrapTestingModule(
152154
username: 'root',
153155
password: 'root',
154156
database: 'test',
155-
keepConnectionAlive: true,
156157
retryAttempts: 2,
157158
retryDelay: 1000,
158159
}),
@@ -166,7 +167,7 @@ export function bootstrapTestingModule(
166167
andMongo: () => {
167168
imports.push(
168169
MikroOrmModule.forRoot({
169-
type: 'mongo',
170+
driver: MongoDriver,
170171
dbName: 'test',
171172
discovery: { warnWhenNoEntities: false },
172173
strict: true,
@@ -179,7 +180,7 @@ export function bootstrapTestingModule(
179180
andMysql: () => {
180181
imports.push(
181182
MikroOrmModule.forRoot({
182-
type: 'mysql',
183+
driver: MySqlDriver,
183184
host: '0.0.0.0',
184185
port: 3306,
185186
user: 'root',

0 commit comments

Comments
 (0)