Compare commits

...

661 Commits

Author SHA1 Message Date
Kamil Myśliwiec
7359a35773 chore(@nestjs) publish v10.2.8 release 2023-11-02 11:59:45 +01:00
Kamil Myśliwiec
76586fcdfb chore: update copyright 2023-11-02 11:57:30 +01:00
Kamil Mysliwiec
34f88f661f Merge pull request #12384 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-12.0.9
chore(deps-dev): bump @nestjs/apollo from 12.0.4 to 12.0.9
2023-11-02 11:55:25 +01:00
Kamil Mysliwiec
9472b51161 Merge pull request #12662 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-18.1.0
chore(deps-dev): bump @commitlint/config-angular from 18.0.0 to 18.1.0
2023-11-02 11:53:58 +01:00
Kamil Mysliwiec
a830ab849d Merge pull request #12664 from nestjs/dependabot/npm_and_yarn/fastify-4.24.3
chore(deps): bump fastify from 4.23.2 to 4.24.3
2023-11-02 11:53:31 +01:00
Kamil Mysliwiec
e4ac534dfa Merge pull request #12660 from nestjs/dependabot/npm_and_yarn/lint-staged-15.0.2
chore(deps-dev): bump lint-staged from 14.0.1 to 15.0.2
2023-11-02 11:53:20 +01:00
dependabot[bot]
caacc23d22 chore(deps-dev): bump @commitlint/config-angular from 18.0.0 to 18.1.0
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 18.0.0 to 18.1.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-angular/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v18.1.0/@commitlint/config-angular)

---
updated-dependencies:
- dependency-name: "@commitlint/config-angular"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 10:53:03 +00:00
dependabot[bot]
efc73304e2 chore(deps-dev): bump lint-staged from 14.0.1 to 15.0.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 14.0.1 to 15.0.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/okonet/lint-staged/compare/v14.0.1...v15.0.2)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 10:52:54 +00:00
dependabot[bot]
c42aa32392 chore(deps): bump fastify from 4.23.2 to 4.24.3
Bumps [fastify](https://github.com/fastify/fastify) from 4.23.2 to 4.24.3.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.23.2...v4.24.3)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 10:52:48 +00:00
Kamil Mysliwiec
bd8d8e74ff Merge pull request #12666 from nestjs/dependabot/npm_and_yarn/commitlint/cli-18.2.0
chore(deps-dev): bump @commitlint/cli from 17.7.2 to 18.2.0
2023-11-02 11:51:58 +01:00
dependabot[bot]
843b3ebc72 chore(deps-dev): bump @commitlint/cli from 17.7.2 to 18.2.0
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.7.2 to 18.2.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v18.2.0/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 10:50:56 +00:00
Kamil Mysliwiec
7a25d822f3 Merge pull request #12667 from nestjs/dependabot/npm_and_yarn/apollo/server-4.9.5
chore(deps-dev): bump @apollo/server from 4.9.4 to 4.9.5
2023-11-02 11:49:57 +01:00
Kamil Mysliwiec
a27d50b7cb Merge pull request #12672 from nestjs/dependabot/npm_and_yarn/fastify/static-6.12.0
chore(deps-dev): bump @fastify/static from 6.11.2 to 6.12.0
2023-11-02 11:49:28 +01:00
dependabot[bot]
6ecd9d6a51 chore(deps-dev): bump @apollo/server from 4.9.4 to 4.9.5
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.9.4 to 4.9.5.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.9.5/packages/server)

---
updated-dependencies:
- dependency-name: "@apollo/server"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 10:47:54 +00:00
dependabot[bot]
2e5e77c94f chore(deps-dev): bump @fastify/static from 6.11.2 to 6.12.0
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 6.11.2 to 6.12.0.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v6.11.2...v6.12.0)

---
updated-dependencies:
- dependency-name: "@fastify/static"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 10:47:54 +00:00
Kamil Mysliwiec
64a421565b Merge pull request #12652 from nestjs/dependabot/npm_and_yarn/types/cors-2.8.15
chore(deps-dev): bump @types/cors from 2.8.14 to 2.8.15
2023-11-02 11:47:27 +01:00
Kamil Mysliwiec
918d01c862 Merge pull request #12676 from nestjs/dependabot/npm_and_yarn/types/node-20.8.10
chore(deps-dev): bump @types/node from 20.8.7 to 20.8.10
2023-11-02 11:47:10 +01:00
Kamil Mysliwiec
d7127ce9b3 Merge pull request #12675 from sadikkuzu/patch-1
Fix typo in Bug_report.yml
2023-11-02 11:40:06 +01:00
dependabot[bot]
74daf86269 chore(deps-dev): bump @types/node from 20.8.7 to 20.8.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.8.7 to 20.8.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 00:31:47 +00:00
SADIK KUZU
53ca275f9f Fix typo in Bug_report.yml 2023-10-31 19:15:39 +03:00
Kamil Myśliwiec
044012283a chore: fix package lock 2023-10-25 08:45:19 +02:00
dependabot[bot]
16215b9f89 chore(deps-dev): bump @types/cors from 2.8.14 to 2.8.15
Bumps [@types/cors](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/cors) from 2.8.14 to 2.8.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/cors)

---
updated-dependencies:
- dependency-name: "@types/cors"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 06:41:16 +00:00
Kamil Mysliwiec
354475da01 Merge pull request #12656 from jmcdo29/fix/dates-validation
fix: add date to ignored metatypes
2023-10-25 08:40:17 +02:00
Kamil Mysliwiec
202918c8c0 Merge pull request #12649 from nestjs/dependabot/npm_and_yarn/types/mocha-10.0.3
chore(deps-dev): bump @types/mocha from 10.0.2 to 10.0.3
2023-10-25 08:39:12 +02:00
Kamil Mysliwiec
3a6ec16349 Merge pull request #12637 from nestjs/dependabot/npm_and_yarn/types/chai-as-promised-7.1.7
chore(deps-dev): bump @types/chai-as-promised from 7.1.6 to 7.1.7
2023-10-25 08:38:58 +02:00
Kamil Mysliwiec
f82e76b678 Merge pull request #12648 from nestjs/dependabot/npm_and_yarn/sinon-17.0.0
chore(deps-dev): bump sinon from 16.1.0 to 17.0.0
2023-10-25 08:38:49 +02:00
dependabot[bot]
5cc3de0036 chore(deps-dev): bump @types/chai-as-promised from 7.1.6 to 7.1.7
Bumps [@types/chai-as-promised](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai-as-promised) from 7.1.6 to 7.1.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai-as-promised)

---
updated-dependencies:
- dependency-name: "@types/chai-as-promised"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 06:38:20 +00:00
dependabot[bot]
48a56c23c9 chore(deps-dev): bump sinon from 16.1.0 to 17.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 16.1.0 to 17.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v16.1.0...v17.0.0)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 06:38:07 +00:00
Kamil Mysliwiec
725f61a7c5 Merge pull request #12633 from nestjs/dependabot/npm_and_yarn/types/ws-8.5.8
chore(deps-dev): bump @types/ws from 8.5.6 to 8.5.8
2023-10-25 08:37:39 +02:00
Kamil Mysliwiec
8eb344f6c5 Merge pull request #12650 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-6.9.0
chore(deps-dev): bump @typescript-eslint/parser from 6.8.0 to 6.9.0
2023-10-25 08:37:31 +02:00
dependabot[bot]
f700efb982 chore(deps-dev): bump @types/mocha from 10.0.2 to 10.0.3
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 10.0.2 to 10.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

---
updated-dependencies:
- dependency-name: "@types/mocha"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 06:37:17 +00:00
Kamil Mysliwiec
0d50d4c35e Merge pull request #12653 from nestjs/dependabot/npm_and_yarn/types/gulp-4.0.16
chore(deps-dev): bump @types/gulp from 4.0.14 to 4.0.16
2023-10-25 08:37:16 +02:00
dependabot[bot]
95900f5ae2 chore(deps-dev): bump @types/gulp from 4.0.14 to 4.0.16
Bumps [@types/gulp](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/gulp) from 4.0.14 to 4.0.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/gulp)

---
updated-dependencies:
- dependency-name: "@types/gulp"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 06:36:41 +00:00
Kamil Mysliwiec
703c9c37c8 Merge pull request #12654 from nestjs/dependabot/npm_and_yarn/types/express-4.17.20
chore(deps-dev): bump @types/express from 4.17.18 to 4.17.20
2023-10-25 08:35:36 +02:00
Jay McDoniel
f3141fbfda fix: add date to ignored metatypes 2023-10-24 23:31:32 -07:00
dependabot[bot]
e4df00fc38 chore(deps-dev): bump @types/express from 4.17.18 to 4.17.20
Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.18 to 4.17.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

---
updated-dependencies:
- dependency-name: "@types/express"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 00:14:19 +00:00
dependabot[bot]
9659c0143d chore(deps-dev): bump @typescript-eslint/parser from 6.8.0 to 6.9.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.8.0 to 6.9.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.9.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 00:13:05 +00:00
Kamil Mysliwiec
e06a650474 Merge pull request #12643 from nestjs/renovate/bytes-3.x
chore(deps): update dependency @types/bytes to v3.1.3
2023-10-24 09:26:02 +02:00
renovate[bot]
99de2365ff chore(deps): update dependency @types/bytes to v3.1.3 2023-10-24 07:25:19 +00:00
Kamil Mysliwiec
5aae7213bc Merge pull request #12642 from nestjs/renovate/amqplib-0.x
chore(deps): update dependency @types/amqplib to v0.10.3
2023-10-24 09:20:03 +02:00
renovate[bot]
ba23dae784 chore(deps): update dependency @types/amqplib to v0.10.3 2023-10-24 07:17:55 +00:00
dependabot[bot]
82438f4abc chore(deps-dev): bump @types/ws from 8.5.6 to 8.5.8
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.6 to 8.5.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: "@types/ws"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24 07:12:14 +00:00
Kamil Mysliwiec
1cb6ac0ce8 Merge pull request #12638 from nestjs/dependabot/npm_and_yarn/types/http-errors-2.0.3
chore(deps-dev): bump @types/http-errors from 2.0.2 to 2.0.3
2023-10-24 09:11:26 +02:00
Kamil Mysliwiec
c8b3ab4217 Merge pull request #12636 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-18.0.0
chore(deps-dev): bump @commitlint/config-angular from 17.7.0 to 18.0.0
2023-10-24 09:09:41 +02:00
Kamil Mysliwiec
89705eaf45 Merge pull request #12635 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-6.9.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.8.0 to 6.9.0
2023-10-24 09:09:34 +02:00
dependabot[bot]
251dc47cd9 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.8.0 to 6.9.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.9.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24 07:09:23 +00:00
Kamil Mysliwiec
f69907dadd Merge pull request #12634 from nestjs/dependabot/npm_and_yarn/types/supertest-2.0.15
chore(deps-dev): bump @types/supertest from 2.0.14 to 2.0.15
2023-10-24 09:09:18 +02:00
Kamil Mysliwiec
c3a993f7be Merge pull request #12552 from nestjs/renovate/mongodb-6.x
fix(deps): update dependency mongodb to v6
2023-10-24 09:09:07 +02:00
Kamil Mysliwiec
fe60f37f4e Merge pull request #12639 from nestjs/dependabot/npm_and_yarn/concurrently-8.2.2
chore(deps-dev): bump concurrently from 8.2.1 to 8.2.2
2023-10-24 09:08:56 +02:00
Kamil Mysliwiec
4f95e85042 Merge pull request #12631 from nestjs/renovate/eslint-plugin-import-2.x
chore(deps): update dependency eslint-plugin-import to v2.29.0
2023-10-24 09:08:43 +02:00
Kamil Mysliwiec
dfd5379c8a Merge pull request #12484 from nestjs/renovate/supertest-2.x
chore(deps): update dependency @types/supertest to v2.0.15
2023-10-24 09:08:33 +02:00
Kamil Mysliwiec
65575867ff Merge pull request #12540 from nestjs/renovate/eslint-plugin-prettier-5.x
chore(deps): update dependency eslint-plugin-prettier to v5
2023-10-24 09:08:21 +02:00
Kamil Mysliwiec
16e23070c4 Merge pull request #12640 from nestjs/dependabot/npm_and_yarn/core-js-3.33.1
chore(deps-dev): bump core-js from 3.33.0 to 3.33.1
2023-10-24 09:08:12 +02:00
Kamil Mysliwiec
b581d2bbae Merge pull request #12641 from nestjs/dependabot/npm_and_yarn/types/chai-4.3.9
chore(deps-dev): bump @types/chai from 4.3.6 to 4.3.9
2023-10-24 09:08:03 +02:00
renovate[bot]
05b604e738 chore(deps): update dependency eslint-plugin-prettier to v5 2023-10-24 06:49:37 +00:00
renovate[bot]
c62ba40094 chore(deps): update dependency @types/supertest to v2.0.15 2023-10-24 06:48:19 +00:00
dependabot[bot]
72bcb36b70 chore(deps-dev): bump concurrently from 8.2.1 to 8.2.2
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 8.2.1 to 8.2.2.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v8.2.1...v8.2.2)

---
updated-dependencies:
- dependency-name: concurrently
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24 06:42:25 +00:00
dependabot[bot]
923d294d63 chore(deps-dev): bump @types/http-errors from 2.0.2 to 2.0.3
Bumps [@types/http-errors](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/http-errors) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/http-errors)

---
updated-dependencies:
- dependency-name: "@types/http-errors"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24 06:42:23 +00:00
dependabot[bot]
0f6c5dd7d7 chore(deps-dev): bump @types/supertest from 2.0.14 to 2.0.15
Bumps [@types/supertest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/supertest) from 2.0.14 to 2.0.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/supertest)

---
updated-dependencies:
- dependency-name: "@types/supertest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24 06:42:20 +00:00
dependabot[bot]
cad7a6cd75 chore(deps-dev): bump @commitlint/config-angular from 17.7.0 to 18.0.0
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 17.7.0 to 18.0.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-angular/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v18.0.0/@commitlint/config-angular)

---
updated-dependencies:
- dependency-name: "@commitlint/config-angular"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24 06:42:07 +00:00
dependabot[bot]
e75052370b chore(deps-dev): bump core-js from 3.33.0 to 3.33.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.33.0 to 3.33.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.33.1/packages/core-js)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24 06:42:06 +00:00
dependabot[bot]
c55ab5a264 chore(deps-dev): bump @types/chai from 4.3.6 to 4.3.9
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.6 to 4.3.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

---
updated-dependencies:
- dependency-name: "@types/chai"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24 06:41:54 +00:00
Kamil Myśliwiec
0fd228ef92 chore: downgrade nyc version 2023-10-24 08:41:05 +02:00
Kamil Myśliwiec
7fdaec765c ci: bump max heap size for cov script 2023-10-23 14:26:14 +02:00
renovate[bot]
5e414f0516 fix(deps): update dependency mongodb to v6 2023-10-23 11:49:04 +00:00
renovate[bot]
5046644e53 chore(deps): update dependency eslint-plugin-import to v2.29.0 2023-10-23 11:45:19 +00:00
Kamil Myśliwiec
add1c7359c fix: fix package lock 2023-10-23 13:01:53 +02:00
Kamil Mysliwiec
d38f7cde2b Merge pull request #12515 from nestjs/renovate/mongoose-7.x
fix(deps): update dependency mongoose to v7.6.3
2023-10-23 13:00:27 +02:00
Kamil Mysliwiec
c07421f979 Merge pull request #12531 from nestjs/renovate/fastify-static-6.x
fix(deps): update dependency @fastify/static to v6.11.2
2023-10-23 13:00:14 +02:00
Kamil Mysliwiec
da6349669e Merge pull request #12532 from nestjs/renovate/grpc-grpc-js-1.x
fix(deps): update dependency @grpc/grpc-js to v1.9.7
2023-10-23 13:00:08 +02:00
Kamil Mysliwiec
e7d1481dc6 Merge pull request #12539 from nestjs/renovate/eslint-config-prettier-9.x
chore(deps): update dependency eslint-config-prettier to v9
2023-10-23 12:59:46 +02:00
Kamil Mysliwiec
39113e8d6c Merge pull request #12530 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v5.62.0
2023-10-23 12:59:37 +02:00
Kamil Mysliwiec
e529d5287a Merge pull request #12523 from nestjs/renovate/typescript-5.x
chore(deps): update dependency typescript to v5.2.2
2023-10-23 12:57:36 +02:00
renovate[bot]
219f05680e chore(deps): update dependency eslint-config-prettier to v9 2023-10-23 10:17:37 +00:00
renovate[bot]
a287b9cdce fix(deps): update dependency mongoose to v7.6.3 2023-10-23 10:11:02 +00:00
renovate[bot]
97344e3040 fix(deps): update dependency @grpc/grpc-js to v1.9.7 2023-10-23 10:10:29 +00:00
renovate[bot]
bebe0d4a5f fix(deps): update dependency @fastify/static to v6.11.2 2023-10-23 10:09:57 +00:00
renovate[bot]
76074c2635 chore(deps): update typescript-eslint monorepo to v5.62.0 2023-10-23 10:07:40 +00:00
renovate[bot]
1fdb06cc21 chore(deps): update dependency typescript to v5.2.2 2023-10-23 09:46:26 +00:00
Kamil Mysliwiec
e6276d5c09 Merge pull request #12558 from jmcdo29/feat/streamable-error-logger
feat: allow for custom logger with streamable files
2023-10-23 11:26:37 +02:00
Kamil Mysliwiec
2d8a848d13 Merge pull request #12520 from nestjs/renovate/node-20.x
chore(deps): update dependency @types/node to v20.8.7
2023-10-23 11:05:11 +02:00
Kamil Mysliwiec
93a6668e7c Merge pull request #12521 from nestjs/renovate/sinon-10.x
chore(deps): update dependency @types/sinon to v10.0.20
2023-10-23 11:04:51 +02:00
renovate[bot]
0cc2e594ef chore(deps): update dependency @types/sinon to v10.0.20 2023-10-23 09:00:31 +00:00
renovate[bot]
c8c2e95901 chore(deps): update dependency @types/node to v20.8.7 2023-10-23 09:00:11 +00:00
Kamil Mysliwiec
551d12b160 Merge pull request #12519 from micalevisk/fix/issue-12518
fix(core): when the discoverable decorator was not used on calling `getProviders`/`getControllers`
2023-10-23 10:54:20 +02:00
Kamil Mysliwiec
bd9b31d21d Merge pull request #12513 from nestjs/renovate/jest-monorepo
chore(deps): update jest monorepo
2023-10-23 10:53:09 +02:00
Kamil Mysliwiec
c909160dc9 Merge pull request #12589 from nestjs/dependabot/npm_and_yarn/sample/19-auth-jwt/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/19-auth-jwt
2023-10-23 10:46:45 +02:00
renovate[bot]
388aff0a8c chore(deps): update jest monorepo 2023-10-23 08:44:49 +00:00
Kamil Mysliwiec
6af6a52032 Merge pull request #12591 from nestjs/dependabot/npm_and_yarn/sample/28-sse/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/28-sse
2023-10-23 10:44:39 +02:00
Kamil Mysliwiec
e296f23406 Merge pull request #12576 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-6.8.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.7.4 to 6.8.0
2023-10-23 10:44:29 +02:00
Kamil Mysliwiec
9842e40bab Merge pull request #12590 from nestjs/dependabot/npm_and_yarn/sample/24-serve-static/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/24-serve-static
2023-10-23 10:44:21 +02:00
Kamil Mysliwiec
15adbe2551 Merge pull request #12598 from nestjs/dependabot/npm_and_yarn/sample/16-gateways-ws/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/16-gateways-ws
2023-10-23 10:44:11 +02:00
Kamil Mysliwiec
3ce8665634 Merge pull request #12599 from nestjs/dependabot/npm_and_yarn/sample/25-dynamic-modules/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/25-dynamic-modules
2023-10-23 10:44:03 +02:00
Kamil Mysliwiec
8df8949c8e Merge pull request #12600 from nestjs/dependabot/npm_and_yarn/sample/27-scheduling/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/27-scheduling
2023-10-23 10:43:54 +02:00
Kamil Mysliwiec
b2533d4ffd Merge pull request #12605 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/users-application/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.21.2 to 7.23.2 in /sample/32-graphql-federation-schema-first/users-application
2023-10-23 10:43:32 +02:00
Kamil Mysliwiec
70b2e65fbf Merge pull request #12609 from nestjs/dependabot/npm_and_yarn/sample/22-graphql-prisma/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.21.2 to 7.23.2 in /sample/22-graphql-prisma
2023-10-23 10:43:25 +02:00
Kamil Mysliwiec
36b4cd4e8a Merge pull request #12611 from nestjs/dependabot/npm_and_yarn/types/node-20.8.7
chore(deps-dev): bump @types/node from 20.8.2 to 20.8.7
2023-10-23 10:43:16 +02:00
Kamil Mysliwiec
9c551fb679 Merge pull request #12612 from nestjs/dependabot/npm_and_yarn/sample/09-babel-example/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.22.20 to 7.23.2 in /sample/09-babel-example
2023-10-23 10:43:10 +02:00
Kamil Mysliwiec
6c9e4488da Merge pull request #12613 from nestjs/dependabot/npm_and_yarn/sample/13-mongo-typeorm/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.22.5 to 7.23.2 in /sample/13-mongo-typeorm
2023-10-23 10:43:06 +02:00
Kamil Mysliwiec
ce3aee74b2 Merge pull request #12616 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.22.5 to 7.23.2 in /sample/31-graphql-federation-code-first/users-application
2023-10-23 10:42:55 +02:00
Kamil Mysliwiec
94eae24cd7 Merge pull request #12615 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.22.5 to 7.23.2 in /sample/31-graphql-federation-code-first/gateway
2023-10-23 10:40:58 +02:00
Kamil Mysliwiec
b35d9dc991 Merge pull request #12614 from nestjs/dependabot/npm_and_yarn/sample/33-graphql-mercurius/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.22.5 to 7.23.2 in /sample/33-graphql-mercurius
2023-10-23 10:40:51 +02:00
Kamil Mysliwiec
7dbc80d8ef Merge pull request #12610 from nestjs/dependabot/npm_and_yarn/sample/23-graphql-code-first/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.21.2 to 7.23.2 in /sample/23-graphql-code-first
2023-10-23 10:40:32 +02:00
Kamil Mysliwiec
25deea723c Merge pull request #12608 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/gateway/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.21.2 to 7.23.2 in /sample/32-graphql-federation-schema-first/gateway
2023-10-23 10:40:21 +02:00
Kamil Mysliwiec
3d371cd45f Merge pull request #12607 from nestjs/dependabot/npm_and_yarn/sample/12-graphql-schema-first/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.21.2 to 7.23.2 in /sample/12-graphql-schema-first
2023-10-23 10:40:14 +02:00
Kamil Mysliwiec
3c96ca46aa Merge pull request #12534 from nestjs/renovate/nestjs-swagger-7.x
fix(deps): update dependency @nestjs/swagger to v7.1.13
2023-10-23 10:39:55 +02:00
Kamil Mysliwiec
5de4ba731f Merge pull request #12537 from nestjs/renovate/mysql2-3.x
fix(deps): update dependency mysql2 to v3.6.2
2023-10-23 10:39:46 +02:00
Kamil Mysliwiec
fdd97fc155 Merge pull request #12606 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.21.2 to 7.23.2 in /sample/32-graphql-federation-schema-first/posts-application
2023-10-23 10:38:53 +02:00
Kamil Mysliwiec
3a125e4678 Merge pull request #12603 from nestjs/dependabot/npm_and_yarn/sample/29-file-upload/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/29-file-upload
2023-10-23 10:38:49 +02:00
Kamil Mysliwiec
b46276437f Merge pull request #12602 from nestjs/dependabot/npm_and_yarn/sample/30-event-emitter/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/30-event-emitter
2023-10-23 10:38:36 +02:00
Kamil Mysliwiec
45436de4b1 Merge pull request #12601 from nestjs/dependabot/npm_and_yarn/sample/26-queues/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/26-queues
2023-10-23 10:38:30 +02:00
Kamil Mysliwiec
f6fac34eda Merge pull request #12597 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/07-sequelize
2023-10-23 10:38:17 +02:00
Kamil Mysliwiec
1c1778638d Merge pull request #12596 from nestjs/dependabot/npm_and_yarn/sample/18-context/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/18-context
2023-10-23 10:38:11 +02:00
Kamil Mysliwiec
d32a9f02f7 Merge pull request #12595 from nestjs/dependabot/npm_and_yarn/sample/15-mvc/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/15-mvc
2023-10-23 10:38:01 +02:00
Kamil Mysliwiec
23c4495dbe Merge pull request #12594 from nestjs/dependabot/npm_and_yarn/sample/10-fastify/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/10-fastify
2023-10-23 10:37:54 +02:00
Kamil Mysliwiec
410b6e2519 Merge pull request #12592 from nestjs/dependabot/npm_and_yarn/sample/01-cats-app/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/01-cats-app
2023-10-23 10:37:40 +02:00
Kamil Mysliwiec
f7875f59eb Merge pull request #12617 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.22.5 to 7.23.2 in /sample/31-graphql-federation-code-first/posts-application
2023-10-23 10:37:14 +02:00
Kamil Mysliwiec
53a3a51ce4 Merge pull request #12587 from nestjs/dependabot/npm_and_yarn/sample/20-cache/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/20-cache
2023-10-23 10:36:00 +02:00
Kamil Mysliwiec
6b86a60973 Merge pull request #12593 from nestjs/dependabot/npm_and_yarn/sample/03-microservices/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/03-microservices
2023-10-23 10:35:26 +02:00
dependabot[bot]
d2701bc250 chore(deps-dev): bump @babel/traverse in /sample/23-graphql-code-first
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.2 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:22 +00:00
dependabot[bot]
fcbc76cd15 chore(deps-dev): bump @babel/traverse in /sample/18-context
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:22 +00:00
dependabot[bot]
1742467cf5 chore(deps-dev): bump @babel/traverse in /sample/03-microservices
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:21 +00:00
dependabot[bot]
475ce70c82 chore(deps-dev): bump @babel/traverse in /sample/13-mongo-typeorm
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:20 +00:00
dependabot[bot]
c0bb07f239 chore(deps-dev): bump @babel/traverse in /sample/15-mvc
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:20 +00:00
dependabot[bot]
9efba91866 chore(deps-dev): bump @babel/traverse
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.2 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:19 +00:00
Kamil Mysliwiec
181e6691e8 Merge pull request #12588 from nestjs/dependabot/npm_and_yarn/sample/21-serializer/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/21-serializer
2023-10-23 10:35:19 +02:00
dependabot[bot]
3f31ffbacd chore(deps-dev): bump @babel/traverse in /sample/28-sse
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:16 +00:00
dependabot[bot]
c5df7fe15c chore(deps-dev): bump @babel/traverse in /sample/33-graphql-mercurius
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:14 +00:00
dependabot[bot]
c8e6f91fb8 chore(deps-dev): bump @babel/traverse in /sample/24-serve-static
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:13 +00:00
dependabot[bot]
4aa14cdf8c chore(deps-dev): bump @babel/traverse in /sample/20-cache
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:13 +00:00
dependabot[bot]
da3f24aa7b chore(deps-dev): bump @babel/traverse in /sample/27-scheduling
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:12 +00:00
dependabot[bot]
922ebf5719 chore(deps-dev): bump @babel/traverse in /sample/07-sequelize
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:11 +00:00
dependabot[bot]
413b0d0db5 chore(deps-dev): bump @babel/traverse in /sample/19-auth-jwt
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:10 +00:00
dependabot[bot]
c93608b59c chore(deps-dev): bump @babel/traverse in /sample/29-file-upload
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:10 +00:00
dependabot[bot]
941085e401 chore(deps-dev): bump @babel/traverse in /sample/30-event-emitter
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:09 +00:00
dependabot[bot]
ac31ae4291 chore(deps-dev): bump @babel/traverse in /sample/25-dynamic-modules
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:35:08 +00:00
Kamil Mysliwiec
a3b59742e0 Merge pull request #12586 from nestjs/dependabot/npm_and_yarn/sample/05-sql-typeorm/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/05-sql-typeorm
2023-10-23 10:35:08 +02:00
dependabot[bot]
4c01d758d4 chore(deps-dev): bump @babel/traverse
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:34:58 +00:00
dependabot[bot]
a20f221326 chore(deps-dev): bump @babel/traverse
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.2 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:34:55 +00:00
Kamil Mysliwiec
d5530c6976 Merge pull request #12585 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/14-mongoose-base
2023-10-23 10:34:55 +02:00
dependabot[bot]
135ba72005 chore(deps-dev): bump @babel/traverse in /sample/09-babel-example
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.20 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:34:40 +00:00
dependabot[bot]
e42fab0877 chore(deps-dev): bump @babel/traverse in /sample/26-queues
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:34:36 +00:00
Kamil Mysliwiec
ee68691a3e Merge pull request #12584 from nestjs/dependabot/npm_and_yarn/sample/17-mvc-fastify/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/17-mvc-fastify
2023-10-23 10:34:31 +02:00
Kamil Mysliwiec
4152dc24a6 Merge pull request #12583 from nestjs/dependabot/npm_and_yarn/sample/11-swagger/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/11-swagger
2023-10-23 10:34:23 +02:00
dependabot[bot]
ebf33d2cb5 chore(deps-dev): bump @babel/traverse in /sample/17-mvc-fastify
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:34:20 +00:00
Kamil Mysliwiec
aa72b41bfe Merge pull request #12582 from nestjs/dependabot/npm_and_yarn/sample/06-mongoose/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/06-mongoose
2023-10-23 10:34:15 +02:00
dependabot[bot]
c8b10ebe2e chore(deps-dev): bump @babel/traverse in /sample/05-sql-typeorm
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:34:14 +00:00
dependabot[bot]
81ba8b8978 chore(deps-dev): bump @babel/traverse
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.2 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:59 +00:00
dependabot[bot]
f18c84f2bf chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.7.4 to 6.8.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.8.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:56 +00:00
dependabot[bot]
c9b856ed27 chore(deps-dev): bump @babel/traverse
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:55 +00:00
dependabot[bot]
15fdb261b7 chore(deps-dev): bump @babel/traverse
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:46 +00:00
dependabot[bot]
f4b65442ff chore(deps-dev): bump @babel/traverse in /sample/16-gateways-ws
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:40 +00:00
dependabot[bot]
e8c4a6cbdf chore(deps-dev): bump @babel/traverse in /sample/21-serializer
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:38 +00:00
dependabot[bot]
0e33dc8312 chore(deps-dev): bump @babel/traverse in /sample/11-swagger
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:30 +00:00
dependabot[bot]
8651b3206b chore(deps-dev): bump @babel/traverse in /sample/06-mongoose
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:25 +00:00
dependabot[bot]
4782c942a7 chore(deps-dev): bump @babel/traverse in /sample/12-graphql-schema-first
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.2 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:24 +00:00
dependabot[bot]
15f92073fe chore(deps-dev): bump @babel/traverse in /sample/10-fastify
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:24 +00:00
Kamil Mysliwiec
9b6e305036 Merge pull request #12581 from nestjs/dependabot/npm_and_yarn/sample/02-gateways/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/02-gateways
2023-10-23 10:33:21 +02:00
dependabot[bot]
7045911c05 chore(deps-dev): bump @babel/traverse in /sample/14-mongoose-base
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:20 +00:00
dependabot[bot]
b7a91a9e82 chore(deps-dev): bump @babel/traverse in /sample/01-cats-app
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:33:18 +00:00
Kamil Mysliwiec
94efc58efe Merge pull request #12580 from nestjs/dependabot/npm_and_yarn/sample/04-grpc/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.18.8 to 7.23.2 in /sample/04-grpc
2023-10-23 10:32:50 +02:00
dependabot[bot]
d5282047a6 chore(deps-dev): bump @babel/traverse in /sample/04-grpc
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:32:38 +00:00
Kamil Mysliwiec
83ad2705f1 Merge pull request #12577 from nestjs/dependabot/npm_and_yarn/mongoose-7.6.3
chore(deps-dev): bump mongoose from 7.5.4 to 7.6.3
2023-10-23 10:32:37 +02:00
Kamil Mysliwiec
bceb50e458 Merge pull request #12575 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-6.8.0
chore(deps-dev): bump @typescript-eslint/parser from 6.7.4 to 6.8.0
2023-10-23 10:32:29 +02:00
Kamil Mysliwiec
11f34a6588 Merge pull request #12574 from nestjs/dependabot/npm_and_yarn/babel/traverse-7.23.2
chore(deps-dev): bump @babel/traverse from 7.10.1 to 7.23.2
2023-10-23 10:31:34 +02:00
Kamil Mysliwiec
233de347a3 Merge pull request #12572 from nestjs/dependabot/npm_and_yarn/sample/33-graphql-mercurius/undici-5.26.3
chore(deps): bump undici from 5.19.1 to 5.26.3 in /sample/33-graphql-mercurius
2023-10-23 10:31:06 +02:00
dependabot[bot]
4bb2b9345e chore(deps-dev): bump @types/node from 20.8.2 to 20.8.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.8.2 to 20.8.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:27:29 +00:00
Kamil Mysliwiec
0ede64c85d Merge pull request #12524 from nestjs/renovate/mysql-8.x
chore(deps): update mysql docker tag to v8.1.0
2023-10-23 10:26:03 +02:00
Kamil Mysliwiec
a7d26f9130 Merge pull request #12526 from nestjs/dependabot/npm_and_yarn/cache-manager-5.2.4
chore(deps-dev): bump cache-manager from 5.2.3 to 5.2.4
2023-10-23 10:25:56 +02:00
Kamil Mysliwiec
0eb753bc08 Merge pull request #12529 from nestjs/dependabot/npm_and_yarn/types/sinon-10.0.19
chore(deps-dev): bump @types/sinon from 10.0.18 to 10.0.19
2023-10-23 10:25:50 +02:00
Kamil Mysliwiec
7c1eaf02b3 Merge pull request #12533 from nestjs/renovate/nestjs-cache-manager-2.x
fix(deps): update dependency @nestjs/cache-manager to v2.1.0
2023-10-23 10:25:35 +02:00
Kamil Mysliwiec
a5104f903e Merge pull request #12535 from nestjs/renovate/mercurius-13.x
fix(deps): update dependency mercurius to v13.1.0
2023-10-23 10:25:26 +02:00
dependabot[bot]
0a7076c6e3 chore(deps-dev): bump mongoose from 7.5.4 to 7.6.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.5.4 to 7.6.3.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.5.4...7.6.3)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:24:56 +00:00
Kamil Mysliwiec
716444260b Merge pull request #12551 from nestjs/renovate/fastify-view-8.x
fix(deps): update dependency @fastify/view to v8
2023-10-23 10:24:31 +02:00
Kamil Mysliwiec
01713a1ac6 Merge pull request #12554 from nestjs/dependabot/npm_and_yarn/fsevents-1.2.13
chore(deps-dev): bump fsevents from 1.2.9 to 1.2.13
2023-10-23 10:24:16 +02:00
Kamil Mysliwiec
a2b78ce878 Merge pull request #12538 from nestjs/renovate/sequelize-6.x
fix(deps): update dependency sequelize to v6.33.0
2023-10-23 10:23:23 +02:00
Kamil Mysliwiec
97e5d9022d Merge pull request #12628 from nestjs/dependabot/npm_and_yarn/mqtt-5.1.3
chore(deps-dev): bump mqtt from 5.1.0 to 5.1.3
2023-10-23 10:23:11 +02:00
Kamil Mysliwiec
811e7636ad Merge pull request #12536 from nestjs/renovate/mongodb-5.x
fix(deps): update dependency mongodb to v5.9.1
2023-10-23 10:23:03 +02:00
dependabot[bot]
f50d76e2f2 chore(deps-dev): bump @typescript-eslint/parser from 6.7.4 to 6.8.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.4 to 6.8.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.8.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 08:22:43 +00:00
Kamil Mysliwiec
3f4285db56 Merge pull request #12550 from nestjs/renovate/mongo-7.x
chore(deps): update mongo docker tag to v7
2023-10-23 10:20:30 +02:00
Kamil Mysliwiec
29455322ce Merge pull request #12522 from nestjs/renovate/eslint-plugin-import-2.x
chore(deps): update dependency eslint-plugin-import to v2.28.1
2023-10-23 10:20:15 +02:00
Kamil Mysliwiec
417b9da927 Merge pull request #12516 from nestjs/renovate/rimraf-5.x
fix(deps): update dependency rimraf to v5.0.5
2023-10-23 10:20:09 +02:00
Kamil Mysliwiec
78e4ba6616 Merge pull request #12517 from nestjs/renovate/socket.io-packages
fix(deps): update dependency socket.io to v4.7.2
2023-10-23 10:20:00 +02:00
Kamil Mysliwiec
d6fa9c30eb Merge pull request #12514 from nestjs/renovate/nestjs-schedule-3.x
fix(deps): update dependency @nestjs/schedule to v3.0.4
2023-10-23 10:19:51 +02:00
Kamil Mysliwiec
b653dbe691 Merge pull request #12502 from nestjs/renovate/prettier-3.x
chore(deps): update dependency prettier to v3
2023-10-23 10:19:33 +02:00
Kamil Mysliwiec
48f84c77ec Update CONTRIBUTING.md 2023-10-23 10:17:01 +02:00
Kamil Mysliwiec
4b9c22728b Merge pull request #12627 from nestjs/dependabot/npm_and_yarn/eslint-8.52.0
chore(deps-dev): bump eslint from 8.50.0 to 8.52.0
2023-10-23 10:16:26 +02:00
Kamil Mysliwiec
89e804d7cc Merge pull request #12618 from 11bluetree/trancslate-readme-ja
docs: more translate readme ja
2023-10-23 10:16:15 +02:00
Kamil Mysliwiec
f3339a32de Merge pull request #12445 from micalevisk/feat/disambiguate-provider-token-on-error
feat(core): disambiguate string-based providers from class-based providers on error message
2023-10-23 10:02:00 +02:00
Kamil Mysliwiec
55c6a9abad Merge pull request #12561 from micalevisk/fix/logger-print-classes
fix(common): when passing class functions to logger methods
2023-10-23 09:53:01 +02:00
dependabot[bot]
85954a3c3f chore(deps-dev): bump mqtt from 5.1.0 to 5.1.3
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.1.0 to 5.1.3.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.1.0...v5.1.3)

