nest-knexjs 0.0.21 → 0.0.23

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/README.md CHANGED
@@ -32,23 +32,26 @@ First install the module via `yarn` or `npm` or `pnpm` and do not forget to inst
32
32
 
33
33
 
34
34
  ```bash
35
- $ npm i --save nest-knexjs knex mysql # for mysql/mariadb
36
- $ npm i --save nest-knexjs knex pg # for postgresql
37
- $ npm i --save nest-knexjs knex sqlite # for sqlite
35
+ $ npm i --save nest-knexjs knex mysql # for mysql/mariadb
36
+ $ npm i --save nest-knexjs knex pg # for postgresql
37
+ $ npm i --save nest-knexjs knex sqlite # for sqlite
38
+ $ npm i --save nest-knexjs knex oracledb # for oracledb
38
39
  ```
39
40
  or
40
41
 
41
42
  ```bash
42
- $ yarn add nest-knexjs knex mysql # for mysql/mariadb
43
- $ yarn add nest-knexjs knex pg # for postgresql
44
- $ yarn add nest-knexjs knex sqlite # for sqlite
43
+ $ yarn add nest-knexjs knex mysql # for mysql/mariadb
44
+ $ yarn add nest-knexjs knex pg # for postgresql
45
+ $ yarn add nest-knexjs knex sqlite # for sqlite
46
+ $ yarn add nest-knexjs knex oracledb # for oracledb
45
47
  ```
46
48
  or
47
49
 
48
50
  ```bash
49
- $ pnpm add nest-knexjs knex mysql # for mysql/mariadb
50
- $ pnpm add nest-knexjs knex pg # for postgresql
51
- $ pnpm add nest-knexjs knex sqlite # for sqlite
51
+ $ pnpm add nest-knexjs knex mysql # for mysql/mariadb
52
+ $ pnpm add nest-knexjs knex pg # for postgresql
53
+ $ pnpm add nest-knexjs knex sqlite # for sqlite
54
+ $ pnpm add nest-knexjs knex oracledb # for oracledb
52
55
  ```
53
56
 
54
57
  ## Table of Contents
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nest-knexjs",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Knexjs module for Nest framework (node.js) 😻",
5
5
  "author": "Tony133",
6
6
  "license": "MIT",
@@ -16,37 +16,36 @@
16
16
  "test:e2e:dev": "jest --config ./tests/jest-e2e.json --runInBand --watch",
17
17
  "prerelease": "npm run build",
18
18
  "release": "release-it",
19
- "prepare": "husky install"
19
+ "prepare": "husky"
20
20
  },
21
21
  "devDependencies": {
22
- "@commitlint/cli": "18.6.0",
23
- "@commitlint/config-angular": "18.6.0",
24
- "@nestjs/common": "10.3.2",
25
- "@nestjs/core": "10.3.2",
26
- "@nestjs/platform-express": "10.3.2",
27
- "@nestjs/testing": "10.3.2",
28
- "@types/express": "4.17.21",
22
+ "@commitlint/cli": "19.3.0",
23
+ "@commitlint/config-angular": "19.3.0",
24
+ "@nestjs/common": "10.3.9",
25
+ "@nestjs/core": "10.3.9",
26
+ "@nestjs/platform-fastify": "^10.3.7",
27
+ "@nestjs/testing": "10.3.9",
29
28
  "@types/jest": "29.5.12",
30
- "@types/node": "20.11.17",
29
+ "@types/node": "20.14.2",
31
30
  "@types/supertest": "6.0.2",
32
- "@typescript-eslint/eslint-plugin": "6.21.0",
33
- "@typescript-eslint/parser": "6.21.0",
34
- "eslint": "8.56.0",
31
+ "@typescript-eslint/eslint-plugin": "7.13.0",
32
+ "@typescript-eslint/parser": "7.13.0",
33
+ "eslint": "8.57.0",
35
34
  "eslint-config-prettier": "9.1.0",
36
35
  "eslint-plugin-import": "2.29.1",
37
- "husky": "9.0.10",
36
+ "husky": "9.0.11",
38
37
  "jest": "29.7.0",
39
38
  "knex": "3.1.0",
40
39
  "mysql": "2.18.1",
41
- "prettier": "3.2.5",
42
- "reflect-metadata": "0.2.1",
43
- "release-it": "17.0.3",
40
+ "prettier": "3.3.2",
41
+ "reflect-metadata": "0.2.2",
42
+ "release-it": "17.3.0",
44
43
  "rxjs": "7.8.1",
45
- "supertest": "6.3.4",
46
- "ts-jest": "29.1.2",
44
+ "supertest": "7.0.0",
45
+ "ts-jest": "29.1.4",
47
46
  "ts-node": "10.9.2",
48
47
  "tsconfig-paths": "4.2.0",
49
- "typescript": "5.3.3"
48
+ "typescript": "5.4.5"
50
49
  },
51
50
  "peerDependencies": {
52
51
  "@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
@@ -1,8 +1,15 @@
1
1
  import { NestFactory } from '@nestjs/core';
2
2
  import { AppModule } from './app.module';
3
+ import {
4
+ NestFastifyApplication,
5
+ FastifyAdapter,
6
+ } from '@nestjs/platform-fastify';
3
7
 
4
8
  async function bootstrap() {
5
- const app = await NestFactory.create(AppModule);
9
+ const app = await NestFactory.create<NestFastifyApplication>(
10
+ AppModule,
11
+ new FastifyAdapter(),
12
+ );
6
13
 
7
14
  await app.listen(3000);
8
15
  }
@@ -1,8 +1,15 @@
1
1
  import { NestFactory } from '@nestjs/core';
2
2
  import { AppModule } from './app.module';
3
+ import {
4
+ NestFastifyApplication,
5
+ FastifyAdapter,
6
+ } from '@nestjs/platform-fastify';
3
7
 
4
8
  async function bootstrap() {
5
- const app = await NestFactory.create(AppModule);
9
+ const app = await NestFactory.create<NestFastifyApplication>(
10
+ AppModule,
11
+ new FastifyAdapter(),
12
+ );
6
13
 
7
14
  await app.listen(3000);
8
15
  }