---
updated-dependencies:
- dependency-name: mqtt
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 00:12:01 +00:00
dependabot[bot]
a8b4fe7d7b chore(deps-dev): bump eslint from 8.50.0 to 8.52.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.50.0 to 8.52.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.50.0...v8.52.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 00:06:35 +00:00
Micael Levi L. Cavalcante
a26de50c39 style(core): remove unused import from injector module 2023-10-22 10:40:33 -04:00
renovate[bot]
a66f472afd fix(deps): update dependency mongodb to v5.9.1 2023-10-20 18:39:03 +00:00
Aoki Haruhito
3396f059b9 docs: more translate readme ja
translate not fully translated
2023-10-20 22:07:16 +09:00
dependabot[bot]
292e76731c chore(deps-dev): bump @babel/traverse in /sample/22-graphql-prisma
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.2 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 22:19:49 +00:00
dependabot[bot]
01b09cb659 chore(deps-dev): bump @babel/traverse in /sample/02-gateways
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 05:51:00 +00:00
dependabot[bot]
3e9ecd10c6 chore(deps-dev): bump @babel/traverse from 7.10.1 to 7.23.2
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.10.1 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-16 17:19:43 +00:00
dependabot[bot]
408c649202 chore(deps): bump undici in /sample/33-graphql-mercurius
Bumps [undici](https://github.com/nodejs/undici) from 5.19.1 to 5.26.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.19.1...v5.26.3)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-16 15:13:45 +00:00
renovate[bot]
01bb0063e7 fix(deps): update dependency mysql2 to v3.6.2 2023-10-15 04:30:52 +00:00
Micael Levi L. Cavalcante
a3915c88ea style(core): fix formatting 2023-10-12 20:55:16 -04:00
Micael Levi L. Cavalcante
1747683956 fix(common): when passing class functions to logger methods 2023-10-12 20:48:36 -04:00
Jay McDoniel
80061af00e feat: allow for custom logger with streamable files 2023-10-11 10:36:59 -07:00
dependabot[bot]
b7d4cf794e chore(deps-dev): bump fsevents from 1.2.9 to 1.2.13
Bumps [fsevents](https://github.com/fsevents/fsevents) from 1.2.9 to 1.2.13.
- [Release notes](https://github.com/fsevents/fsevents/releases)
- [Commits](https://github.com/fsevents/fsevents/compare/v1.2.9...v1.2.13)

---
updated-dependencies:
- dependency-name: fsevents
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-10 14:05:43 +00:00
renovate[bot]
28e9672289 fix(deps): update dependency @fastify/view to v8 2023-10-10 00:47:06 +00:00
renovate[bot]
f756737d0f chore(deps): update mongo docker tag to v7 2023-10-10 00:46:44 +00:00
renovate[bot]
d6a2f01911 chore(deps): update dependency prettier to v3 2023-10-10 00:46:32 +00:00
renovate[bot]
f8a964c336 fix(deps): update dependency sequelize to v6.33.0 2023-10-09 01:27:31 +00:00
renovate[bot]
a7e240c7ed fix(deps): update dependency mercurius to v13.1.0 2023-10-09 01:25:16 +00:00
renovate[bot]
e662d52677 fix(deps): update dependency @nestjs/swagger to v7.1.13 2023-10-09 01:24:52 +00:00
renovate[bot]
9df67e5a58 fix(deps): update dependency @nestjs/cache-manager to v2.1.0 2023-10-09 01:24:29 +00:00
dependabot[bot]
c7207cbfed chore(deps-dev): bump @types/sinon from 10.0.18 to 10.0.19
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.18 to 10.0.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 01:16:07 +00:00
dependabot[bot]
d5c144c109 chore(deps-dev): bump cache-manager from 5.2.3 to 5.2.4
Bumps [cache-manager](https://github.com/node-cache-manager/node-cache-manager) from 5.2.3 to 5.2.4.
- [Release notes](https://github.com/node-cache-manager/node-cache-manager/releases)
- [Commits](https://github.com/node-cache-manager/node-cache-manager/compare/5.2.3...5.2.4)

---
updated-dependencies:
- dependency-name: cache-manager
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 01:11:53 +00:00
renovate[bot]
d867fb0ad8 chore(deps): update mysql docker tag to v8.1.0 2023-10-08 09:03:30 +00:00
renovate[bot]
fda5ad8c27 chore(deps): update dependency eslint-plugin-import to v2.28.1 2023-10-08 08:56:06 +00:00
Micael Levi L. Cavalcante
ec4786859b test: for get providers/controllers when the decorator is not used 2023-10-06 12:15:40 -04:00
Micael Levi L. Cavalcante
ed92fd37ea fix(core): when the discoverable decorator is not used 2023-10-06 11:37:18 -04:00
renovate[bot]
4e9a5b3b66 fix(deps): update dependency socket.io to v4.7.2 2023-10-06 10:18:51 +00:00
renovate[bot]
541502e80a fix(deps): update dependency rimraf to v5.0.5 2023-10-06 10:18:29 +00:00
renovate[bot]
2b6982eb26 fix(deps): update dependency @nestjs/schedule to v3.0.4 2023-10-06 10:11:34 +00:00
Kamil Mysliwiec
ecdd86f688 Merge pull request #12488 from nestjs/dependabot/npm_and_yarn/types/sinon-10.0.18
chore(deps-dev): bump @types/sinon from 10.0.17 to 10.0.18
2023-10-06 08:19:21 +02:00
Kamil Mysliwiec
372a969e82 Merge pull request #12504 from nestjs/renovate/nestjs-jwt-10.x
fix(deps): update dependency @nestjs/jwt to v10.1.1
2023-10-06 08:18:57 +02:00
Kamil Mysliwiec
78cf5a3ee0 Merge pull request #12489 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-6.7.4
chore(deps-dev): bump @typescript-eslint/parser from 6.7.3 to 6.7.4
2023-10-06 08:18:49 +02:00
Kamil Mysliwiec
1ed9a7910d Merge pull request #12501 from nestjs/renovate/nodemon-3.x
chore(deps): update dependency nodemon to v3
2023-10-06 08:18:42 +02:00
Kamil Mysliwiec
0547037373 Merge pull request #12503 from nestjs/renovate/redis-4.x
chore(deps): update dependency redis to v4.6.10
2023-10-06 08:18:16 +02:00
Kamil Mysliwiec
36983824bb Merge pull request #12505 from nestjs/renovate/nestjs-mercurius-12.x
fix(deps): update dependency @nestjs/mercurius to v12.0.9
2023-10-06 08:17:48 +02:00
dependabot[bot]
3c26a825cd chore(deps-dev): bump @typescript-eslint/parser from 6.7.3 to 6.7.4
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.3 to 6.7.4.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.4/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 06:16:22 +00:00
Kamil Mysliwiec
a565316071 Merge pull request #12506 from nestjs/renovate/nestjs-cli-10.x
chore(deps): update dependency @nestjs/cli to v10.1.18
2023-10-06 08:15:28 +02:00
Kamil Mysliwiec
7b2cb21eda Merge pull request #12507 from nestjs/renovate/node-20.x
chore(deps): update dependency @types/node to v20.8.2
2023-10-06 08:15:11 +02:00
Kamil Mysliwiec
b74f21295c Merge pull request #12509 from nestjs/dependabot/npm_and_yarn/mqtt-5.1.0
chore(deps-dev): bump mqtt from 5.0.5 to 5.1.0
2023-10-06 08:14:55 +02:00
Kamil Mysliwiec
fb7eb47c4a Merge pull request #12510 from nestjs/dependabot/npm_and_yarn/apollo/server-4.9.4
chore(deps-dev): bump @apollo/server from 4.9.3 to 4.9.4
2023-10-06 08:13:31 +02:00
Kamil Mysliwiec
c4f84a9fae Merge pull request #12511 from nestjs/dependabot/npm_and_yarn/sinon-16.1.0
chore(deps-dev): bump sinon from 16.0.0 to 16.1.0
2023-10-06 08:12:54 +02:00
Kamil Mysliwiec
220571ed6e Merge pull request #12512 from nestjs/renovate/eslint-config-prettier-8.x
chore(deps): update dependency eslint-config-prettier to v8.10.0
2023-10-06 08:11:33 +02:00
renovate[bot]
c6ebb3ffa0 chore(deps): update dependency eslint-config-prettier to v8.10.0 2023-10-06 00:42:03 +00:00
renovate[bot]
ec5c7e4193 chore(deps): update dependency @types/node to v20.8.2 2023-10-06 00:35:03 +00:00
renovate[bot]
d4cfd5f730 chore(deps): update dependency @nestjs/cli to v10.1.18 2023-10-06 00:27:59 +00:00
renovate[bot]
62e585dfb5 chore(deps): update dependency redis to v4.6.10 2023-10-06 00:20:12 +00:00
dependabot[bot]
b896667b49 chore(deps-dev): bump sinon from 16.0.0 to 16.1.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 16.0.0 to 16.1.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v16.0.0...v16.1.0)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 00:13:19 +00:00
dependabot[bot]
9efe180bd5 chore(deps-dev): bump @apollo/server from 4.9.3 to 4.9.4
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.9.3 to 4.9.4.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.9.4/packages/server)

---
updated-dependencies:
- dependency-name: "@apollo/server"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 00:12:44 +00:00
dependabot[bot]
a38d4bbccb chore(deps-dev): bump mqtt from 5.0.5 to 5.1.0
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.0.5 to 5.1.0.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.0.5...v5.1.0)

---
updated-dependencies:
- dependency-name: mqtt
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 00:12:20 +00:00
renovate[bot]
efb3fcfb45 fix(deps): update dependency @nestjs/mercurius to v12.0.9 2023-10-05 06:58:28 +00:00
renovate[bot]
b7cf7204f1 fix(deps): update dependency @nestjs/jwt to v10.1.1 2023-10-05 06:58:05 +00:00
Kamil Myśliwiec
b6e82f805c chore: update package.json 2023-10-05 08:46:49 +02:00
Kamil Myśliwiec
1c4318a1a9 chore(@nestjs) publish v10.2.7 release 2023-10-05 08:44:53 +02:00
dependabot[bot]
6c1ea62455 chore(deps-dev): bump @nestjs/apollo from 12.0.4 to 12.0.9
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 12.0.4 to 12.0.9.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.4...v12.0.9)

---
updated-dependencies:
- dependency-name: "@nestjs/apollo"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 06:28:03 +00:00
Kamil Mysliwiec
30271b51a0 Merge pull request #12500 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo
2023-10-05 08:26:42 +02:00
renovate[bot]
cc5920fb1d chore(deps): update dependency nodemon to v3 2023-10-05 06:26:04 +00:00
renovate[bot]
1508fe0c3e fix(deps): update nest monorepo 2023-10-05 06:25:33 +00:00
Kamil Mysliwiec
5228776df4 Merge pull request #12472 from lavapi/lavapi/mqtt-client-options-properties-feature
feat(microservices): Added properties for MQTT protocol version 5.0
2023-10-05 08:25:20 +02:00
Kamil Mysliwiec
16c295d084 Merge pull request #12385 from dbulic-margins/invalid-url-typeerror
fix(platform-ws): URL parsing error handled
2023-10-05 08:24:45 +02:00
dependabot[bot]
75e3529385 chore(deps-dev): bump @types/sinon from 10.0.17 to 10.0.18
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.17 to 10.0.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 06:21:38 +00:00
Kamil Mysliwiec
4ac26e977a Merge pull request #12473 from nestjs/dependabot/npm_and_yarn/fastify/static-6.11.2
chore(deps-dev): bump @fastify/static from 6.11.0 to 6.11.2
2023-10-05 08:20:44 +02:00
Kamil Mysliwiec
dd0216051c Merge pull request #12486 from nestjs/dependabot/npm_and_yarn/core-js-3.33.0
chore(deps-dev): bump core-js from 3.32.2 to 3.33.0
2023-10-05 08:20:38 +02:00
Kamil Mysliwiec
5d3b0ad42e Merge pull request #12483 from nestjs/renovate/multer-1.x
chore(deps): update dependency @types/multer to v1.4.8
2023-10-05 08:20:32 +02:00
dependabot[bot]
d7d1e093ba chore(deps-dev): bump @fastify/static from 6.11.0 to 6.11.2
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 6.11.0 to 6.11.2.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v6.11.0...v6.11.2)

---
updated-dependencies:
- dependency-name: "@fastify/static"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 06:20:24 +00:00
Kamil Mysliwiec
bff590796c Merge pull request #12487 from nestjs/dependabot/npm_and_yarn/types/supertest-2.0.14
chore(deps-dev): bump @types/supertest from 2.0.13 to 2.0.14
2023-10-05 08:20:21 +02:00
Kamil Mysliwiec
49a5eee340 Merge pull request #12490 from nestjs/dependabot/npm_and_yarn/types/node-20.8.2
chore(deps-dev): bump @types/node from 20.7.1 to 20.8.2
2023-10-05 08:19:55 +02:00
Kamil Mysliwiec
4c3554c928 Merge pull request #12492 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-6.7.4
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.7.2 to 6.7.4
2023-10-05 08:19:48 +02:00
Kamil Mysliwiec
775bec1110 Merge pull request #12493 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.9.5
chore(deps-dev): bump @grpc/grpc-js from 1.9.4 to 1.9.5
2023-10-05 08:19:37 +02:00
Kamil Mysliwiec
745329e452 Merge pull request #12499 from nestjs/dependabot/npm_and_yarn/mongoose-7.5.4
chore(deps-dev): bump mongoose from 7.5.2 to 7.5.4
2023-10-05 08:19:20 +02:00
dependabot[bot]
e9747faa41 chore(deps-dev): bump mongoose from 7.5.2 to 7.5.4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.5.2 to 7.5.4.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.5.2...7.5.4)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 00:32:31 +00:00
dependabot[bot]
26290f121c chore(deps-dev): bump @grpc/grpc-js from 1.9.4 to 1.9.5
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.9.4 to 1.9.5.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.9.4...@grpc/grpc-js@1.9.5)

---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 00:49:30 +00:00
dependabot[bot]
5722d5f686 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.7.2 to 6.7.4.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.4/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 00:49:01 +00:00
dependabot[bot]
c50eb5ac09 chore(deps-dev): bump @types/node from 20.7.1 to 20.8.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.7.1 to 20.8.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 00:47:33 +00:00
dependabot[bot]
5ba5e501db chore(deps-dev): bump @types/supertest from 2.0.13 to 2.0.14
Bumps [@types/supertest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/supertest) from 2.0.13 to 2.0.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/supertest)

---
updated-dependencies:
- dependency-name: "@types/supertest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 00:46:06 +00:00
dependabot[bot]
80a6e8bbde chore(deps-dev): bump core-js from 3.32.2 to 3.33.0
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.32.2 to 3.33.0.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.33.0/packages/core-js)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 00:45:40 +00:00
renovate[bot]
b2eb4d1598 chore(deps): update dependency @types/multer to v1.4.8 2023-10-02 10:28:33 +00:00
Kamil Mysliwiec
49cf54e10a Merge pull request #12462 from nestjs/dependabot/npm_and_yarn/types/supertest-2.0.13
chore(deps-dev): bump @types/supertest from 2.0.12 to 2.0.13
2023-10-02 12:26:36 +02:00
Kamil Mysliwiec
524943b1fa Merge pull request #12460 from nestjs/dependabot/npm_and_yarn/fastify/view-8.2.0
chore(deps-dev): bump @fastify/view from 8.0.0 to 8.2.0
2023-10-02 12:26:29 +02:00
Kamil Mysliwiec
3920371779 Merge pull request #12443 from nestjs/renovate/amqplib-0.x
chore(deps): update dependency @types/amqplib to v0.10.2
2023-10-02 12:26:22 +02:00
Kamil Mysliwiec
a94f5f7104 Merge pull request #12474 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-6.7.3
chore(deps-dev): bump @typescript-eslint/parser from 6.7.2 to 6.7.3
2023-10-02 12:26:09 +02:00
Kamil Mysliwiec
e3077612d4 Merge pull request #12475 from nestjs/dependabot/npm_and_yarn/types/mocha-10.0.2
chore(deps-dev): bump @types/mocha from 10.0.1 to 10.0.2
2023-10-02 12:26:02 +02:00
Kamil Mysliwiec
35a313dc7c Merge pull request #12476 from nestjs/dependabot/npm_and_yarn/chai-4.3.10
chore(deps-dev): bump chai from 4.3.8 to 4.3.10
2023-10-02 12:25:55 +02:00
Kamil Mysliwiec
131e8b24b8 Merge pull request #12477 from nestjs/dependabot/npm_and_yarn/fastify/multipart-8.0.0
chore(deps-dev): bump @fastify/multipart from 7.7.3 to 8.0.0
2023-10-02 12:25:43 +02:00
Kamil Mysliwiec
81e665a1ef Merge pull request #12478 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.7.2
chore(deps-dev): bump @commitlint/cli from 17.7.1 to 17.7.2
2023-10-02 12:25:32 +02:00
dependabot[bot]
b6d902482c chore(deps-dev): bump @commitlint/cli from 17.7.1 to 17.7.2
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.7.1 to 17.7.2.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.7.2/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-29 00:13:00 +00:00
dependabot[bot]
9617c72e68 chore(deps-dev): bump @fastify/multipart from 7.7.3 to 8.0.0
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 7.7.3 to 8.0.0.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v7.7.3...v8.0.0)

---
updated-dependencies:
- dependency-name: "@fastify/multipart"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-29 00:12:08 +00:00
dependabot[bot]
e7d6ff23da chore(deps-dev): bump chai from 4.3.8 to 4.3.10
Bumps [chai](https://github.com/chaijs/chai) from 4.3.8 to 4.3.10.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.8...v4.3.10)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-29 00:11:31 +00:00
dependabot[bot]
87ceb1f5ce chore(deps-dev): bump @types/mocha from 10.0.1 to 10.0.2
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 10.0.1 to 10.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

---
updated-dependencies:
- dependency-name: "@types/mocha"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-29 00:10:57 +00:00
dependabot[bot]
cb18c64a0a chore(deps-dev): bump @typescript-eslint/parser from 6.7.2 to 6.7.3
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.2 to 6.7.3.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.3/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-29 00:10:25 +00:00
renovate[bot]
760fbe6379 chore(deps): update dependency @types/amqplib to v0.10.2 2023-09-28 16:13:56 +00:00
dependabot[bot]
e3bd30bb9b chore(deps-dev): bump @types/supertest from 2.0.12 to 2.0.13
Bumps [@types/supertest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/supertest) from 2.0.12 to 2.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/supertest)

---
updated-dependencies:
- dependency-name: "@types/supertest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-28 13:36:38 +00:00
Kamil Mysliwiec
88c8cf81d4 Merge pull request #12461 from nestjs/dependabot/npm_and_yarn/types/sinon-10.0.17
chore(deps-dev): bump @types/sinon from 10.0.16 to 10.0.17
2023-09-28 15:35:03 +02:00
dependabot[bot]
404b6cf91b chore(deps-dev): bump @fastify/view from 8.0.0 to 8.2.0
Bumps [@fastify/view](https://github.com/fastify/point-of-view) from 8.0.0 to 8.2.0.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/compare/v8.0.0...v8.2.0)

---
updated-dependencies:
- dependency-name: "@fastify/view"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-28 13:34:58 +00:00
dependabot[bot]
c49c4bc3c2 chore(deps-dev): bump @types/sinon from 10.0.16 to 10.0.17
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.16 to 10.0.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-28 13:34:43 +00:00
Kamil Mysliwiec
efda993383 Merge pull request #12456 from nestjs/renovate/express-4.x
chore(deps): update dependency @types/express to v4.17.18
2023-09-28 15:34:19 +02:00
Kamil Mysliwiec
bc1b4f73ec Merge pull request #12468 from nestjs/dependabot/npm_and_yarn/fastify/cors-8.4.0
chore(deps): bump @fastify/cors from 8.3.0 to 8.4.0
2023-09-28 15:33:59 +02:00
Kamil Mysliwiec
0e1448787c Merge pull request #12465 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.9.4
chore(deps-dev): bump @grpc/grpc-js from 1.9.2 to 1.9.4
2023-09-28 15:33:46 +02:00
Kamil Mysliwiec
1cbb691780 Merge pull request #12466 from nestjs/dependabot/npm_and_yarn/types/ws-8.5.6
chore(deps-dev): bump @types/ws from 8.5.5 to 8.5.6
2023-09-28 15:33:38 +02:00
Kamil Mysliwiec
ef39964d25 Merge pull request #12467 from nestjs/dependabot/npm_and_yarn/types/amqplib-0.10.2
chore(deps-dev): bump @types/amqplib from 0.10.1 to 0.10.2
2023-09-28 15:33:31 +02:00
Kamil Mysliwiec
e85ae965ad Merge pull request #12471 from nestjs/dependabot/npm_and_yarn/types/node-20.7.1
chore(deps-dev): bump @types/node from 20.6.0 to 20.7.1
2023-09-28 15:33:19 +02:00
giorgigvishiani
635749c0f1 feat(microservices): Added properties for MQTT protocol version 5.0 2023-09-28 12:52:27 +04:00
dependabot[bot]
d7817c3d61 chore(deps-dev): bump @types/node from 20.6.0 to 20.7.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.6.0 to 20.7.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-28 00:53:06 +00:00
dependabot[bot]
97dfefcd76 chore(deps): bump @fastify/cors from 8.3.0 to 8.4.0
Bumps [@fastify/cors](https://github.com/fastify/fastify-cors) from 8.3.0 to 8.4.0.
- [Release notes](https://github.com/fastify/fastify-cors/releases)
- [Commits](https://github.com/fastify/fastify-cors/compare/v8.3.0...v8.4.0)

---
updated-dependencies:
- dependency-name: "@fastify/cors"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-27 00:32:56 +00:00
dependabot[bot]
c902241fff chore(deps-dev): bump @types/amqplib from 0.10.1 to 0.10.2
Bumps [@types/amqplib](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/amqplib) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/amqplib)

---
updated-dependencies:
- dependency-name: "@types/amqplib"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-27 00:32:27 +00:00
dependabot[bot]
25dadd1504 chore(deps-dev): bump @types/ws from 8.5.5 to 8.5.6
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.5 to 8.5.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: "@types/ws"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-27 00:32:12 +00:00
dependabot[bot]
6494844776 chore(deps-dev): bump @grpc/grpc-js from 1.9.2 to 1.9.4
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.9.2 to 1.9.4.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.9.2...@grpc/grpc-js@1.9.4)

---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-27 00:31:52 +00:00
renovate[bot]
3c577ed1b9 chore(deps): update dependency @types/express to v4.17.18 2023-09-26 10:03:03 +00:00
Kamil Mysliwiec
12224b1c29 Merge pull request #12451 from nestjs/dependabot/npm_and_yarn/types/bytes-3.1.2
chore(deps-dev): bump @types/bytes from 3.1.1 to 3.1.2
2023-09-26 09:42:01 +02:00
Kamil Mysliwiec
bd40e21ca6 Merge pull request #12449 from nestjs/dependabot/npm_and_yarn/types/express-4.17.18
chore(deps-dev): bump @types/express from 4.17.17 to 4.17.18
2023-09-26 09:41:55 +02:00
Kamil Mysliwiec
c1dd38eff1 Merge pull request #12447 from nestjs/dependabot/npm_and_yarn/light-my-request-5.11.0
chore(deps): bump light-my-request from 5.10.0 to 5.11.0
2023-09-26 09:41:46 +02:00
Kamil Mysliwiec
e0bc39d95c Merge pull request #12448 from nestjs/dependabot/npm_and_yarn/ws-8.14.2
chore(deps): bump ws from 8.13.0 to 8.14.2
2023-09-26 09:41:41 +02:00
Kamil Mysliwiec
dda52e19a1 Merge pull request #12453 from nestjs/dependabot/npm_and_yarn/sinon-16.0.0
chore(deps-dev): bump sinon from 15.2.0 to 16.0.0
2023-09-26 09:41:17 +02:00
Kamil Mysliwiec
36158e8285 Merge pull request #12452 from nestjs/dependabot/npm_and_yarn/eslint-8.50.0
chore(deps-dev): bump eslint from 8.49.0 to 8.50.0
2023-09-26 09:41:10 +02:00
Kamil Mysliwiec
4ad82fa1f4 Merge pull request #12446 from nestjs/dependabot/npm_and_yarn/redis-4.6.10
chore(deps-dev): bump redis from 4.6.9 to 4.6.10
2023-09-26 09:41:01 +02:00
Kamil Mysliwiec
4218298067 Merge pull request #12454 from nestjs/dependabot/npm_and_yarn/ts-morph-20.0.0
chore(deps-dev): bump ts-morph from 19.0.0 to 20.0.0
2023-09-26 09:40:51 +02:00
Micael Levi L. Cavalcante
18fbf2797a feat(core): disambiguate string-based providers on error message 2023-09-24 21:48:46 -04:00
dependabot[bot]
c53555cc1f chore(deps-dev): bump ts-morph from 19.0.0 to 20.0.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 19.0.0 to 20.0.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/19.0.0...20.0.0)

---
updated-dependencies:
- dependency-name: ts-morph
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 00:18:22 +00:00
dependabot[bot]
b36b4317ce chore(deps-dev): bump sinon from 15.2.0 to 16.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 15.2.0 to 16.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v15.2.0...v16.0.0)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 00:17:42 +00:00
dependabot[bot]
4380a658c1 chore(deps-dev): bump eslint from 8.49.0 to 8.50.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.49.0 to 8.50.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.49.0...v8.50.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 00:16:47 +00:00
dependabot[bot]
84de6dcf4d chore(deps-dev): bump @types/bytes from 3.1.1 to 3.1.2
Bumps [@types/bytes](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/bytes) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/bytes)

---
updated-dependencies:
- dependency-name: "@types/bytes"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 00:16:04 +00:00
dependabot[bot]
659059c8c5 chore(deps-dev): bump @types/express from 4.17.17 to 4.17.18
Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.17 to 4.17.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

---
updated-dependencies:
- dependency-name: "@types/express"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 00:13:54 +00:00
dependabot[bot]
3797129e36 chore(deps): bump ws from 8.13.0 to 8.14.2
Bumps [ws](https://github.com/websockets/ws) from 8.13.0 to 8.14.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.14.2)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 00:13:13 +00:00
dependabot[bot]
fab92a7a32 chore(deps): bump light-my-request from 5.10.0 to 5.11.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.10.0 to 5.11.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.10.0...v5.11.0)

---
updated-dependencies:
- dependency-name: light-my-request
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 00:12:27 +00:00
dependabot[bot]
869e4a9cb4 chore(deps-dev): bump redis from 4.6.9 to 4.6.10
Bumps [redis](https://github.com/redis/node-redis) from 4.6.9 to 4.6.10.
- [Release notes](https://github.com/redis/node-redis/releases)
- [Changelog](https://github.com/redis/node-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/node-redis/compare/redis@4.6.9...redis@4.6.10)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 00:11:44 +00:00
Kamil Mysliwiec
93b99d09ed Merge pull request #12442 from nestjs/renovate/cache-manager-4.x-lockfile
chore(deps): update dependency @types/cache-manager to v4.0.3
2023-09-22 11:49:25 +02:00
Kamil Mysliwiec
c7424d4ff1 Merge pull request #12436 from nestjs/dependabot/npm_and_yarn/types/http-errors-2.0.2
chore(deps-dev): bump @types/http-errors from 2.0.1 to 2.0.2
2023-09-22 11:49:12 +02:00
renovate[bot]
36340424ac chore(deps): update dependency @types/cache-manager to v4.0.3 2023-09-22 08:05:12 +00:00
Kamil Myśliwiec
7cd549314d chore: update readme 2023-09-22 10:04:38 +02:00
Kamil Myśliwiec
776bd6dc74 chore(@nestjs) publish v10.2.6 release 2023-09-22 10:03:25 +02:00
Kamil Mysliwiec
fb335edb32 Merge pull request #12404 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-6.7.2
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.6.0 to 6.7.2
2023-09-22 09:53:38 +02:00
Kamil Mysliwiec
34972c3b06 Merge pull request #12416 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo
2023-09-22 09:53:34 +02:00
Kamil Mysliwiec
92d3d94c03 Merge pull request #12421 from nestjs/dependabot/npm_and_yarn/sample/12-graphql-schema-first/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/12-graphql-schema-first
2023-09-22 09:53:28 +02:00
Kamil Mysliwiec
699fa2e816 Merge pull request #12422 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/31-graphql-federation-code-first/users-application
2023-09-22 09:53:21 +02:00
dependabot[bot]
ea8533bf7e chore(deps): bump graphql in /sample/12-graphql-schema-first
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 07:53:18 +00:00
Kamil Mysliwiec
2774670f25 Merge pull request #12423 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/32-graphql-federation-schema-first/posts-application
2023-09-22 09:53:15 +02:00
Kamil Mysliwiec
f0a93ab87d Merge pull request #12424 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/31-graphql-federation-code-first/posts-application
2023-09-22 09:53:09 +02:00
Kamil Mysliwiec
0ac1969dbb Merge pull request #12425 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/gateway/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/32-graphql-federation-schema-first/gateway
2023-09-22 09:53:02 +02:00
Kamil Mysliwiec
9544594e85 Merge pull request #12426 from nestjs/dependabot/npm_and_yarn/sample/22-graphql-prisma/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/22-graphql-prisma
2023-09-22 09:52:53 +02:00
Kamil Mysliwiec
91d0cdc8dc Merge pull request #12427 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/users-application/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/32-graphql-federation-schema-first/users-application
2023-09-22 09:52:45 +02:00
Kamil Mysliwiec
e8198a1c75 Merge pull request #12428 from nestjs/dependabot/npm_and_yarn/sample/23-graphql-code-first/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/23-graphql-code-first
2023-09-22 09:52:38 +02:00
dependabot[bot]
adcfdd4b97 chore(deps): bump graphql in /sample/23-graphql-code-first
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 07:50:11 +00:00
renovate[bot]
732e4835dd chore(deps): update babel monorepo 2023-09-22 07:50:09 +00:00
dependabot[bot]
846cc9a2ba chore(deps): bump graphql
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 07:49:54 +00:00
dependabot[bot]
7afc1a7381 chore(deps): bump graphql
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 07:49:53 +00:00
dependabot[bot]
1112315d97 chore(deps): bump graphql
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 07:49:51 +00:00
dependabot[bot]
142224120f chore(deps): bump graphql in /sample/22-graphql-prisma
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 07:49:44 +00:00
dependabot[bot]
2ec59599c1 chore(deps): bump graphql
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 07:49:43 +00:00
dependabot[bot]
32cc5591ce chore(deps): bump graphql
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 07:49:43 +00:00
dependabot[bot]
d81b4142f5 chore(deps-dev): bump @types/http-errors from 2.0.1 to 2.0.2
Bumps [@types/http-errors](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/http-errors) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/http-errors)

---
updated-dependencies:
- dependency-name: "@types/http-errors"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 07:49:29 +00:00
Kamil Mysliwiec
46e1701e11 Merge pull request #12429 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/31-graphql-federation-code-first/gateway
2023-09-22 09:49:16 +02:00
Kamil Mysliwiec
d526fc2d88 Merge pull request #12431 from nestjs/dependabot/npm_and_yarn/sample/33-graphql-mercurius/graphql-16.8.1
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /sample/33-graphql-mercurius
2023-09-22 09:49:10 +02:00
Kamil Mysliwiec
65470d7e42 Merge pull request #12432 from nestjs/dependabot/npm_and_yarn/graphql-16.8.1
chore(deps-dev): bump graphql from 16.8.0 to 16.8.1
2023-09-22 09:48:57 +02:00
Kamil Mysliwiec
f5b41ae3a2 Merge pull request #12433 from nestjs/dependabot/npm_and_yarn/uuid-9.0.1
chore(deps): bump uuid from 9.0.0 to 9.0.1
2023-09-22 09:48:50 +02:00
Kamil Mysliwiec
e39da7cd0a Merge pull request #12434 from nestjs/dependabot/npm_and_yarn/conventional-changelog-5.1.0
chore(deps-dev): bump conventional-changelog from 5.0.0 to 5.1.0
2023-09-22 09:48:44 +02:00
Kamil Mysliwiec
b0569c9300 Merge pull request #12435 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.7.10
chore(deps-dev): bump @grpc/proto-loader from 0.7.9 to 0.7.10
2023-09-22 09:48:38 +02:00
Kamil Mysliwiec
65e388b7f8 Merge pull request #12437 from nestjs/dependabot/npm_and_yarn/nats-2.17.0
chore(deps-dev): bump nats from 2.16.0 to 2.17.0
2023-09-22 09:48:20 +02:00
Kamil Mysliwiec
990cbee747 Merge pull request #12438 from nestjs/dependabot/npm_and_yarn/types/gulp-4.0.14
chore(deps-dev): bump @types/gulp from 4.0.13 to 4.0.14
2023-09-22 09:48:14 +02:00
Kamil Mysliwiec
bd4ec26603 Merge pull request #12439 from nestjs/dependabot/npm_and_yarn/redis-4.6.9
chore(deps-dev): bump redis from 4.6.8 to 4.6.9
2023-09-22 09:48:08 +02:00
Kamil Mysliwiec
833a5fbd31 Merge pull request #12382 from jmcdo29/fix/ws-get-pattern
fix: allow for filters to be aware of the pattern for websockets
2023-09-22 09:47:30 +02:00
Kamil Mysliwiec
c28dc356f5 Merge pull request #12379 from ayushmourya/master
Allow Binding to Shared Topics Without Wildcards
2023-09-22 09:46:11 +02:00
Kamil Mysliwiec
62236b914e Merge pull request #12410 from Connormiha/simplify-get-injection-providers
utils: simplify map + flat in injections providers
2023-09-22 09:44:13 +02:00
Kamil Mysliwiec
2a8dd0b74b Merge pull request #12413 from micalevisk/fix/issue-12412
fix(express): sanity checking 'content-type' prior treating its value as string
2023-09-22 09:43:55 +02:00
dependabot[bot]
279c81262e chore(deps-dev): bump redis from 4.6.8 to 4.6.9
Bumps [redis](https://github.com/redis/node-redis) from 4.6.8 to 4.6.9.
- [Release notes](https://github.com/redis/node-redis/releases)
- [Changelog](https://github.com/redis/node-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/node-redis/compare/redis@4.6.8...redis@4.6.9)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 00:22:26 +00:00
dependabot[bot]
57a4a3913d chore(deps-dev): bump @types/gulp from 4.0.13 to 4.0.14
Bumps [@types/gulp](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/gulp) from 4.0.13 to 4.0.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/gulp)

---
updated-dependencies:
- dependency-name: "@types/gulp"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 00:22:08 +00:00
dependabot[bot]
2efbb98f7b chore(deps-dev): bump nats from 2.16.0 to 2.17.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.16.0...v2.17.0)

---
updated-dependencies:
- dependency-name: nats
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 00:21:52 +00:00
dependabot[bot]
d4470dbc09 chore(deps-dev): bump @grpc/proto-loader from 0.7.9 to 0.7.10
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.7.9 to 0.7.10.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/proto-loader@0.7.9...@grpc/proto-loader@0.7.10)

---
updated-dependencies:
- dependency-name: "@grpc/proto-loader"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 00:21:22 +00:00
dependabot[bot]
241dcc144f chore(deps-dev): bump conventional-changelog from 5.0.0 to 5.1.0
Bumps [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases)
- [Changelog](https://github.com/conventional-changelog/conventional-changelog/blob/master/.release-please-manifest.json)
- [Commits](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-v5.0.0...conventional-changelog-v5.1.0)

---
updated-dependencies:
- dependency-name: conventional-changelog
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 00:21:05 +00:00
dependabot[bot]
2ca84c8103 chore(deps): bump uuid from 9.0.0 to 9.0.1
Bumps [uuid](https://github.com/uuidjs/uuid) from 9.0.0 to 9.0.1.
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v9.0.0...v9.0.1)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 00:20:48 +00:00
Mikhail Bodrov
1778f3d2ba utils: optimized toRouteInfo flat 2023-09-22 02:56:54 +03:00
Micael Levi L. Cavalcante
6bcb3bdcbd style: fix formatting 2023-09-21 17:52:08 -04:00
Micael Levi L. Cavalcante
ec43dc8429 fix(express): when content-type header is null 2023-09-21 17:52:08 -04:00
dependabot[bot]
a45dd007c7 chore(deps-dev): bump graphql from 16.8.0 to 16.8.1
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.8.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.8.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-21 18:47:56 +00:00
dependabot[bot]
710f5b5293 chore(deps): bump graphql in /sample/33-graphql-mercurius
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-21 18:26:27 +00:00
dependabot[bot]
be61852e41 chore(deps): bump graphql
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-21 18:09:00 +00:00
dependabot[bot]
0125e03a91 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.6.0 to 6.7.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.2/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-21 12:16:51 +00:00
Kamil Mysliwiec
518e644f86 Merge pull request #12346 from nestjs/dependabot/github_actions/actions/checkout-4
chore(deps): bump actions/checkout from 3 to 4
2023-09-21 14:16:35 +02:00
Kamil Mysliwiec
e6c295231b Merge pull request #12370 from nestjs/dependabot/npm_and_yarn/types/chai-4.3.6
chore(deps-dev): bump @types/chai from 4.3.5 to 4.3.6
2023-09-21 14:16:27 +02:00
Kamil Mysliwiec
502ae997a7 Merge pull request #12372 from nestjs/dependabot/npm_and_yarn/eslint-8.49.0
chore(deps-dev): bump eslint from 8.48.0 to 8.49.0
2023-09-21 14:16:22 +02:00
Kamil Mysliwiec
921bb6f187 Merge pull request #12373 from nestjs/dependabot/npm_and_yarn/core-js-3.32.2
chore(deps-dev): bump core-js from 3.32.1 to 3.32.2
2023-09-21 14:16:15 +02:00
Kamil Mysliwiec
78d137847e Merge pull request #12377 from nestjs/dependabot/npm_and_yarn/mysql2-3.6.1
chore(deps-dev): bump mysql2 from 3.6.0 to 3.6.1
2023-09-21 14:16:08 +02:00
Kamil Mysliwiec
82c3b03743 Merge pull request #12390 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-12.0.9
chore(deps-dev): bump @nestjs/graphql from 12.0.7 to 12.0.9
2023-09-21 14:15:58 +02:00
Kamil Mysliwiec
499b794181 Merge pull request #12395 from nestjs/dependabot/npm_and_yarn/fastify-4.23.2
chore(deps): bump fastify from 4.22.2 to 4.23.2
2023-09-21 14:15:52 +02:00
Kamil Mysliwiec
2484f5aac4 Merge pull request #12402 from nestjs/dependabot/npm_and_yarn/mongoose-7.5.2
chore(deps-dev): bump mongoose from 7.5.0 to 7.5.2
2023-09-21 14:15:44 +02:00
Kamil Mysliwiec
df637a0736 Merge pull request #12405 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-6.7.2
chore(deps-dev): bump @typescript-eslint/parser from 6.5.0 to 6.7.2
2023-09-21 14:15:27 +02:00
Kamil Mysliwiec
5442641667 Update Readme.md 2023-09-21 12:01:44 +02:00
Mikhail Bodrov
c4849e0f7a utils: simplify map + flat in injections providers 2023-09-20 10:42:11 +03:00
Kamil Mysliwiec
97e9652290 Merge pull request #12407 from sezanzeb/test/test-param-decorator-metadata
test(common): added a test for the @param decorator metadata
2023-09-20 08:19:30 +02:00
Kamil Mysliwiec
0351aa3e17 Merge pull request #12408 from gavrylenkoIvan/patch-1
fix(http): change description for Search decorator
2023-09-20 08:17:32 +02:00
Ivan Gavrylenko
8631f39621 fix description for Search decorator 2023-09-19 22:35:05 +03:00
tobias
43594e03fd test(common): added a test for the @param decorator metadata 2023-09-19 14:19:43 +02:00
dependabot[bot]
81d41d1024 chore(deps-dev): bump @typescript-eslint/parser from 6.5.0 to 6.7.2
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.5.0 to 6.7.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 00:25:14 +00:00
Kamil Mysliwiec
e419b294b2 Merge pull request #12401 from vlad-karnauch/vladk/update-readme-x-not-twitter
docs: update readme, use X instead of twitter
2023-09-18 10:06:37 +02:00
Kamil Mysliwiec
9ecc6c0573 Merge pull request #12400 from Tony133/chore/mark-api-public-route-config-decorator-platform-fastify
chore(platform-fastify): marked the api public in route config decorator
2023-09-18 10:06:18 +02:00
dependabot[bot]
1b8a1935b3 chore(deps-dev): bump mongoose from 7.5.0 to 7.5.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.5.0 to 7.5.2.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.5.0...7.5.2)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 01:06:00 +00:00
vlad-kanrauch
4e94ce2ae9 update 2023-09-17 19:27:28 +03:00
Tony133
1a0c304767 chore(platform-fastify): marked the api public in route config decorator 2023-09-17 12:08:37 +02:00
dependabot[bot]
75529129eb chore(deps): bump fastify from 4.22.2 to 4.23.2
Bumps [fastify](https://github.com/fastify/fastify) from 4.22.2 to 4.23.2.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.22.2...v4.23.2)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-15 00:59:35 +00:00
Damir Bulić
e96e10f17f fix(platform-ws): added http header info on socket close
fixes #12381
2023-09-14 11:23:16 +02:00
dependabot[bot]
98d21cac84 chore(deps-dev): bump @nestjs/graphql from 12.0.7 to 12.0.9
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 12.0.7 to 12.0.9.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.7...v12.0.9)

---
updated-dependencies:
- dependency-name: "@nestjs/graphql"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-14 00:35:21 +00:00
Damir Bulić
77a235751c fix(platform-ws): URL parsing error handled
Invalid URL TypeError handled with a try-catch block

fixes #12381
2023-09-13 11:01:18 +02:00
Jay McDoniel
6f43a8b26e fix: allow for filters to be aware of the pattern for websockets 2023-09-12 10:56:42 -07:00
ayush
fdf00ee917 The following code seems redundant 2023-09-12 16:21:51 +05:30
dependabot[bot]
82fd30671d chore(deps-dev): bump mysql2 from 3.6.0 to 3.6.1
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.6.0 to 3.6.1.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.6.0...v3.6.1)

---
updated-dependencies:
- dependency-name: mysql2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 00:04:54 +00:00
dependabot[bot]
482fe58db3 chore(deps-dev): bump core-js from 3.32.1 to 3.32.2
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.32.1 to 3.32.2.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.32.2/packages/core-js)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 00:02:38 +00:00
dependabot[bot]
027d8408b9 chore(deps-dev): bump eslint from 8.48.0 to 8.49.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.48.0 to 8.49.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.48.0...v8.49.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 00:02:15 +00:00
dependabot[bot]
d74c9fb1a9 chore(deps-dev): bump @types/chai from 4.3.5 to 4.3.6
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.5 to 4.3.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

---
updated-dependencies:
- dependency-name: "@types/chai"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 00:01:14 +00:00
Kamil Myśliwiec
67951ff2e9 chore(@nestjs) publish v10.2.5 release 2023-09-11 11:40:12 +02:00
Kamil Mysliwiec
260e2a5035 Merge pull request #12347 from nestjs/dependabot/npm_and_yarn/types/chai-as-promised-7.1.6
chore(deps-dev): bump @types/chai-as-promised from 7.1.5 to 7.1.6
2023-09-11 10:18:20 +02:00
Kamil Mysliwiec
cac8766a3d Merge pull request #12360 from nestjs/dependabot/npm_and_yarn/types/node-20.6.0
chore(deps-dev): bump @types/node from 20.5.7 to 20.6.0
2023-09-11 10:18:14 +02:00
dependabot[bot]
9f8cb69631 chore(deps-dev): bump @types/chai-as-promised from 7.1.5 to 7.1.6
Bumps [@types/chai-as-promised](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai-as-promised) from 7.1.5 to 7.1.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai-as-promised)

---
updated-dependencies:
- dependency-name: "@types/chai-as-promised"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 07:59:45 +00:00
Kamil Mysliwiec
18570aaec1 Merge pull request #12308 from nestjs/dependabot/npm_and_yarn/sample/06-mongoose/mongodb-and-mongoose-5.8.1
chore(deps): bump mongodb and mongoose in /sample/06-mongoose
2023-09-11 09:59:18 +02:00
Kamil Mysliwiec
a0036b7f0b Merge pull request #12309 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/mongodb-and-mongoose-5.8.1
chore(deps): bump mongodb and mongoose in /sample/14-mongoose-base
2023-09-11 09:59:08 +02:00
dependabot[bot]
f6812bd83b chore(deps-dev): bump @types/node from 20.5.7 to 20.6.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.5.7 to 20.6.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 07:59:04 +00:00
Kamil Mysliwiec
2622f84fa5 Merge pull request #12328 from nestjs/renovate/handlebars-4.x
fix(deps): update dependency handlebars to v4.7.8
2023-09-11 09:59:01 +02:00
Kamil Mysliwiec
3bead02903 Merge pull request #12335 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.9.2
chore(deps-dev): bump @grpc/grpc-js from 1.9.1 to 1.9.2
2023-09-11 09:58:55 +02:00
dependabot[bot]
d8b83d687f chore(deps): bump mongodb and mongoose in /sample/06-mongoose
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) to 5.8.1 and updates ancestor dependency [mongoose](https://github.com/Automattic/mongoose). These dependencies need to be updated together.


Updates `mongodb` from 5.6.0 to 5.8.1
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v5.8.1/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v5.6.0...v5.8.1)

Updates `mongoose` from 7.3.3 to 7.5.0
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.3.3...7.5.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: indirect
- dependency-name: mongoose
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 07:58:52 +00:00
Kamil Mysliwiec
3b8bfe19ff Merge pull request #12341 from nestjs/dependabot/npm_and_yarn/fastify/static-6.11.0
chore(deps-dev): bump @fastify/static from 6.10.2 to 6.11.0
2023-09-11 09:58:48 +02:00
Kamil Mysliwiec
4e3ccadaa8 Merge pull request #12343 from nestjs/dependabot/npm_and_yarn/fastify-4.22.2
chore(deps): bump fastify from 4.22.0 to 4.22.2
2023-09-11 09:58:40 +02:00
Kamil Mysliwiec
b40d2221ea Merge pull request #12344 from tuxmachine/feat/instantiate-non-static-custom-classes
feat(core): instantiate non-static custom classes
2023-09-11 09:58:33 +02:00
dependabot[bot]
9bb3b77a38 chore(deps): bump mongodb and mongoose in /sample/14-mongoose-base
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) to 5.8.1 and updates ancestor dependency [mongoose](https://github.com/Automattic/mongoose). These dependencies need to be updated together.


Updates `mongodb` from 5.6.0 to 5.8.1
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v5.8.1/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v5.6.0...v5.8.1)

Updates `mongoose` from 7.3.3 to 7.5.0
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.3.3...7.5.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: indirect
- dependency-name: mongoose
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 07:58:04 +00:00
Kamil Mysliwiec
45da1ec905 Merge pull request #12348 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-6.6.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.5.0 to 6.6.0
2023-09-11 09:58:01 +02:00
Kamil Mysliwiec
70416f2e96 Merge pull request #12349 from nestjs/dependabot/npm_and_yarn/types/cors-2.8.14
chore(deps-dev): bump @types/cors from 2.8.13 to 2.8.14
2023-09-11 09:57:56 +02:00
Kamil Mysliwiec
de42b5ab4e Merge pull request #12361 from nestjs/dependabot/npm_and_yarn/mqtt-5.0.5
chore(deps-dev): bump mqtt from 5.0.3 to 5.0.5
2023-09-11 09:56:15 +02:00
Kamil Mysliwiec
c8b3bf6b4a Merge pull request #12350 from guilopesn/master
feat: implement http redirect response interface
2023-09-11 09:49:20 +02:00
Kamil Mysliwiec
c041c9df12 Update packages/common/interfaces/http/http-redirect-response.interface.ts 2023-09-11 09:48:57 +02:00
dependabot[bot]
c04415e4b2 chore(deps-dev): bump mqtt from 5.0.3 to 5.0.5
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.0.3 to 5.0.5.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.0.3...v5.0.5)

---
updated-dependencies:
- dependency-name: mqtt
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 01:17:25 +00:00
Guilherme Nogueira
91f8c22124 feat: implement http redirect response interface 2023-09-05 11:10:44 -03:00
dependabot[bot]
50deee132e chore(deps-dev): bump @types/cors from 2.8.13 to 2.8.14
Bumps [@types/cors](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/cors) from 2.8.13 to 2.8.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/cors)

---
updated-dependencies:
- dependency-name: "@types/cors"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 00:47:36 +00:00
dependabot[bot]
c047e6e5bd chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.5.0 to 6.6.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.6.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 00:46:50 +00:00
dependabot[bot]
5f687d1aa8 chore(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 00:17:19 +00:00
Rick Dutour Geerling
a85aa06070 feat(core): instantiate non-static custom classes
Allows us to construct request-scoped custom classes by passing a `contextId` to `moduleRef.create`
2023-09-04 14:08:01 +02:00
dependabot[bot]
cb9ca50c11 chore(deps): bump fastify from 4.22.0 to 4.22.2
Bumps [fastify](https://github.com/fastify/fastify) from 4.22.0 to 4.22.2.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.22.0...v4.22.2)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 01:09:13 +00:00
dependabot[bot]
a6844c8d27 chore(deps-dev): bump @fastify/static from 6.10.2 to 6.11.0
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 6.10.2 to 6.11.0.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v6.10.2...v6.11.0)

---
updated-dependencies:
- dependency-name: "@fastify/static"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 01:06:42 +00:00
Kamil Mysliwiec
2d13d081d8 Merge pull request #12321 from KrisAphalon/fix-missing-pattern-on-ws
fix(ws): fix incorrect host pattern on messages
2023-09-01 12:10:25 +02:00
dependabot[bot]
9961caf4dd chore(deps-dev): bump @grpc/grpc-js from 1.9.1 to 1.9.2
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.9.1 to 1.9.2.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.9.1...@grpc/grpc-js@1.9.2)

---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-01 00:41:31 +00:00
Kamil Myśliwiec
5b12a198a3 chore(@nestjs) publish v10.2.4 release 2023-08-31 23:02:18 +02:00
Kamil Mysliwiec
c7854328aa Merge pull request #12331 from benlesh/fix-write-drain-bug
fix(grpc): will properly write to streams
2023-08-31 23:01:18 +02:00
Ben Lesh
7184b7b1ad fix(grpc): will properly write to streams
fixes #12330
2023-08-31 15:05:24 -05:00
renovate[bot]
3f892bffb8 fix(deps): update dependency handlebars to v4.7.8 2023-08-31 10:24:07 +00:00
Kamil Mysliwiec
12679b82e3 Merge pull request #12325 from nestjs/renovate/babel-monorepo
chore(deps): update dependency @babel/preset-env to v7.22.14
2023-08-31 12:18:12 +02:00
Kamil Mysliwiec
8925fb395e Merge pull request #12324 from nestjs/renovate/npm-@apollo/server-vulnerability
fix(deps): update dependency @apollo/server to v4.9.3 [security]
2023-08-31 12:18:03 +02:00
renovate[bot]
63bb708c4b fix(deps): update dependency @apollo/server to v4.9.3 [security] 2023-08-31 08:08:29 +00:00
renovate[bot]
790022731f chore(deps): update dependency @babel/preset-env to v7.22.14 2023-08-31 07:58:58 +00:00
Kamil Mysliwiec
5728bd362f Merge pull request #12313 from nestjs/dependabot/npm_and_yarn/sample/22-graphql-prisma/apollo/server-4.9.3
chore(deps): bump @apollo/server from 4.7.5 to 4.9.3 in /sample/22-graphql-prisma
2023-08-31 09:55:55 +02:00
dependabot[bot]
02edb47279 chore(deps): bump @apollo/server in /sample/22-graphql-prisma
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.7.5 to 4.9.3.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.9.3/packages/server)

---
updated-dependencies:
- dependency-name: "@apollo/server"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-31 07:54:03 +00:00
Kamil Mysliwiec
a5224d1b8c Merge pull request #12305 from nestjs/renovate/nestjs-mongoose-10.x
fix(deps): update dependency @nestjs/mongoose to v10.0.1
2023-08-31 09:53:58 +02:00
Kamil Mysliwiec
e597c842a1 Merge pull request #12306 from nestjs/renovate/nestjs-schedule-3.x
fix(deps): update dependency @nestjs/schedule to v3.0.3
2023-08-31 09:53:53 +02:00
Kamil Mysliwiec
87071bb022 Merge pull request #12316 from nestjs/dependabot/npm_and_yarn/apollo/server-4.9.3
chore(deps-dev): bump @apollo/server from 4.7.5 to 4.9.3
2023-08-31 09:53:27 +02:00
Kamil Mysliwiec
70b2be8576 Merge pull request #12317 from nestjs/dependabot/npm_and_yarn/sample/12-graphql-schema-first/apollo/server-4.9.3
chore(deps): bump @apollo/server from 4.7.5 to 4.9.3 in /sample/12-graphql-schema-first
2023-08-31 09:53:19 +02:00
Kamil Mysliwiec
069ecd1dd9 Merge pull request #12318 from nestjs/dependabot/npm_and_yarn/sample/23-graphql-code-first/apollo/server-4.9.3
chore(deps): bump @apollo/server from 4.7.5 to 4.9.3 in /sample/23-graphql-code-first
2023-08-31 09:53:15 +02:00
Kamil Mysliwiec
6335b9c358 Merge pull request #12320 from nestjs/dependabot/npm_and_yarn/sample/13-mongo-typeorm/mongodb-5.8.0
chore(deps): bump mongodb from 5.6.0 to 5.8.0 in /sample/13-mongo-typeorm
2023-08-31 09:52:49 +02:00
Krzysztof Kaczmarzyk
f3f25569ab fix(ws): fix incorrect host pattern on messages
function call was missing the second argument
2023-08-31 02:24:23 +02:00
dependabot[bot]
8f109248f0 chore(deps): bump mongodb in /sample/13-mongo-typeorm
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.6.0 to 5.8.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v5.8.0/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v5.6.0...v5.8.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 21:48:56 +00:00
dependabot[bot]
8ddd4a7452 chore(deps): bump @apollo/server in /sample/23-graphql-code-first
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.7.5 to 4.9.3.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.9.3/packages/server)

---
updated-dependencies:
- dependency-name: "@apollo/server"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 21:44:24 +00:00
dependabot[bot]
7d0fc14d6e chore(deps): bump @apollo/server in /sample/12-graphql-schema-first
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.7.5 to 4.9.3.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.9.3/packages/server)

---
updated-dependencies:
- dependency-name: "@apollo/server"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 21:44:20 +00:00
dependabot[bot]
47a79ee86c chore(deps-dev): bump @apollo/server from 4.7.5 to 4.9.3
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.7.5 to 4.9.3.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.9.3/packages/server)

---
updated-dependencies:
- dependency-name: "@apollo/server"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 21:44:06 +00:00
renovate[bot]
3abbdd09d9 fix(deps): update dependency @nestjs/schedule to v3.0.3 2023-08-30 15:24:32 +00:00
renovate[bot]
2dd1df6765 fix(deps): update dependency @nestjs/mongoose to v10.0.1 2023-08-30 15:24:09 +00:00
Kamil Myśliwiec
069b519a1c chore(@nestjs) publish v10.2.3 release 2023-08-30 14:53:03 +02:00
Kamil Mysliwiec
15cc99e6d3 Merge pull request #12301 from nestjs/dependabot/npm_and_yarn/mongoose-7.5.0
chore(deps-dev): bump mongoose from 7.4.5 to 7.5.0
2023-08-30 14:52:03 +02:00
Kamil Mysliwiec
ce81d26989 Merge pull request #12302 from nestjs/dependabot/npm_and_yarn/prettier-3.0.3
chore(deps-dev): bump prettier from 3.0.2 to 3.0.3
2023-08-30 14:51:52 +02:00
Kamil Mysliwiec
f52699f9ee Merge pull request #12292 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-6.5.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.4.1 to 6.5.0
2023-08-30 14:51:44 +02:00
Kamil Mysliwiec
a6a0bac34e Merge pull request #12297 from nestjs/renovate/redis-4.x
chore(deps): update dependency redis to v4.6.8
2023-08-30 14:51:41 +02:00
Kamil Mysliwiec
a6cdb8c78c Merge pull request #12298 from nestjs/renovate/jest-monorepo
chore(deps): update jest monorepo
2023-08-30 14:51:32 +02:00
Kamil Myśliwiec
0242a46eeb Merge branch 'benlesh-rxjs-backpressure-handling' 2023-08-30 14:51:07 +02:00
Kamil Myśliwiec
de2adcff9d refactor: cleanup imports, move write fn to class body 2023-08-30 14:50:53 +02:00
Kamil Myśliwiec
74d65f438a Merge branch 'rxjs-backpressure-handling' of https://github.com/benlesh/nest into benlesh-rxjs-backpressure-handling 2023-08-30 14:46:58 +02:00
dependabot[bot]
705ddcade4 chore(deps-dev): bump prettier from 3.0.2 to 3.0.3
Bumps [prettier](https://github.com/prettier/prettier) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 00:09:59 +00:00
dependabot[bot]
267b3261b8 chore(deps-dev): bump mongoose from 7.4.5 to 7.5.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.4.5 to 7.5.0.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.4.5...7.5.0)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 00:09:18 +00:00
renovate[bot]
b1087020e2 chore(deps): update jest monorepo 2023-08-29 11:30:09 +00:00
renovate[bot]
0cf75b1b41 chore(deps): update dependency redis to v4.6.8 2023-08-29 11:23:16 +00:00
dependabot[bot]
b97043a3be chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.4.1 to 6.5.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.5.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-29 07:52:51 +00:00
Kamil Mysliwiec
923bd6afd1 Merge pull request #12288 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo to v7.22.11
2023-08-29 09:51:32 +02:00
Kamil Mysliwiec
fb0e0d9f2a Merge pull request #12291 from nestjs/dependabot/npm_and_yarn/eslint-8.48.0
chore(deps-dev): bump eslint from 8.47.0 to 8.48.0
2023-08-29 09:51:24 +02:00
Kamil Mysliwiec
181cff9589 Merge pull request #12293 from nestjs/dependabot/npm_and_yarn/chai-4.3.8
chore(deps-dev): bump chai from 4.3.7 to 4.3.8
2023-08-29 09:51:16 +02:00
Kamil Mysliwiec
98c3211f7f Merge pull request #12294 from nestjs/dependabot/npm_and_yarn/conventional-changelog-5.0.0
chore(deps-dev): bump conventional-changelog from 4.0.0 to 5.0.0
2023-08-29 09:51:11 +02:00
Kamil Mysliwiec
b3febb8fad Merge pull request #12296 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-6.5.0
chore(deps-dev): bump @typescript-eslint/parser from 6.4.1 to 6.5.0
2023-08-29 09:51:05 +02:00
Kamil Mysliwiec
782e6d162b Merge pull request #12295 from nestjs/dependabot/npm_and_yarn/fastify-4.22.0
chore(deps): bump fastify from 4.21.0 to 4.22.0
2023-08-29 09:50:52 +02:00
dependabot[bot]
74492def3a chore(deps-dev): bump @typescript-eslint/parser from 6.4.1 to 6.5.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.4.1 to 6.5.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.5.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-29 00:41:28 +00:00
dependabot[bot]
8bc36d84c9 chore(deps): bump fastify from 4.21.0 to 4.22.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.21.0 to 4.22.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.21.0...v4.22.0)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-29 00:40:53 +00:00
dependabot[bot]
9423f1a3e0 chore(deps-dev): bump conventional-changelog from 4.0.0 to 5.0.0
Bumps [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases)
- [Changelog](https://github.com/conventional-changelog/conventional-changelog/blob/master/.release-please-manifest.json)
- [Commits](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-v4.0.0...conventional-changelog-v5.0.0)

---
updated-dependencies:
- dependency-name: conventional-changelog
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-29 00:40:28 +00:00
dependabot[bot]
cb92e336dc chore(deps-dev): bump chai from 4.3.7 to 4.3.8
Bumps [chai](https://github.com/chaijs/chai) from 4.3.7 to 4.3.8.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.7...v4.3.8)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-29 00:39:42 +00:00
dependabot[bot]
89c254d305 chore(deps-dev): bump eslint from 8.47.0 to 8.48.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.47.0 to 8.48.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.47.0...v8.48.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-29 00:38:37 +00:00
Ben Lesh
6c9321793c fix: appropriately handle backpressure
Adds code to handle back pressure when writing output from Observable streams.
2023-08-28 18:06:59 -05:00
renovate[bot]
6c0efd5f9f chore(deps): update babel monorepo to v7.22.11 2023-08-28 09:54:56 +00:00
Kamil Myśliwiec
da4934747d chore(@nestjs) publish v10.2.2 release 2023-08-28 10:54:24 +02:00
Kamil Myśliwiec
76223af726 Merge branch 'quangtran88-fix/handle-error-steram-grpc-controller' 2023-08-28 10:53:00 +02:00
Kamil Myśliwiec
8857e7e950 style: apply formatting (prettier) 2023-08-28 10:47:53 +02:00
Kamil Myśliwiec
0ba21b6077 Merge branch 'fix/handle-error-steram-grpc-controller' of https://github.com/quangtran88/nest into quangtran88-fix/handle-error-steram-grpc-controller 2023-08-28 10:47:03 +02:00
Kamil Mysliwiec
974f2c625f Merge pull request #12276 from quangtran88/improve-reflector-decorator-transform-type
feat(core): add generic type for transformed value in decorators factory
2023-08-28 10:46:15 +02:00
Kamil Mysliwiec
6d9c5dd8b2 Merge pull request #12269 from nestjs/dependabot/npm_and_yarn/concurrently-8.2.1
chore(deps-dev): bump concurrently from 8.2.0 to 8.2.1
2023-08-28 10:25:16 +02:00
Kamil Mysliwiec
a3ee0cd479 Merge pull request #12268 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.9.1
chore(deps-dev): bump @grpc/grpc-js from 1.9.0 to 1.9.1
2023-08-28 10:25:11 +02:00
Kamil Mysliwiec
3a617cbf4a Merge pull request #12263 from nestjs/renovate/nestjs-event-emitter-2.x
fix(deps): update dependency @nestjs/event-emitter to v2.0.2
2023-08-28 10:25:03 +02:00
dependabot[bot]
0197087e67 chore(deps-dev): bump @grpc/grpc-js from 1.9.0 to 1.9.1
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.9.0...@grpc/grpc-js@1.9.1)

---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 08:24:59 +00:00
Kamil Mysliwiec
f9033ff1d2 Merge pull request #12271 from nestjs/dependabot/npm_and_yarn/redis-4.6.8
chore(deps-dev): bump redis from 4.6.7 to 4.6.8
2023-08-28 10:24:25 +02:00
Kamil Mysliwiec
4052856b5b Merge pull request #12272 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.7.9
chore(deps-dev): bump @grpc/proto-loader from 0.7.8 to 0.7.9
2023-08-28 10:24:19 +02:00
Kamil Mysliwiec
7be4542661 Merge pull request #12279 from nestjs/dependabot/npm_and_yarn/typescript-5.2.2
chore(deps-dev): bump typescript from 5.1.6 to 5.2.2
2023-08-28 10:24:12 +02:00
Kamil Mysliwiec
81e7368f08 Merge pull request #12285 from nestjs/dependabot/npm_and_yarn/types/node-20.5.7
chore(deps-dev): bump @types/node from 20.5.1 to 20.5.7
2023-08-28 10:22:28 +02:00
Kamil Mysliwiec
7d88230f73 Merge pull request #12286 from nestjs/dependabot/npm_and_yarn/mongoose-7.4.5
chore(deps-dev): bump mongoose from 7.4.3 to 7.4.5
2023-08-28 10:22:14 +02:00
dependabot[bot]
3f5d8d136b chore(deps-dev): bump mongoose from 7.4.3 to 7.4.5
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.4.3 to 7.4.5.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.4.3...7.4.5)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 00:59:12 +00:00
dependabot[bot]
113c8ee2d8 chore(deps-dev): bump @types/node from 20.5.1 to 20.5.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.5.1 to 20.5.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 00:58:09 +00:00
Tran Quang
65ba1262d2 feat(core): add generic type for transformed value in decorators factory 2023-08-27 14:05:31 +07:00
Tran Quang
1315babe48 fix(microservices): handle error thrown in the stream gRPC controller
Assert responseCallback called once
2023-08-25 17:06:26 +07:00
dependabot[bot]
11efaaedb0 chore(deps-dev): bump typescript from 5.1.6 to 5.2.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.6 to 5.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-25 00:46:16 +00:00
dependabot[bot]
fde1d29e3f chore(deps-dev): bump @grpc/proto-loader from 0.7.8 to 0.7.9
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.7.8 to 0.7.9.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/commits/@grpc/proto-loader@0.7.9)

---
updated-dependencies:
- dependency-name: "@grpc/proto-loader"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-24 00:20:15 +00:00
dependabot[bot]
8c8e3fde10 chore(deps-dev): bump redis from 4.6.7 to 4.6.8
Bumps [redis](https://github.com/redis/node-redis) from 4.6.7 to 4.6.8.
- [Release notes](https://github.com/redis/node-redis/releases)
- [Changelog](https://github.com/redis/node-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/node-redis/compare/redis@4.6.7...redis@4.6.8)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-24 00:19:49 +00:00
dependabot[bot]
bd0bd9d314 chore(deps-dev): bump concurrently from 8.2.0 to 8.2.1
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 8.2.0 to 8.2.1.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v8.2.0...v8.2.1)

---
updated-dependencies:
- dependency-name: concurrently
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-23 00:51:24 +00:00
Kamil Mysliwiec
4eec6e5e40 Merge pull request #12248 from nestjs/dependabot/npm_and_yarn/tslib-2.6.2
chore(deps): bump tslib from 2.6.1 to 2.6.2
2023-08-22 14:17:52 +02:00
Kamil Mysliwiec
3c95124815 Merge pull request #12247 from nestjs/dependabot/npm_and_yarn/types/node-20.5.1
chore(deps-dev): bump @types/node from 20.5.0 to 20.5.1
2023-08-22 14:17:46 +02:00
renovate[bot]
08c4d10dfa fix(deps): update dependency @nestjs/event-emitter to v2.0.2 2023-08-22 12:17:09 +00:00
Kamil Mysliwiec
c86d747f44 Merge pull request #12249 from nestjs/dependabot/npm_and_yarn/eslint-plugin-import-2.28.1
chore(deps-dev): bump eslint-plugin-import from 2.28.0 to 2.28.1
2023-08-22 14:15:50 +02:00
Kamil Mysliwiec
6ad038fa09 Merge pull request #12262 from nestjs/renovate/nestjs-bull-10.x
fix(deps): update dependency @nestjs/bull to v10.0.1
2023-08-22 14:15:36 +02:00
renovate[bot]
1425c81378 fix(deps): update dependency @nestjs/bull to v10.0.1 2023-08-22 11:12:24 +00:00
dependabot[bot]
2136e64709 chore(deps-dev): bump @types/node from 20.5.0 to 20.5.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.5.0 to 20.5.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 07:59:19 +00:00
dependabot[bot]
911e7ee678 chore(deps-dev): bump eslint-plugin-import from 2.28.0 to 2.28.1
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.28.0 to 2.28.1.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.28.0...v2.28.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 07:58:00 +00:00
Kamil Mysliwiec
f1ccc26227 Merge pull request #12258 from nestjs/renovate/jest-29.x
chore(deps): update dependency jest to v29.6.3
2023-08-22 09:57:02 +02:00
Kamil Mysliwiec
a735854bca Merge pull request #12259 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency @graphql-tools/utils to v10.0.5
2023-08-22 09:56:54 +02:00
Kamil Myśliwiec
b6fac1414f ci: run int tests for maintainence node version 2023-08-22 09:56:44 +02:00
renovate[bot]
1ba3082e60 chore(deps): update dependency jest to v29.6.3 2023-08-22 07:39:02 +00:00
dependabot[bot]
9de7824bea chore(deps): bump tslib from 2.6.1 to 2.6.2
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/v2.6.1...v2.6.2)

---
updated-dependencies:
- dependency-name: tslib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 07:34:12 +00:00
Kamil Myśliwiec
6287de4afe chore(@nestjs) publish v10.2.1 release 2023-08-22 09:33:06 +02:00
Kamil Myśliwiec
471b621629 Merge branch 'master' of https://github.com/nestjs/nest 2023-08-22 09:32:23 +02:00
Kamil Myśliwiec
207fc24324 fix(core): minor reflector type issue 2023-08-22 09:32:11 +02:00
renovate[bot]
05ecced56c fix(deps): update dependency @graphql-tools/utils to v10.0.5 2023-08-22 07:26:35 +00:00
Kamil Mysliwiec
f2cccd6e19 Merge pull request #12241 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo to v7.22.10
2023-08-22 09:05:16 +02:00
Kamil Mysliwiec
acd4653514 Merge pull request #12245 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.88.2
2023-08-22 09:05:08 +02:00
Kamil Mysliwiec
f2dcd41c77 Merge pull request #12255 from nestjs/dependabot/npm_and_yarn/lint-staged-14.0.1
chore(deps-dev): bump lint-staged from 14.0.0 to 14.0.1
2023-08-22 09:05:02 +02:00
Kamil Mysliwiec
3fb48430c6 Merge pull request #12257 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-6.4.1
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.4.0 to 6.4.1
2023-08-22 09:04:47 +02:00
renovate[bot]
acf227725e chore(deps): update babel monorepo to v7.22.10 2023-08-22 07:04:40 +00:00
dependabot[bot]
3302e170f8 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.4.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 07:04:17 +00:00
Kamil Mysliwiec
abf3ed4f15 Merge pull request #12256 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-6.4.1
chore(deps-dev): bump @typescript-eslint/parser from 5.62.0 to 6.4.1
2023-08-22 09:03:31 +02:00
renovate[bot]
09553afd64 chore(deps): update dependency webpack to v5.88.2 2023-08-22 06:48:22 +00:00
Kamil Mysliwiec
4b4713555d Merge pull request #12254 from baconcheese113/fix-redis-options
Guard undefined Redis options
2023-08-22 08:46:37 +02:00
dependabot[bot]
e438b5ed3d chore(deps-dev): bump @typescript-eslint/parser from 5.62.0 to 6.4.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.62.0 to 6.4.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.4.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 00:11:13 +00:00
dependabot[bot]
d8696fd2a9 chore(deps-dev): bump lint-staged from 14.0.0 to 14.0.1
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 14.0.0 to 14.0.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v14.0.0...v14.0.1)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 00:10:16 +00:00
Joseph Yannessa
0a9d594e37 fix: guard undefined redis options 2023-08-21 11:06:13 -04:00
Kamil Mysliwiec
21bb94a707 Merge pull request #12250 from nestjs/dependabot/npm_and_yarn/core-js-3.32.1
chore(deps-dev): bump core-js from 3.32.0 to 3.32.1
2023-08-21 11:32:49 +02:00
Kamil Myśliwiec
6bacb74849 chore: disable @typescript-eslint/no-array-constructor rule 2023-08-21 10:41:50 +02:00
Kamil Myśliwiec
3b78e85ef0 chore: update readme 2023-08-21 10:13:29 +02:00
Kamil Myśliwiec
de5584e8b1 chore(@nestjs) publish v10.2.0 release 2023-08-21 10:12:34 +02:00
Kamil Mysliwiec
fb5cb31233 Merge pull request #12228 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-6.4.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.61.0 to 6.4.0
2023-08-21 09:58:15 +02:00
dependabot[bot]
34b50c486c chore(deps-dev): bump core-js from 3.32.0 to 3.32.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.32.0 to 3.32.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.32.1/packages/core-js)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-21 07:58:12 +00:00
Kamil Mysliwiec
1b8a18e535 Merge pull request #12242 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v29.6.2
2023-08-21 09:58:05 +02:00
Kamil Myśliwiec
9c028369d0 test: update json socket unit tests to support node v20 2023-08-21 09:49:36 +02:00
Kamil Myśliwiec
80012214ba test: update json socket unit tests to support node v20 2023-08-21 09:40:08 +02:00
renovate[bot]
977d982c19 chore(deps): update dependency jest to v29.6.2 2023-08-18 15:18:59 +00:00
Kamil Mysliwiec
de578068eb Merge pull request #12244 from rbnayax/#12215
fix: CI config is failing
2023-08-18 17:11:49 +02:00
Regev Brody
72a1b96510 fix: CI config is failing 2023-08-18 16:39:25 +03:00
Regev Brody
db8835c94a fix: CI config is failing 2023-08-18 16:26:29 +03:00
Kamil Myśliwiec
3b239f27ad chore: update multer options to accept functions as dest 2023-08-18 14:53:43 +02:00
Kamil Mysliwiec
500df55c90 Merge pull request #12243 from rbnayax/#12215
fix: CI config is failing
2023-08-18 14:51:06 +02:00
Regev Brody
86644a0d29 fix: CI config is failing 2023-08-18 15:50:18 +03:00
Kamil Mysliwiec
f57e5df04f Update config.yml 2023-08-18 14:50:02 +02:00
Kamil Mysliwiec
a07e9431f7 Update config.yml 2023-08-18 14:42:38 +02:00
Kamil Myśliwiec
067e1e49ae ci: update circleci configuration 2023-08-18 14:35:22 +02:00
dependabot[bot]
7e0f5872a0 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.61.0 to 6.4.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.4.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 12:13:36 +00:00
Kamil Mysliwiec
f7b10c8f14 Merge pull request #12168 from nestjs/renovate/confluentinc-cp-zookeeper-7.x
chore(deps): update confluentinc/cp-zookeeper docker tag to v7.4.1
2023-08-18 14:10:27 +02:00
Kamil Mysliwiec
fcca783502 Merge pull request #12237 from nestjs/feat/strongly-typed-decorator
feat(core): add strongly-typed decorators factory (reflector)
2023-08-18 14:08:04 +02:00
Kamil Mysliwiec
b8c2c29a58 Merge pull request #12107 from nestjs/feat/discover-by-decorator
feat(core): discover by decorator, explorer pattern
2023-08-18 14:06:20 +02:00
Kamil Mysliwiec
f99f6f142f Update packages/core/discovery/discovery-service.ts 2023-08-18 14:05:49 +02:00
Kamil Mysliwiec
380b0c0c2e Merge pull request #12218 from rbnayax/#12215
ci: add NodeJS 20 to CI matrix
2023-08-18 14:05:16 +02:00
Kamil Mysliwiec
41790f8d2b Merge pull request #12161 from TheCodby/master
feat(common): added "fatal" as a log level (issue #11945)
2023-08-18 14:03:09 +02:00
Kamil Mysliwiec
7a5b6e408f Merge pull request #12156 from nestjs/dependabot/npm_and_yarn/amqp-connection-manager-4.1.14
chore(deps-dev): bump amqp-connection-manager from 4.1.13 to 4.1.14
2023-08-18 14:02:19 +02:00
Kamil Mysliwiec
f3d6f994b0 Merge pull request #12096 from mohamadrezamomeni/fix-multi-files
fix(common): fix custom multi file validator
2023-08-18 14:02:02 +02:00
Kamil Mysliwiec
d368d336e4 Merge pull request #11992 from rich-w-lee/feature/fastify-route-config
feat(fastify): supporting fastify route config
2023-08-18 14:01:40 +02:00
Kamil Mysliwiec
f8d910187e Merge pull request #12225 from nestjs/dependabot/npm_and_yarn/graphql-16.8.0
chore(deps-dev): bump graphql from 16.7.1 to 16.8.0
2023-08-18 14:00:45 +02:00
Kamil Mysliwiec
38b92bd7a6 Merge pull request #11965 from nestjs/renovate/nestjs-mercurius-12.x
fix(deps): update dependency @nestjs/mercurius to v12.0.4
2023-08-18 14:00:16 +02:00
dependabot[bot]
d1b97e1e86 chore(deps-dev): bump graphql from 16.7.1 to 16.8.0
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.7.1 to 16.8.0.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.7.1...v16.8.0)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 06:46:24 +00:00
Kamil Mysliwiec
12ec4f2f63 Merge pull request #12239 from nestjs/dependabot/npm_and_yarn/nats-2.16.0
chore(deps-dev): bump nats from 2.15.1 to 2.16.0
2023-08-18 08:43:58 +02:00
dependabot[bot]
e8c41ff5ac chore(deps-dev): bump nats from 2.15.1 to 2.16.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.15.1 to 2.16.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.15.1...v2.16.0)

---
updated-dependencies:
- dependency-name: nats
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 06:43:48 +00:00
Kamil Mysliwiec
0ce0391ef8 Merge pull request #12238 from nestjs/dependabot/npm_and_yarn/mqtt-5.0.3
chore(deps-dev): bump mqtt from 5.0.2 to 5.0.3
2023-08-18 08:42:23 +02:00
Kamil Myśliwiec
13a671afc1 chore: merge conflicts 2023-08-17 09:38:05 +02:00
Kamil Myśliwiec
566eb8cdc2 chore: update comments 2023-08-17 09:37:30 +02:00
dependabot[bot]
91f9fd61f8 chore(deps-dev): bump mqtt from 5.0.2 to 5.0.3
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.0.2...v5.0.3)

---
updated-dependencies:
- dependency-name: mqtt
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-17 00:40:44 +00:00
Kamil Mysliwiec
181e829e26 Update packages/core/services/reflector.service.ts
Co-authored-by: Micael Levi L. Cavalcante <mllc@icomp.ufam.edu.br>
2023-08-16 15:32:31 +02:00
Kamil Myśliwiec
e63313bf81 sample: update sample to use create decorator factory 2023-08-16 13:49:05 +02:00
Kamil Myśliwiec
d274f543d4 feat(core): add strongly-typed decorators factory (reflector) 2023-08-16 13:45:26 +02:00
Kamil Mysliwiec
4fa5324ae2 Merge pull request #12227 from nestjs/dependabot/npm_and_yarn/eslint-8.47.0
chore(deps-dev): bump eslint from 8.46.0 to 8.47.0
2023-08-16 09:51:07 +02:00
Kamil Mysliwiec
c607be7ef2 Merge pull request #12226 from nestjs/dependabot/npm_and_yarn/mongoose-7.4.3
chore(deps-dev): bump mongoose from 7.4.2 to 7.4.3
2023-08-16 09:50:45 +02:00
Kamil Mysliwiec
d1d68f08d8 Merge pull request #12229 from nestjs/dependabot/npm_and_yarn/lint-staged-14.0.0
chore(deps-dev): bump lint-staged from 13.2.3 to 14.0.0
2023-08-16 09:50:14 +02:00
Kamil Mysliwiec
fa92422099 Merge pull request #12234 from nestjs/dependabot/npm_and_yarn/prettier-3.0.2
chore(deps-dev): bump prettier from 3.0.1 to 3.0.2
2023-08-16 09:50:09 +02:00
Kamil Mysliwiec
911fd7bfc7 Merge pull request #12233 from HGtronic/auth-service-docs-update
docs: add missing types for username and password
2023-08-16 09:49:45 +02:00
dependabot[bot]
1de9a7fb1c chore(deps-dev): bump prettier from 3.0.1 to 3.0.2
Bumps [prettier](https://github.com/prettier/prettier) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.0.1...3.0.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-16 00:38:14 +00:00
Aleksandar Mijic
19464b45ee docs: add missing types for username and password 2023-08-15 17:13:03 +02:00
Kamil Myśliwiec
70e5b194b9 chore: update sponsors 2023-08-15 15:56:17 +02:00
dependabot[bot]
c12367953b chore(deps-dev): bump lint-staged from 13.2.3 to 14.0.0
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.2.3 to 14.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.2.3...v14.0.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-15 00:28:47 +00:00
dependabot[bot]
520adab59b chore(deps-dev): bump eslint from 8.46.0 to 8.47.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.46.0 to 8.47.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.46.0...v8.47.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-15 00:27:45 +00:00
dependabot[bot]
bb8724d323 chore(deps-dev): bump mongoose from 7.4.2 to 7.4.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.4.2 to 7.4.3.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.4.2...7.4.3)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-15 00:27:18 +00:00
Regev Brody
8924d43924 ci: add NodeJS 20 to CI matrix 2023-08-14 14:36:45 +03:00
Kamil Mysliwiec
85cc3869ee Merge pull request #12212 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-17.7.0
chore(deps-dev): bump @commitlint/config-angular from 17.6.7 to 17.7.0
2023-08-14 09:15:49 +02:00
dependabot[bot]
8d0957fff9 chore(deps-dev): bump @commitlint/config-angular from 17.6.7 to 17.7.0
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 17.6.7 to 17.7.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-angular/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.7.0/@commitlint/config-angular)

---
updated-dependencies:
- dependency-name: "@commitlint/config-angular"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-14 07:10:36 +00:00
Kamil Mysliwiec
623225064d Merge pull request #12186 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.8.0
chore(deps): bump fast-json-stringify from 5.7.0 to 5.8.0
2023-08-14 09:10:09 +02:00
Kamil Mysliwiec
2e8cb39e1a Merge pull request #12216 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.7.1
chore(deps-dev): bump @commitlint/cli from 17.6.7 to 17.7.1
2023-08-14 09:09:57 +02:00
Kamil Mysliwiec
f1586f8889 Merge pull request #12223 from nestjs/dependabot/npm_and_yarn/types/node-20.5.0
chore(deps-dev): bump @types/node from 20.4.8 to 20.5.0
2023-08-14 09:09:16 +02:00
dependabot[bot]
e4ba5c77a3 chore(deps-dev): bump @types/node from 20.4.8 to 20.5.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.8 to 20.5.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-14 00:52:21 +00:00
Regev Brody
c976b4f50a ci: add NodeJS 20 to CI matrix 2023-08-11 12:50:14 +03:00
Regev Brody
1b23900ee3 ci: add NodeJS 20 to CI matrix 2023-08-11 12:06:46 +03:00
dependabot[bot]
0dccf3d83c chore(deps-dev): bump @commitlint/cli from 17.6.7 to 17.7.1
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.6.7 to 17.7.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.7.1/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-11 00:46:34 +00:00
Richard Lee
ca4a48eec5 feat(fastify): adding jsdoc to route config decorator 2023-08-10 20:33:20 -04:00
Richard Lee
2443611926 feat(fastify): supporting fastify route config
Resolves #1185
2023-08-10 20:33:20 -04:00
dependabot[bot]
114b8e1979 chore(deps): bump fast-json-stringify from 5.7.0 to 5.8.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.7.0 to 5.8.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.7.0...v5.8.0)

---
updated-dependencies:
- dependency-name: fast-json-stringify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 05:57:53 +00:00
Kamil Mysliwiec
5d5298219e Merge pull request #12190 from nestjs/dependabot/npm_and_yarn/mqtt-5.0.2
chore(deps-dev): bump mqtt from 5.0.1 to 5.0.2
2023-08-09 07:57:51 +02:00
Kamil Mysliwiec
3b580fa329 Merge pull request #12202 from nestjs/dependabot/npm_and_yarn/eslint-config-prettier-9.0.0
chore(deps-dev): bump eslint-config-prettier from 8.9.0 to 9.0.0
2023-08-09 07:57:46 +02:00
Kamil Mysliwiec
264190ce9b Merge pull request #12203 from nestjs/dependabot/npm_and_yarn/mysql2-3.6.0
chore(deps-dev): bump mysql2 from 3.5.2 to 3.6.0
2023-08-09 07:57:39 +02:00
Kamil Mysliwiec
ed8709e41b Merge pull request #12205 from nestjs/dependabot/npm_and_yarn/prettier-3.0.1
chore(deps-dev): bump prettier from 3.0.0 to 3.0.1
2023-08-09 07:57:27 +02:00
dependabot[bot]
f08ae1a696 chore(deps-dev): bump prettier from 3.0.0 to 3.0.1
Bumps [prettier](https://github.com/prettier/prettier) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.0.0...3.0.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 00:49:31 +00:00
dependabot[bot]
e679710d06 chore(deps-dev): bump mysql2 from 3.5.2 to 3.6.0
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.5.2 to 3.6.0.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.5.2...v3.6.0)

---
updated-dependencies:
- dependency-name: mysql2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 00:48:38 +00:00
dependabot[bot]
34208277da chore(deps-dev): bump eslint-config-prettier from 8.9.0 to 9.0.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.9.0 to 9.0.0.
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.9.0...v9.0.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 00:47:42 +00:00
dependabot[bot]
52aa89f2fb chore(deps-dev): bump mqtt from 5.0.1 to 5.0.2
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.0.1...v5.0.2)

---
updated-dependencies:
- dependency-name: mqtt
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 06:43:19 +00:00
Kamil Mysliwiec
f51174002d Merge pull request #12189 from nestjs/dependabot/npm_and_yarn/socket.io-client-4.7.2
chore(deps-dev): bump socket.io-client from 4.7.1 to 4.7.2
2023-08-07 08:42:45 +02:00
Kamil Mysliwiec
c2c8d3ee1a Merge pull request #12191 from nestjs/dependabot/npm_and_yarn/mongoose-7.4.2
chore(deps-dev): bump mongoose from 7.4.1 to 7.4.2
2023-08-07 08:42:32 +02:00
Kamil Mysliwiec
cb2632fad1 Merge pull request #12198 from nestjs/dependabot/npm_and_yarn/types/node-20.4.8
chore(deps-dev): bump @types/node from 20.4.5 to 20.4.8
2023-08-07 08:42:12 +02:00
dependabot[bot]
20b30a5209 chore(deps-dev): bump @types/node from 20.4.5 to 20.4.8
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.5 to 20.4.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 00:38:08 +00:00
dependabot[bot]
205bc65e74 chore(deps-dev): bump mongoose from 7.4.1 to 7.4.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.4.1 to 7.4.2.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.4.1...7.4.2)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-04 00:12:55 +00:00
dependabot[bot]
f0a7e2f5ba chore(deps-dev): bump socket.io-client from 4.7.1 to 4.7.2
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.7.1 to 4.7.2.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.7.1...4.7.2)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-04 00:11:55 +00:00
Kamil Mysliwiec
c2c846894c Merge pull request #12180 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.9.0
chore(deps-dev): bump @grpc/grpc-js from 1.8.21 to 1.9.0
2023-08-03 08:47:38 +02:00
Kamil Mysliwiec
921e46e324 Merge pull request #12181 from nestjs/dependabot/npm_and_yarn/engine.io-client-6.5.2
chore(deps-dev): bump engine.io-client from 6.5.1 to 6.5.2
2023-08-03 08:43:15 +02:00
Kamil Mysliwiec
4df6b98638 Merge pull request #12182 from nestjs/dependabot/npm_and_yarn/types/sinon-10.0.16
chore(deps-dev): bump @types/sinon from 10.0.15 to 10.0.16
2023-08-03 08:43:09 +02:00
Kamil Mysliwiec
3937afc768 Merge pull request #12185 from nestjs/dependabot/npm_and_yarn/socket.io-4.7.2
chore(deps): bump socket.io from 4.7.1 to 4.7.2
2023-08-03 08:43:00 +02:00
Kamil Mysliwiec
ae3b34f6b2 Update Readme.md 2023-08-03 08:30:51 +02:00
dependabot[bot]
362c13fae8 chore(deps): bump socket.io from 4.7.1 to 4.7.2
Bumps [socket.io](https://github.com/socketio/socket.io) from 4.7.1 to 4.7.2.
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/4.7.1...4.7.2)

---
updated-dependencies:
- dependency-name: socket.io
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 00:35:01 +00:00
dependabot[bot]
00bb3b5bfd chore(deps-dev): bump @types/sinon from 10.0.15 to 10.0.16
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.15 to 10.0.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-02 00:20:24 +00:00
dependabot[bot]
73659aa0b5 chore(deps-dev): bump engine.io-client from 6.5.1 to 6.5.2
Bumps [engine.io-client](https://github.com/socketio/engine.io-client) from 6.5.1 to 6.5.2.
- [Release notes](https://github.com/socketio/engine.io-client/releases)
- [Changelog](https://github.com/socketio/engine.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io-client/compare/6.5.1...6.5.2)

---
updated-dependencies:
- dependency-name: engine.io-client
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-02 00:18:39 +00:00
dependabot[bot]
b2d51f75fc chore(deps-dev): bump @grpc/grpc-js from 1.8.21 to 1.9.0
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.8.21 to 1.9.0.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.8.21...@grpc/grpc-js@1.9.0)

---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-02 00:18:02 +00:00
Kamil Mysliwiec
657b24cbd3 Merge pull request #12171 from nestjs/dependabot/npm_and_yarn/eslint-config-prettier-8.9.0
chore(deps-dev): bump eslint-config-prettier from 8.8.0 to 8.9.0
2023-08-01 08:29:11 +02:00
dependabot[bot]
09f9b5e230 chore(deps-dev): bump eslint-config-prettier from 8.8.0 to 8.9.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.8.0 to 8.9.0.
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.8.0...v8.9.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 06:24:51 +00:00
Kamil Mysliwiec
54c2f9069f Merge pull request #12172 from nestjs/dependabot/npm_and_yarn/mqtt-5.0.1
chore(deps-dev): bump mqtt from 5.0.0 to 5.0.1
2023-08-01 08:24:02 +02:00
Kamil Mysliwiec
8a550bdca4 Merge pull request #12173 from nestjs/dependabot/npm_and_yarn/eslint-8.46.0
chore(deps-dev): bump eslint from 8.45.0 to 8.46.0
2023-08-01 08:23:54 +02:00
Kamil Mysliwiec
a372b8f360 Merge pull request #12148 from nestjs/dependabot/npm_and_yarn/types/node-20.4.5
chore(deps-dev): bump @types/node from 20.4.4 to 20.4.5
2023-08-01 08:23:46 +02:00
Kamil Mysliwiec
fd53a7e66e Merge pull request #12169 from nestjs/dependabot/npm_and_yarn/eslint-plugin-import-2.28.0
chore(deps-dev): bump eslint-plugin-import from 2.27.5 to 2.28.0
2023-08-01 08:23:36 +02:00
dependabot[bot]
08cf804866 chore(deps-dev): bump eslint from 8.45.0 to 8.46.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.45.0 to 8.46.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.45.0...v8.46.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 00:20:58 +00:00
dependabot[bot]
cf682e6620 chore(deps-dev): bump mqtt from 5.0.0 to 5.0.1
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: mqtt
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 00:20:24 +00:00
dependabot[bot]
7ac635b8d9 chore(deps-dev): bump eslint-plugin-import from 2.27.5 to 2.28.0
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.27.5 to 2.28.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.27.5...v2.28.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 00:17:03 +00:00
Kamil Myśliwiec
20da014393 chore: update readme and package.json version 2023-07-31 11:28:22 +02:00
Kamil Myśliwiec
26e2886e6b chore(@nestjs) publish v10.1.3 release 2023-07-31 11:28:01 +02:00
Kamil Myśliwiec
7829e7fa1b Merge branch 'master' of https://github.com/nestjs/nest 2023-07-31 11:27:07 +02:00
Kamil Myśliwiec
8290af2786 fix(microservices): dont crash on non-json response format #12162 2023-07-31 11:26:57 +02:00
Kamil Mysliwiec
d8f857c14d Merge pull request #12155 from nestjs/dependabot/npm_and_yarn/fastify-4.21.0
chore(deps): bump fastify from 4.20.0 to 4.21.0
2023-07-31 10:38:34 +02:00
Kamil Mysliwiec
a1b0b45ed7 Merge pull request #12163 from jmcdo29/fix/circular-injection-big
fix(core): create completed field on settlement for better tracking
2023-07-31 10:10:42 +02:00
Kamil Mysliwiec
2cd77097d6 Merge pull request #12166 from SocketSomeone/patch-1
fix(core): pass application config to nest container when using application context
2023-07-31 10:10:17 +02:00
renovate[bot]
caa03c6c9a chore(deps): update confluentinc/cp-zookeeper docker tag to v7.4.1 2023-07-31 08:06:18 +00:00
dependabot[bot]
cbf9021034 chore(deps): bump fastify from 4.20.0 to 4.21.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.20.0 to 4.21.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.20.0...v4.21.0)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 08:05:10 +00:00
Kamil Mysliwiec
ab2ada809b Merge pull request #12146 from nestjs/renovate/confluentinc-cp-kafka-7.x
chore(deps): update confluentinc/cp-kafka docker tag to v7.4.1
2023-07-31 10:04:12 +02:00
Kamil Mysliwiec
b72072e2cc Merge pull request #12149 from nestjs/dependabot/npm_and_yarn/mqtt-5.0.0
chore(deps-dev): bump mqtt from 4.3.7 to 5.0.0
2023-07-31 10:04:01 +02:00
Kamil Mysliwiec
2ca0dc4091 Merge pull request #12157 from nestjs/dependabot/npm_and_yarn/core-js-3.32.0
chore(deps-dev): bump core-js from 3.31.1 to 3.32.0
2023-07-31 10:03:27 +02:00
Kamil Mysliwiec
9f326a86d0 Merge pull request #12167 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.8.21
chore(deps-dev): bump @grpc/grpc-js from 1.8.18 to 1.8.21
2023-07-31 09:54:11 +02:00
Kamil Mysliwiec
ada29d72f4 Update Readme.md 2023-07-31 09:52:50 +02:00
Kamil Mysliwiec
695b802b63 Update Readme.md 2023-07-31 09:52:14 +02:00
Kamil Mysliwiec
49a41ae7fd Merge pull request #12158 from thorseraq/thorseraq/0728/intercepter-unit-test
test: remove redundant await
2023-07-31 09:02:11 +02:00
dependabot[bot]
f474472c98 chore(deps-dev): bump @grpc/grpc-js from 1.8.18 to 1.8.21
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.8.18 to 1.8.21.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.8.18...@grpc/grpc-js@1.8.21)

---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 01:08:07 +00:00
Alexey Filippov
e17f2859dc style: remove whitespace 2023-07-30 21:04:38 +03:00
Alexey Filippov
55da6fa4a4 fix(core): pass application config to nest container 2023-07-30 20:59:31 +03:00
Jay McDoniel
7d6d0e645b fix(core): create completed field on settlement for better tracking 2023-07-29 16:20:14 -07:00
Codby
2cb5f2c89a feat(common): added "fatal" as a log level (issue #11945) 2023-07-29 07:05:12 +03:00
Codby
ccf79e1b6a feat(core): added "fatal" as a log level (issue #11945) 2023-07-29 06:52:55 +03:00
x1a0t
068195262c test: remove redundant await 2023-07-28 11:18:35 +08:00
dependabot[bot]
8290d91564 chore(deps-dev): bump core-js from 3.31.1 to 3.32.0
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.31.1 to 3.32.0.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.32.0/packages/core-js)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-28 00:59:57 +00:00
dependabot[bot]
54b9e703a0 chore(deps-dev): bump amqp-connection-manager from 4.1.13 to 4.1.14
Bumps [amqp-connection-manager](https://github.com/jwalton/node-amqp-connection-manager) from 4.1.13 to 4.1.14.
- [Release notes](https://github.com/jwalton/node-amqp-connection-manager/releases)
- [Changelog](https://github.com/jwalton/node-amqp-connection-manager/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jwalton/node-amqp-connection-manager/compare/v4.1.13...v4.1.14)

---
updated-dependencies:
- dependency-name: amqp-connection-manager
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-28 00:04:52 +00:00
Kamil Mysliwiec
2b1b63a74f Merge pull request #12147 from Tony133/chore/update-fastify-view-interface
chore(platform-fastify): update fastify view interface
2023-07-26 08:10:15 +02:00
dependabot[bot]
aad3cb1517 chore(deps-dev): bump mqtt from 4.3.7 to 5.0.0
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 4.3.7 to 5.0.0.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.OLD.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v4.3.7...v5.0.0)

---
updated-dependencies:
- dependency-name: mqtt
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 00:39:08 +00:00
dependabot[bot]
b3ed33929d chore(deps-dev): bump @types/node from 20.4.4 to 20.4.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.4 to 20.4.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 00:38:33 +00:00
Tony133
db2d3ae41f chore(): update fastify view interface 2023-07-25 18:32:18 +02:00
renovate[bot]
b6b4211d65 chore(deps): update confluentinc/cp-kafka docker tag to v7.4.1 2023-07-25 09:07:05 +00:00
renovate[bot]
0d18a52691 fix(deps): update dependency @nestjs/mercurius to v12.0.4 2023-07-25 08:00:08 +00:00
Kamil Myśliwiec
5052674adb test: update container unit tests 2023-07-24 12:40:31 +02:00
Kamil Myśliwiec
0d61789307 test: update container unit tests 2023-07-24 12:33:14 +02:00
Kamil Myśliwiec
7e3da2253b feat(core): discover by decorator, explorer pattern 2023-07-24 11:32:42 +02:00
MohammadReza Momeni
ccca642b9e revert: revert a7c5
This reverts commit a7c59634d6.
2023-07-24 08:02:53 +03:30
MohammadReza Momeni
a7c59634d6 chore(common): use better generic 2023-07-23 11:57:37 +03:30
MohammadReza Momeni
e1bac6e04b fix(common): fix custom multi file validator 2023-07-22 15:07:12 +03:30
207 changed files with 79535 additions and 55567 deletions

View File

@@ -1,9 +1,31 @@
version: 2
version: 2.1
parameters:
check-legacy-node-version:
type: boolean
default: false
legacy-node-version:
type: string
default: '14.21.3'
maintenance-node-version:
type: string
default: '16.20'
active-node-version:
type: string
default: '18.17'
current-node-version:
type: string
default: '20.5'
aliases:
- &restore-cache
restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- &save-cache
save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- &install-deps
run:
name: Install dependencies
@@ -17,70 +39,89 @@ aliases:
name: Test
command: npm run test
unit-tests-template: &unit-tests-template
working_directory: ~/nest
steps:
- checkout
- *restore-cache
- *install-deps
- *build-packages
- *run-unit-tests
jobs:
build:
working_directory: ~/nest
docker:
- image: cimg/node:16.20
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
steps:
- checkout
- run:
name: Update NPM version
command: 'sudo npm install -g npm@^8'
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm ci --legacy-peer-deps
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Build
command: npm run build
test_node_16:
working_directory: ~/nest
docker:
- image: cimg/node:16.20
steps:
- checkout
command: 'sudo npm install -g npm@^9'
- *restore-cache
- *install-deps
- *save-cache
- *build-packages
- run:
name: Test (coverage)
command: npm run test:cov
- run:
name: Collect coverage
command: npm run coverage
- store_artifacts:
path: coverage
test_node_18:
<<: *unit-tests-template
test:
parameters:
node-version:
type: string
working_directory: ~/nest
docker:
- image: cimg/node:18.16
test_node_19:
<<: *unit-tests-template
docker:
- image: cimg/node:19.9
- image: cimg/node:<< parameters.node-version >>
steps:
- when:
condition:
and:
- equal:
[
'<< parameters.node-version >>',
'<< pipeline.parameters.legacy-node-version >>',
]
- not: << pipeline.parameters.check-legacy-node-version >>
steps:
- run:
name: Skip
command: |
echo Skipping
- when:
condition:
or:
- not:
equal:
[
'<< parameters.node-version >>',
'<< pipeline.parameters.legacy-node-version >>',
]
- << pipeline.parameters.check-legacy-node-version >>
steps:
- checkout
- *restore-cache
- *install-deps
- *build-packages
- when:
condition:
equal:
[
'<< parameters.node-version >>',
'<< pipeline.parameters.maintenance-node-version >>',
]
steps:
- run:
name: Test (coverage)
command: npm run test:cov
- run:
name: Collect coverage
command: npm run coverage
- store_artifacts:
path: coverage
- when:
condition:
not:
equal:
[
'<< parameters.node-version >>',
'<< pipeline.parameters.maintenance-node-version >>',
]
steps:
- *run-unit-tests
lint:
working_directory: ~/nest
docker:
- image: circleci/node:16
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
steps:
- checkout
- *restore-cache
@@ -105,9 +146,9 @@ jobs:
- run:
name: Upgrade Node.js
command: |
nvm install v16
nvm install << pipeline.parameters.maintenance-node-version >>
node -v
nvm alias default v16
nvm alias default << pipeline.parameters.maintenance-node-version >>
- run:
name: Install Docker Compose
command: |
@@ -130,7 +171,7 @@ jobs:
codechecks_benchmarks:
working_directory: ~/nest
docker:
- image: cimg/node:16.20
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
steps:
- checkout
- *restore-cache
@@ -146,9 +187,9 @@ jobs:
samples:
working_directory: ~/nest
docker:
- image: cimg/node:16.20
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
environment:
- DISABLE_OPENCOLLECTIVE: true
DISABLE_OPENCOLLECTIVE: 'true'
steps:
- checkout
- *restore-cache
@@ -158,16 +199,21 @@ jobs:
command: npm run build:samples
workflows:
version: 2
build-and-test:
jobs:
- build
- test_node_16:
requires:
- build
- test_node_18:
- test:
requires:
- build
matrix:
parameters:
node-version:
[
'<< pipeline.parameters.legacy-node-version >>',
'<< pipeline.parameters.maintenance-node-version >>',
'<< pipeline.parameters.active-node-version >>',
'<< pipeline.parameters.current-node-version >>',
]
- lint:
requires:
- build

View File

@@ -23,6 +23,7 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-array-constructor': 'off',
},
},
{

View File

@@ -46,7 +46,7 @@ body:
label: "Steps to reproduce"
description: |
How the issue manifests?
You could leave this blank if you alread write this in your reproduction code
You could leave this blank if you already write this in your reproduction code
placeholder: |
1. `npm ci`
2. `npm start:dev`

View File

@@ -21,7 +21,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.

View File

@@ -164,7 +164,7 @@ You will need [Node.js](https://nodejs.org) version >= 10.13.0 (except for v13).
1. After cloning the repo, run:
```bash
$ npm ci # (or yarn install)
$ npm ci --legacy-peer-deps # (or yarn install)
```
2. In order to prepare your environment run `prepare.sh` shell script:

View File

@@ -23,7 +23,7 @@
## Description
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="_blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>
@@ -34,10 +34,10 @@ Nest is a framework for building efficient, scalable <a href="https://nodejs.org
## Getting started
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
* [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
- To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
- 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
- [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
- [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
## Questions
@@ -56,10 +56,13 @@ With official support, you can get expert help straight from Nest core team. We
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
#### Principal Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
@@ -69,8 +72,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td><td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
@@ -86,7 +88,10 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Silver Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td>
<td><a href="https://immediateedgeapp.org/" target="_blank"><img src="https://nestjs.com/img/immediate-edge-logo.png" width="120" valign="middle" /></td>
</tr>
</table>
#### Sponsors
@@ -111,6 +116,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
</tr></table>
## Backers
@@ -119,9 +127,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
## Stay in touch
* Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)
- Author - [Kamil Myśliwiec](https://x.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- X - [@nestframework](https://x.com/nestframework)
## License

View File

@@ -0,0 +1,59 @@
import { Test, TestingModule } from '@nestjs/testing';
import { DiscoveryService } from '@nestjs/core';
import { expect } from 'chai';
import { AppModule } from '../src/app.module';
import { WebhooksExplorer } from '../src/webhooks.explorer';
import { NonAppliedDecorator } from '../src/decorators/non-applied.decorator';
describe('DiscoveryModule', () => {
let moduleRef: TestingModule;
beforeEach(async () => {
moduleRef = await Test.createTestingModule({
imports: [AppModule],
}).compile();
});
it('should discover all providers & handlers with corresponding annotations', async () => {
const webhooksExplorer = moduleRef.get(WebhooksExplorer);
expect(webhooksExplorer.getWebhooks()).to.be.eql([
{
handlers: [
{
event: 'start',
methodName: 'onStart',
},
],
name: 'cleanup',
},
{
handlers: [
{
event: 'start',
methodName: 'onStart',
},
],
name: 'flush',
},
]);
});
it('should return an empty array if no providers were found for a given discoverable decorator', () => {
const discoveryService = moduleRef.get(DiscoveryService);
const providers = discoveryService.getProviders({
metadataKey: NonAppliedDecorator.KEY,
});
expect(providers).to.be.eql([]);
});
it('should return an empty array if no controllers were found for a given discoverable decorator', () => {
const discoveryService = moduleRef.get(DiscoveryService);
const controllers = discoveryService.getControllers({
metadataKey: NonAppliedDecorator.KEY,
});
expect(controllers).to.be.eql([]);
});
});

View File

@@ -0,0 +1,10 @@
import { Module } from '@nestjs/common';
import { DiscoveryModule } from '@nestjs/core';
import { MyWebhookModule } from './my-webhook/my-webhook.module';
import { WebhooksExplorer } from './webhooks.explorer';
@Module({
imports: [MyWebhookModule, DiscoveryModule],
providers: [WebhooksExplorer],
})
export class AppModule {}

View File

@@ -0,0 +1,9 @@
import { DiscoveryService } from '@nestjs/core';
/**
* This decorator must not be used anywhere!
*
* This will be used to test the scenario where we are trying to retrieving
* metadata for a discoverable decorator that was not applied to any class.
*/
export const NonAppliedDecorator = DiscoveryService.createDecorator();

View File

@@ -0,0 +1,6 @@
import { DiscoveryService } from '@nestjs/core';
export const Webhook = DiscoveryService.createDecorator<{ name: string }>();
export const WebhookHandler = DiscoveryService.createDecorator<{
event: string;
}>();

View File

@@ -0,0 +1,9 @@
import { Webhook, WebhookHandler } from '../decorators/webhook.decorators';
@Webhook({ name: 'cleanup' })
export class CleanupWebhook {
@WebhookHandler({ event: 'start' })
onStart() {
console.log('cleanup started');
}
}

View File

@@ -0,0 +1,9 @@
import { Webhook, WebhookHandler } from '../decorators/webhook.decorators';
@Webhook({ name: 'flush' })
export class FlushWebhook {
@WebhookHandler({ event: 'start' })
onStart() {
console.log('flush started');
}
}

View File

@@ -0,0 +1,6 @@
import { Module } from '@nestjs/common';
import { CleanupWebhook } from './cleanup.webhook';
import { FlushWebhook } from './flush.webhook';
@Module({ providers: [CleanupWebhook, FlushWebhook] })
export class MyWebhookModule {}

View File

@@ -0,0 +1,39 @@
import { Injectable } from '@nestjs/common';
import { DiscoveryService, MetadataScanner } from '@nestjs/core';
import { Webhook, WebhookHandler } from './decorators/webhook.decorators';
@Injectable()
export class WebhooksExplorer {
constructor(
private readonly discoveryService: DiscoveryService,
private readonly metadataScanner: MetadataScanner,
) {}
getWebhooks() {
const webhooks = this.discoveryService.getProviders({
metadataKey: Webhook.KEY,
});
return webhooks.map(wrapper => {
const { name } = this.discoveryService.getMetadataByDecorator(
Webhook,
wrapper,
);
return {
name,
handlers: this.metadataScanner
.getAllMethodNames(wrapper.metatype.prototype)
.map(methodName => {
const { event } = this.discoveryService.getMetadataByDecorator(
WebhookHandler,
wrapper,
methodName,
);
return {
methodName,
event,
};
}),
};
});
}
}

View File

@@ -0,0 +1,40 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",
"paths": {
"@nestjs/common": ["../../packages/common"],
"@nestjs/common/*": ["../../packages/common/*"],
"@nestjs/core": ["../../packages/core"],
"@nestjs/core/*": ["../../packages/core/*"],
"@nestjs/microservices": ["../../packages/microservices"],
"@nestjs/microservices/*": ["../../packages/microservices/*"],
"@nestjs/websockets": ["../../packages/websockets"],
"@nestjs/websockets/*": ["../../packages/websockets/*"],
"@nestjs/testing": ["../../packages/testing"],
"@nestjs/testing/*": ["../../packages/testing/*"],
"@nestjs/platform-express": ["../../packages/platform-express"],
"@nestjs/platform-express/*": ["../../packages/platform-express/*"],
"@nestjs/platform-socket.io": ["../../packages/platform-socket.io"],
"@nestjs/platform-socket.io/*": ["../../packages/platform-socket.io/*"],
"@nestjs/platform-ws": ["../../packages/platform-ws"],
"@nestjs/platform-ws/*": ["../../packages/platform-ws/*"]
}
},
"include": [
"src/**/*",
"e2e/**/*"
],
"exclude": [
"node_modules",
]
}

View File

@@ -25,7 +25,7 @@ services:
- "9001:9001"
restart: always
mysql:
image: mysql:8.0.33
image: mysql:8.1.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
@@ -50,7 +50,7 @@ services:
zookeeper:
container_name: test-zookeeper
hostname: zookeeper
image: confluentinc/cp-zookeeper:7.4.0
image: confluentinc/cp-zookeeper:7.4.1
ports:
- "2181:2181"
environment:
@@ -59,7 +59,7 @@ services:
kafka:
container_name: test-kafka
hostname: kafka
image: confluentinc/cp-kafka:7.4.0
image: confluentinc/cp-kafka:7.4.1
depends_on:
- zookeeper
ports:

View File

@@ -118,14 +118,14 @@ describe('Optional factory provider deps', () => {
} catch (err) {
expect(err).to.be.instanceOf(UnknownDependenciesException);
expect(err.message).to
.equal(`Nest can't resolve dependencies of the POSSIBLY_MISSING_DEP (?). Please make sure that the argument MISSING_DEP at index [0] is available in the RootTestModule context.
.equal(`Nest can't resolve dependencies of the POSSIBLY_MISSING_DEP (?). Please make sure that the argument "MISSING_DEP" at index [0] is available in the RootTestModule context.
Potential solutions:
- Is RootTestModule a valid NestJS module?
- If MISSING_DEP is a provider, is it part of the current RootTestModule?
- If MISSING_DEP is exported from a separate @Module, is that module imported within RootTestModule?
- If "MISSING_DEP" is a provider, is it part of the current RootTestModule?
- If "MISSING_DEP" is exported from a separate @Module, is that module imported within RootTestModule?
@Module({
imports: [ /* the Module containing MISSING_DEP */ ]
imports: [ /* the Module containing "MISSING_DEP" */ ]
})
`);
}

View File

@@ -6,7 +6,7 @@ export class AppController {
@Sse('sse')
sse(): Observable<MessageEvent> {
return interval(1000).pipe(
map(_ => ({ data: { hello: 'world' } } as MessageEvent)),
map(_ => ({ data: { hello: 'world' } }) as MessageEvent),
);
}
}

View File

@@ -82,5 +82,21 @@ describe('WebSocketGateway', () => {
);
});
it(`should be able to get the pattern in a filter (when the error comes from a known handler)`, async () => {
app = await createNestApp(ApplicationGateway);
await app.listen(3000);
ws = io('http://localhost:8080');
ws.emit('getClientWithError', {
test: 'test',
});
await new Promise<void>(resolve =>
ws.on('exception', data => {
expect(data.pattern).to.be.eql('getClientWithError');
resolve();
}),
);
});
afterEach(() => app.close());
});

View File

@@ -1,10 +1,13 @@
import { UseInterceptors } from '@nestjs/common';
import { UseFilters, UseInterceptors } from '@nestjs/common';
import {
MessageBody,
SubscribeMessage,
WebSocketGateway,
WsException,
} from '@nestjs/websockets';
import { RequestInterceptor } from './request.interceptor';
import { throwError } from 'rxjs';
import { RequestFilter } from './request.filter';
@WebSocketGateway(8080)
export class ApplicationGateway {
@@ -24,4 +27,10 @@ export class ApplicationGateway {
data: { ...data, path: client.pattern },
};
}
@UseFilters(RequestFilter)
@SubscribeMessage('getClientWithError')
getPathCalledWithError() {
return throwError(() => new WsException('This is an error'));
}
}

View File

@@ -0,0 +1,12 @@
import { ArgumentsHost, Catch, ExceptionFilter } from '@nestjs/common';
import { WsException } from '@nestjs/websockets';
@Catch(WsException)
export class RequestFilter implements ExceptionFilter {
catch(exception: WsException, host: ArgumentsHost) {
const wsCtx = host.switchToWs();
const pattern = wsCtx.getPattern();
const client = wsCtx.getClient();
client.emit('exception', { pattern, message: exception.message });
}
}

View File

@@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "10.1.2"
"version": "10.2.8"
}

7689
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "10.0.0",
"version": "10.2.7",
"description": "Modern, fast, powerful node.js web framework",
"homepage": "https://nestjs.com",
"repository": {
@@ -64,7 +64,7 @@
"cli-color": "2.0.3",
"cors": "2.8.5",
"express": "4.18.2",
"fast-json-stringify": "5.7.0",
"fast-json-stringify": "5.8.0",
"fast-safe-stringify": "2.1.1",
"graphql-subscriptions": "2.0.0",
"iterare": "1.2.1",
@@ -72,67 +72,67 @@
"path-to-regexp": "3.2.0",
"reflect-metadata": "0.1.13",
"rxjs": "7.8.1",
"socket.io": "4.7.1",
"tslib": "2.6.1",
"socket.io": "4.7.2",
"tslib": "2.6.2",
"uid": "2.0.2",
"uuid": "9.0.0"
"uuid": "9.0.1"
},
"devDependencies": {
"@apollo/server": "4.7.5",
"@apollo/server": "4.9.5",
"@codechecks/client": "0.1.12",
"@commitlint/cli": "17.6.7",
"@commitlint/config-angular": "17.6.7",
"@fastify/cors": "8.3.0",
"@commitlint/cli": "18.2.0",
"@commitlint/config-angular": "18.1.0",
"@fastify/cors": "8.4.0",
"@fastify/formbody": "7.4.0",
"@fastify/middie": "8.3.0",
"@fastify/multipart": "7.7.3",
"@fastify/static": "6.10.2",
"@fastify/view": "8.0.0",
"@grpc/grpc-js": "1.8.18",
"@grpc/proto-loader": "0.7.8",
"@nestjs/apollo": "12.0.4",
"@nestjs/graphql": "12.0.7",
"@fastify/multipart": "8.0.0",
"@fastify/static": "6.12.0",
"@fastify/view": "8.2.0",
"@grpc/grpc-js": "1.9.7",
"@grpc/proto-loader": "0.7.10",
"@nestjs/apollo": "12.0.9",
"@nestjs/graphql": "12.0.9",
"@nestjs/mongoose": "10.0.1",
"@nestjs/typeorm": "10.0.0",
"@types/amqplib": "0.10.1",
"@types/bytes": "3.1.1",
"@types/chai": "4.3.5",
"@types/chai-as-promised": "7.1.5",
"@types/cors": "2.8.13",
"@types/express": "4.17.17",
"@types/gulp": "4.0.13",
"@types/http-errors": "2.0.1",
"@types/mocha": "10.0.1",
"@types/node": "20.4.4",
"@types/sinon": "10.0.15",
"@types/supertest": "2.0.12",
"@types/ws": "8.5.5",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.62.0",
"amqp-connection-manager": "4.1.13",
"@types/amqplib": "0.10.3",
"@types/bytes": "3.1.3",
"@types/chai": "4.3.9",
"@types/chai-as-promised": "7.1.7",
"@types/cors": "2.8.15",
"@types/express": "4.17.20",
"@types/gulp": "4.0.16",
"@types/http-errors": "2.0.3",
"@types/mocha": "10.0.3",
"@types/node": "20.8.10",
"@types/sinon": "10.0.20",
"@types/supertest": "2.0.15",
"@types/ws": "8.5.8",
"@typescript-eslint/eslint-plugin": "6.9.0",
"@typescript-eslint/parser": "6.9.0",
"amqp-connection-manager": "4.1.14",
"amqplib": "0.10.3",
"artillery": "1.7.9",
"body-parser": "1.20.2",
"bytes": "3.1.2",
"cache-manager": "5.2.3",
"cache-manager": "5.2.4",
"cache-manager-redis-store": "3.0.1",
"chai": "4.3.7",
"chai": "4.3.10",
"chai-as-promised": "7.1.1",
"clang-format": "1.8.0",
"commitlint-circle": "1.0.0",
"concurrently": "8.2.0",
"conventional-changelog": "4.0.0",
"core-js": "3.31.1",
"concurrently": "8.2.2",
"conventional-changelog": "5.1.0",
"core-js": "3.33.1",
"coveralls": "3.1.1",
"delete-empty": "3.0.0",
"engine.io-client": "6.5.1",
"eslint": "8.45.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"engine.io-client": "6.5.2",
"eslint": "8.52.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.29.0",
"eventsource": "2.0.2",
"fancy-log": "2.0.0",
"fastify": "4.20.0",
"graphql": "16.7.1",
"fastify": "4.24.3",
"graphql": "16.8.1",
"graphql-tools": "9.0.0",
"gulp": "4.0.2",
"gulp-clang-format": "1.0.27",
@@ -148,32 +148,32 @@
"kafkajs": "2.2.4",
"lerna": "2.11.0",
"lerna-changelog": "2.2.0",
"light-my-request": "5.10.0",
"lint-staged": "13.2.3",
"light-my-request": "5.11.0",
"lint-staged": "15.0.2",
"markdown-table": "2.0.0",
"merge-graphql-schemas": "1.7.8",
"mocha": "10.2.0",
"mongoose": "7.4.1",
"mqtt": "4.3.7",
"mongoose": "7.6.3",
"mqtt": "5.1.3",
"multer": "1.4.4",
"mysql2": "3.5.2",
"nats": "2.15.1",
"mysql2": "3.6.2",
"nats": "2.17.0",
"nodemon": "3.0.1",
"nyc": "15.1.0",
"prettier": "3.0.0",
"redis": "4.6.7",
"nyc": "14.1.1",
"prettier": "3.0.3",
"redis": "4.6.10",
"rxjs-compat": "6.6.7",
"sinon": "15.2.0",
"sinon": "17.0.0",
"sinon-chai": "3.7.0",
"socket.io-client": "4.7.1",
"socket.io-client": "4.7.2",
"subscriptions-transport-ws": "0.11.0",
"supertest": "6.3.3",
"ts-morph": "19.0.0",
"ts-morph": "20.0.0",
"ts-node": "10.9.1",
"typeorm": "0.3.17",
"typescript": "5.1.6",
"typescript": "5.2.2",
"wrk": "1.2.1",
"ws": "8.13.0"
"ws": "8.14.2"
},
"engines": {
"node": ">= 16"

View File

@@ -23,7 +23,7 @@
## Description
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="_blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>
@@ -34,10 +34,10 @@ Nest is a framework for building efficient, scalable <a href="https://nodejs.org
## Getting started
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
* [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
- To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
- 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
- [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
- [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
## Questions
@@ -56,10 +56,13 @@ With official support, you can get expert help straight from Nest core team. We
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
#### Principal Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
@@ -69,8 +72,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td><td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
@@ -86,7 +88,10 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Silver Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td>
<td><a href="https://immediateedgeapp.org/" target="_blank"><img src="https://nestjs.com/img/immediate-edge-logo.png" width="120" valign="middle" /></td>
</tr>
</table>
#### Sponsors
@@ -111,6 +116,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
</tr></table>
## Backers
@@ -119,9 +127,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
## Stay in touch
* Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)
- Author - [Kamil Myśliwiec](https://x.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- X - [@nestframework](https://x.com/nestframework)
## License

View File

@@ -111,7 +111,7 @@ export const Head = createMappingDecorator(RequestMethod.HEAD);
export const All = createMappingDecorator(RequestMethod.ALL);
/**
* Route handler (method) Decorator. Routes all HTTP requests to the specified path.
* Route handler (method) Decorator. Routes HTTP SEARCH requests to the specified path.
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
*

View File

@@ -3,6 +3,7 @@ import { types } from 'util';
import { HttpStatus } from '../enums';
import { isFunction } from '../utils/shared.utils';
import { StreamableFileOptions, StreamableHandlerResponse } from './interfaces';
import { Logger } from '../services';
/**
* @see [Streaming files](https://docs.nestjs.com/techniques/streaming-files)
@@ -11,6 +12,7 @@ import { StreamableFileOptions, StreamableHandlerResponse } from './interfaces';
*/
export class StreamableFile {
private readonly stream: Readable;
protected logger = new Logger('StreamableFile');
protected handleError: (
err: Error,
@@ -28,6 +30,10 @@ export class StreamableFile {
res.send(err.message);
};
protected logError: (err: Error) => void = (err: Error) => {
this.logger.error(err.message, err.stack);
};
constructor(buffer: Uint8Array, options?: StreamableFileOptions);
constructor(readable: Readable, options?: StreamableFileOptions);
constructor(
@@ -74,4 +80,13 @@ export class StreamableFile {
this.handleError = handler;
return this;
}
get errorLogger() {
return this.logError;
}
setErrorLogger(handler: (err: Error) => void) {
this.logError = handler;
return this;
}
}

View File

@@ -28,6 +28,7 @@ export {
HttpServer,
HttpExceptionBody,
HttpExceptionBodyMessage,
HttpRedirectResponse,
INestApplication,
INestApplicationContext,
INestMicroservice,

View File

@@ -0,0 +1,6 @@
import { HttpStatus } from '../../enums';
export interface HttpRedirectResponse {
url: string;
statusCode: HttpStatus;
}

View File

@@ -1,4 +1,5 @@
export * from './http-exception-body.interface';
export * from './http-redirect-response.interface';
export * from './http-server.interface';
export * from './message-event.interface';
export * from './raw-body-request.interface';

View File

@@ -51,7 +51,8 @@ export interface ConfigurableModuleBuilderOptions {
export class ConfigurableModuleBuilder<
ModuleOptions,
StaticMethodKey extends string = typeof DEFAULT_METHOD_KEY,
FactoryClassMethodKey extends string = typeof DEFAULT_FACTORY_CLASS_METHOD_KEY,
FactoryClassMethodKey extends
string = typeof DEFAULT_FACTORY_CLASS_METHOD_KEY,
ExtraModuleDefinitionOptions = {},
> {
protected staticMethodKey: StaticMethodKey;

View File

@@ -28,7 +28,8 @@ export type ConfigurableModuleOptionsFactory<
*/
export interface ConfigurableModuleAsyncOptions<
ModuleOptions,
FactoryClassMethodKey extends string = typeof DEFAULT_FACTORY_CLASS_METHOD_KEY,
FactoryClassMethodKey extends
string = typeof DEFAULT_FACTORY_CLASS_METHOD_KEY,
> extends Pick<ModuleMetadata, 'imports'> {
/**
* Injection token resolving to an existing provider. The provider must implement

View File

@@ -15,7 +15,8 @@ import { ConfigurableModuleAsyncOptions } from './configurable-module-async-opti
export type ConfigurableModuleCls<
ModuleOptions,
MethodKey extends string = typeof DEFAULT_METHOD_KEY,
FactoryClassMethodKey extends string = typeof DEFAULT_FACTORY_CLASS_METHOD_KEY,
FactoryClassMethodKey extends
string = typeof DEFAULT_FACTORY_CLASS_METHOD_KEY,
ExtraModuleDefinitionOptions = {},
> = {
new (): any;

View File

@@ -42,8 +42,7 @@ export function getInjectionProviders(
// get injection tokens of the matched providers, if any
search = match
.filter(p => (p as any)?.inject)
.map(p => (p as FactoryProvider).inject)
.flat()
.flatMap(p => (p as FactoryProvider).inject)
.map(mapInjectToTokens);
}
return result;

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/common",
"version": "10.1.2",
"version": "10.2.8",
"description": "Nest - modern, fast, powerful node.js web framework (@common)",
"author": "Kamil Mysliwiec",
"homepage": "https://nestjs.com",
@@ -19,7 +19,7 @@
"license": "MIT",
"dependencies": {
"iterare": "1.2.1",
"tslib": "2.6.1",
"tslib": "2.6.2",
"uid": "2.0.2"
},
"peerDependencies": {

View File

@@ -16,7 +16,9 @@ export abstract class FileValidator<
* Indicates if this file should be considered valid, according to the options passed in the constructor.
* @param file the file from the request object
*/
abstract isValid(file?: TFile): boolean | Promise<boolean>;
abstract isValid(
file?: TFile | TFile[] | Record<string, TFile[]>,
): boolean | Promise<boolean>;
/**
* Builds an error message in case the validation fails.

View File

@@ -179,7 +179,7 @@ export class ValidationPipe implements PipeTransform<any> {
if (type === 'custom' && !this.validateCustomDecorators) {
return false;
}
const types = [String, Boolean, Number, Array, Object, Buffer];
const types = [String, Boolean, Number, Array, Object, Buffer, Date];
return !types.some(t => metatype === t) && !isNil(metatype);
}

View File

@@ -26,6 +26,7 @@ const DEFAULT_LOG_LEVELS: LogLevel[] = [
'warn',
'debug',
'verbose',
'fatal',
];
const dateTimeFormatter = new Intl.DateTimeFormat(undefined, {
@@ -145,6 +146,23 @@ export class ConsoleLogger implements LoggerService {
this.printMessages(messages, context, 'verbose');
}
/**
* Write a 'fatal' level log, if the configured level allows for it.
* Prints to `stdout` with newline.
*/
fatal(message: any, context?: string): void;
fatal(message: any, ...optionalParams: [...any, string?]): void;
fatal(message: any, ...optionalParams: any[]) {
if (!this.isLevelEnabled('fatal')) {
return;
}
const { messages, context } = this.getContextAndMessagesToPrint([
message,
...optionalParams,
]);
this.printMessages(messages, context, 'fatal');
}
/**
* Set log levels
* @param levels log levels
@@ -227,10 +245,18 @@ export class ConsoleLogger implements LoggerService {
}
protected stringifyMessage(message: unknown, logLevel: LogLevel) {
// If the message is a function, call it and re-resolve its value.
return isFunction(message)
? this.stringifyMessage(message(), logLevel)
: isPlainObject(message) || Array.isArray(message)
if (isFunction(message)) {
const messageAsStr = Function.prototype.toString.call(message);
const isClass = messageAsStr.startsWith('class ');
if (isClass) {
// If the message is a class, we will display the class name.
return this.stringifyMessage(message.name, logLevel);
}
// If the message is a non-class function, call it and re-resolve its value.
return this.stringifyMessage(message(), logLevel);
}
return isPlainObject(message) || Array.isArray(message)
? `${this.colorize('Object:', logLevel)}\n${JSON.stringify(
message,
(key, value) =>
@@ -330,6 +356,8 @@ export class ConsoleLogger implements LoggerService {
return clc.red;
case 'verbose':
return clc.cyanBright;
case 'fatal':
return clc.bold;
default:
return clc.green;
}

View File

@@ -6,7 +6,7 @@ import { isLogLevelEnabled } from './utils';
/**
* @publicApi
*/
export type LogLevel = 'log' | 'error' | 'warn' | 'debug' | 'verbose';
export type LogLevel = 'log' | 'error' | 'warn' | 'debug' | 'verbose' | 'fatal';
/**
* @publicApi
@@ -37,6 +37,11 @@ export interface LoggerService {
*/
verbose?(message: any, ...optionalParams: any[]): any;
/**
* Write a 'fatal' level log.
*/
fatal?(message: any, ...optionalParams: any[]): any;
/**
* Set log levels.
* @param levels log levels
@@ -185,6 +190,19 @@ export class Logger implements LoggerService {
this.localInstance?.verbose?.(message, ...optionalParams);
}
/**
* Write a 'fatal' level log.
*/
fatal(message: any, context?: string): void;
fatal(message: any, ...optionalParams: [...any, string?]): void;
@Logger.WrapBuffer
fatal(message: any, ...optionalParams: any[]) {
optionalParams = this.context
? optionalParams.concat(this.context)
: optionalParams;
this.localInstance?.fatal?.(message, ...optionalParams);
}
/**
* Write an 'error' level log.
*/
@@ -241,6 +259,16 @@ export class Logger implements LoggerService {
this.staticInstanceRef?.verbose?.(message, ...optionalParams);
}
/**
* Write a 'fatal' level log.
*/
static fatal(message: any, context?: string): void;
static fatal(message: any, ...optionalParams: [...any, string?]): void;
@Logger.WrapBuffer
static fatal(message: any, ...optionalParams: any[]) {
this.staticInstanceRef?.fatal?.(message, ...optionalParams);
}
/**
* Print buffered logs and detach buffer.
*/

View File

@@ -6,6 +6,7 @@ const LOG_LEVEL_VALUES: Record<LogLevel, number> = {
log: 2,
warn: 3,
error: 4,
fatal: 5,
};
/**

View File

@@ -1,7 +1,9 @@
import { expect } from 'chai';
import { Body, HostParam, Param, Query, Search } from '../../decorators';
import { RequestMethod } from '../../enums/request-method.enum';
import { All, Delete, Get, Patch, Post, Put } from '../../index';
import { All, Delete, Get, ParseIntPipe, Patch, Post, Put } from '../../index';
import { ROUTE_ARGS_METADATA } from '../../constants';
import { RouteParamtypes } from '../../enums/route-paramtypes.enum';
describe('@Get', () => {
const requestPath = 'test';
@@ -19,18 +21,28 @@ describe('@Get', () => {
it('should enhance class with expected request metadata', () => {
class Test {
@Get(requestPath)
public static test(@Param('id') params) {}
public static test(@Param('id', ParseIntPipe) params) {}
@Get(requestPathUsingArray)
public static testUsingArray(@Param('id') params) {}
}
const path = Reflect.getMetadata('path', Test.test);
const args = Reflect.getMetadata(
ROUTE_ARGS_METADATA,
Test.constructor,
'test',
);
const method = Reflect.getMetadata('method', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
const methodUsingArray = Reflect.getMetadata('method', Test.testUsingArray);
expect(path).to.be.eql(requestPath);
expect(args[`${RouteParamtypes.PARAM}:0`]).to.be.eql({
index: 0,
data: 'id',
pipes: [ParseIntPipe],
});
expect(method).to.be.eql(requestProps.method);
expect(pathUsingArray).to.be.eql(requestPathUsingArray);
expect(methodUsingArray).to.be.eql(requestPropsUsingArray.method);

View File

@@ -298,6 +298,34 @@ describe('Logger', () => {
);
});
});
describe('classes for message', () => {
let processStdoutWriteSpy: sinon.SinonSpy;
beforeEach(() => {
processStdoutWriteSpy = sinon.spy(process.stdout, 'write');
});
afterEach(() => {
processStdoutWriteSpy.restore();
});
it("should display class's name or empty for anonymous classes", () => {
const logger = new ConsoleLogger();
// in-line anonymous class
logger.log(class {});
// named class
class Test {
#privateField = 'private field';
publicField = 'public field';
}
logger.log(Test);
expect(processStdoutWriteSpy.firstCall.firstArg).to.include('');
expect(processStdoutWriteSpy.secondCall.firstArg).to.include(Test.name);
});
});
});
describe('[instance methods]', () => {

View File

@@ -23,7 +23,7 @@
## Description
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="_blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>
@@ -34,10 +34,10 @@ Nest is a framework for building efficient, scalable <a href="https://nodejs.org
## Getting started
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
* [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
- To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
- 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
- [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
- [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
## Questions
@@ -56,10 +56,13 @@ With official support, you can get expert help straight from Nest core team. We
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
#### Principal Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
@@ -69,8 +72,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td><td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
@@ -86,7 +88,10 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Silver Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td>
<td><a href="https://immediateedgeapp.org/" target="_blank"><img src="https://nestjs.com/img/immediate-edge-logo.png" width="120" valign="middle" /></td>
</tr>
</table>
#### Sponsors
@@ -111,6 +116,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
</tr></table>
## Backers
@@ -119,9 +127,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
## Stay in touch
* Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)
- Author - [Kamil Myśliwiec](https://x.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- X - [@nestframework](https://x.com/nestframework)
## License

View File

@@ -0,0 +1,153 @@
import { Type } from '@nestjs/common';
import { InstanceWrapper } from '../injector/instance-wrapper';
import { ModulesContainer } from '../injector/modules-container';
export class DiscoverableMetaHostCollection {
/**
* A map of class references to metadata keys.
*/
public static readonly metaHostLinks = new Map<Type | Function, string>();
/**
* A map of metadata keys to instance wrappers (providers) with the corresponding metadata key.
* The map is weakly referenced by the modules container (unique per application).
*/
private static readonly providersByMetaKey = new WeakMap<
ModulesContainer,
Map<string, Set<InstanceWrapper>>
>();
/**
* A map of metadata keys to instance wrappers (controllers) with the corresponding metadata key.
* The map is weakly referenced by the modules container (unique per application).
*/
private static readonly controllersByMetaKey = new WeakMap<
ModulesContainer,
Map<string, Set<InstanceWrapper>>
>();
/**
* Adds a link between a class reference and a metadata key.
* @param target The class reference.
* @param metadataKey The metadata key.
*/
public static addClassMetaHostLink(
target: Type | Function,
metadataKey: string,
) {
this.metaHostLinks.set(target, metadataKey);
}
/**
* Inspects a provider instance wrapper and adds it to the collection of providers
* if it has a metadata key.
* @param hostContainerRef A reference to the modules container.
* @param instanceWrapper A provider instance wrapper.
* @returns void
*/
public static inspectProvider(
hostContainerRef: ModulesContainer,
instanceWrapper: InstanceWrapper,
) {
return this.inspectInstanceWrapper(
hostContainerRef,
instanceWrapper,
this.providersByMetaKey,
);
}
/**
* Inspects a controller instance wrapper and adds it to the collection of controllers
* if it has a metadata key.
* @param hostContainerRef A reference to the modules container.
* @param instanceWrapper A controller's instance wrapper.
* @returns void
*/
public static inspectController(
hostContainerRef: ModulesContainer,
instanceWrapper: InstanceWrapper,
) {
return this.inspectInstanceWrapper(
hostContainerRef,
instanceWrapper,
this.controllersByMetaKey,
);
}
public static insertByMetaKey(
metaKey: string,
instanceWrapper: InstanceWrapper,
collection: Map<string, Set<InstanceWrapper>>,
) {
if (collection.has(metaKey)) {
const wrappers = collection.get(metaKey);
wrappers.add(instanceWrapper);
} else {
const wrappers = new Set<InstanceWrapper>();
wrappers.add(instanceWrapper);
collection.set(metaKey, wrappers);
}
}
public static getProvidersByMetaKey(
hostContainerRef: ModulesContainer,
metaKey: string,
): Set<InstanceWrapper> {
const wrappersByMetaKey = this.providersByMetaKey.get(hostContainerRef);
return wrappersByMetaKey?.get(metaKey) ?? new Set<InstanceWrapper>();
}
public static getControllersByMetaKey(
hostContainerRef: ModulesContainer,
metaKey: string,
): Set<InstanceWrapper> {
const wrappersByMetaKey = this.controllersByMetaKey.get(hostContainerRef);
return wrappersByMetaKey?.get(metaKey) ?? new Set<InstanceWrapper>();
}
private static inspectInstanceWrapper(
hostContainerRef: ModulesContainer,
instanceWrapper: InstanceWrapper,
wrapperByMetaKeyMap: WeakMap<
ModulesContainer,
Map<string, Set<InstanceWrapper>>
>,
) {
const metaKey =
DiscoverableMetaHostCollection.getMetaKeyByInstanceWrapper(
instanceWrapper,
);
if (!metaKey) {
return;
}
let collection: Map<string, Set<InstanceWrapper>>;
if (wrapperByMetaKeyMap.has(hostContainerRef)) {
collection = wrapperByMetaKeyMap.get(hostContainerRef);
} else {
collection = new Map<string, Set<InstanceWrapper>>();
wrapperByMetaKeyMap.set(hostContainerRef, collection);
}
this.insertByMetaKey(metaKey, instanceWrapper, collection);
}
private static getMetaKeyByInstanceWrapper(
instanceWrapper: InstanceWrapper<any>,
) {
return this.metaHostLinks.get(
// NOTE: Regarding the ternary statement below,
// - The condition `!wrapper.metatype` is needed because when we use `useValue`
// the value of `wrapper.metatype` will be `null`.
// - The condition `wrapper.inject` is needed here because when we use
// `useFactory`, the value of `wrapper.metatype` will be the supplied
// factory function.
// For both cases, we should use `wrapper.instance.constructor` instead
// of `wrapper.metatype` to resolve processor's class properly.
// But since calling `wrapper.instance` could degrade overall performance
// we must defer it as much we can.
instanceWrapper.metatype || instanceWrapper.inject
? instanceWrapper.instance?.constructor ?? instanceWrapper.metatype
: instanceWrapper.metatype,
);
}
}

View File

@@ -1,15 +1,48 @@
import { flatten, Injectable } from '@nestjs/common';
import {
CustomDecorator,
flatten,
Injectable,
SetMetadata,
} from '@nestjs/common';
import { uid } from 'uid';
import { InstanceWrapper } from '../injector/instance-wrapper';
import { Module } from '../injector/module';
import { ModulesContainer } from '../injector/modules-container';
import { DiscoverableMetaHostCollection } from './discoverable-meta-host-collection';
/**
* @publicApi
*/
export interface DiscoveryOptions {
export interface FilterByInclude {
/**
* List of modules to include (whitelist) into the discovery process.
*/
include?: Function[];
}
/**
* @publicApi
*/
export interface FilterByMetadataKey {
/**
* A key to filter controllers and providers by.
* Only instance wrappers with the specified metadata key will be returned.
*/
metadataKey?: string;
}
/**
* @publicApi
*/
export type DiscoveryOptions = FilterByInclude | FilterByMetadataKey;
/**
* @publicApi
*/
export type DiscoverableDecorator<T> = ((opts?: T) => CustomDecorator) & {
KEY: string;
};
/**
* @publicApi
*/
@@ -17,24 +50,107 @@ export interface DiscoveryOptions {
export class DiscoveryService {
constructor(private readonly modulesContainer: ModulesContainer) {}
getProviders(
/**
* Creates a decorator that can be used to decorate classes and methods with metadata.
* The decorator will also add the class to the collection of discoverable classes (by metadata key).
* Decorated classes can be discovered using the `getProviders` and `getControllers` methods.
* @returns A decorator function.
*/
static createDecorator<T>(): DiscoverableDecorator<T> {
const metadataKey = uid(21);
const decoratorFn =
(opts: T) =>
(target: object | Function, key?: string | symbol, descriptor?: any) => {
if (!descriptor) {
DiscoverableMetaHostCollection.addClassMetaHostLink(
target as Function,
metadataKey,
);
}
SetMetadata(metadataKey, opts ?? {})(target, key, descriptor);
};
decoratorFn.KEY = metadataKey;
return decoratorFn as DiscoverableDecorator<T>;
}
/**
* Returns an array of instance wrappers (providers).
* Depending on the options, the array will contain either all providers or only providers with the specified metadata key.
* @param options Discovery options.
* @param modules A list of modules to filter by.
* @returns An array of instance wrappers (providers).
*/
public getProviders(
options: DiscoveryOptions = {},
modules: Module[] = this.getModules(options),
): InstanceWrapper[] {
if ('metadataKey' in options) {
const providers = DiscoverableMetaHostCollection.getProvidersByMetaKey(
this.modulesContainer,
options.metadataKey,
);
return Array.from(providers);
}
const providers = modules.map(item => [...item.providers.values()]);
return flatten(providers);
}
getControllers(
/**
* Returns an array of instance wrappers (controllers).
* Depending on the options, the array will contain either all controllers or only controllers with the specified metadata key.
* @param options Discovery options.
* @param modules A list of modules to filter by.
* @returns An array of instance wrappers (controllers).
*/
public getControllers(
options: DiscoveryOptions = {},
modules: Module[] = this.getModules(options),
): InstanceWrapper[] {
if ('metadataKey' in options) {
const controllers =
DiscoverableMetaHostCollection.getControllersByMetaKey(
this.modulesContainer,
options.metadataKey,
);
return Array.from(controllers);
}
const controllers = modules.map(item => [...item.controllers.values()]);
return flatten(controllers);
}
/**
* Retrieves metadata from the specified instance wrapper.
* @param decorator The decorator to retrieve metadata of.
* @param instanceWrapper Reference to the instance wrapper.
* @param methodKey An optional method key to retrieve metadata from.
* @returns Discovered metadata.
*/
public getMetadataByDecorator<T extends DiscoverableDecorator<any>>(
decorator: T,
instanceWrapper: InstanceWrapper,
methodKey?: string,
): T extends DiscoverableDecorator<infer R> ? R | undefined : T | undefined {
if (methodKey) {
return Reflect.getMetadata(
decorator.KEY,
instanceWrapper.instance[methodKey],
);
}
const clsRef =
instanceWrapper.instance?.constructor ?? instanceWrapper.metatype;
return Reflect.getMetadata(decorator.KEY, clsRef);
}
/**
* Returns a list of modules to be used for discovery.
*/
protected getModules(options: DiscoveryOptions = {}): Module[] {
if (!options.include) {
const includeInOpts = 'include' in options;
if (!includeInOpts) {
const moduleRefs = [...this.modulesContainer.values()];
return moduleRefs;
}

View File

@@ -23,20 +23,31 @@ const getInstanceName = (instance: unknown): string => {
};
/**
* Returns the name of the dependency
* Returns the name of the dependency.
* Tries to get the class name, otherwise the string value
* (= injection token). As fallback it returns '+'
* (= injection token). As fallback to any falsy value for `dependency`, it
* returns `fallbackValue`
* @param dependency The name of the dependency to be displayed
* @param fallbackValue The fallback value if the dependency is falsy
* @param disambiguated Whether dependency's name is disambiguated with double quotes
*/
const getDependencyName = (dependency: InjectorDependency): string =>
const getDependencyName = (
dependency: InjectorDependency | undefined,
fallbackValue: string,
disambiguated = true,
): string =>
// use class name
getInstanceName(dependency) ||
// use injection token (symbol)
(isSymbol(dependency) && dependency.toString()) ||
// use string directly
(dependency as string) ||
(dependency
? disambiguated
? `"${dependency as string}"`
: (dependency as string)
: undefined) ||
// otherwise
'+';
fallbackValue;
/**
* Returns the name of the module
@@ -54,14 +65,9 @@ export const UNKNOWN_DEPENDENCIES_MESSAGE = (
unknownDependencyContext: InjectorDependencyContext,
module: Module,
) => {
const {
index,
name = 'dependency',
dependencies,
key,
} = unknownDependencyContext;
const { index, name, dependencies, key } = unknownDependencyContext;
const moduleName = getModuleName(module);
const dependencyName = getDependencyName(name);
const dependencyName = getDependencyName(name, 'dependency');
const potentialSolutions =
// If module's name is well defined
@@ -90,7 +96,9 @@ Potential solutions:
message += `. Please make sure that the "${key.toString()}" property is available in the current context.${potentialSolutions}`;
return message;
}
const dependenciesName = (dependencies || []).map(getDependencyName);
const dependenciesName = (dependencies || []).map(dependencyName =>
getDependencyName(dependencyName, '+', false),
);
dependenciesName[index] = '?';
message += ` (`;

View File

@@ -5,6 +5,7 @@ import {
} from '@nestjs/common/constants';
import { Injectable, Type } from '@nestjs/common/interfaces';
import { ApplicationConfig } from '../application-config';
import { DiscoverableMetaHostCollection } from '../discovery/discoverable-meta-host-collection';
import {
CircularDependencyException,
UndefinedForwardRefException,
@@ -82,9 +83,8 @@ export class NestContainer {
if (!metatype) {
throw new UndefinedForwardRefException(scope);
}
const { type, dynamicMetadata, token } = await this.moduleCompiler.compile(
metatype,
);
const { type, dynamicMetadata, token } =
await this.moduleCompiler.compile(metatype);
if (this.modules.has(token)) {
return {
moduleRef: this.modules.get(token),
@@ -123,9 +123,8 @@ export class NestContainer {
}
const { token } = await this.moduleCompiler.compile(metatypeToReplace);
const { type, dynamicMetadata } = await this.moduleCompiler.compile(
newMetatype,
);
const { type, dynamicMetadata } =
await this.moduleCompiler.compile(newMetatype);
return {
moduleRef: await this.setModule(
@@ -219,11 +218,10 @@ export class NestContainer {
return;
}
const moduleRef = this.modules.get(token);
const { token: relatedModuleToken } = await this.moduleCompiler.compile(
relatedModule,
);
const { token: relatedModuleToken } =
await this.moduleCompiler.compile(relatedModule);
const related = this.modules.get(relatedModuleToken);
moduleRef.addRelatedModule(related);
moduleRef.addImport(related);
}
public addProvider(
@@ -238,7 +236,12 @@ export class NestContainer {
if (!moduleRef) {
throw new UnknownModuleException();
}
return moduleRef.addProvider(provider, enhancerSubtype) as Function;
const providerKey = moduleRef.addProvider(provider, enhancerSubtype);
const providerRef = moduleRef.getProviderByKey(providerKey);
DiscoverableMetaHostCollection.inspectProvider(this.modules, providerRef);
return providerKey as Function;
}
public addInjectable(
@@ -268,6 +271,12 @@ export class NestContainer {
}
const moduleRef = this.modules.get(token);
moduleRef.addController(controller);
const controllerRef = moduleRef.controllers.get(controller);
DiscoverableMetaHostCollection.inspectController(
this.modules,
controllerRef,
);
}
public clear() {
@@ -292,7 +301,7 @@ export class NestContainer {
if (target === globalModule || target === this.internalCoreModule) {
return;
}
target.addRelatedModule(globalModule);
target.addImport(globalModule);
}
public getDynamicMetadataByToken(token: string): Partial<DynamicModule>;

View File

@@ -8,5 +8,6 @@ export class SilentLogger extends Logger {
warn = noop;
debug = noop;
verbose = noop;
fatal = noop;
setLogLevels = noop;
}

View File

@@ -128,7 +128,10 @@ export abstract class ModuleRef extends AbstractInstanceResolver {
options?: ModuleRefGetOrResolveOpts,
): Promise<TResult | Array<TResult>>;
public abstract create<T = any>(type: Type<T>): Promise<T>;
public abstract create<T = any>(
type: Type<T>,
contextId?: ContextId,
): Promise<T>;
public introspect<T = any>(
token: Type<T> | string | symbol,
@@ -151,6 +154,7 @@ export abstract class ModuleRef extends AbstractInstanceResolver {
protected async instantiateClass<T = any>(
type: Type<T>,
moduleRef: Module,
contextId?: ContextId,
): Promise<T> {
const wrapper = new InstanceWrapper({
name: type && type.name,
@@ -166,6 +170,8 @@ export abstract class ModuleRef extends AbstractInstanceResolver {
const properties = await this.injector.resolveProperties(
wrapper,
moduleRef,
undefined,
contextId,
);
const instance = new type(...instances);
this.injector.applyProperties(instance, properties);
@@ -176,6 +182,7 @@ export abstract class ModuleRef extends AbstractInstanceResolver {
moduleRef,
undefined,
callback,
contextId,
);
} catch (err) {
reject(err);

View File

@@ -37,7 +37,7 @@ import { isDurable } from '../helpers/is-durable';
import { UuidFactory } from '../inspector/uuid-factory';
import { CONTROLLER_ID_KEY } from './constants';
import { NestContainer } from './container';
import { InstanceWrapper } from './instance-wrapper';
import { ContextId, InstanceWrapper } from './instance-wrapper';
import { ModuleRef, ModuleRefGetOrResolveOpts } from './module-ref';
export class Module {
@@ -240,11 +240,11 @@ export class Module {
return instanceWrapper;
}
public addProvider(provider: Provider): Provider | InjectionToken;
public addProvider(provider: Provider): InjectionToken;
public addProvider(
provider: Provider,
enhancerSubtype: EnhancerSubtype,
): Provider | InjectionToken;
): InjectionToken;
public addProvider(provider: Provider, enhancerSubtype?: EnhancerSubtype) {
if (this.isCustomProvider(provider)) {
if (this.isEntryProvider(provider.provide)) {
@@ -517,6 +517,13 @@ export class Module {
});
}
public addImport(moduleRef: Module) {
this._imports.add(moduleRef);
}
/**
* @deprecated
*/
public addRelatedModule(module: Module) {
this._imports.add(module);
}
@@ -626,11 +633,14 @@ export class Module {
);
}
public async create<T = any>(type: Type<T>): Promise<T> {
public async create<T = any>(
type: Type<T>,
contextId?: ContextId,
): Promise<T> {
if (!(type && isFunction(type) && type.prototype)) {
throw new InvalidClassException(type);
}
return this.instantiateClass<T>(type, self);
return this.instantiateClass<T>(type, self, contextId);
}
};
}

View File

@@ -7,6 +7,7 @@ export class SettlementSignal {
private readonly _refs = new Set();
private readonly settledPromise: Promise<unknown>;
private settleFn!: (err?: unknown) => void;
private completed = false;
constructor() {
this.settledPromise = new Promise<unknown>(resolve => {
@@ -18,6 +19,7 @@ export class SettlementSignal {
* Resolves the promise returned by `asPromise`.
*/
public complete() {
this.completed = true;
this.settleFn();
}
@@ -26,6 +28,7 @@ export class SettlementSignal {
* @param err Error to reject the promise returned by `asPromise` with.
*/
public error(err: unknown) {
this.completed = true;
this.settleFn(err);
}
@@ -51,6 +54,6 @@ export class SettlementSignal {
* @returns True if relationship is circular, false otherwise.
*/
public isCycle(wrapperId: string) {
return this._refs.has(wrapperId);
return !this.completed && this._refs.has(wrapperId);
}
}

View File

@@ -33,7 +33,8 @@ import { RouteInfoPathExtractor } from './route-info-path-extractor';
import { RoutesMapper } from './routes-mapper';
export class MiddlewareModule<
TAppOptions extends NestApplicationContextOptions = NestApplicationContextOptions,
TAppOptions extends
NestApplicationContextOptions = NestApplicationContextOptions,
> {
private readonly routerProxy = new RouterProxy();
private readonly exceptionFiltersCache = new WeakMap();

View File

@@ -87,29 +87,27 @@ export class RoutesMapper {
version === VERSION_NEUTRAL ? undefined : version;
const toRouteInfo = (item: RouteDefinition, prefix: string) =>
item.path
?.map(p => {
let endpointPath = modulePath ?? '';
endpointPath += this.normalizeGlobalPath(prefix) + addLeadingSlash(p);
item.path?.flatMap(p => {
let endpointPath = modulePath ?? '';
endpointPath += this.normalizeGlobalPath(prefix) + addLeadingSlash(p);
const routeInfo: RouteInfo = {
path: endpointPath,
method: item.requestMethod,
};
const version = item.version ?? controllerVersion;
if (version && versioningConfig) {
if (typeof version !== 'string' && Array.isArray(version)) {
return version.map(v => ({
...routeInfo,
version: toUndefinedIfNeural(v),
}));
}
routeInfo.version = toUndefinedIfNeural(version);
const routeInfo: RouteInfo = {
path: endpointPath,
method: item.requestMethod,
};
const version = item.version ?? controllerVersion;
if (version && versioningConfig) {
if (typeof version !== 'string' && Array.isArray(version)) {
return version.map(v => ({
...routeInfo,
version: toUndefinedIfNeural(v),
}));
}
routeInfo.version = toUndefinedIfNeural(version);
}
return routeInfo;
})
.flat() as RouteInfo[];
return routeInfo;
});
return []
.concat(routePath)

View File

@@ -36,7 +36,8 @@ import { Module } from './injector/module';
* @publicApi
*/
export class NestApplicationContext<
TOptions extends NestApplicationContextOptions = NestApplicationContextOptions,
TOptions extends
NestApplicationContextOptions = NestApplicationContextOptions,
>
extends AbstractInstanceResolver
implements INestApplicationContext

View File

@@ -157,13 +157,13 @@ export class NestFactoryStatic {
moduleCls: any,
options?: NestApplicationContextOptions,
): Promise<INestApplicationContext> {
const container = new NestContainer();
const applicationConfig = new ApplicationConfig();
const container = new NestContainer(applicationConfig);
const graphInspector = this.createGraphInspector(options, container);
this.setAbortOnError(options);
this.registerLoggerConfiguration(options);
const applicationConfig = undefined;
await this.initialize(
moduleCls,
container,

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "10.1.2",
"version": "10.2.8",
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -32,11 +32,11 @@
"fast-safe-stringify": "2.1.1",
"iterare": "1.2.1",
"path-to-regexp": "3.2.0",
"tslib": "2.6.1",
"tslib": "2.6.2",
"uid": "2.0.2"
},
"devDependencies": {
"@nestjs/common": "10.1.2"
"@nestjs/common": "10.2.8"
},
"peerDependencies": {
"@nestjs/common": "^10.0.0",

View File

@@ -231,6 +231,7 @@ export class RouterExplorer {
},
};
this.copyMetadataToCallback(targetCallback, routeHandler);
routerMethodRef(path, routeHandler);
this.graphInspector.insertEntrypointDefinition<HttpEntrypointMetadata>(
@@ -422,4 +423,17 @@ export class RouterExplorer {
}
return contextId;
}
private copyMetadataToCallback(
originalCallback: RouterProxyCallback,
targetCallback: Function,
) {
for (const key of Reflect.getMetadataKeys(originalCallback)) {
Reflect.defineMetadata(
key,
Reflect.getMetadata(key, originalCallback),
targetCallback,
);
}
}
}

View File

@@ -1,5 +1,38 @@
import { Type } from '@nestjs/common';
import { CustomDecorator, SetMetadata, Type } from '@nestjs/common';
import { isEmpty, isObject } from '@nestjs/common/utils/shared.utils';
import { uid } from 'uid';
/**
* @publicApi
*/
export interface CreateDecoratorOptions<TParam = any, TTransformed = TParam> {
/**
* The key for the metadata.
* @default uid(21)
*/
key?: string;
/**
* The transform function to apply to the metadata value.
* @default value => value
*/
transform?: (value: TParam) => TTransformed;
}
type CreateDecoratorWithTransformOptions<
TParam,
TTransformed = TParam,
> = CreateDecoratorOptions<TParam, TTransformed> &
Required<Pick<CreateDecoratorOptions<TParam, TTransformed>, 'transform'>>;
/**
* @publicApi
*/
export type ReflectableDecorator<TParam, TTransformed = TParam> = ((
opts?: TParam,
) => CustomDecorator) & {
KEY: string;
};
/**
* Helper class providing Nest reflection capabilities.
@@ -9,6 +42,49 @@ import { isEmpty, isObject } from '@nestjs/common/utils/shared.utils';
* @publicApi
*/
export class Reflector {
/**
* Creates a decorator that can be used to decorate classes and methods with metadata.
* Can be used as a strongly-typed alternative to `@SetMetadata`.
* @param options Decorator options.
* @returns A decorator function.
*/
static createDecorator<TParam>(
options?: CreateDecoratorOptions<TParam>,
): ReflectableDecorator<TParam>;
static createDecorator<TParam, TTransformed>(
options: CreateDecoratorWithTransformOptions<TParam, TTransformed>,
): ReflectableDecorator<TParam, TTransformed>;
static createDecorator<TParam, TTransformed = TParam>(
options: CreateDecoratorOptions<TParam, TTransformed> = {},
): ReflectableDecorator<TParam, TTransformed> {
const metadataKey = options.key ?? uid(21);
const decoratorFn =
(metadataValue: TParam) =>
(target: object | Function, key?: string | symbol, descriptor?: any) => {
const value = options.transform
? options.transform(metadataValue)
: metadataValue;
SetMetadata(metadataKey, value ?? {})(target, key, descriptor);
};
decoratorFn.KEY = metadataKey;
return decoratorFn as ReflectableDecorator<TParam, TTransformed>;
}
/**
* Retrieve metadata for a reflectable decorator for a specified target.
*
* @example
* `const roles = this.reflector.get(Roles, context.getHandler());`
*
* @param decorator reflectable decorator created through `Reflector.createDecorator`
* @param target context (decorated object) to retrieve metadata from
*
*/
public get<T extends ReflectableDecorator<any>>(
decorator: T,
target: Type<any> | Function,
): T extends ReflectableDecorator<any, infer R> ? R : unknown;
/**
* Retrieve metadata for a specified key for a specified target.
*
@@ -22,10 +98,43 @@ export class Reflector {
public get<TResult = any, TKey = any>(
metadataKey: TKey,
target: Type<any> | Function,
): TResult;
/**
* Retrieve metadata for a specified key or decorator for a specified target.
*
* @example
* `const roles = this.reflector.get<string[]>('roles', context.getHandler());`
*
* @param metadataKey lookup key or decorator for metadata to retrieve
* @param target context (decorated object) to retrieve metadata from
*
*/
public get<TResult = any, TKey = any>(
metadataKeyOrDecorator: TKey,
target: Type<any> | Function,
): TResult {
const metadataKey =
(metadataKeyOrDecorator as ReflectableDecorator<unknown>).KEY ??
metadataKeyOrDecorator;
return Reflect.getMetadata(metadataKey, target);
}
/**
* Retrieve metadata for a specified decorator for a specified set of targets.
*
* @param decorator lookup decorator for metadata to retrieve
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAll<T extends ReflectableDecorator<any>>(
decorator: T,
targets: (Type<any> | Function)[],
): T extends ReflectableDecorator<infer R>
? R extends Array<any>
? R
: R[]
: unknown;
/**
* Retrieve metadata for a specified key for a specified set of targets.
*
@@ -36,12 +145,34 @@ export class Reflector {
public getAll<TResult extends any[] = any[], TKey = any>(
metadataKey: TKey,
targets: (Type<any> | Function)[],
): TResult;
/**
* Retrieve metadata for a specified key or decorator for a specified set of targets.
*
* @param metadataKeyOrDecorator lookup key or decorator for metadata to retrieve
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAll<TResult extends any[] = any[], TKey = any>(
metadataKeyOrDecorator: TKey,
targets: (Type<any> | Function)[],
): TResult {
return (targets || []).map(target =>
this.get(metadataKey, target),
this.get(metadataKeyOrDecorator, target),
) as TResult;
}
/**
* Retrieve metadata for a specified decorator for a specified set of targets and merge results.
*
* @param decorator lookup decorator for metadata to retrieve
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAllAndMerge<T extends ReflectableDecorator<any>>(
decorator: T,
targets: (Type<any> | Function)[],
): T extends ReflectableDecorator<infer R> ? R : unknown;
/**
* Retrieve metadata for a specified key for a specified set of targets and merge results.
*
@@ -49,12 +180,23 @@ export class Reflector {
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAllAndMerge<TResult extends any[] = any[], TKey = any>(
public getAllAndMerge<TResult extends any[] | object = any[], TKey = any>(
metadataKey: TKey,
targets: (Type<any> | Function)[],
): TResult;
/**
* Retrieve metadata for a specified key or decorator for a specified set of targets and merge results.
*
* @param metadataKeyOrDecorator lookup key for metadata to retrieve
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAllAndMerge<TResult extends any[] | object = any[], TKey = any>(
metadataKeyOrDecorator: TKey,
targets: (Type<any> | Function)[],
): TResult {
const metadataCollection = this.getAll<TResult, TKey>(
metadataKey,
const metadataCollection = this.getAll<any[], TKey>(
metadataKeyOrDecorator,
targets,
).filter(item => item !== undefined);
@@ -75,6 +217,17 @@ export class Reflector {
});
}
/**
* Retrieve metadata for a specified decorator for a specified set of targets and return a first not undefined value.
*
* @param decorator lookup decorator for metadata to retrieve
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAllAndOverride<T extends ReflectableDecorator<any>>(
decorator: T,
targets: (Type<any> | Function)[],
): T extends ReflectableDecorator<infer R> ? R : unknown;
/**
* Retrieve metadata for a specified key for a specified set of targets and return a first not undefined value.
*
@@ -85,9 +238,20 @@ export class Reflector {
public getAllAndOverride<TResult = any, TKey = any>(
metadataKey: TKey,
targets: (Type<any> | Function)[],
): TResult;
/**
* Retrieve metadata for a specified key or decorator for a specified set of targets and return a first not undefined value.
*
* @param metadataKeyOrDecorator lookup key or metadata for metadata to retrieve
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAllAndOverride<TResult = any, TKey = any>(
metadataKeyOrDecorator: TKey,
targets: (Type<any> | Function)[],
): TResult {
for (const target of targets) {
const result = this.get(metadataKey, target);
const result = this.get(metadataKeyOrDecorator, target);
if (result !== undefined) {
return result;
}

View File

@@ -57,6 +57,28 @@ describe('Error Messages', () => {
expect(actualMessage).to.equal(expectedResult);
});
it('should display the provide token as double-quoted string for string-based tokens', () => {
const expectedResult =
stringCleaner(`Nest can't resolve dependencies of the CatService (?). Please make sure that the argument "FooRepository" at index [0] is available in the current context.
Potential solutions:
- If "FooRepository" is a provider, is it part of the current Module?
- If "FooRepository" is exported from a separate @Module, is that module imported within Module?
@Module({
imports: [ /* the Module containing "FooRepository" */ ]
})
`);
const actualMessage = stringCleaner(
new UnknownDependenciesException('CatService', {
index: 0,
dependencies: ['FooRepository'],
name: 'FooRepository',
}).message,
);
expect(actualMessage).to.equal(expectedResult);
});
it('should display the function name', () => {
const expectedResult =
stringCleaner(`Nest can't resolve dependencies of the CatService (?, CatFunction). Please make sure that the argument dependency at index [0] is available in the current context.

View File

@@ -37,7 +37,7 @@ describe('ExternalExceptionFilterContext', () => {
it('should return plain ExceptionHandler object', () => {
const filter = exceptionFilter.create(
new EmptyMetadata(),
() => ({} as any),
() => ({}) as any,
undefined,
);
expect((filter as any).filters).to.be.empty;
@@ -50,7 +50,7 @@ describe('ExternalExceptionFilterContext', () => {
it('should return ExceptionHandler object with exception filters', () => {
const filter = exceptionFilter.create(
new WithMetadata(),
() => ({} as any),
() => ({}) as any,
undefined,
);
expect((filter as any).filters).to.not.be.empty;
@@ -105,7 +105,7 @@ describe('ExternalExceptionFilterContext', () => {
.callsFake(() => scopedFilterWrappers);
sinon
.stub(instanceWrapper, 'getInstanceByContextId')
.callsFake(() => ({ instance } as any));
.callsFake(() => ({ instance }) as any);
expect(exceptionFilter.getGlobalMetadata({ id: 3 })).to.contains(
instance,

View File

@@ -154,7 +154,7 @@ describe('GuardsContextCreator', () => {
.callsFake(() => scopedGuardWrappers);
sinon
.stub(instanceWrapper, 'getInstanceByContextId')
.callsFake(() => ({ instance } as any));
.callsFake(() => ({ instance }) as any);
expect(guardsContextCreator.getGlobalMetadata({ id: 3 })).to.contains(
instance,

View File

@@ -144,7 +144,7 @@ describe('NestContainer', () => {
'bindGlobalModuleToModule',
);
container.bindGlobalsToImports({
addRelatedModule: sinon.spy(),
addImport: sinon.spy(),
} as any);
expect(bindGlobalModuleToModuleSpy.calledTwice).to.be.true;
});
@@ -152,17 +152,17 @@ describe('NestContainer', () => {
describe('bindGlobalModuleToModule', () => {
describe('when "module" is not "globalModule"', () => {
it('should call "addRelatedModule"', () => {
const module = { addRelatedModule: sinon.spy() };
it('should call "addImport"', () => {
const module = { addImport: sinon.spy() };
container.bindGlobalModuleToModule(module as any, null);
expect(module.addRelatedModule.calledOnce).to.be.true;
expect(module.addImport.calledOnce).to.be.true;
});
});
describe('when "module" is "globalModule"', () => {
it('should not call "addRelatedModule"', () => {
const module = { addRelatedModule: sinon.spy() };
it('should not call "addImport"', () => {
const module = { addImport: sinon.spy() };
container.bindGlobalModuleToModule(module as any, module as any);
expect(module.addRelatedModule.calledOnce).to.be.false;
expect(module.addImport.calledOnce).to.be.false;
});
});
});

View File

@@ -32,7 +32,10 @@ describe('Injector', () => {
class MainTest {
@Inject() property: DependencyOne;
constructor(public one: DependencyOne, public two: DependencyTwo) {}
constructor(
public one: DependencyOne,
public two: DependencyTwo,
) {}
}
let moduleDeps: Module;
@@ -743,7 +746,7 @@ describe('Injector', () => {
const loadInstanceStub = sinon
.stub(injector, 'loadInstance')
.callsFake(async () => ({} as any));
.callsFake(async () => ({}) as any);
await injector.loadEnhancersPerContext(wrapper, STATIC_CONTEXT);
expect(loadInstanceStub.calledTwice).to.be.true;

View File

@@ -174,7 +174,7 @@ describe('InterceptorsConsumer', () => {
const val = 3;
const next = async () => of(val);
expect(
await await lastValueFrom(consumer.transformDeferred(next) as any),
await lastValueFrom(consumer.transformDeferred(next) as any),
).to.be.eql(val);
});
});

View File

@@ -160,7 +160,7 @@ describe('InterceptorsContextCreator', () => {
.callsFake(() => scopedInterceptorWrappers);
sinon
.stub(instanceWrapper, 'getInstanceByContextId')
.callsFake(() => ({ instance } as any));
.callsFake(() => ({ instance }) as any);
expect(
interceptorsContextCreator.getGlobalMetadata({ id: 3 }),

View File

@@ -111,7 +111,7 @@ describe('PipesContextCreator', () => {
.callsFake(() => scopedPipeWrappers);
sinon
.stub(instanceWrapper, 'getInstanceByContextId')
.callsFake(() => ({ instance } as any));
.callsFake(() => ({ instance }) as any);
expect(creator.getGlobalMetadata({ id: 3 })).to.contains(
instance,

View File

@@ -35,7 +35,7 @@ describe('RouterExceptionFilters', () => {
it('should return plain ExceptionHandler object', () => {
const filter = exceptionFilter.create(
new EmptyMetadata(),
() => ({} as any),
() => ({}) as any,
undefined,
);
expect((filter as any).filters).to.be.empty;
@@ -48,7 +48,7 @@ describe('RouterExceptionFilters', () => {
it('should return ExceptionHandler object with exception filters', () => {
const filter = exceptionFilter.create(
new WithMetadata(),
() => ({} as any),
() => ({}) as any,
undefined,
);
expect((filter as any).filters).to.not.be.empty;
@@ -97,7 +97,7 @@ describe('RouterExceptionFilters', () => {
.callsFake(() => scopedFilterWrappers);
sinon
.stub(instanceWrapper, 'getInstanceByContextId')
.callsFake(() => ({ instance } as any));
.callsFake(() => ({ instance }) as any);
expect(exceptionFilter.getGlobalMetadata({ id: 3 })).to.contains(
instance,

View File

@@ -175,7 +175,7 @@ describe('RouterExplorer', () => {
() =>
({
next: nextSpy,
} as any),
}) as any,
);
});
@@ -239,4 +239,27 @@ describe('RouterExplorer', () => {
);
});
});
describe('copyMetadataToCallback', () => {
it('should then copy the metadata from the original callback to the target callback', () => {
const originalCallback = () => {};
Reflect.defineMetadata(
'test_metadata_key',
'test_metadata_value',
originalCallback,
);
const targetCallback = () => {};
// We're using type assertion here because `copyMetadataToCallback` is private
(routerBuilder as any).copyMetadataToCallback(
originalCallback,
targetCallback,
);
expect(
Reflect.getMetadata('test_metadata_key', targetCallback),
).to.be.equal('test_metadata_value');
});
});
});

View File

@@ -1,19 +1,66 @@
import { expect } from 'chai';
import { Reflector } from '../../services/reflector.service';
const transformDecorator = Reflector.createDecorator<string[], number>({
transform: value => value.length,
});
describe('Reflector', () => {
let reflector: Reflector;
class Test {}
@transformDecorator(['a', 'b', 'c'])
class TestTransform {}
beforeEach(() => {
reflector = new Reflector();
});
describe('get', () => {
it('should reflect metadata', () => {
it('should reflect metadata by key', () => {
const key = 'key';
const value = 'value';
Reflect.defineMetadata(key, value, Test);
expect(reflector.get(key, Test)).to.eql(value);
});
it('should reflect metadata by decorator', () => {
const decorator = Reflector.createDecorator<string>();
const value = 'value';
Reflect.defineMetadata(decorator.KEY, value, Test);
let reflectedValue = reflector.get(decorator, Test);
expect(reflectedValue).to.eql(value);
// @ts-expect-error 'value' is not assignable to parameter of type 'string'
reflectedValue = true;
});
it('should reflect metadata by decorator (custom key)', () => {
const decorator = Reflector.createDecorator<string[]>({ key: 'custom' });
const value = ['value'];
Reflect.defineMetadata('custom', value, Test);
let reflectedValue = reflector.get(decorator, Test);
expect(reflectedValue).to.eql(value);
// @ts-expect-error 'value' is not assignable to parameter of type 'string[]'
reflectedValue = true;
});
it('should reflect metadata by decorator (with transform option)', () => {
let reflectedValue = reflector.get(transformDecorator, TestTransform);
expect(reflectedValue).to.eql(3);
// @ts-expect-error 'value' is not assignable to type 'number'
reflectedValue = [];
});
it('should require transform option when second generic type is provided', () => {
// @ts-expect-error Property 'transform' is missing in type {} but required in type
const decorator = Reflector.createDecorator<string[], number>({});
});
});
describe('getAll', () => {

View File

@@ -1,6 +1,6 @@
/*
* Nest
* Copyright(c) 2017 - 2021 Kamil Mysliwiec
* Copyright(c) 2017 - 2023 Kamil Mysliwiec
* https://nestjs.com
* MIT Licensed
*/

View File

@@ -23,7 +23,7 @@
## Description
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="_blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>
@@ -34,10 +34,10 @@ Nest is a framework for building efficient, scalable <a href="https://nodejs.org
## Getting started
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
* [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
- To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
- 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
- [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
- [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
## Questions
@@ -56,10 +56,13 @@ With official support, you can get expert help straight from Nest core team. We
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
#### Principal Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
@@ -69,8 +72,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td><td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
@@ -86,7 +88,10 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Silver Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td>
<td><a href="https://immediateedgeapp.org/" target="_blank"><img src="https://nestjs.com/img/immediate-edge-logo.png" width="120" valign="middle" /></td>
</tr>
</table>
#### Sponsors
@@ -111,6 +116,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
</tr></table>
## Backers
@@ -119,9 +127,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
## Stay in touch
* Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)
- Author - [Kamil Myśliwiec](https://x.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- X - [@nestframework](https://x.com/nestframework)
## License

View File

@@ -15,12 +15,12 @@ import { first, map, retryWhen, scan, skip, switchMap } from 'rxjs/operators';
import {
CONNECT_EVENT,
CONNECT_FAILED_EVENT,
DISCONNECTED_RMQ_MESSAGE,
DISCONNECT_EVENT,
DISCONNECTED_RMQ_MESSAGE,
ERROR_EVENT,
RQM_DEFAULT_IS_GLOBAL_PREFETCH_COUNT,
RQM_DEFAULT_NOACK,
RQM_DEFAULT_NO_ASSERT,
RQM_DEFAULT_NOACK,
RQM_DEFAULT_PERSISTENT,
RQM_DEFAULT_PREFETCH_COUNT,
RQM_DEFAULT_QUEUE,
@@ -267,7 +267,11 @@ export class ClientRMQ extends ClientProxy {
content: Buffer;
options: Record<string, unknown>;
}) =>
this.handleMessage(JSON.parse(content.toString()), options, callback);
this.handleMessage(
this.parseMessageContent(content),
options,
callback,
);
Object.assign(message, { id: correlationId });
const serializedPacket: ReadPacket & Partial<RmqRecord> =
@@ -333,4 +337,13 @@ export class ClientRMQ extends ClientProxy {
...requestHeaders,
};
}
protected parseMessageContent(content: Buffer) {
const rawContent = content.toString();
try {
return JSON.parse(rawContent);
} catch {
return rawContent;
}
}
}

View File

@@ -60,6 +60,47 @@ export interface MqttClientOptions extends ISecureClientOptions {
*/
outgoingStore?: any;
queueQoSZero?: boolean;
/**
* properties MQTT 5.0.
*/
properties?: {
/**
* representing the Session Expiry Interval in seconds
*/
sessionExpiryInterval?: number;
/**
* representing the Receive Maximum
*/
receiveMaximum?: number;
/**
* representing the Maximum Packet Size the Client is willing to accept
*/
maximumPacketSize?: number;
/**
* representing the Topic Alias Maximum value indicates the highest value that the Client will accept as a Topic Alias sent by the Server
*/
topicAliasMaximum?: number;
/**
* The Client uses this value to request the Server to return Response Information in the CONNACK
*/
requestResponseInformation?: boolean;
/**
* The Client uses this value to indicate whether the Reason String or User Properties are sent in the case of failures
*/
requestProblemInformation?: boolean;
/**
* The User Property is allowed to appear multiple times to represent multiple name, value pairs
*/
userProperties?: object;
/**
* the name of the authentication method used for extended authentication
*/
authenticationMethod?: string;
/**
* * Binary Data containing authentication data (binary type)
* */
authenticationData?: any;
};
reschedulePings?: boolean;
servers?: Array<{
host: string;

View File

@@ -4,9 +4,10 @@ import { Observable } from 'rxjs';
* @publicApi
*/
export interface MessageHandler<TInput = any, TContext = any, TResult = any> {
(data: TInput, ctx?: TContext):
| Promise<Observable<TResult>>
| Promise<TResult>;
(
data: TInput,
ctx?: TContext,
): Promise<Observable<TResult>> | Promise<TResult>;
next?: (
data: TInput,
ctx?: TContext,

View File

@@ -22,7 +22,8 @@ import { ListenersController } from './listeners-controller';
import { Server } from './server/server';
export class MicroservicesModule<
TAppOptions extends NestApplicationContextOptions = NestApplicationContextOptions,
TAppOptions extends
NestApplicationContextOptions = NestApplicationContextOptions,
> {
private readonly clientsContainer = new ClientsContainer();
private listenersController: ListenersController;

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/microservices",
"version": "10.1.2",
"version": "10.2.8",
"description": "Nest - modern, fast, powerful node.js web framework (@microservices)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -19,11 +19,11 @@
},
"dependencies": {
"iterare": "1.2.1",
"tslib": "2.6.1"
"tslib": "2.6.2"
},
"devDependencies": {
"@nestjs/common": "10.1.2",
"@nestjs/core": "10.1.2"
"@nestjs/common": "10.2.8",
"@nestjs/core": "10.2.8"
},
"peerDependencies": {
"@grpc/grpc-js": "*",

View File

@@ -17,7 +17,10 @@ export interface RmqRecordOptions {
}
export class RmqRecord<TData = any> {
constructor(public readonly data: TData, public options?: RmqRecordOptions) {}
constructor(
public readonly data: TData,
public options?: RmqRecordOptions,
) {}
}
export class RmqRecordBuilder<TData> {

View File

@@ -3,7 +3,15 @@ import {
isString,
isUndefined,
} from '@nestjs/common/utils/shared.utils';
import { EMPTY, fromEvent, lastValueFrom, Subject } from 'rxjs';
import {
EMPTY,
Observable,
Subject,
Subscription,
defaultIfEmpty,
fromEvent,
lastValueFrom,
} from 'rxjs';
import { catchError, takeUntil } from 'rxjs/operators';
import {
CANCEL_EVENT,
@@ -29,6 +37,7 @@ interface GrpcCall<TRequest = any, TMetadata = any> {
end: Function;
write: Function;
on: Function;
off: Function;
emit: Function;
}
@@ -231,19 +240,119 @@ export class ServerGrpc extends Server implements CustomTransportStrategy {
return async (call: GrpcCall, callback: Function) => {
const handler = methodHandler(call.request, call.metadata, call);
const result$ = this.transformToObservable(await handler);
await result$
.pipe(
takeUntil(fromEvent(call as any, CANCEL_EVENT)),
catchError(err => {
call.emit('error', err);
return EMPTY;
}),
)
.forEach(data => call.write(data));
call.end();
try {
await this.writeObservableToGrpc(result$, call);
} catch (err) {
call.emit('error', err);
return;
}
};
}
/**
* Writes an observable to a GRPC call.
*
* This function will ensure that backpressure is managed while writing values
* that come from an observable to a GRPC call.
*
* @param source The observable we want to write out to the GRPC call.
* @param call The GRPC call we want to write to.
* @returns A promise that resolves when we're done writing to the call.
*/
public writeObservableToGrpc<T>(
source: Observable<T>,
call: GrpcCall<T>,
): Promise<void> {
return new Promise((resolve, reject) => {
// This buffer is used to house values that arrive
// while the call is in the process of writing and draining.
const buffer: T[] = [];
let isComplete = false;
let clearToWrite = true;
const cleanups: (() => void)[] = [];
const cleanup = () => {
for (const cleanup of cleanups) {
cleanup();
}
};
const write = (value: T) => {
// If the stream `write` returns `false`, we have
// to wait for a drain event before writing again.
// This is done to handle backpressure.
clearToWrite = call.write(value);
};
const done = () => {
call.end();
resolve();
cleanup();
};
// Handling backpressure by waiting for drain event
const drainHandler = () => {
if (!clearToWrite) {
clearToWrite = true;
if (buffer.length > 0) {
// Write any queued values we have in our buffer.
write(buffer.shift()!);
} else if (isComplete) {
// Otherwise, if we're complete, end the call.
done();
}
}
};
call.on('drain', drainHandler);
cleanups.push(() => {
call.off('drain', drainHandler);
});
const subscription = new Subscription();
// Make sure that a cancel event unsubscribes from
// the source observable.
const cancelHandler = () => {
subscription.unsubscribe();
done();
};
call.on(CANCEL_EVENT, cancelHandler);
cleanups.push(() => {
call.off(CANCEL_EVENT, cancelHandler);
});
subscription.add(
source.subscribe({
next: (value: T) => {
if (clearToWrite) {
// If we're not currently writing, then
// we can write the value immediately.
write(value);
} else {
// If a value arrives while we're writing
// then we queue it up to be processed FIFO.
buffer.push(value);
}
},
error: (err: any) => {
call.emit('error', err);
reject(err);
cleanup();
},
complete: () => {
isComplete = true;
if (buffer.length === 0) {
done();
}
},
}),
);
});
}
public createRequestStreamMethod(
methodHandler: Function,
isResponseStream: boolean,
@@ -270,17 +379,7 @@ export class ServerGrpc extends Server implements CustomTransportStrategy {
const handler = methodHandler(req.asObservable(), call.metadata, call);
const res = this.transformToObservable(await handler);
if (isResponseStream) {
await res
.pipe(
takeUntil(fromEvent(call as any, CANCEL_EVENT)),
catchError(err => {
call.emit('error', err);
return EMPTY;
}),
)
.forEach(m => call.write(m));
call.end();
await this.writeObservableToGrpc(res, call);
} else {
const response = await lastValueFrom(
res.pipe(
@@ -289,6 +388,7 @@ export class ServerGrpc extends Server implements CustomTransportStrategy {
callback(err, null);
return EMPTY;
}),
defaultIfEmpty(undefined),
),
);

View File

@@ -191,12 +191,6 @@ export class ServerMqtt extends Server implements CustomTransportStrategy {
}
for (const [key, value] of this.messageHandlers) {
if (
!key.includes(MQTT_WILDCARD_SINGLE) &&
!key.includes(MQTT_WILDCARD_ALL)
) {
continue;
}
const keyWithoutSharedPrefix = this.removeHandlerKeySharedPrefix(key);
if (this.matchMqttPattern(keyWithoutSharedPrefix, route)) {
return value;

View File

@@ -64,7 +64,7 @@ export class ServerRedis extends Server implements CustomTransportStrategy {
public bindEvents(subClient: Redis, pubClient: Redis) {
subClient.on(
this.options.wildcards ? 'pmessage' : MESSAGE_EVENT,
this.options?.wildcards ? 'pmessage' : MESSAGE_EVENT,
this.getMessageHandler(pubClient).bind(this),
);
const subscribePatterns = [...this.messageHandlers.keys()];
@@ -75,7 +75,7 @@ export class ServerRedis extends Server implements CustomTransportStrategy {
? pattern
: this.getRequestPattern(pattern);
if (this.options.wildcards) {
if (this.options?.wildcards) {
subClient.psubscribe(channel);
} else {
subClient.subscribe(channel);
@@ -99,7 +99,7 @@ export class ServerRedis extends Server implements CustomTransportStrategy {
}
public getMessageHandler(pub: Redis) {
return this.options.wildcards
return this.options?.wildcards
? (channel: string, pattern: string, buffer: string | any) =>
this.handleMessage(channel, buffer, pub, pattern)
: (channel: string, buffer: string | any) =>

View File

@@ -255,7 +255,7 @@ describe('ClientMqtt', () => {
({
addListener: () => ({}),
removeListener: () => ({}),
} as any),
}) as any,
);
handleErrorsSpy = sinon.spy(client, 'handleError');
connect$Stub = sinon.stub(client, 'connect$' as any).callsFake(() => ({

View File

@@ -241,7 +241,7 @@ describe('ClientNats', () => {
beforeEach(async () => {
createClientSpy = sinon
.stub(client, 'createClient')
.callsFake(() => ({} as any));
.callsFake(() => ({}) as any);
handleStatusUpdatesSpy = sinon.spy(client, 'handleStatusUpdates');
await client.connect();

View File

@@ -221,7 +221,7 @@ describe('ClientRedis', () => {
({
addListener: () => null,
removeListener: () => null,
} as any),
}) as any,
);
handleErrorsSpy = sinon.spy(client, 'handleError');

View File

@@ -33,7 +33,7 @@ describe('ExceptionFiltersContext', () => {
it('should return plain ExceptionHandler object', () => {
const filter = exceptionFilter.create(
new EmptyMetadata(),
() => ({} as any),
() => ({}) as any,
undefined,
);
expect((filter as any).filters).to.be.empty;
@@ -46,7 +46,7 @@ describe('ExceptionFiltersContext', () => {
it('should return ExceptionHandler object with exception filters', () => {
const filter = exceptionFilter.create(
new WithMetadata(),
() => ({} as any),
() => ({}) as any,
undefined,
);
expect((filter as any).filters).to.not.be.empty;
@@ -76,7 +76,7 @@ describe('ExceptionFiltersContext', () => {
.callsFake(() => scopedFilterWrappers);
sinon
.stub(instanceWrapper, 'getInstanceByContextId')
.callsFake(() => ({ instance } as any));
.callsFake(() => ({ instance }) as any);
expect(exceptionFilter.getGlobalMetadata({ id: 3 })).to.contains(
instance,

View File

@@ -107,7 +107,8 @@ describe('JsonSocket message parsing', () => {
describe('Error handling', () => {
describe('JSON Error', () => {
const errorMsg = `Could not parse JSON: Unexpected end of JSON input\nRequest data: "Hel`;
const errorMsgNodeBelowV20 = `Could not parse JSON: Unexpected end of JSON input\nRequest data: "Hel`;
const errorMsg = `Could not parse JSON: Unterminated string in JSON at position 4\nRequest data: "Hel`;
const packetString = '4#"Hel';
const packet = Buffer.from(packetString);
@@ -115,7 +116,7 @@ describe('JsonSocket message parsing', () => {
try {
socket['handleData']('4#"Hel');
} catch (err) {
expect(err.message).to.deep.equal(errorMsg);
expect([errorMsgNodeBelowV20, errorMsg]).to.include(err.message);
}
expect(messages.length).to.deep.equal(0);
expect(socket['buffer']).to.deep.equal('');
@@ -129,8 +130,17 @@ describe('JsonSocket message parsing', () => {
socket['onData'](packet);
expect(socketEmitSpy.calledOnceWithExactly(ERROR_EVENT, errorMsg)).to.be
.true;
try {
expect(socketEmitSpy.calledOnceWithExactly(ERROR_EVENT, errorMsg)).to
.be.true;
} catch (err) {
expect(
socketEmitSpy.calledOnceWithExactly(
ERROR_EVENT,
errorMsgNodeBelowV20,
),
).to.be.true;
}
socketEmitSpy.restore();
});

View File

@@ -87,7 +87,7 @@ describe('ListenersController', () => {
];
beforeEach(() => {
sinon.stub(container, 'getModuleByKey').callsFake(() => ({} as any));
sinon.stub(container, 'getModuleByKey').callsFake(() => ({}) as any);
});
it(`should call "addHandler" method of server for each pattern handler`, () => {
explorer.expects('explore').returns(handlers);
@@ -203,12 +203,12 @@ describe('ListenersController', () => {
() =>
({
handle: handleSpy,
} as any),
}) as any,
);
sinon
.stub((instance as any).container, 'registerRequestProvider')
.callsFake(() => ({} as any));
.callsFake(() => ({}) as any);
});
describe('when "loadPerContext" resolves', () => {

View File

@@ -1,7 +1,14 @@
import { Logger } from '@nestjs/common';
import { expect } from 'chai';
import { join } from 'path';
import { of, ReplaySubject, Subject } from 'rxjs';
import {
async,
Observable,
of,
ReplaySubject,
Subject,
throwError,
} from 'rxjs';
import * as sinon from 'sinon';
import { CANCEL_EVENT } from '../../constants';
import { InvalidGrpcPackageException } from '../../errors/invalid-grpc-package.exception';
@@ -41,7 +48,7 @@ describe('ServerGrpc', () => {
callback = sinon.spy();
bindEventsStub = sinon
.stub(server, 'bindEvents')
.callsFake(() => ({} as any));
.callsFake(() => ({}) as any);
});
it('should call "bindEvents"', async () => {
@@ -85,7 +92,7 @@ describe('ServerGrpc', () => {
callback = sinon.spy();
bindEventsStub = sinon
.stub(serverMulti, 'bindEvents')
.callsFake(() => ({} as any));
.callsFake(() => ({}) as any);
});
it('should call "bindEvents"', async () => {
@@ -224,7 +231,7 @@ describe('ServerGrpc', () => {
const spy = sinon
.stub(server, 'createServiceMethod')
.callsFake(() => ({} as any));
.callsFake(() => ({}) as any);
(server as any).messageHandlers = handlers;
await server.createService(
{
@@ -246,7 +253,7 @@ describe('ServerGrpc', () => {
.onFirstCall()
.returns('test2');
sinon.stub(server, 'createServiceMethod').callsFake(() => ({} as any));
sinon.stub(server, 'createServiceMethod').callsFake(() => ({}) as any);
(server as any).messageHandlers = handlers;
await server.createService(
{
@@ -281,7 +288,7 @@ describe('ServerGrpc', () => {
.onSecondCall()
.returns('test2');
sinon.stub(server, 'createServiceMethod').callsFake(() => ({} as any));
sinon.stub(server, 'createServiceMethod').callsFake(() => ({}) as any);
(server as any).messageHandlers = handlers;
await server.createService(
{
@@ -391,29 +398,40 @@ describe('ServerGrpc', () => {
const call = {
write: sinon.spy(),
end: sinon.spy(),
addListener: sinon.spy(),
removeListener: sinon.spy(),
on: sinon.spy(),
off: sinon.spy(),
};
const callback = sinon.spy();
const native = sinon.spy();
await server.createStreamServiceMethod(native)(call, callback);
expect(native.called).to.be.true;
expect(call.addListener.calledWith('cancelled')).to.be.true;
expect(call.removeListener.calledWith('cancelled')).to.be.true;
expect(call.on.calledWith('cancelled')).to.be.true;
expect(call.off.calledWith('cancelled')).to.be.true;
});
it(`should close the result observable when receiving an 'cancelled' event from the client`, async () => {
let cancelCb: () => void;
const et = new EventTarget();
let calls = 0;
const call = {
write: sinon
.stub()
.onSecondCall()
.callsFake(() => cancelCb()),
write: sinon.spy((value: any) => {
calls++;
if (calls === 2) {
et.dispatchEvent(new Event('cancelled'));
}
// automatically drain the call stream after this returns false.
Promise.resolve().then(() => et.dispatchEvent(new Event('drain')));
return false;
}),
end: sinon.spy(),
addListener: (name, cb) => (cancelCb = cb),
removeListener: sinon.spy(),
on: sinon.spy((name, cb) => {
et.addEventListener(name, cb);
}),
off: sinon.spy((name, cb) => {
et.removeEventListener(name, cb);
}),
};
const result$ = of(1, 2, 3);
const callback = sinon.spy();
const native = sinon
@@ -421,8 +439,13 @@ describe('ServerGrpc', () => {
.returns(new Promise((resolve, reject) => resolve(result$)));
await server.createStreamServiceMethod(native)(call, callback);
expect(call.write.calledTwice).to.be.true;
expect(call.write.callCount).to.equal(2);
expect(call.end.called).to.be.true;
expect(call.on.calledWith('cancelled')).to.be.true;
expect(call.on.calledWith('drain')).to.be.true;
expect(call.off.calledWith('cancelled')).to.be.true;
expect(call.off.calledWith('drain')).to.be.true;
});
});
});
@@ -500,10 +523,32 @@ describe('ServerGrpc', () => {
expect(handler.called).to.be.true;
expect(handler.args[0][1]).to.eq(call.metadata);
});
describe('when response is not a stream', () => {
it('should call callback', async () => {
const handler = async () => ({ test: true });
const fn = server.createRequestStreamMethod(handler, false);
const call = {
on: (event, callback) => {
if (event !== CANCEL_EVENT) {
callback();
}
},
off: sinon.spy(),
end: sinon.spy(),
write: sinon.spy(() => false),
};
const responseCallback = sinon.spy();
await fn(call as any, responseCallback);
expect(responseCallback.called).to.be.true;
});
it('should handle error thrown in handler', async () => {
const error = new Error('Error');
const handler = async () => throwError(() => error);
const fn = server.createRequestStreamMethod(handler, false);
const call = {
on: (event, callback) => {
if (event !== CANCEL_EVENT) {
@@ -518,8 +563,10 @@ describe('ServerGrpc', () => {
const responseCallback = sinon.spy();
await fn(call as any, responseCallback);
expect(responseCallback.called).to.be.true;
expect(responseCallback.calledOnce).to.be.true;
expect(responseCallback.firstCall.args).to.eql([error, null]);
});
describe('when response is a stream', () => {
it('should call write() and end()', async () => {
const handler = async () => ({ test: true });
@@ -532,7 +579,7 @@ describe('ServerGrpc', () => {
},
off: sinon.spy(),
end: sinon.spy(),
write: sinon.spy(),
write: sinon.spy(() => false),
};
await fn(call as any, null);
@@ -540,6 +587,284 @@ describe('ServerGrpc', () => {
expect(call.write.called).to.be.true;
expect(call.end.called).to.be.true;
});
it('should wait for a drain event from the GRPC call before writing more data from the observable', async () => {
const emitter = new EventTarget();
const drain = () => {
emitter.dispatchEvent(new Event('drain'));
};
const call = {
write: sinon.spy(() => false),
end: sinon.spy(),
emit: sinon.spy(),
request: sinon.spy(),
metadata: sinon.spy(),
sendMetadata: sinon.spy(),
on: (name, cb) => {
emitter.addEventListener(name, cb);
},
off: (name, cb) => {
emitter.removeEventListener(name, cb);
},
};
const callback = sinon.spy();
const subject = new Subject<string>();
const handlerResult = Promise.resolve(subject);
const methodHandler = () => handlerResult;
const serviceMethod = await server.createRequestStreamMethod(
methodHandler,
true,
);
const result = serviceMethod(call, callback);
await handlerResult;
// Nothing has arrived from the observable yet.
expect(call.write.notCalled).to.be.true;
// When the observable emits the first value, it will
// write immediately, because the GRPC call is not being
// written to yet.
subject.next('a');
expect(call.write.calledOnce).to.be.true;
// The second emission from the observable will not cause
// a write yet, because the GRPC call has not been drained.
subject.next('b');
expect(call.write.calledOnce).to.be.true;
// Once we drain the GRPC call, "b" will be written
drain();
expect(call.write.calledTwice).to.be.true;
// After writing "b" drains, we shouldn't have written
// anything else yet, because we haven't gotten any more values.
drain();
expect(call.write.calledTwice).to.be.true;
// When the observable emits the third value, it will
// write immediately, because the GRPC call is not being
// written to yet.
subject.next('c');
expect(call.write.calledThrice).to.be.true;
drain();
// It shouldn't end until it's complete.
expect(call.end.notCalled).to.be.true;
subject.complete();
expect(call.end.called).to.be.true;
return result;
});
it('should end the subscription to the source if the call is cancelled', async () => {
const emitter = new EventTarget();
const drain = () => {
emitter.dispatchEvent(new Event('drain'));
};
const cancel = () => {
emitter.dispatchEvent(new Event(CANCEL_EVENT));
};
const call = {
write: sinon.spy(() => false),
end: sinon.spy(),
emit: sinon.spy(),
request: sinon.spy(),
metadata: sinon.spy(),
sendMetadata: sinon.spy(),
on: (name, cb) => {
emitter.addEventListener(name, cb);
},
off: (name, cb) => {
emitter.removeEventListener(name, cb);
},
};
const callback = sinon.spy();
let cancelled = false;
const subject = new Observable<string>(subscriber => {
subscriber.next('a');
subscriber.next('b');
return () => {
cancelled = true;
};
});
const handlerResult = Promise.resolve(subject);
const methodHandler = () => handlerResult;
const serviceMethod = await server.createRequestStreamMethod(
methodHandler,
true,
);
const result = serviceMethod(call, callback);
await handlerResult;
// The first value is written because the GRPC call
// is not being written to yet.
expect(call.write.calledOnce).to.be.true; // a
// "b" can't be written until the GRPC call is drained.
drain();
expect(call.write.calledTwice).to.be.true; // b
// We shouldn't be cancelled yet.
expect(cancelled).to.be.false;
// Signal that the GRPC call is cancelled.
cancel();
// we should have only written twice at this point.
expect(call.write.calledTwice).to.be.true;
expect(cancelled).to.be.true;
return result;
});
it('should wait to end until all values from the source have been written', async () => {
const emitter = new EventTarget();
const drain = () => {
emitter.dispatchEvent(new Event('drain'));
};
const call = {
write: sinon.spy(() => false),
end: sinon.spy(),
emit: sinon.spy(),
request: sinon.spy(),
metadata: sinon.spy(),
sendMetadata: sinon.spy(),
on: (name, cb) => {
emitter.addEventListener(name, cb);
},
off: (name, cb) => {
emitter.removeEventListener(name, cb);
},
};
const callback = sinon.spy();
const subject = new Subject<string>();
const handlerResult = Promise.resolve(subject);
const methodHandler = () => handlerResult;
const serviceMethod = await server.createRequestStreamMethod(
methodHandler,
true,
);
const result = serviceMethod(call, callback);
await handlerResult;
// Nothing has arrived from the observable yet.
expect(call.write.notCalled).to.be.true;
subject.next('a');
subject.next('b');
subject.next('c');
subject.complete();
expect(call.write.calledOnce).to.be.true; // a
expect(call.end.notCalled).to.be.true;
drain();
expect(call.write.calledTwice).to.be.true; // b
expect(call.end.notCalled).to.be.true;
drain();
expect(call.write.calledThrice).to.be.true; // c
expect(call.end.notCalled).to.be.true;
drain();
expect(call.end.called).to.be.true;
return result;
});
it('should only wait for drain events if the write call returns false', async () => {
const emitter = new EventTarget();
const drain = () => {
emitter.dispatchEvent(new Event('drain'));
};
const writeReturn = {
value: false,
};
const call = {
write: sinon.spy(() => writeReturn.value),
end: sinon.spy(),
emit: sinon.spy(),
request: sinon.spy(),
metadata: sinon.spy(),
sendMetadata: sinon.spy(),
on: (name, cb) => {
emitter.addEventListener(name, cb);
},
off: (name, cb) => {
emitter.removeEventListener(name, cb);
},
};
const callback = sinon.spy();
const subject = new Subject<string>();
const handlerResult = Promise.resolve(subject);
const methodHandler = () => handlerResult;
const serviceMethod = await server.createRequestStreamMethod(
methodHandler,
true,
);
const result = serviceMethod(call, callback);
await handlerResult;
// Nothing has arrived from the observable yet.
expect(call.write.notCalled).to.be.true;
writeReturn.value = true; // no drain needed
subject.next('a');
expect(call.write.calledOnce).to.be.true; // a
expect(call.end.notCalled).to.be.true;
writeReturn.value = false; // drain needed
subject.next('b');
expect(call.write.calledTwice).to.be.true; // b
expect(call.end.notCalled).to.be.true;
subject.next('c');
expect(call.write.calledTwice).to.be.true; // drain not called yet.
expect(call.end.notCalled).to.be.true;
drain();
expect(call.write.calledThrice).to.be.true; // c
expect(call.end.notCalled).to.be.true;
subject.complete();
drain();
expect(call.end.called).to.be.true;
return result;
});
});
});
});

View File

@@ -126,7 +126,7 @@ describe('ServerKafka', () => {
it('should call "bindEvents"', async () => {
bindEventsStub = sinon
.stub(server, 'bindEvents')
.callsFake(() => ({} as any));
.callsFake(() => ({}) as any);
await server.listen(callback);
expect(bindEventsStub.called).to.be.true;
});

View File

@@ -134,13 +134,13 @@ describe('ServerRedis', () => {
});
it('should call "handleEvent" if identifier is not present', async () => {
const handleEventSpy = sinon.spy(server, 'handleEvent');
sinon.stub(server, 'parseMessage').callsFake(() => ({ data } as any));
sinon.stub(server, 'parseMessage').callsFake(() => ({ data }) as any);
await server.handleMessage(channel, JSON.stringify({}), null, channel);
expect(handleEventSpy.called).to.be.true;
});
it(`should publish NO_MESSAGE_HANDLER if pattern not exists in messageHandlers object`, async () => {
sinon.stub(server, 'parseMessage').callsFake(() => ({ id, data } as any));
sinon.stub(server, 'parseMessage').callsFake(() => ({ id, data }) as any);
await server.handleMessage(
channel,
JSON.stringify({ id }),
@@ -160,7 +160,7 @@ describe('ServerRedis', () => {
(server as any).messageHandlers = objectToMap({
[channel]: handler,
});
sinon.stub(server, 'parseMessage').callsFake(() => ({ id, data } as any));
sinon.stub(server, 'parseMessage').callsFake(() => ({ id, data }) as any);
await server.handleMessage(channel, {}, null, channel);
expect(handler.calledWith(data)).to.be.true;

View File

@@ -29,7 +29,7 @@ describe('ServerRMQ', () => {
createChannelStub = sinon.stub().callsFake(({ setup }) => setup());
setupChannelStub = sinon
.stub(server, 'setupChannel')
.callsFake(() => ({} as any));
.callsFake(() => ({}) as any);
client = {
on: onStub,

View File

@@ -23,7 +23,7 @@
## Description
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="_blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>
@@ -34,10 +34,10 @@ Nest is a framework for building efficient, scalable <a href="https://nodejs.org
## Getting started
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
* [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
- To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
- 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
- [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
- [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
## Questions
@@ -56,10 +56,13 @@ With official support, you can get expert help straight from Nest core team. We
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
#### Principal Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
@@ -69,8 +72,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td><td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
@@ -86,7 +88,10 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Silver Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td>
<td><a href="https://immediateedgeapp.org/" target="_blank"><img src="https://nestjs.com/img/immediate-edge-logo.png" width="120" valign="middle" /></td>
</tr>
</table>
#### Sponsors
@@ -111,6 +116,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
</tr></table>
## Backers
@@ -119,9 +127,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
## Stay in touch
* Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)
- Author - [Kamil Myśliwiec](https://x.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- X - [@nestframework](https://x.com/nestframework)
## License

View File

@@ -96,14 +96,15 @@ export class ExpressAdapter extends AbstractHttpAdapter<
response,
(err: Error) => {
if (err) {
this.logger.error(err.message, err.stack);
body.errorLogger(err);
}
},
);
}
const responseContentType = response.getHeader('Content-Type');
if (
response.getHeader('Content-Type') !== undefined &&
!response.getHeader('Content-Type').startsWith('application/json') &&
typeof responseContentType === 'string' &&
!responseContentType.startsWith('application/json') &&
body?.statusCode >= HttpStatus.BAD_REQUEST
) {
this.logger.warn(

View File

@@ -17,8 +17,8 @@ import { transformException } from '../multer/multer.utils';
type MulterInstance = any;
/**
* @param localOptions
*
* @param localOptions
*
* @publicApi
*/
export function AnyFilesInterceptor(

View File

@@ -20,8 +20,8 @@ import { transformException } from '../multer/multer.utils';
type MulterInstance = any;
/**
* @param uploadFields
* @param localOptions
* @param uploadFields
* @param localOptions
* @publicApi
*/
export function FileFieldsInterceptor(

View File

@@ -17,9 +17,9 @@ import { transformException } from '../multer/multer.utils';
type MulterInstance = any;
/**
* @param fieldName
* @param localOptions
*
* @param fieldName
* @param localOptions
*
* @publicApi
*/
export function FileInterceptor(

View File

@@ -17,12 +17,12 @@ import { transformException } from '../multer/multer.utils';
type MulterInstance = any;
/**
*
* @param fieldName
* @param maxCount
* @param localOptions
*
* @publicApi
*
* @param fieldName
* @param maxCount
* @param localOptions
*
* @publicApi
*/
export function FilesInterceptor(
fieldName: string,

View File

@@ -17,8 +17,8 @@ import { transformException } from '../multer/multer.utils';
type MulterInstance = any;
/**
*
* @param localOptions
*
* @param localOptions
* @publicApi
*/
export function NoFilesInterceptor(

View File

@@ -10,7 +10,6 @@ export interface MulterOptionsFactory {
createMulterOptions(): Promise<MulterModuleOptions> | MulterModuleOptions;
}
/**
* @publicApi
*/

View File

@@ -1,10 +1,10 @@
/**
* @see https://github.com/expressjs/multer
*
*
* @publicApi
*/
export interface MulterOptions {
dest?: string;
dest?: string | Function;
/** The storage engine to use for uploaded files. */
storage?: any;
/**

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/platform-express",
"version": "10.1.2",
"version": "10.2.8",
"description": "Nest - modern, fast, powerful node.js web framework (@platform-express)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -22,11 +22,11 @@
"cors": "2.8.5",
"express": "4.18.2",
"multer": "1.4.4-lts.1",
"tslib": "2.6.1"
"tslib": "2.6.2"
},
"devDependencies": {
"@nestjs/common": "10.1.2",
"@nestjs/core": "10.1.2"
"@nestjs/common": "10.2.8",
"@nestjs/core": "10.2.8"
},
"peerDependencies": {
"@nestjs/common": "^10.0.0",

Some files were not shown because too many files have changed in this diff Show More