Compare commits

...

473 Commits

Author SHA1 Message Date
Kamil Myśliwiec
e5612e0197 chore: merge 10.0.0 2023-06-12 10:58:30 +02:00
Kamil Myśliwiec
6c54448bf7 fix(fastify): validate middleware paths 2023-06-12 10:51:02 +02:00
Kamil Mysliwiec
8053f11451 Merge pull request #9809 from rychardvale/fix-middleware-multiple-runs
feat(core): middleware runs once for matching route
2023-06-12 09:47:02 +02:00
Kamil Mysliwiec
b1be7a3d21 Merge pull request #11650 from nestjs/fix/global-prefix-exclude-with-versioning
fix(core): global prefix exclude when versioning is turned on
2023-05-24 11:34:14 +02:00
Kamil Myśliwiec
5bba7e9d26 chore(@nestjs) publish v9.4.2 release 2023-05-23 10:42:48 +02:00
Kamil Mysliwiec
9004a4a624 Merge pull request #11642 from ryoctrl/nack_when_no_matching_handler
fix(microservices): to nack when there is no matching handler
2023-05-23 10:40:34 +02:00
Kamil Mysliwiec
4f45a7019f Update packages/microservices/constants.ts 2023-05-23 10:33:48 +02:00
Kamil Mysliwiec
4bb43f0c47 Merge pull request #11437 from julien-sarazin/fix/issue-11429
fix(microservices): grpc-server handle async interceptors
2023-05-23 10:31:10 +02:00
Kamil Myśliwiec
0faddb4c37 fix(core): global prefix exclude when versioning is turned on 2023-05-22 13:17:22 +02:00
Kamil Mysliwiec
fe2cd7ffb0 Update Readme.md 2023-05-22 09:15:06 +02:00
Kamil Mysliwiec
3be74404d2 Merge pull request #11644 from nestjs/dependabot/npm_and_yarn/mongoose-7.2.0
chore(deps-dev): bump mongoose from 7.1.1 to 7.2.0
2023-05-22 08:51:16 +02:00
Kamil Mysliwiec
71e83b048d Merge pull request #11645 from nestjs/dependabot/npm_and_yarn/graphql-tools-9.0.0
chore(deps-dev): bump graphql-tools from 8.3.20 to 9.0.0
2023-05-22 08:50:59 +02:00
Kamil Mysliwiec
ed44a0a910 Merge pull request #11646 from nestjs/dependabot/npm_and_yarn/types/node-20.2.3
chore(deps-dev): bump @types/node from 20.2.1 to 20.2.3
2023-05-22 08:50:52 +02:00
dependabot[bot]
6a59e7ae4e chore(deps-dev): bump @types/node from 20.2.1 to 20.2.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.2.1 to 20.2.3.
- [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-05-22 01:18:45 +00:00
dependabot[bot]
29f84b21ed chore(deps-dev): bump graphql-tools from 8.3.20 to 9.0.0
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.3.20 to 9.0.0.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@9.0.0/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 01:10:01 +00:00
dependabot[bot]
b23f21067f chore(deps-dev): bump mongoose from 7.1.1 to 7.2.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.1.1 to 7.2.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.1.1...7.2.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-05-22 01:02:44 +00:00
ryoctrl
674bfc5e83 fix(microservices): to nack when there is no matching handler 2023-05-20 04:56:51 +09:00
Kamil Mysliwiec
974c946845 Update integration/testing-module-override/tsconfig.json 2023-05-19 14:55:33 +02:00
Kamil Myśliwiec
c4828c473a ci: add --legacy-peer-deps flag to samples install 2023-05-19 13:01:19 +02:00
Kamil Myśliwiec
0a674557bd ci: add legacy peer deps flag to npm ci 2023-05-19 12:52:12 +02:00
Kamil Myśliwiec
b9d8a0769f chore: recreate package lock file 2023-05-19 12:44:15 +02:00
Kamil Myśliwiec
1e467c17f6 test: update async local storage signature 2023-05-19 12:35:57 +02:00
Kamil Myśliwiec
a665efcfba chore: update package lock file 2023-05-19 12:35:41 +02:00
Kamil Myśliwiec
aea0a0470a Merge branch 'parzhitsky-feat/improve-typings-for-createbody' into 10.0.0 2023-05-19 12:33:59 +02:00
Kamil Myśliwiec
5820bed145 chore: resolve conflicts 2023-05-19 12:33:43 +02:00
Kamil Mysliwiec
d352e6f138 Merge pull request #11638 from nestjs/dependabot/npm_and_yarn/types/node-20.2.1
chore(deps-dev): bump @types/node from 20.2.0 to 20.2.1
2023-05-19 12:30:47 +02:00
Kamil Mysliwiec
9dcbb6b14c Merge pull request #11639 from nestjs/dependabot/npm_and_yarn/sinon-15.1.0
chore(deps-dev): bump sinon from 15.0.4 to 15.1.0
2023-05-19 12:30:34 +02:00
Kamil Mysliwiec
9a1faf150c Merge pull request #11640 from nestjs/dependabot/npm_and_yarn/tslib-2.5.2
chore(deps): bump tslib from 2.5.1 to 2.5.2
2023-05-19 12:30:05 +02:00
dependabot[bot]
242718dbaf chore(deps): bump tslib from 2.5.1 to 2.5.2
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/2.5.1...2.5.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-05-19 01:07:55 +00:00
dependabot[bot]
6be56d0013 chore(deps-dev): bump sinon from 15.0.4 to 15.1.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 15.0.4 to 15.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/v15.0.4...v15.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-05-19 01:05:30 +00:00
dependabot[bot]
11d4a2cec8 chore(deps-dev): bump @types/node from 20.2.0 to 20.2.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.2.0 to 20.2.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-05-19 01:03:04 +00:00
Kamil Mysliwiec
c769951dcd Merge pull request #11636 from nestjs/dependabot/npm_and_yarn/tslib-2.5.1
chore(deps): bump tslib from 2.5.0 to 2.5.1
2023-05-18 08:56:04 +02:00
Kamil Mysliwiec
929174b8ad Merge pull request #11637 from nestjs/dependabot/npm_and_yarn/types/node-20.2.0
chore(deps-dev): bump @types/node from 20.1.7 to 20.2.0
2023-05-18 08:55:55 +02:00
dependabot[bot]
fb442a2e91 chore(deps-dev): bump @types/node from 20.1.7 to 20.2.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.1.7 to 20.2.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-05-18 01:01:58 +00:00
dependabot[bot]
fe6868d7e3 chore(deps): bump tslib from 2.5.0 to 2.5.1
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/2.5.0...2.5.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 01:00:45 +00:00
Kamil Mysliwiec
fa0a085d57 Merge pull request #11631 from nestjs/dependabot/npm_and_yarn/types/node-20.1.7
chore(deps-dev): bump @types/node from 20.1.5 to 20.1.7
2023-05-17 09:17:38 +02:00
dependabot[bot]
b03d8702d7 chore(deps-dev): bump @types/node from 20.1.5 to 20.1.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.1.5 to 20.1.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-05-17 01:00:37 +00:00
Kamil Myśliwiec
60542ea1b5 chore: update readme 2023-05-16 09:36:03 +02:00
Kamil Myśliwiec
468c179e18 chore(@nestjs) publish v9.4.1 release 2023-05-16 09:32:38 +02:00
Kamil Mysliwiec
fabbd09906 Merge pull request #11600 from matt1097/issue-11586
fix(core): Only update module distance if greater
2023-05-16 09:28:14 +02:00
Kamil Mysliwiec
7cebc3b1eb Merge pull request #11622 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-17.6.3
chore(deps-dev): bump @commitlint/config-angular from 17.6.1 to 17.6.3
2023-05-16 09:15:42 +02:00
Kamil Mysliwiec
aacea0e07c Merge pull request #11541 from kuronijin/master
feat(microservices): Add isGlobal option to the ClientsModule
2023-05-16 09:15:25 +02:00
Kamil Mysliwiec
927525e082 Merge pull request #11549 from dammy001/patch-1
chore(validation): add ability to pass custom message in file size validator
2023-05-16 09:14:39 +02:00
Kamil Mysliwiec
37f332c2c7 Merge pull request #11621 from nestjs/dependabot/npm_and_yarn/types/sinon-10.0.15
chore(deps-dev): bump @types/sinon from 10.0.14 to 10.0.15
2023-05-16 09:14:14 +02:00
dependabot[bot]
11ebf30c53 chore(deps-dev): bump @types/sinon from 10.0.14 to 10.0.15
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.14 to 10.0.15.
- [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-05-16 07:11:16 +00:00
dependabot[bot]
0697076e1f chore(deps-dev): bump @commitlint/config-angular from 17.6.1 to 17.6.3
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 17.6.1 to 17.6.3.
- [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.6.3/@commitlint/config-angular)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 07:09:56 +00:00
Kamil Mysliwiec
6302f75996 Merge pull request #11623 from nestjs/dependabot/npm_and_yarn/typeorm-0.3.16
chore(deps-dev): bump typeorm from 0.3.15 to 0.3.16
2023-05-16 09:06:20 +02:00
Kamil Mysliwiec
3a0a3d1df4 Merge pull request #11625 from nestjs/dependabot/npm_and_yarn/fastify/middie-8.3.0
chore(deps): bump @fastify/middie from 8.1.0 to 8.3.0
2023-05-16 09:06:08 +02:00
Kamil Mysliwiec
742c92e7e0 Merge pull request #11626 from nestjs/dependabot/npm_and_yarn/types/node-20.1.5
chore(deps-dev): bump @types/node from 20.1.4 to 20.1.5
2023-05-16 09:06:01 +02:00
Kamil Mysliwiec
608af53693 Merge pull request #11627 from nestjs/dependabot/npm_and_yarn/mysql2-3.3.1
chore(deps-dev): bump mysql2 from 3.2.4 to 3.3.1
2023-05-16 09:05:56 +02:00
Kamil Mysliwiec
7df1d07bd2 Merge pull request #11628 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.6.3
chore(deps-dev): bump @commitlint/cli from 17.6.1 to 17.6.3
2023-05-16 09:05:52 +02:00
Kamil Mysliwiec
c3d8247859 Merge pull request #11629 from nestjs/dependabot/npm_and_yarn/core-js-3.30.2
chore(deps-dev): bump core-js from 3.30.1 to 3.30.2
2023-05-16 09:05:47 +02:00
Kamil Mysliwiec
b2a35f231a Merge pull request #11571 from TP-O/fix-error-log
fix(common): `ConsoleLogger` doesn't log stacktrace
2023-05-16 09:04:56 +02:00
dependabot[bot]
d224961d61 chore(deps-dev): bump core-js from 3.30.1 to 3.30.2
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.30.1 to 3.30.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.30.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-05-16 01:13:13 +00:00
dependabot[bot]
da6b39ffbd chore(deps-dev): bump @commitlint/cli from 17.6.1 to 17.6.3
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.6.1 to 17.6.3.
- [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.6.3/@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-05-16 01:12:20 +00:00
dependabot[bot]
d97196c2dc chore(deps-dev): bump mysql2 from 3.2.4 to 3.3.1
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.2.4 to 3.3.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.2.4...v3.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 01:11:08 +00:00
dependabot[bot]
2110c8727e chore(deps-dev): bump @types/node from 20.1.4 to 20.1.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.1.4 to 20.1.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-05-16 01:10:15 +00:00
dependabot[bot]
cfd2a30b35 chore(deps): bump @fastify/middie from 8.1.0 to 8.3.0
Bumps [@fastify/middie](https://github.com/fastify/middie) from 8.1.0 to 8.3.0.
- [Release notes](https://github.com/fastify/middie/releases)
- [Commits](https://github.com/fastify/middie/compare/v8.1.0...v8.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 01:09:10 +00:00
dependabot[bot]
866787996a chore(deps-dev): bump typeorm from 0.3.15 to 0.3.16
Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.3.15 to 0.3.16.
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typeorm/typeorm/compare/0.3.15...0.3.16)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 01:01:59 +00:00
Kamil Mysliwiec
760a40e4ce Merge pull request #11620 from nestjs/dependabot/npm_and_yarn/set-value-and-union-value-2.0.1
chore(deps): bump set-value and union-value
2023-05-15 10:57:03 +02:00
Kamil Mysliwiec
fcf1cad484 Merge pull request #11568 from nestjs/dependabot/npm_and_yarn/lint-staged-13.2.2
chore(deps-dev): bump lint-staged from 13.2.1 to 13.2.2
2023-05-15 10:56:44 +02:00
Kamil Mysliwiec
88880f9a21 Merge pull request #11570 from nestjs/dependabot/npm_and_yarn/rxjs-7.8.1
chore(deps): bump rxjs from 7.8.0 to 7.8.1
2023-05-15 10:56:39 +02:00
dependabot[bot]
f92f029505 chore(deps): bump set-value and union-value
Bumps [set-value](https://github.com/jonschlinkert/set-value) and [union-value](https://github.com/jonschlinkert/union-value). These dependencies needed to be updated together.

Updates `set-value` from 0.4.3 to 2.0.1
- [Commits](https://github.com/jonschlinkert/set-value/compare/0.4.3...2.0.1)

Updates `union-value` from 1.0.0 to 1.0.1
- [Release notes](https://github.com/jonschlinkert/union-value/releases)
- [Commits](https://github.com/jonschlinkert/union-value/compare/1.0.0...1.0.1)

---
updated-dependencies:
- dependency-name: set-value
  dependency-type: indirect
- dependency-name: union-value
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 08:56:32 +00:00
Kamil Mysliwiec
0c4ee5e190 Merge pull request #11575 from nestjs/dependabot/npm_and_yarn/fastify-4.17.0
chore(deps): bump fastify from 4.16.0 to 4.17.0
2023-05-15 10:56:19 +02:00
Kamil Mysliwiec
88ef0d33b7 Merge pull request #11576 from nestjs/dependabot/npm_and_yarn/redis-4.6.6
chore(deps-dev): bump redis from 4.6.5 to 4.6.6
2023-05-15 10:56:12 +02:00
Kamil Mysliwiec
bcb1f204bd Merge pull request #11583 from nestjs/dependabot/npm_and_yarn/types/chai-4.3.5
chore(deps-dev): bump @types/chai from 4.3.4 to 4.3.5
2023-05-15 10:56:06 +02:00
Kamil Mysliwiec
1b47dc6ae0 Merge pull request #11588 from nestjs/dependabot/npm_and_yarn/apollo/server-4.7.1
chore(deps-dev): bump @apollo/server from 4.7.0 to 4.7.1
2023-05-15 10:54:40 +02:00
Kamil Mysliwiec
95d3a92eb7 Merge pull request #11589 from nestjs/dependabot/npm_and_yarn/amqp-connection-manager-4.1.13
chore(deps-dev): bump amqp-connection-manager from 4.1.12 to 4.1.13
2023-05-15 10:54:27 +02:00
Kamil Mysliwiec
308e143fa3 Merge pull request #11592 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.7.7
chore(deps-dev): bump @grpc/proto-loader from 0.7.6 to 0.7.7
2023-05-15 10:54:20 +02:00
Kamil Mysliwiec
b5f8da18ce Merge pull request #11593 from nestjs/dependabot/npm_and_yarn/engine.io-6.4.2
chore(deps): bump engine.io from 6.4.1 to 6.4.2
2023-05-15 10:54:13 +02:00
Kamil Mysliwiec
41d52dae60 Merge pull request #11594 from nestjs/dependabot/npm_and_yarn/sample/02-gateways/engine.io-6.4.2
chore(deps): bump engine.io from 6.4.1 to 6.4.2 in /sample/02-gateways
2023-05-15 10:54:00 +02:00
Kamil Mysliwiec
74135867ef Merge pull request #11612 from nestjs/dependabot/npm_and_yarn/mongoose-7.1.1
chore(deps-dev): bump mongoose from 7.0.5 to 7.1.1
2023-05-15 10:53:05 +02:00
Kamil Mysliwiec
362e4d8fa8 Merge pull request #11617 from nestjs/dependabot/npm_and_yarn/types/node-20.1.4
chore(deps-dev): bump @types/node from 18.16.1 to 20.1.4
2023-05-15 10:52:42 +02:00
dependabot[bot]
f16c47b05f chore(deps): bump fastify from 4.16.0 to 4.17.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.16.0 to 4.17.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/4.16.0...4.17.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-05-15 08:44:09 +00:00
Kamil Mysliwiec
c116e1c72c Merge pull request #11580 from mik0byte/chore/remove-caret-sign
chore(deps): remove caret sign from @fastify/cors
2023-05-15 10:42:05 +02:00
Kamil Mysliwiec
21edc331b2 Merge pull request #11587 from fityannugroho/master
sample/13: change readme title
2023-05-15 10:39:46 +02:00
Kamil Mysliwiec
69f432b738 Merge pull request #11604 from micalevisk/fix/issue-11602
refactor(common): import from decorators module instead of common's barrel file
2023-05-15 10:11:19 +02:00
Kamil Mysliwiec
f5e82fe052 Merge pull request #11619 from micalevisk/patch-1
docs: update zh readme headers
2023-05-15 09:54:52 +02:00
Micael Levi L. Cavalcante
8706662a22 docs: update zh readme headers 2023-05-14 23:24:41 -04:00
dependabot[bot]
6e5143d79f chore(deps-dev): bump @types/node from 18.16.1 to 20.1.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.16.1 to 20.1.4.
- [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-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 01:19:16 +00:00
dependabot[bot]
3282db1630 chore(deps-dev): bump mongoose from 7.0.5 to 7.1.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.0.5 to 7.1.1.
- [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.0.5...7.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-11 01:16:34 +00:00
Micael Levi L. Cavalcante
05e49963ac refactor(common): import from decorators module instead of common barrel 2023-05-06 16:37:35 -04:00
matt1097
8ea3a5088c fix(core): Only update module distance if greater 2023-05-05 11:40:17 -04:00
dependabot[bot]
f60e62888e chore(deps): bump engine.io from 6.4.1 to 6.4.2 in /sample/02-gateways
Bumps [engine.io](https://github.com/socketio/engine.io) from 6.4.1 to 6.4.2.
- [Release notes](https://github.com/socketio/engine.io/releases)
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io/compare/6.4.1...6.4.2)

---
updated-dependencies:
- dependency-name: engine.io
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 01:54:39 +00:00
dependabot[bot]
73059a3acf chore(deps): bump engine.io from 6.4.1 to 6.4.2
Bumps [engine.io](https://github.com/socketio/engine.io) from 6.4.1 to 6.4.2.
- [Release notes](https://github.com/socketio/engine.io/releases)
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io/compare/6.4.1...6.4.2)

---
updated-dependencies:
- dependency-name: engine.io
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 01:36:37 +00:00
dependabot[bot]
dc9ee85374 chore(deps-dev): bump @grpc/proto-loader from 0.7.6 to 0.7.7
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.7.6 to 0.7.7.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/proto-loader@0.7.6...@grpc/proto-loader@0.7.7)

---
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-05-04 00:59:52 +00:00
dependabot[bot]
4fd0957efc chore(deps-dev): bump amqp-connection-manager from 4.1.12 to 4.1.13
Bumps [amqp-connection-manager](https://github.com/jwalton/node-amqp-connection-manager) from 4.1.12 to 4.1.13.
- [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.12...v4.1.13)

---
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-05-03 01:10:51 +00:00
dependabot[bot]
d18343c920 chore(deps-dev): bump @apollo/server from 4.7.0 to 4.7.1
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.7.0 to 4.7.1.
- [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.7.1/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-05-03 01:04:36 +00:00
Fityan
ef5f17efe1 sample/13: change readme title
this sample doesn't use `mongoose`
2023-05-02 11:20:55 +07:00
dependabot[bot]
fffdbb26c9 chore(deps-dev): bump @types/chai from 4.3.4 to 4.3.5
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.4 to 4.3.5.
- [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-05-01 01:09:02 +00:00
Mikayel Aleksanyan
fbca5ac5a9 chore(deps): remove caret sign from @fastify/cors 2023-04-29 18:11:19 +04:00
TP-O
c52d33348a feat: determine context and stack if passing 2 parameters 2023-04-29 08:36:44 +07:00
TP-O
87412ad51e test: add test 2023-04-28 17:41:20 +07:00
dependabot[bot]
a815394556 chore(deps-dev): bump redis from 4.6.5 to 4.6.6
Bumps [redis](https://github.com/redis/node-redis) from 4.6.5 to 4.6.6.
- [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.5...redis@4.6.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-28 01:00:23 +00:00
TP-O
2effb83b21 fix: log stacktrace if 2 args is passed 2023-04-27 19:07:31 +07:00
Kamil Mysliwiec
85966703ac Merge pull request #11566 from cesarkohl/patch-1
Replace HTTP with HTTPS on README.md
2023-04-27 09:18:13 +02:00
dependabot[bot]
6098e2465f chore(deps): bump rxjs from 7.8.0 to 7.8.1
Bumps [rxjs](https://github.com/reactivex/rxjs) from 7.8.0 to 7.8.1.
- [Release notes](https://github.com/reactivex/rxjs/releases)
- [Changelog](https://github.com/ReactiveX/rxjs/blob/7.8.1/CHANGELOG.md)
- [Commits](https://github.com/reactivex/rxjs/compare/7.8.0...7.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-27 01:06:41 +00:00
dependabot[bot]
5db74f80c6 chore(deps-dev): bump lint-staged from 13.2.1 to 13.2.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.2.1 to 13.2.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.2.1...v13.2.2)

---
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-04-27 01:00:48 +00:00
Cesar Kohl
b5cab0f907 Replace HTTP with HTTPS on README.md 2023-04-26 13:10:56 -03:00
Kamil Mysliwiec
232582477e Merge pull request #11564 from nestjs/dependabot/npm_and_yarn/types/node-18.16.1
chore(deps-dev): bump @types/node from 18.16.0 to 18.16.1
2023-04-26 08:26:02 +02:00
Kamil Mysliwiec
7ec42c7329 Merge pull request #11563 from nestjs/dependabot/npm_and_yarn/mysql2-3.2.4
chore(deps-dev): bump mysql2 from 3.2.3 to 3.2.4
2023-04-26 08:25:52 +02:00
Kamil Mysliwiec
1073c41dc4 Merge pull request #11565 from nestjs/dependabot/npm_and_yarn/fastify-4.16.0
chore(deps): bump fastify from 4.15.0 to 4.16.0
2023-04-26 08:25:24 +02:00
dependabot[bot]
26bd9662f8 chore(deps): bump fastify from 4.15.0 to 4.16.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.15.0 to 4.16.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.15.0...4.16.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-04-26 01:09:51 +00:00
dependabot[bot]
bd03c036cd chore(deps-dev): bump @types/node from 18.16.0 to 18.16.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.16.0 to 18.16.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-04-26 01:00:36 +00:00
dependabot[bot]
22d4a1edff chore(deps-dev): bump mysql2 from 3.2.3 to 3.2.4
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.2.3 to 3.2.4.
- [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.2.3...v3.2.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 00:59:08 +00:00
Kamil Mysliwiec
c8da134e6c Merge pull request #11558 from nestjs/dependabot/npm_and_yarn/yaml-2.2.2
chore(deps): bump yaml from 2.2.1 to 2.2.2
2023-04-25 09:34:49 +02:00
dependabot[bot]
0c0c377188 chore(deps): bump yaml from 2.2.1 to 2.2.2
Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 07:07:57 +00:00
Kamil Mysliwiec
8879391672 Merge pull request #11557 from nestjs/dependabot/npm_and_yarn/mongoose-7.0.5
chore(deps-dev): bump mongoose from 7.0.4 to 7.0.5
2023-04-25 09:06:52 +02:00
Kamil Mysliwiec
f6f577a4df Merge pull request #11555 from MaurerKrisztian/InjectionToken-generic
refactor(common): Add generic to InjectionToken type
2023-04-25 08:28:10 +02:00
dependabot[bot]
244b44580c chore(deps-dev): bump mongoose from 7.0.4 to 7.0.5
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.0.4 to 7.0.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.0.4...7.0.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-04-25 01:01:53 +00:00
Viktor Belokhvostov
924c5f32bb feat(microservices): Updated the ClientsModule options types 2023-04-24 14:31:25 +01:00
krisztian.maurer
3bf74d8fb6 refactor(common): Add generic to InjectionToken type 2023-04-24 13:49:24 +02:00
Kamil Mysliwiec
e389c08c1b Merge pull request #11552 from nestjs/dependabot/npm_and_yarn/prettier-2.8.8
chore(deps-dev): bump prettier from 2.8.7 to 2.8.8
2023-04-24 10:57:39 +02:00
Kamil Mysliwiec
79e5401044 Merge pull request #11553 from nestjs/dependabot/npm_and_yarn/types/node-18.16.0
chore(deps-dev): bump @types/node from 18.15.12 to 18.16.0
2023-04-24 10:57:17 +02:00
Kamil Mysliwiec
819f2d13c2 Merge pull request #11551 from nestjs/dependabot/npm_and_yarn/cache-manager-5.2.1
chore(deps-dev): bump cache-manager from 5.2.0 to 5.2.1
2023-04-24 10:57:08 +02:00
dependabot[bot]
2e741338c9 chore(deps-dev): bump @types/node from 18.15.12 to 18.16.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.15.12 to 18.16.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-04-24 02:07:39 +00:00
dependabot[bot]
728afa1017 chore(deps-dev): bump prettier from 2.8.7 to 2.8.8
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.7 to 2.8.8.
- [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/2.8.7...2.8.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 02:01:11 +00:00
dependabot[bot]
af595fd631 chore(deps-dev): bump cache-manager from 5.2.0 to 5.2.1
Bumps [cache-manager](https://github.com/node-cache-manager/node-cache-manager) from 5.2.0 to 5.2.1.
- [Release notes](https://github.com/node-cache-manager/node-cache-manager/releases)
- [Changelog](https://github.com/node-cache-manager/node-cache-manager/blob/master/CHANGELOG.md)
- [Commits](https://github.com/node-cache-manager/node-cache-manager/compare/5.2.0...5.2.1)

---
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-04-24 01:56:00 +00:00
Anjorin Damilare
d46db256af Update max-file-size.validator.ts 2023-04-23 07:26:04 +01:00
Anjorin Damilare
df0270af04 Update max-file-size.validator.ts 2023-04-23 07:13:25 +01:00
Anjorin Damilare
93a2b48be7 chore: remove function to prevent breaking change 2023-04-23 07:10:15 +01:00
Anjorin Damilare
619b98caf7 Update max-file-size.validator.ts 2023-04-23 07:04:50 +01:00
Anjorin Damilare
84bd87c86a chore: add ability to pass custom message in file size validator 2023-04-23 06:57:52 +01:00
Viktor Belokhvostov
dc5aaf9af3 feat(microservices): Add isGlobal option to the ClientsModule 2023-04-21 11:50:12 +01:00
Kamil Mysliwiec
55aa3f3352 Merge pull request #11535 from CemYil03/update-package-json-files
chore: update repo references in package.json files
2023-04-21 09:31:25 +02:00
Kamil Mysliwiec
35dcfbf3db Merge pull request #11538 from nestjs/dependabot/npm_and_yarn/apollo/server-4.7.0
chore(deps-dev): bump @apollo/server from 4.6.0 to 4.7.0
2023-04-21 09:27:26 +02:00
Kamil Mysliwiec
f21713a27b Merge pull request #11539 from nestjs/dependabot/npm_and_yarn/sinon-15.0.4
chore(deps-dev): bump sinon from 15.0.3 to 15.0.4
2023-04-21 09:27:15 +02:00
dependabot[bot]
43c4c06779 chore(deps-dev): bump sinon from 15.0.3 to 15.0.4
Bumps [sinon](https://github.com/sinonjs/sinon) from 15.0.3 to 15.0.4.
- [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.0.3...v15.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 01:10:00 +00:00
dependabot[bot]
485bb3bc85 chore(deps-dev): bump @apollo/server from 4.6.0 to 4.7.0
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.6.0 to 4.7.0.
- [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.7.0/packages/server)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 01:07:00 +00:00
Cem Yilmaz
cdd0e67876 chore: update repo references in package.json files 2023-04-20 10:26:09 +02:00
Kamil Mysliwiec
4629c2e416 Merge pull request #11533 from nestjs/dependabot/npm_and_yarn/types/node-18.15.12
chore(deps-dev): bump @types/node from 18.15.11 to 18.15.12
2023-04-20 08:21:11 +02:00
dependabot[bot]
2198f4dfc8 chore(deps-dev): bump @types/node from 18.15.11 to 18.15.12
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.15.11 to 18.15.12.
- [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-04-20 01:01:05 +00:00
Kamil Mysliwiec
d113f68dd7 Merge pull request #11527 from nestjs/renovate/mongoose-6.x
fix(deps): update dependency mongoose to v6.10.5
2023-04-18 10:06:36 +02:00
Kamil Mysliwiec
08793e6ac0 Merge pull request #11528 from nestjs/dependabot/npm_and_yarn/mongoose-7.0.4
chore(deps-dev): bump mongoose from 7.0.3 to 7.0.4
2023-04-18 10:05:18 +02:00
Kamil Mysliwiec
997d1476b1 Merge pull request #11529 from nestjs/dependabot/npm_and_yarn/types/sinon-10.0.14
chore(deps-dev): bump @types/sinon from 10.0.13 to 10.0.14
2023-04-18 10:05:14 +02:00
Kamil Mysliwiec
dafea5ad0f Merge pull request #11523 from nestjs/renovate/nestjs-graphql-10.x
fix(deps): update dependency @nestjs/graphql to v10.2.1
2023-04-18 10:04:52 +02:00
Kamil Mysliwiec
83bb3d2429 Merge pull request #11521 from nestjs/renovate/fastify-static-6.x
fix(deps): update dependency @fastify/static to v6.10.1
2023-04-18 10:04:40 +02:00
Kamil Mysliwiec
1de477deef Merge pull request #11522 from nestjs/renovate/grpc-grpc-js-1.x
fix(deps): update dependency @grpc/grpc-js to v1.8.14
2023-04-18 10:04:14 +02:00
Kamil Mysliwiec
70c37baf2c Merge pull request #11525 from nestjs/renovate/nestjs-schedule-2.x
fix(deps): update dependency @nestjs/schedule to v2.2.1
2023-04-18 10:03:52 +02:00
Kamil Mysliwiec
61858b7e28 Merge pull request #11526 from nestjs/renovate/nestjs-swagger-6.x
fix(deps): update dependency @nestjs/swagger to v6.3.0
2023-04-18 10:03:45 +02:00
Kamil Mysliwiec
50282e9c0e Merge pull request #11518 from nestjs/renovate/tsconfig-paths-4.x
chore(deps): update dependency tsconfig-paths to v4.2.0
2023-04-18 10:03:14 +02:00
dependabot[bot]
14986a631c chore(deps-dev): bump @types/sinon from 10.0.13 to 10.0.14
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.13 to 10.0.14.
- [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-04-18 01:01:00 +00:00
dependabot[bot]
c1245486fe chore(deps-dev): bump mongoose from 7.0.3 to 7.0.4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.0.3 to 7.0.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.0.3...7.0.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-04-18 00:58:50 +00:00
renovate[bot]
ba92ce7353 fix(deps): update dependency mongoose to v6.10.5 2023-04-17 12:26:54 +00:00
renovate[bot]
0da7a14388 fix(deps): update dependency @grpc/grpc-js to v1.8.14 2023-04-17 12:26:11 +00:00
renovate[bot]
b46071dce7 chore(deps): update dependency tsconfig-paths to v4.2.0 2023-04-17 12:19:59 +00:00
Kamil Myśliwiec
278654247b ci: dont run test node 19 for now 2023-04-17 14:18:06 +02:00
Kamil Myśliwiec
6a8b649840 Merge branch 'leonardovillela-testing-module-builder-add-override-module-method' into 10.0.0 2023-04-17 14:06:14 +02:00
Kamil Myśliwiec
f98c779e35 test: update outdated tests 2023-04-17 14:05:50 +02:00
Kamil Myśliwiec
11b7418e3f Merge branch '10.0.0' into leonardovillela-testing-module-builder-add-override-module-method 2023-04-17 13:49:11 +02:00
Kamil Myśliwiec
fdfabf978c chore: resolve conflicts 2023-04-17 13:49:01 +02:00
renovate[bot]
eb4a529fdd fix(deps): update dependency @nestjs/swagger to v6.3.0 2023-04-17 11:29:58 +00:00
renovate[bot]
4be9d27e32 fix(deps): update dependency @nestjs/schedule to v2.2.1 2023-04-17 11:29:42 +00:00
renovate[bot]
5cc160df76 fix(deps): update dependency @nestjs/graphql to v10.2.1 2023-04-17 11:29:07 +00:00
renovate[bot]
86f83a0902 fix(deps): update dependency @fastify/static to v6.10.1 2023-04-17 11:28:31 +00:00
Kamil Mysliwiec
32db0fcfdb Merge pull request #11515 from nestjs/renovate/nestjs-cli-9.x
chore(deps): update dependency @nestjs/cli to v9.4.0
2023-04-17 13:16:42 +02:00
Kamil Myśliwiec
25c721a2ca chore: resolve conflicts 2023-04-17 13:16:27 +02:00
Kamil Mysliwiec
7b05cd0cbf Merge pull request #10533 from Gustrb/add-search-method
feat(core/common): Add @Search decorator to the available HTTP route handlers
2023-04-17 13:14:09 +02:00
Kamil Mysliwiec
69fba03c7d Merge pull request #10359 from tijsmoree/redis-microservice-psubscribe
feat(microservices): enable wildcards in redis microservice patterns
2023-04-17 13:12:28 +02:00
renovate[bot]
f30058b3d8 chore(deps): update dependency @nestjs/cli to v9.4.0 2023-04-17 11:11:09 +00:00
Kamil Mysliwiec
b908f1a012 Merge pull request #11118 from elplancton/host-regex
feat(core): add support to named groups
2023-04-17 13:09:35 +02:00
Kamil Mysliwiec
fa8f3b8737 Merge pull request #11508 from nestjs/dependabot/npm_and_yarn/sample/05-sql-typeorm/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/05-sql-typeorm
2023-04-17 13:07:50 +02:00
Kamil Mysliwiec
1f0adb8925 Merge pull request #11509 from nestjs/dependabot/npm_and_yarn/sample/06-mongoose/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/06-mongoose
2023-04-17 13:07:43 +02:00
Kamil Mysliwiec
42446072d3 Merge pull request #11510 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/07-sequelize
2023-04-17 13:07:37 +02:00
Kamil Mysliwiec
ce32df444f Merge pull request #11511 from nestjs/dependabot/npm_and_yarn/sample/04-grpc/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/04-grpc
2023-04-17 13:07:31 +02:00
Kamil Mysliwiec
4ebf7d7723 Merge pull request #11512 from nestjs/dependabot/npm_and_yarn/sample/02-gateways/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/02-gateways
2023-04-17 13:07:25 +02:00
Kamil Mysliwiec
1eb3311386 Merge pull request #11513 from nestjs/dependabot/npm_and_yarn/sample/03-microservices/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/03-microservices
2023-04-17 13:07:12 +02:00
Kamil Mysliwiec
1f83076760 Merge pull request #11514 from nestjs/dependabot/npm_and_yarn/sample/01-cats-app/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/01-cats-app
2023-04-17 13:07:05 +02:00
Kamil Myśliwiec
bc4a571ef4 fix: update outdated imports 2023-04-17 13:06:25 +02:00
dependabot[bot]
01bb998ed7 chore(deps): bump webpack and @nestjs/cli in /sample/01-cats-app
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 08:14:59 +00:00
dependabot[bot]
048652bb7a chore(deps): bump webpack and @nestjs/cli in /sample/03-microservices
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 08:14:40 +00:00
dependabot[bot]
f7e3f75dca chore(deps): bump webpack and @nestjs/cli in /sample/02-gateways
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 08:13:37 +00:00
dependabot[bot]
ad67359762 chore(deps): bump webpack and @nestjs/cli in /sample/04-grpc
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 08:13:21 +00:00
dependabot[bot]
f954e4464f chore(deps): bump webpack and @nestjs/cli in /sample/07-sequelize
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 08:13:08 +00:00
dependabot[bot]
9a0b2b95a8 chore(deps): bump webpack and @nestjs/cli in /sample/06-mongoose
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 08:12:52 +00:00
dependabot[bot]
8de9202ed4 chore(deps): bump webpack and @nestjs/cli in /sample/05-sql-typeorm
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 08:12:51 +00:00
Kamil Mysliwiec
31f0f30365 Merge pull request #11497 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-17.6.1
chore(deps-dev): bump @commitlint/config-angular from 17.6.0 to 17.6.1
2023-04-17 10:12:37 +02:00
Kamil Mysliwiec
a802804860 Merge pull request #11499 from nestjs/dependabot/npm_and_yarn/sample/19-auth-jwt/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/19-auth-jwt
2023-04-17 10:12:32 +02:00
Kamil Mysliwiec
0d4797549f Merge pull request #11500 from nestjs/dependabot/npm_and_yarn/sample/18-context/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/18-context
2023-04-17 10:12:26 +02:00
Kamil Mysliwiec
0742b04a95 Merge pull request #11501 from nestjs/dependabot/npm_and_yarn/sample/17-mvc-fastify/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/17-mvc-fastify
2023-04-17 10:12:20 +02:00
Kamil Mysliwiec
e78764d731 Merge pull request #11502 from nestjs/dependabot/npm_and_yarn/sample/16-gateways-ws/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/16-gateways-ws
2023-04-17 10:12:15 +02:00
Kamil Mysliwiec
c5f3485a17 Merge pull request #11503 from nestjs/dependabot/npm_and_yarn/sample/15-mvc/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/15-mvc
2023-04-17 10:12:10 +02:00
Kamil Mysliwiec
9d59a1f0ea Merge pull request #11504 from nestjs/dependabot/npm_and_yarn/sample/13-mongo-typeorm/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/13-mongo-typeorm
2023-04-17 10:12:04 +02:00
Kamil Mysliwiec
66128c7042 Merge pull request #11505 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/14-mongoose-base
2023-04-17 10:11:57 +02:00
Kamil Mysliwiec
7aa74bb93a Merge pull request #11506 from nestjs/dependabot/npm_and_yarn/sample/10-fastify/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/10-fastify
2023-04-17 10:11:51 +02:00
Kamil Mysliwiec
dd074aa0f8 Merge pull request #11507 from nestjs/dependabot/npm_and_yarn/sample/11-swagger/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/11-swagger
2023-04-17 10:11:40 +02:00
dependabot[bot]
ab7474dccb chore(deps-dev): bump @commitlint/config-angular from 17.6.0 to 17.6.1
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 17.6.0 to 17.6.1.
- [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.6.1/@commitlint/config-angular)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:49:14 +00:00
dependabot[bot]
793f8e945d chore(deps): bump webpack and @nestjs/cli in /sample/11-swagger
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:47:52 +00:00
dependabot[bot]
e01733fa27 chore(deps): bump webpack and @nestjs/cli in /sample/19-auth-jwt
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:47:39 +00:00
dependabot[bot]
6d7f7d3046 chore(deps): bump webpack and @nestjs/cli in /sample/10-fastify
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:47:39 +00:00
dependabot[bot]
e71bc0aeef chore(deps): bump webpack and @nestjs/cli in /sample/14-mongoose-base
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:47:37 +00:00
dependabot[bot]
79cceb5798 chore(deps): bump webpack and @nestjs/cli in /sample/13-mongo-typeorm
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:47:28 +00:00
dependabot[bot]
18a6cfb596 chore(deps): bump webpack and @nestjs/cli in /sample/18-context
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:47:25 +00:00
dependabot[bot]
eaa1f93ae1 chore(deps): bump webpack and @nestjs/cli in /sample/15-mvc
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:47:19 +00:00
Kamil Mysliwiec
cf8ac196c5 Merge pull request #11496 from nestjs/dependabot/npm_and_yarn/typeorm-0.3.15
chore(deps-dev): bump typeorm from 0.3.14 to 0.3.15
2023-04-17 09:46:52 +02:00
dependabot[bot]
6485c9f357 chore(deps): bump webpack and @nestjs/cli in /sample/16-gateways-ws
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:46:47 +00:00
dependabot[bot]
584f25631c chore(deps): bump webpack and @nestjs/cli in /sample/17-mvc-fastify
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:46:46 +00:00
Kamil Mysliwiec
0308912ee8 Merge pull request #11495 from nestjs/dependabot/npm_and_yarn/ioredis-5.3.2
chore(deps-dev): bump ioredis from 5.3.1 to 5.3.2
2023-04-17 09:46:46 +02:00
Kamil Mysliwiec
771671481b Merge pull request #11488 from nestjs/dependabot/npm_and_yarn/sample/20-cache/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/20-cache
2023-04-17 09:46:43 +02:00
Kamil Mysliwiec
c431c0828e Merge pull request #11487 from nestjs/dependabot/npm_and_yarn/sample/25-dynamic-modules/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/25-dynamic-modules
2023-04-17 09:46:35 +02:00
Kamil Mysliwiec
fcd9e603ec Merge pull request #11486 from nestjs/dependabot/npm_and_yarn/sample/26-queues/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/26-queues
2023-04-17 09:46:29 +02:00
dependabot[bot]
a6909bc5d7 chore(deps): bump webpack and @nestjs/cli in /sample/26-queues
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:46:23 +00:00
Kamil Mysliwiec
8708d14096 Merge pull request #11485 from nestjs/dependabot/npm_and_yarn/sample/28-sse/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/28-sse
2023-04-17 09:46:22 +02:00
dependabot[bot]
bd1d93f129 chore(deps): bump webpack and @nestjs/cli in /sample/20-cache
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:46:19 +00:00
Kamil Mysliwiec
8001f96290 Merge pull request #11484 from nestjs/dependabot/npm_and_yarn/sample/21-serializer/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/21-serializer
2023-04-17 09:46:15 +02:00
Kamil Mysliwiec
c708970ac8 Merge pull request #11483 from nestjs/dependabot/npm_and_yarn/sample/29-file-upload/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/29-file-upload
2023-04-17 09:46:05 +02:00
dependabot[bot]
1d05023cc4 chore(deps): bump webpack and @nestjs/cli in /sample/25-dynamic-modules
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:45:56 +00:00
dependabot[bot]
a5c8d86383 chore(deps): bump webpack and @nestjs/cli in /sample/29-file-upload
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:45:55 +00:00
dependabot[bot]
1c5e263c97 chore(deps): bump webpack and @nestjs/cli in /sample/28-sse
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:45:54 +00:00
dependabot[bot]
09321efa3b chore(deps): bump webpack and @nestjs/cli in /sample/21-serializer
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 07:45:46 +00:00
Kamil Mysliwiec
f2dc78ebd3 Merge pull request #11482 from nestjs/dependabot/npm_and_yarn/sample/27-scheduling/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/27-scheduling
2023-04-17 09:45:29 +02:00
Kamil Mysliwiec
ecd298aeb8 Merge pull request #11481 from nestjs/dependabot/npm_and_yarn/sample/24-serve-static/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/24-serve-static
2023-04-17 09:45:22 +02:00
Kamil Mysliwiec
29906a334a Merge pull request #11480 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.6.1
chore(deps-dev): bump @commitlint/cli from 17.5.1 to 17.6.1
2023-04-17 09:45:13 +02:00
Kamil Mysliwiec
64a4519789 Merge pull request #11479 from nestjs/dependabot/npm_and_yarn/sample/30-event-emitter/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/30-event-emitter
2023-04-17 09:45:03 +02:00
Kamil Mysliwiec
8e2cd3d2cc Merge pull request #11471 from nestjs/dependabot/npm_and_yarn/sample/22-graphql-prisma/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/22-graphql-prisma
2023-04-17 09:44:56 +02:00
Kamil Mysliwiec
58627e6c45 Merge pull request #11498 from nestjs/dependabot/npm_and_yarn/mysql2-3.2.3
chore(deps-dev): bump mysql2 from 3.2.1 to 3.2.3
2023-04-17 09:44:43 +02:00
dependabot[bot]
9335820f2f chore(deps-dev): bump mysql2 from 3.2.1 to 3.2.3
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.2.1 to 3.2.3.
- [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.2.1...v3.2.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 01:07:53 +00:00
dependabot[bot]
9d64003af7 chore(deps-dev): bump typeorm from 0.3.14 to 0.3.15
Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.3.14 to 0.3.15.
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typeorm/typeorm/compare/0.3.14...0.3.15)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 01:02:56 +00:00
dependabot[bot]
30616bd5a2 chore(deps-dev): bump ioredis from 5.3.1 to 5.3.2
Bumps [ioredis](https://github.com/luin/ioredis) from 5.3.1 to 5.3.2.
- [Release notes](https://github.com/luin/ioredis/releases)
- [Changelog](https://github.com/luin/ioredis/blob/main/CHANGELOG.md)
- [Commits](https://github.com/luin/ioredis/compare/v5.3.1...v5.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 00:59:57 +00:00
dependabot[bot]
8321044ecb chore(deps): bump webpack and @nestjs/cli in /sample/24-serve-static
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 10:05:52 +00:00
dependabot[bot]
56365a7c7b chore(deps): bump webpack and @nestjs/cli in /sample/27-scheduling
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 10:05:51 +00:00
dependabot[bot]
a2654aca28 chore(deps): bump webpack and @nestjs/cli in /sample/22-graphql-prisma
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.75.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.79.0)

Updates `@nestjs/cli` from 9.2.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.2.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 10:05:51 +00:00
dependabot[bot]
d72f691d99 chore(deps): bump webpack and @nestjs/cli in /sample/30-event-emitter
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 10:05:47 +00:00
Kamil Mysliwiec
e33c5509e2 Merge pull request #11469 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/gateway/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/32-graphql-federation-schema-first/gateway
2023-04-14 12:04:52 +02:00
dependabot[bot]
960034ecee chore(deps): bump webpack and @nestjs/cli
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.75.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.79.0)

Updates `@nestjs/cli` from 9.2.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.2.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 09:59:44 +00:00
dependabot[bot]
258ed425b9 chore(deps-dev): bump @commitlint/cli from 17.5.1 to 17.6.1
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.5.1 to 17.6.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.6.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-04-14 09:59:34 +00:00
Kamil Mysliwiec
38e98b3d09 Merge pull request #11470 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/32-graphql-federation-schema-first/posts-application
2023-04-14 11:58:50 +02:00
Kamil Mysliwiec
df028fd29b Merge pull request #11472 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/31-graphql-federation-code-first/users-application
2023-04-14 11:58:43 +02:00
Kamil Mysliwiec
f66dca2525 Merge pull request #11473 from nestjs/dependabot/npm_and_yarn/sample/33-graphql-mercurius/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/33-graphql-mercurius
2023-04-14 11:58:35 +02:00
Kamil Mysliwiec
3c57c7ec98 Merge pull request #11474 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/31-graphql-federation-code-first/gateway
2023-04-14 11:58:28 +02:00
Kamil Mysliwiec
9859b08668 Merge pull request #11475 from nestjs/dependabot/npm_and_yarn/sample/23-graphql-code-first/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/23-graphql-code-first
2023-04-14 11:58:21 +02:00
Kamil Mysliwiec
95566e96d9 Merge pull request #11476 from nestjs/dependabot/npm_and_yarn/sample/12-graphql-schema-first/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/12-graphql-schema-first
2023-04-14 11:58:15 +02:00
Kamil Mysliwiec
01ce40796a Merge pull request #11477 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/users-application/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/32-graphql-federation-schema-first/users-application
2023-04-14 11:58:07 +02:00
Kamil Mysliwiec
ea75dd48a6 Merge pull request #11478 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/webpack-and-nestjs/cli-5.79.0
chore(deps): bump webpack and @nestjs/cli in /sample/31-graphql-federation-code-first/posts-application
2023-04-14 11:58:00 +02:00
Kamil Mysliwiec
8f2382bb50 Merge pull request #11463 from nestjs/dependabot/npm_and_yarn/core-js-3.30.1
chore(deps-dev): bump core-js from 3.30.0 to 3.30.1
2023-04-14 11:57:32 +02:00
dependabot[bot]
70a2093004 chore(deps): bump webpack and @nestjs/cli
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.75.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.79.0)

Updates `@nestjs/cli` from 9.2.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.2.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 09:57:22 +00:00
dependabot[bot]
a2db2c794c chore(deps): bump webpack and @nestjs/cli
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.75.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.79.0)

Updates `@nestjs/cli` from 9.2.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.2.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 09:57:22 +00:00
Kamil Mysliwiec
ec35efa378 Merge pull request #11465 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-17.6.0
chore(deps-dev): bump @commitlint/config-angular from 17.4.4 to 17.6.0
2023-04-14 11:57:22 +02:00
dependabot[bot]
299964d0e0 chore(deps): bump webpack and @nestjs/cli
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.75.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.79.0)

Updates `@nestjs/cli` from 9.2.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.2.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 09:57:20 +00:00
dependabot[bot]
9a7be45785 chore(deps): bump webpack and @nestjs/cli
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.75.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.79.0)

Updates `@nestjs/cli` from 9.2.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.2.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 09:57:20 +00:00
dependabot[bot]
c3f0856dae chore(deps): bump webpack and @nestjs/cli
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.75.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.79.0)

Updates `@nestjs/cli` from 9.2.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.2.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 09:57:20 +00:00
dependabot[bot]
bd59cbfdf2 chore(deps): bump webpack and @nestjs/cli
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.73.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.79.0)

Updates `@nestjs/cli` from 9.0.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.0.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 09:57:16 +00:00
Kamil Mysliwiec
7f1aa73405 Merge pull request #11466 from nestjs/dependabot/npm_and_yarn/fastify/static-6.10.1
chore(deps-dev): bump @fastify/static from 6.10.0 to 6.10.1
2023-04-14 11:57:15 +02:00
dependabot[bot]
b4adce1333 chore(deps): bump webpack and @nestjs/cli
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.75.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.79.0)

Updates `@nestjs/cli` from 9.2.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.2.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 09:57:08 +00:00
dependabot[bot]
2ef5417f43 chore(deps): bump webpack and @nestjs/cli
Bumps [webpack](https://github.com/webpack/webpack) to 5.79.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.75.0 to 5.79.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.79.0)

Updates `@nestjs/cli` from 9.2.0 to 9.4.0
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/9.2.0...9.4.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 09:57:07 +00:00
Kamil Mysliwiec
1948f06e1e Merge pull request #11467 from nestjs/dependabot/npm_and_yarn/mysql2-3.2.1
chore(deps-dev): bump mysql2 from 3.2.0 to 3.2.1
2023-04-14 11:56:27 +02:00
Kamil Mysliwiec
748bcffdd4 Merge pull request #11468 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.3.20
chore(deps-dev): bump graphql-tools from 8.3.19 to 8.3.20
2023-04-14 11:56:16 +02:00
dependabot[bot]
bbc95e3a69 chore(deps-dev): bump graphql-tools from 8.3.19 to 8.3.20
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.3.19 to 8.3.20.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.3.20/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 01:12:11 +00:00
dependabot[bot]
1e1d2f027a chore(deps-dev): bump mysql2 from 3.2.0 to 3.2.1
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.2.0 to 3.2.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.2.0...v3.2.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-04-14 01:09:45 +00:00
dependabot[bot]
7b879015f5 chore(deps-dev): bump @fastify/static from 6.10.0 to 6.10.1
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 6.10.0 to 6.10.1.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v6.10.0...v6.10.1)

---
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-04-14 01:08:25 +00:00
dependabot[bot]
ec6aac2525 chore(deps-dev): bump @commitlint/config-angular from 17.4.4 to 17.6.0
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 17.4.4 to 17.6.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.6.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-04-14 01:06:47 +00:00
dependabot[bot]
19fa3438ef chore(deps-dev): bump core-js from 3.30.0 to 3.30.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.30.0 to 3.30.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.30.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-04-14 00:59:46 +00:00
Kamil Mysliwiec
75c86c95bd Merge pull request #11458 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-11.0.5
chore(deps-dev): bump @nestjs/apollo from 11.0.4 to 11.0.5
2023-04-13 15:25:38 +02:00
Kamil Mysliwiec
ba4f3cdadc Merge pull request #11443 from nestjs/dependabot/npm_and_yarn/fastify/multipart-7.6.0
chore(deps-dev): bump @fastify/multipart from 7.5.0 to 7.6.0
2023-04-13 15:25:29 +02:00
dependabot[bot]
6e44e7cb9b chore(deps-dev): bump @nestjs/apollo from 11.0.4 to 11.0.5
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 11.0.4 to 11.0.5.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v11.0.4...v11.0.5)

---
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-04-13 08:19:13 +00:00
dependabot[bot]
4834d64a4f chore(deps-dev): bump @fastify/multipart from 7.5.0 to 7.6.0
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 7.5.0 to 7.6.0.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v7.5.0...v7.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-13 08:19:02 +00:00
Kamil Mysliwiec
df899608a6 Merge pull request #11460 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.8.14
chore(deps-dev): bump @grpc/grpc-js from 1.8.13 to 1.8.14
2023-04-13 10:16:49 +02:00
Kamil Mysliwiec
3cda125875 Merge pull request #11457 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-11.0.5
chore(deps-dev): bump @nestjs/graphql from 11.0.4 to 11.0.5
2023-04-13 10:16:41 +02:00
Kamil Mysliwiec
9feaf9a8d3 Merge pull request #11453 from nestjs/dependabot/npm_and_yarn/sample/05-sql-typeorm/xml2js-and-typeorm--removed
chore(deps): bump xml2js and typeorm in /sample/05-sql-typeorm
2023-04-13 10:16:36 +02:00
Kamil Mysliwiec
ec570a7e9f Merge pull request #11449 from nestjs/dependabot/npm_and_yarn/sample/13-mongo-typeorm/xml2js-and-typeorm--removed
chore(deps): bump xml2js and typeorm in /sample/13-mongo-typeorm
2023-04-13 10:16:29 +02:00
Kamil Mysliwiec
26818a89be Merge pull request #11446 from nestjs/dependabot/npm_and_yarn/typescript-5.0.4
chore(deps-dev): bump typescript from 5.0.3 to 5.0.4
2023-04-13 10:16:24 +02:00
Kamil Myśliwiec
03257a5cb7 docs(common): update the validator options interface comment 2023-04-13 09:53:33 +02:00
dependabot[bot]
909a7a0e88 chore(deps-dev): bump @grpc/grpc-js from 1.8.13 to 1.8.14
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.8.13 to 1.8.14.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.8.13...@grpc/grpc-js@1.8.14)

---
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-04-13 01:01:41 +00:00
dependabot[bot]
da4e61d263 chore(deps-dev): bump @nestjs/graphql from 11.0.4 to 11.0.5
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 11.0.4 to 11.0.5.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v11.0.4...v11.0.5)

---
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-04-12 01:03:25 +00:00
Kamil Myśliwiec
8b74665bdf chore: remove deprecated types, utils, logic 2023-04-11 13:34:10 +02:00
Kamil Mysliwiec
6d17c2a869 Update Readme.md 2023-04-11 13:16:49 +02:00
dependabot[bot]
584ddc52b4 chore(deps-dev): bump typescript from 5.0.3 to 5.0.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.0.3...v5.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-11 11:12:28 +00:00
dependabot[bot]
c02ad6bdd9 chore(deps): bump xml2js and typeorm in /sample/05-sql-typeorm
Removes [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js). It's no longer used after updating ancestor dependency [typeorm](https://github.com/typeorm/typeorm). These dependencies need to be updated together.


Removes `xml2js`

Updates `typeorm` from 0.3.12 to 0.3.14
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typeorm/typeorm/compare/0.3.12...0.3.14)

---
updated-dependencies:
- dependency-name: xml2js
  dependency-type: indirect
- dependency-name: typeorm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-11 11:11:31 +00:00
dependabot[bot]
1f0f913f27 chore(deps): bump xml2js and typeorm in /sample/13-mongo-typeorm
Removes [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js). It's no longer used after updating ancestor dependency [typeorm](https://github.com/typeorm/typeorm). These dependencies need to be updated together.


Removes `xml2js`

Updates `typeorm` from 0.3.12 to 0.3.14
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typeorm/typeorm/compare/0.3.12...0.3.14)

---
updated-dependencies:
- dependency-name: xml2js
  dependency-type: indirect
- dependency-name: typeorm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-11 11:11:21 +00:00
Kamil Mysliwiec
ac261f4741 Merge pull request #11444 from nestjs/dependabot/npm_and_yarn/lint-staged-13.2.1
chore(deps-dev): bump lint-staged from 13.2.0 to 13.2.1
2023-04-11 13:10:37 +02:00
Kamil Mysliwiec
1b0c84fb71 Merge pull request #11445 from nestjs/dependabot/npm_and_yarn/typeorm-0.3.14
chore(deps-dev): bump typeorm from 0.3.13 to 0.3.14
2023-04-11 13:10:33 +02:00
Kamil Mysliwiec
648f2d587f Merge pull request #11450 from micalevisk/refactor-v10/drop-deprecations
refactor(common)!: drop deprecated misspelled constant `CUSTOM_ROUTE_AGRS_METADATA`
2023-04-11 11:53:22 +02:00
Micael Levi L. Cavalcante
1a2ac3eeae refactor(common): drop deprecated misspelled constant 2023-04-10 20:33:11 -04:00
dependabot[bot]
91944abcc9 chore(deps-dev): bump typeorm from 0.3.13 to 0.3.14
Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.3.13 to 0.3.14.
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/0.3.14/CHANGELOG.md)
- [Commits](https://github.com/typeorm/typeorm/compare/0.3.13...0.3.14)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 01:15:25 +00:00
dependabot[bot]
08a1168199 chore(deps-dev): bump lint-staged from 13.2.0 to 13.2.1
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.2.0 to 13.2.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.2.0...v13.2.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-04-10 01:11:40 +00:00
Kamil Mysliwiec
bee462e031 Merge pull request #11438 from nestjs/dependabot/npm_and_yarn/typeorm-0.3.13
chore(deps-dev): bump typeorm from 0.3.12 to 0.3.13
2023-04-07 09:09:40 +02:00
dependabot[bot]
73ea8979ee chore(deps-dev): bump typeorm from 0.3.12 to 0.3.13
Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typeorm/typeorm/compare/0.3.12...0.3.13)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-07 01:04:31 +00:00
Julien Sarazin
9af95fcf50 fix(microservices): grpc-server handle async interceptors 2023-04-06 16:06:34 +02:00
Kamil Myśliwiec
880e08b718 ci: update circleci setup to use newer versions of node 2023-04-06 09:07:54 +02:00
Kamil Mysliwiec
4765b46e6d Merge pull request #10630 from micalevisk/feat/narrowing-http-adapter-instance-type
feat(common)!: narrow `getInstance` return type for http adapters
2023-04-06 09:04:37 +02:00
Kamil Mysliwiec
d3d28f121d Merge pull request #11430 from micalevisk/patch-1
test(integration): fix wrong class import on typeorm integration test
2023-04-06 09:03:51 +02:00
Micael Levi L. Cavalcante
2e2ae090cd test(integration): wrong class import on typeorm integration test 2023-04-05 09:13:26 -04:00
Micael Levi L. Cavalcante
3b6b66b7cc feat(common): narrow getInstance return type for http platforms 2023-04-05 09:05:43 -04:00
Dima Parzhitsky
48e25d4080 chore: improve typings of .createBody(…)
Add overload signatures to `HttpException.createBody(…)` to reflect different ways of creating it:

```ts
createBody(<message>, <error>, <statusCode>);
createBody(<messages>, <error>, <statusCode>);
createBody(null, <message>, <statusCode>);
createBody(null, <messages>, <statusCode>);
createBody(<custom>);
```

Signed-off-by: Dima Parzhitsky <parzhitsky@gmail.com>
2023-04-05 14:43:45 +03:00
Kamil Myśliwiec
353b974ffe Merge branch '10.0.0' of https://github.com/nestjs/nest into 10.0.0 2023-04-05 13:31:18 +02:00
Kamil Myśliwiec
0f904d2cab chore: update minimum engine version to 16 2023-04-05 13:31:07 +02:00
Kamil Mysliwiec
77442c806f Merge pull request #10133 from TheKhanj/refactor/error
refactor(): refactor exception handlers
2023-04-05 13:14:53 +02:00
Kamil Mysliwiec
10c1bd8405 Merge pull request #11142 from nordfjord/support-async-local-storage-in-interceptors
feat: Support async local storage in interceptors
2023-04-05 13:11:37 +02:00
Kamil Mysliwiec
252e864df7 Merge pull request #10953 from micalevisk/fix/partial-issue-10246
fix(common)!: when transforming optional boolean parameters on `ValidationPipe`
2023-04-05 13:11:31 +02:00
Kamil Myśliwiec
90a3416288 Merge branch 'CodyTseng-feat-enhance-http-server-type' into 10.0.0 2023-04-05 13:10:43 +02:00
Kamil Myśliwiec
702eebf9b5 chore: resolve conflicts 2023-04-05 13:10:23 +02:00
Kamil Mysliwiec
2eb932cc58 Merge pull request #11040 from mohamadrezamomeni/refactor-define-type
feat(common): define type for file input
2023-04-05 13:07:20 +02:00
Kamil Mysliwiec
5a2be89eab Merge pull request #10549 from Papooch/fix/microservices-client-falsy-options
fix(microservices): allow falsy values in options
2023-04-05 13:06:50 +02:00
Kamil Mysliwiec
5aab28f260 Merge pull request #11318 from skrtheboss/fix/inject-and-optional-decorator-typings
fix(common): fix @Inject and @Optional return types
2023-04-05 13:06:42 +02:00
Kamil Mysliwiec
03aa13e980 Merge pull request #11413 from Tony133/chore/update-interface-deprecated-kafka
chore(): update interface deprecated for kafka
2023-04-05 13:06:10 +02:00
Kamil Myśliwiec
a432407efc chore: remove cache-manager from peer deps 2023-04-05 13:04:02 +02:00
Kamil Mysliwiec
9e06786820 Merge pull request #11428 from nestjs/chore/remove-cache-module
chore(common): remove cache module
2023-04-05 13:03:35 +02:00
Kamil Myśliwiec
0d8c618c76 chore: update package.json 2023-04-05 12:49:00 +02:00
Kamil Myśliwiec
676c98ca91 chore(@nestjs) publish v9.4.0 release 2023-04-05 12:45:18 +02:00
Kamil Myśliwiec
31deefe3de test(): update internal core module test 2023-04-05 12:24:28 +02:00
Kamil Myśliwiec
2599395b3c Merge branch 'master' into chore/remove-cache-module 2023-04-05 12:23:56 +02:00
Kamil Myśliwiec
11f512c7db sample: update 20-cache sample 2023-04-05 12:12:58 +02:00
Kamil Mysliwiec
4be791ffca Merge pull request #11426 from voiceflow/feat/extend-microservice-extras
feat: allow extension of microservice event and message extras
2023-04-05 12:08:20 +02:00
Kamil Myśliwiec
f9550c3393 chore: remove cache decorator test 2023-04-05 12:07:07 +02:00
Kamil Myśliwiec
e990336deb Merge branch 'master' of https://github.com/nestjs/nest 2023-04-05 12:02:45 +02:00
Kamil Myśliwiec
06da94bca5 chore: assert type of route info objects 2023-04-05 12:02:34 +02:00
Kamil Mysliwiec
402a389e54 Merge pull request #10228 from nathanArseneau/test/sample-02-gateways
test(sample-02): added unit tests
2023-04-05 11:12:44 +02:00
Kamil Mysliwiec
c885a89dec Merge pull request #11188 from CodyTseng/fix-ws-multi-servers-on-different-paths
fix(ws): mount multi `ws` servers on different paths
2023-04-05 11:12:18 +02:00
Kamil Myśliwiec
718e70476b chore: upgrade typescript 2023-04-05 11:09:22 +02:00
Kamil Myśliwiec
570e52132c chore(common): remove cache module 2023-04-05 11:01:17 +02:00
Kamil Mysliwiec
9b6b00f0de Merge branch 'master' into test/sample-02-gateways 2023-04-05 10:58:09 +02:00
Kamil Mysliwiec
e46147ebcb Merge branch 'master' into fix-ws-multi-servers-on-different-paths 2023-04-05 10:56:47 +02:00
Kamil Mysliwiec
aa2717be24 Merge pull request #11427 from nestjs/chore/deprecate-cache-module
chore(common): deprecate cache module
2023-04-05 10:55:34 +02:00
Kamil Mysliwiec
1187af5564 Merge pull request #11325 from tolgap/fix/11302-remove-body-parser-types-dep
fix(express): remove body-parser types and ship these types our own
2023-04-05 10:47:37 +02:00
Kamil Mysliwiec
a8ae4f4389 Merge pull request #10628 from nomaxg/tls
feat(microservice): TCP microservice over TLS
2023-04-05 10:46:48 +02:00
Kamil Myśliwiec
676eed6714 chore(common): deprecate cache module 2023-04-05 10:44:58 +02:00
Ben Teichman
daa215e3b0 test: add tests for extending extras 2023-04-04 13:07:11 -04:00
Ben Teichman
fd070b82c3 feat: allow microserivce event or message extras to be extended 2023-04-04 12:46:37 -04:00
Tolga Paksoy
793e95f2a3 chore(express): add publicApi jsdoc
Co-authored-by: Micael Levi L. Cavalcante <mllc@icomp.ufam.edu.br>
2023-04-04 16:09:41 +02:00
Kamil Mysliwiec
e33cf196af Merge pull request #11394 from nestjs/dependabot/npm_and_yarn/sinon-15.0.3
chore(deps-dev): bump sinon from 15.0.2 to 15.0.3
2023-04-04 13:17:56 +02:00
dependabot[bot]
07271f5ac6 chore(deps-dev): bump sinon from 15.0.2 to 15.0.3
Bumps [sinon](https://github.com/sinonjs/sinon) from 15.0.2 to 15.0.3.
- [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.0.2...v15.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-04 08:22:21 +00:00
Kamil Mysliwiec
3b8ed626e4 Merge pull request #11406 from nestjs/dependabot/npm_and_yarn/types/node-18.15.11
chore(deps-dev): bump @types/node from 18.15.6 to 18.15.11
2023-04-04 10:16:42 +02:00
Kamil Mysliwiec
ede263c115 Merge pull request #11417 from nestjs/dependabot/npm_and_yarn/uid-2.0.2
chore(deps): bump uid from 2.0.1 to 2.0.2
2023-04-04 10:16:19 +02:00
Kamil Mysliwiec
8a5deaea0c Merge pull request #11418 from nestjs/dependabot/npm_and_yarn/fastify/static-6.10.0
chore(deps-dev): bump @fastify/static from 6.9.0 to 6.10.0
2023-04-04 10:15:40 +02:00
Kamil Mysliwiec
7524694749 Merge pull request #11419 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.7.0
chore(deps): bump fast-json-stringify from 5.6.2 to 5.7.0
2023-04-04 10:15:33 +02:00
Kamil Mysliwiec
97009804bd Merge pull request #11422 from nestjs/dependabot/npm_and_yarn/apollo/server-4.6.0
chore(deps-dev): bump @apollo/server from 4.5.0 to 4.6.0
2023-04-04 10:15:26 +02:00
Kamil Mysliwiec
d1af2cef87 Merge pull request #11423 from nestjs/dependabot/npm_and_yarn/amqp-connection-manager-4.1.12
chore(deps-dev): bump amqp-connection-manager from 4.1.11 to 4.1.12
2023-04-04 10:15:21 +02:00
Kamil Mysliwiec
6596fecbb7 Merge pull request #11424 from nestjs/dependabot/npm_and_yarn/core-js-3.30.0
chore(deps-dev): bump core-js from 3.29.1 to 3.30.0
2023-04-04 10:14:45 +02:00
dependabot[bot]
141223c6aa chore(deps-dev): bump core-js from 3.29.1 to 3.30.0
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.29.1 to 3.30.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.30.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-04-04 01:09:07 +00:00
dependabot[bot]
11893d75bf chore(deps-dev): bump amqp-connection-manager from 4.1.11 to 4.1.12
Bumps [amqp-connection-manager](https://github.com/jwalton/node-amqp-connection-manager) from 4.1.11 to 4.1.12.
- [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.11...v4.1.12)

---
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-04-04 01:06:32 +00:00
dependabot[bot]
23f45b9cf6 chore(deps-dev): bump @apollo/server from 4.5.0 to 4.6.0
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.5.0 to 4.6.0.
- [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.6.0/packages/server)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-04 01:03:51 +00:00
dependabot[bot]
d9b2bdd136 chore(deps): bump fast-json-stringify from 5.6.2 to 5.7.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.6.2 to 5.7.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.6.2...v5.7.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-04-03 01:07:53 +00:00
dependabot[bot]
b7e1beed64 chore(deps-dev): bump @fastify/static from 6.9.0 to 6.10.0
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 6.9.0 to 6.10.0.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v6.9.0...v6.10.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-04-03 01:06:15 +00:00
dependabot[bot]
ce4affc85c chore(deps): bump uid from 2.0.1 to 2.0.2
Bumps [uid](https://github.com/lukeed/uid) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/lukeed/uid/releases)
- [Commits](https://github.com/lukeed/uid/compare/v2.0.1...v2.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-03 01:02:49 +00:00
Tony133
0eec329070 chore(): update interface deprecated for kafka 2023-03-31 16:59:45 +02:00
dependabot[bot]
4e11d643aa chore(deps-dev): bump @types/node from 18.15.6 to 18.15.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.15.6 to 18.15.11.
- [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-03-31 07:34:29 +00:00
Kamil Mysliwiec
cb9c3c65b3 Merge pull request #11410 from hyunjinjeong/patch-mongoose-sample
sample(mongoose): change mongoose model type
2023-03-30 08:44:57 +02:00
hyunjin-jeong
1977245a0d sample(mongoose): change mongoose model type 2023-03-30 13:36:51 +09:00
Kamil Myśliwiec
26bb739beb sample(): update auth service and its e2e test 2023-03-29 15:28:23 +02:00
Kamil Myśliwiec
dd12812089 sample(19-auth): remove outdated unit tests 2023-03-29 15:01:48 +02:00
Kamil Mysliwiec
e3e0fe436f Merge pull request #11405 from nestjs/dependabot/npm_and_yarn/ts-morph-18.0.0
chore(deps-dev): bump ts-morph from 17.0.1 to 18.0.0
2023-03-29 14:46:18 +02:00
Kamil Mysliwiec
56a76ca447 Merge pull request #11403 from nestjs/renovate/nestjs-apollo-11.x
fix(deps): update dependency @nestjs/apollo to v11.0.4
2023-03-29 14:46:11 +02:00
Kamil Mysliwiec
51794af4bf Merge pull request #11402 from nestjs/renovate/cache-manager-4.x-lockfile
chore(deps): update dependency @types/cache-manager to v4.0.2
2023-03-29 14:46:04 +02:00
Kamil Mysliwiec
1530fec5af Merge pull request #11401 from nestjs/renovate/babel-monorepo
chore(deps): update dependency @babel/core to v7.21.3
2023-03-29 14:45:57 +02:00
Kamil Mysliwiec
0d94c86369 Merge pull request #11407 from nestjs/dependabot/npm_and_yarn/concurrently-8.0.1
chore(deps-dev): bump concurrently from 7.6.0 to 8.0.1
2023-03-29 14:45:42 +02:00
Kamil Mysliwiec
7fc6c5c45c Merge pull request #11408 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.5.1
chore(deps-dev): bump @commitlint/cli from 17.5.0 to 17.5.1
2023-03-29 14:45:39 +02:00
Kamil Mysliwiec
2151aee69b Merge pull request #11347 from nestjs/renovate/sequelize-typescript-2.x
fix(deps): update dependency sequelize-typescript to v2.1.5
2023-03-29 14:44:23 +02:00
Kamil Mysliwiec
7e80ceb845 Merge pull request #11344 from nestjs/renovate/nestjs-typeorm-9.x
fix(deps): update dependency @nestjs/typeorm to v9.0.1
2023-03-29 14:44:11 +02:00
Kamil Mysliwiec
cd673b9bb4 Merge pull request #11343 from nestjs/renovate/nestjs-serve-static-3.x
fix(deps): update dependency @nestjs/serve-static to v3.0.1
2023-03-29 14:44:07 +02:00
Kamil Mysliwiec
427f7d885e Merge pull request #11342 from nestjs/renovate/nestjs-mongoose-9.x
fix(deps): update dependency @nestjs/mongoose to v9.2.2
2023-03-29 14:43:56 +02:00
Kamil Mysliwiec
e96a7ff1dd Merge pull request #11340 from nestjs/renovate/nestjs-bull-0.x
fix(deps): update dependency @nestjs/bull to v0.6.3
2023-03-29 14:43:48 +02:00
Kamil Mysliwiec
6bbdc06aae Merge pull request #11351 from nestjs/renovate/amqplib-0.x
chore(deps): update dependency @types/amqplib to v0.10.1
2023-03-29 14:43:25 +02:00
Kamil Myśliwiec
a692e637fd chore: resolve conflicts 2023-03-29 14:41:29 +02:00
Kamil Myśliwiec
4d71fe4152 sample(19-auth): update sample to not use passport 2023-03-29 14:39:23 +02:00
dependabot[bot]
7f833010b7 chore(deps-dev): bump @commitlint/cli from 17.5.0 to 17.5.1
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.5.0 to 17.5.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.5.1/@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-03-29 01:10:00 +00:00
dependabot[bot]
1c5468e578 chore(deps-dev): bump concurrently from 7.6.0 to 8.0.1
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.6.0 to 8.0.1.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.6.0...v8.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-29 01:07:54 +00:00
dependabot[bot]
94396e05fa chore(deps-dev): bump ts-morph from 17.0.1 to 18.0.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 17.0.1 to 18.0.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/17.0.1...18.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-03-29 01:00:37 +00:00
renovate[bot]
081ce594d7 chore(deps): update dependency @types/amqplib to v0.10.1 2023-03-28 08:08:17 +00:00
renovate[bot]
2e6bf0cc52 fix(deps): update dependency sequelize-typescript to v2.1.5 2023-03-28 08:01:45 +00:00
renovate[bot]
72fdfaa26d fix(deps): update dependency @nestjs/typeorm to v9.0.1 2023-03-28 08:00:48 +00:00
renovate[bot]
02a9b110ef fix(deps): update dependency @nestjs/serve-static to v3.0.1 2023-03-28 08:00:20 +00:00
renovate[bot]
7fa5d1a792 fix(deps): update dependency @nestjs/mongoose to v9.2.2 2023-03-28 08:00:02 +00:00
renovate[bot]
d693221c79 fix(deps): update dependency @nestjs/bull to v0.6.3 2023-03-28 07:59:27 +00:00
renovate[bot]
441368ccde fix(deps): update dependency @nestjs/apollo to v11.0.4 2023-03-28 07:59:09 +00:00
renovate[bot]
062d417c00 chore(deps): update dependency @types/cache-manager to v4.0.2 2023-03-28 07:53:09 +00:00
renovate[bot]
f3376880ad chore(deps): update dependency @babel/core to v7.21.3 2023-03-28 07:52:51 +00:00
Kamil Mysliwiec
e34578d06d Merge pull request #11399 from nestjs/revert-11385-renovate/mongodb-5.x
Revert "fix(deps): update dependency mongodb to v5"
2023-03-27 09:44:49 +02:00
Kamil Mysliwiec
a6d3635078 Revert "fix(deps): update dependency mongodb to v5" 2023-03-27 09:44:35 +02:00
Kamil Mysliwiec
1e90b2849c Merge pull request #11323 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.7.6
chore(deps-dev): bump @grpc/proto-loader from 0.7.5 to 0.7.6
2023-03-27 08:55:11 +02:00
Kamil Mysliwiec
a565f506b6 Merge pull request #11395 from nestjs/dependabot/npm_and_yarn/prettier-2.8.7
chore(deps-dev): bump prettier from 2.8.6 to 2.8.7
2023-03-27 08:55:03 +02:00
Kamil Mysliwiec
0dd4158944 Merge pull request #11336 from nestjs/renovate/nodemon-2.x
chore(deps): update dependency nodemon to v2.0.22
2023-03-27 08:54:53 +02:00
Kamil Mysliwiec
407d2d7a57 Merge pull request #11339 from nestjs/renovate/mysql-8.x
chore(deps): update mysql docker tag to v8.0.32
2023-03-27 08:54:41 +02:00
Kamil Mysliwiec
7609481791 Merge pull request #11348 from nestjs/renovate/typeorm-0.x
fix(deps): update dependency typeorm to v0.3.12
2023-03-27 08:54:18 +02:00
Kamil Mysliwiec
37a036b5eb Merge pull request #11349 from nestjs/renovate/confluentinc-cp-kafka-7.x
chore(deps): update confluentinc/cp-kafka docker tag to v7.3.2
2023-03-27 08:54:06 +02:00
Kamil Mysliwiec
d80ed7a929 Merge pull request #11366 from nestjs/renovate/fastify-view-7.x
fix(deps): update dependency @fastify/view to v7.4.1
2023-03-27 08:53:30 +02:00
Kamil Mysliwiec
502a268f52 Merge pull request #11376 from nestjs/renovate/socket.io-packages
fix(deps): update dependency socket.io to v4.6.1
2023-03-27 08:52:55 +02:00
Kamil Mysliwiec
8c41e0112e Merge pull request #11381 from nestjs/renovate/mongo-6.x
chore(deps): update mongo docker tag to v6
2023-03-27 08:52:23 +02:00
Kamil Mysliwiec
bf415d8416 Merge pull request #11384 from nestjs/renovate/mercurius-12.x
fix(deps): update dependency mercurius to v12
2023-03-27 08:52:03 +02:00
Kamil Mysliwiec
8bdb847309 Merge pull request #11385 from nestjs/renovate/mongodb-5.x
fix(deps): update dependency mongodb to v5
2023-03-27 08:51:46 +02:00
Kamil Mysliwiec
c75e951d5c Update express.spec.ts 2023-03-27 08:51:28 +02:00
dependabot[bot]
48d2952259 chore(deps-dev): bump prettier from 2.8.6 to 2.8.7
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.6 to 2.8.7.
- [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/2.8.6...2.8.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 06:50:44 +00:00
Kamil Mysliwiec
d79e5da487 Merge pull request #11387 from nestjs/renovate/mysql2-3.x
fix(deps): update dependency mysql2 to v3
2023-03-27 08:50:23 +02:00
Kamil Mysliwiec
0e0a9b3ff6 Merge pull request #11389 from nestjs/renovate/rimraf-4.x
fix(deps): update dependency rimraf to v4.4.1
2023-03-27 08:50:01 +02:00
Kamil Mysliwiec
83e6918c25 Merge pull request #11334 from nestjs/renovate/babel-monorepo
chore(deps): update dependency @babel/core to v7.21.3
2023-03-27 08:49:46 +02:00
Kamil Mysliwiec
9719e4fa34 Merge pull request #11353 from nestjs/renovate/eslint-config-prettier-8.x
chore(deps): update dependency eslint-config-prettier to v8.8.0
2023-03-27 08:48:02 +02:00
Kamil Mysliwiec
70e4997522 Merge pull request #11356 from nestjs/renovate/redis-4.x
chore(deps): update dependency redis to v4.6.5
2023-03-27 08:47:49 +02:00
Kamil Mysliwiec
7f549588af Merge pull request #11363 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v5.56.0
2023-03-27 08:47:28 +02:00
Kamil Mysliwiec
4550146b05 Merge pull request #11338 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.76.3
2023-03-27 08:47:20 +02:00
Kamil Mysliwiec
fd30c0a240 Merge pull request #11337 from nestjs/renovate/ts-jest-28.x
chore(deps): update dependency ts-jest to v28.0.8
2023-03-27 08:47:10 +02:00
Kamil Mysliwiec
63fa43b97b Merge pull request #11364 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages
2023-03-27 08:46:29 +02:00
Kamil Mysliwiec
74739ee67f Merge pull request #11361 from nestjs/renovate/typescript-4.x
chore(deps): update dependency typescript to v4.9.5
2023-03-27 08:46:15 +02:00
Kamil Mysliwiec
d2de15aa0b Merge pull request #11377 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo
2023-03-27 08:45:39 +02:00
Kamil Mysliwiec
c0bff9c7b6 Merge pull request #11392 from ianzone/console-logger
feat: change updateAndGetTimestampDiff from private to protected
2023-03-27 08:31:50 +02:00
ian
4cad5067a3 feat: change updateandgettimestampdiff from private to protected 2023-03-26 12:41:41 +08:00
renovate[bot]
e21ef19a3d fix(deps): update dependency rimraf to v4.4.1 2023-03-24 18:28:19 +00:00
renovate[bot]
ba4fff1c3f fix(deps): update dependency mysql2 to v3 2023-03-24 18:27:40 +00:00
renovate[bot]
456b242bb1 fix(deps): update dependency mongodb to v5 2023-03-24 18:27:14 +00:00
renovate[bot]
853f76d7fb fix(deps): update dependency mercurius to v12 2023-03-24 18:27:04 +00:00
renovate[bot]
c2e2ee6451 chore(deps): update mongo docker tag to v6 2023-03-24 18:26:33 +00:00
renovate[bot]
aebed922e4 fix(deps): update nest monorepo 2023-03-24 18:25:25 +00:00
renovate[bot]
51228f09e4 fix(deps): update dependency socket.io to v4.6.1 2023-03-24 18:24:50 +00:00
renovate[bot]
1854bbb67c fix(deps): update dependency @fastify/view to v7.4.1 2023-03-24 18:22:37 +00:00
renovate[bot]
335b48ad8a fix(deps): update apollo graphql packages 2023-03-24 18:22:15 +00:00
renovate[bot]
be14e5bd1c chore(deps): update typescript-eslint monorepo to v5.56.0 2023-03-24 18:21:44 +00:00
renovate[bot]
88e87693af chore(deps): update dependency typescript to v4.9.5 2023-03-24 18:20:33 +00:00
renovate[bot]
70fa720780 chore(deps): update dependency redis to v4.6.5 2023-03-24 18:18:34 +00:00
renovate[bot]
17fc17c967 chore(deps): update dependency eslint-config-prettier to v8.8.0 2023-03-24 18:17:32 +00:00
renovate[bot]
d084702af4 chore(deps): update confluentinc/cp-kafka docker tag to v7.3.2 2023-03-24 18:16:03 +00:00
renovate[bot]
ec0ec25c39 fix(deps): update dependency typeorm to v0.3.12 2023-03-24 18:15:52 +00:00
renovate[bot]
fa60e14a64 chore(deps): update mysql docker tag to v8.0.32 2023-03-24 18:14:14 +00:00
renovate[bot]
5dce51d875 chore(deps): update dependency webpack to v5.76.3 2023-03-24 18:14:04 +00:00
renovate[bot]
0d1348697f chore(deps): update dependency ts-jest to v28.0.8 2023-03-24 18:13:53 +00:00
renovate[bot]
5efb8f507a chore(deps): update dependency nodemon to v2.0.22 2023-03-24 18:13:31 +00:00
renovate[bot]
b5b7382a62 chore(deps): update dependency @babel/core to v7.21.3 2023-03-24 18:12:57 +00:00
dependabot[bot]
c841cef9b2 chore(deps-dev): bump @grpc/proto-loader from 0.7.5 to 0.7.6
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.7.5 to 0.7.6.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/proto-loader@0.7.5...@grpc/proto-loader@0.7.6)

---
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-03-24 07:44:52 +00:00
Kamil Mysliwiec
cde4e7f324 Merge pull request #11321 from nestjs/dependabot/npm_and_yarn/nodemon-2.0.22
chore(deps-dev): bump nodemon from 2.0.21 to 2.0.22
2023-03-24 08:40:38 +01:00
Kamil Mysliwiec
294a7fe8c2 Merge pull request #11322 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.5.0
chore(deps-dev): bump @commitlint/cli from 17.4.4 to 17.5.0
2023-03-24 08:40:33 +01:00
Kamil Mysliwiec
4b8cd7e939 Merge pull request #11328 from nestjs/dependabot/npm_and_yarn/mongoose-7.0.3
chore(deps-dev): bump mongoose from 7.0.2 to 7.0.3
2023-03-24 08:40:22 +01:00
Kamil Mysliwiec
94e99410ad Merge pull request #11329 from nestjs/dependabot/npm_and_yarn/types/node-18.15.6
chore(deps-dev): bump @types/node from 18.15.5 to 18.15.6
2023-03-24 08:40:08 +01:00
Kamil Mysliwiec
e9b6106939 Merge pull request #11330 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.8.13
chore(deps-dev): bump @grpc/grpc-js from 1.8.12 to 1.8.13
2023-03-24 08:39:47 +01:00
dependabot[bot]
768292ec98 chore(deps-dev): bump @grpc/grpc-js from 1.8.12 to 1.8.13
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.8.12 to 1.8.13.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.8.12...@grpc/grpc-js@1.8.13)

---
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-03-24 01:15:25 +00:00
dependabot[bot]
9d85848f6f chore(deps-dev): bump @types/node from 18.15.5 to 18.15.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.15.5 to 18.15.6.
- [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-03-24 01:13:13 +00:00
dependabot[bot]
0cb62a9f79 chore(deps-dev): bump mongoose from 7.0.2 to 7.0.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.0.2 to 7.0.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.0.2...7.0.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-03-24 01:05:40 +00:00
Tolga Paksoy
1af7d379db fix(express): remove body-parser types and use own 2023-03-23 12:01:16 +01:00
dependabot[bot]
f9260bdb7b chore(deps-dev): bump @commitlint/cli from 17.4.4 to 17.5.0
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.4.4 to 17.5.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/v17.5.0/@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-03-23 01:11:15 +00:00
dependabot[bot]
821d4bf58e chore(deps-dev): bump nodemon from 2.0.21 to 2.0.22
Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.21 to 2.0.22.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.21...v2.0.22)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 01:01:15 +00:00
skrtheboss
ffc09ee82c fix(common): adjust @inject and @optional return types
Use PropertyDecorator and ParameterDecorator as return type to ensure typings are correct
2023-03-22 09:08:41 +01:00
codytseng
081650beed fix(ws): mount multi ws servers on different paths 2023-03-04 13:35:15 +08:00
nomaxg
d771c52264 fix(microservices): Correctly use ConnectionOptions
Signed-off-by: nomaxg <noahgolub2@gmail.com>
2023-02-23 11:25:38 -05:00
Einar Norðfjörð
25d9ef940c feat(core): Support async local storage in interceptors
This is necessary to allow use cases such as allowing interceptors to
change the context in OpenTelemetry. You might for example want to add
Baggage to the context in an interceptor but because of the way it was
structured before the baggage would not make its way into the controller
2023-02-20 14:13:16 -05:00
Rafael
df74cde2a0 feat(core): add support to named groups 2023-02-15 15:18:49 -03:00
codytseng
ea79cefc28 fix(testing): correct the type of server 2023-02-15 15:46:18 +08:00
codytseng
cf4097cf24 feat(common,express,fastify): enhance the type of httpServer 2023-02-15 14:42:03 +08:00
Mohammad Reza Momeni
0b847e75bc chore: remove | {} 2023-02-09 16:14:57 +03:30
Mohammad Reza Momeni
a33e377d00 fix: generix with default type 2023-02-07 00:52:28 +03:30
Mohammad Reza Momeni
2ccf67b8e4 fix: make filetype small and rename to ifile 2023-02-07 00:22:20 +03:30
mohamadrezamomeni
f3e118e9c0 Update packages/common/pipes/file/file-validator.interface.ts
Co-authored-by: Thiago Valentim <51245643+thiagomini@users.noreply.github.com>
2023-02-06 22:32:03 +03:30
Mohammad Reza Momeni
a0f7ee8b1e fix: fix file type checking 2023-02-04 00:29:09 +03:30
Mohammad Reza Momeni
809dadbf82 refactor: use synthetic sugar in file-validator for validate mimetype 2023-02-03 23:33:49 +03:30
Mohammad Reza Momeni
dba518e89c refactor: define types for input file in file-type.validator
and file-validator.interface and max-file-size.validator
2023-02-03 23:31:19 +03:30
Micael Levi L. Cavalcante
14a0f069ac fix(common): when transforming invalid boolean values
on `ValidationPipe`, it must not return a valid boolean
2023-01-25 21:37:54 -04:00
Micael Levi L. Cavalcante
bcf4bf9b81 test(common): add tests for broken cases on ValidationPipe
when transforming booleans with non-valid boolean values
2023-01-25 21:23:00 -04:00
nomaxg
b9c235ae18 feat(microservice): add tcp over tls support
Signed-off-by: nomaxg <noahgolub2@gmail.com>
2022-12-02 16:53:34 -05:00
Gustrb
a7655a051d ci: don't install greater than npm 8 2022-11-12 22:06:38 -03:00
Gustrb
2f69e96852 feat(core): Add the search method to the adapter
This update was really simple, because we dont need any kind of aliasing
due to fastify and express already supporting the search method for Application
2022-11-09 19:49:35 -03:00
Gustrb
2dd3526d08 feat(common): Add the @Search decorator
This decorator uses the SEARCH method to construct a decorator
for a handler to a Search http request
2022-11-09 19:25:55 -03:00
Gustrb
93694eea56 feat(common): Add the search method to the list
The search method is going to be anexed with the @Search decorator and
going to be used to reference a SEARCH request
2022-11-09 19:25:52 -03:00
Ondřej Švanda
e45e04aa69 fix(microservices): allow falsy values in options 2022-11-09 16:08:47 +01:00
Tijs Moree
39d6e8ecf8 feat(microservices): add wildcard option in redis microservice patterns
The redis microservice now makes use of `psubscribe` and `pmessage`
when the `wildcards` option is enabled in the options of the microservice,
which makes it possible to use wildcards as specified by the Redis
documentation.

Closes #10344
2022-10-11 17:40:27 +02:00
Nathan Arseneau
53cd547004 test(sample-02): remove version increment in package-lock.json 2022-09-03 21:55:38 -04:00
Nathan Arseneau
938005d8e1 test(sample-02): added e2e tests 2022-09-03 21:50:05 -04:00
Nathan Arseneau
9139ccfb93 test(sample-02): added unit tests 2022-09-03 20:18:29 -04:00
Pooyan Khanjankhani
92bc195eb2 chore(common): add .util postfix to test filename 2022-08-19 00:34:31 +04:30
Pooyan Khanjankhani
1f81c86d84 test(common): add test for exception handler selector 2022-08-19 00:30:37 +04:30
Pooyan Khanjankhani
dcc2fa7836 chore(): append .util postfix to filename 2022-08-19 00:03:08 +04:30
Pooyan Khanjankhani
98acbe6430 fix(common): check for empty length in exception handler selector 2022-08-18 23:55:05 +04:30
Pooyan Khanjankhani
82555bed36 chore(common): fix import issue 2022-08-18 23:11:34 +04:30
Pooyan Khanjankhani
273f1aa3ed refactor(core): use selectExceptionFilterMetadata in
ExternalExceptionHandler
2022-08-18 23:09:06 +04:30
Pooyan Khanjankhani
469580da63 refactor(microservices): use selectExceptionFilterMetadata 2022-08-18 23:07:10 +04:30
Pooyan Khanjankhani
fe069f6ebe refactor(core): use 2022-08-18 23:06:50 +04:30
Pooyan Khanjankhani
c067f85d37 refactor(websockets): use selectExceptionFilterMetadata 2022-08-18 23:00:24 +04:30
Pooyan Khanjankhani
f98d0e9956 refactor(common): add selectExceptionFilterMetadata function 2022-08-18 22:58:30 +04:30
Rychard Vale
b0837af94f fix: convention/code style.
Co-authored-by: Antonio T. as Tony <Tony133@users.noreply.github.com>
2022-06-26 14:57:47 -03:00
Rychard
5bf90ac6d8 fix: increase readability 2022-06-24 23:46:49 -03:00
Rychard Vale
328169628b feat(core): middleware runs once for matching route 2022-06-20 07:26:58 -03:00
Leonardo Villela
91d4870323 refactor(testing): transform module override sample to integration test 2021-12-21 00:18:03 +01:00
Leonardo Villela
d725aae31c docs(testing): add modules override sample 2021-12-19 19:33:21 +01:00
Leonardo Villela
09f6c94d85 chore(testing): remove debugger instructions 2021-12-19 16:24:09 +01:00
Leonardo Villela
59bae05cb2 fix(testing): lazy module override 2021-12-19 01:38:15 +01:00
Leonardo Villela
d7351b7a49 fix(testing): circular dependency module override 2021-12-19 00:02:50 +01:00
Leonardo Villela
6ea534e2f4 feat(testing): add missing validation for replace container module 2021-12-13 20:54:04 +01:00
Leonardo Villela
3114a54d25 refactor(testing): remove duplication to add/replace container module 2021-12-13 20:38:00 +01:00
Leonardo Villela
2071461d5e feat(testing): support override modules in test module builder 2021-12-12 23:32:31 +01:00
347 changed files with 77917 additions and 38042 deletions

View File

@@ -3,19 +3,19 @@ version: 2
aliases:
- &restore-cache
restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
key: dependency-cache-{{ checksum "package.json" }}
- &install-deps
run:
name: Install dependencies
command: npm ci
name: Install dependencies
command: npm ci --legacy-peer-deps
- &build-packages
run:
name: Build
command: npm run build
name: Build
command: npm run build
- &run-unit-tests
run:
name: Test
command: npm run test
name: Test
command: npm run test
unit-tests-template: &unit-tests-template
working_directory: ~/nest
@@ -30,7 +30,7 @@ jobs:
build:
working_directory: ~/nest
docker:
- image: circleci/node:12
- image: cimg/node:16.19
steps:
- checkout
- run:
@@ -40,7 +40,7 @@ jobs:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm ci
command: npm ci --legacy-peer-deps
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
@@ -48,21 +48,11 @@ jobs:
- run:
name: Build
command: npm run build
test_node_12:
<<: *unit-tests-template
docker:
- image: circleci/node:12
test_node_14:
<<: *unit-tests-template
docker:
- image: circleci/node:14
test_node_16:
working_directory: ~/nest
docker:
- image: circleci/node:16
- image: cimg/node:16.19
steps:
- checkout
- *restore-cache
@@ -77,6 +67,16 @@ jobs:
- store_artifacts:
path: coverage
test_node_18:
<<: *unit-tests-template
docker:
- image: cimg/node:18.14
test_node_19:
<<: *unit-tests-template
docker:
- image: cimg/node:19.8
lint:
working_directory: ~/nest
docker:
@@ -97,17 +97,17 @@ jobs:
machine: true
steps:
- checkout
- run:
- run:
name: Prepare nvm
command: |
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- run:
- run:
name: Upgrade Node.js
command: |
nvm install v12
nvm install v16
node -v
nvm alias default v12
nvm alias default v16
- run:
name: Install Docker Compose
command: |
@@ -126,11 +126,11 @@ jobs:
- run:
name: Integration tests
command: npm run test:integration
codechecks_benchmarks:
working_directory: ~/nest
docker:
- image: circleci/node:16
- image: cimg/node:16.19
steps:
- checkout
- *restore-cache
@@ -146,7 +146,7 @@ jobs:
samples:
working_directory: ~/nest
docker:
- image: circleci/node:16
- image: cimg/node:16.19
environment:
- DISABLE_OPENCOLLECTIVE: true
steps:
@@ -165,10 +165,7 @@ workflows:
- test_node_16:
requires:
- build
- test_node_14:
requires:
- build
- test_node_12:
- test_node_18:
requires:
- build
- lint:

3
.gitignore vendored
View File

@@ -42,3 +42,6 @@ yarn-error.log
/packages/graphql
/benchmarks/memory
build/config\.gypi
.npmrc
pnpm-lock.yaml

View File

@@ -1,11 +1,11 @@
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
<a href="https://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
</p>
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
<p align="center">A progressive <a href="https://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
@@ -132,11 +132,12 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td align="center" valign="middle"><a href="https://klqc.de" target="_blank"><img src="https://nestjs.com/img/klcqcl-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/casinowizard-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://polygon-software.ch/" target="_blank"><img src="https://nestjs.com/img/polygon-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://mobilereality.pl/" target="_blank"><img src="https://nestjs.com/img/mobile-reality-logo.png" width="45" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://themobilereality.com/" target="_blank"><img src="https://nestjs.com/img/mobile-reality-logo.png" width="45" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://boringowl.io/" target="_blank"><img src="https://nestjs.com/img/boringowl-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.mobilefactory.jp/" target="_blank"><img src="https://nestjs.com/img/mobilefactory-logo.png" width="100" valign="middle" /></a></td>
<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>
<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://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td></tr><tr>
<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>
</tr></table>
## Backers

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -1,39 +0,0 @@
import { CACHE_MANAGER, INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AsyncRegisterExtraModule } from '../src/async-register-extra-providers/async-register-extra.module';
import { Cache } from 'cache-manager';
import { assert } from 'chai';
describe('Async Register Extra Providers', () => {
let server;
let app: INestApplication;
let cacheManager: Cache;
before(async () => {
const module = await Test.createTestingModule({
imports: [AsyncRegisterExtraModule],
}).compile();
cacheManager = module.get<Cache>(CACHE_MANAGER);
app = module.createNestApplication();
server = app.getHttpServer();
await app.init();
});
it('should be defined', async () => {
assert.isDefined(cacheManager);
});
it(`should return empty`, async () => {
return request(server).get('/').expect(200, 'Not found');
});
it(`should return data`, async () => {
return request(server).get('/').expect(200, 'value');
});
after(async () => {
await app.close();
});
});

View File

@@ -1,39 +0,0 @@
import { CACHE_MANAGER, INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AsyncRegisterModule } from '../src/async-register/async-register.module';
import { Cache } from 'cache-manager';
import { assert } from 'chai';
describe('Async Register', () => {
let server;
let app: INestApplication;
let cacheManager: Cache;
before(async () => {
const module = await Test.createTestingModule({
imports: [AsyncRegisterModule],
}).compile();
cacheManager = module.get<Cache>(CACHE_MANAGER);
app = module.createNestApplication();
server = app.getHttpServer();
await app.init();
});
it('should be defined', async () => {
assert.isDefined(cacheManager);
});
it(`should return empty`, async () => {
return request(server).get('/').expect(200, 'Not found');
});
it(`should return data`, async () => {
return request(server).get('/').expect(200, 'value');
});
after(async () => {
await app.close();
});
});

View File

@@ -1,35 +0,0 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { CustomTtlModule } from '../src/custom-ttl/custom-ttl.module';
describe('Caching Custom TTL', () => {
let server;
let app: INestApplication;
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [CustomTtlModule],
}).compile();
app = module.createNestApplication();
server = app.getHttpServer();
await app.init();
});
it('should return a differnt value after the TTL is elapsed', async () => {
await request(server).get('/').expect(200, '0');
await new Promise(resolve => setTimeout(resolve, 500));
await request(server).get('/').expect(200, '1');
});
it('should return the cached value within the TTL', async () => {
await request(server).get('/').expect(200, '0');
await new Promise(resolve => setTimeout(resolve, 200));
await request(server).get('/').expect(200, '0');
});
afterEach(async () => {
await app.close();
});
});

View File

@@ -1,31 +0,0 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { MultiStoreModule } from '../src/multi-store/multi-store.module';
describe('Caching Multi Store', () => {
let server;
let app: INestApplication;
before(async () => {
const module = await Test.createTestingModule({
imports: [MultiStoreModule],
}).compile();
app = module.createNestApplication();
server = app.getHttpServer();
await app.init();
});
it(`should return empty`, async () => {
return request(server).get('/').expect(200, '');
});
it(`should return data`, async () => {
return request(server).get('/').expect(200, 'multi-store-value');
});
after(async () => {
await app.close();
});
});

View File

@@ -1,16 +0,0 @@
import { Controller, Get, Inject, CACHE_MANAGER } from '@nestjs/common';
import { Cache } from 'cache-manager';
@Controller()
export class AsyncRegisterExtraController {
constructor(@Inject(CACHE_MANAGER) private cacheManager: Cache) {}
@Get()
async getFromStore(): Promise<string> {
const value: string | undefined = await this.cacheManager.get('key');
if (!value) {
await this.cacheManager.set('key', 'value');
}
return value ?? 'Not found';
}
}

View File

@@ -1,16 +0,0 @@
import { CacheModule, Module } from '@nestjs/common';
import { AsyncRegisterExtraController } from './async-register-extra.controller';
import { CacheConfig } from './config/cache.config';
import { ConfigModule } from './config/config.module';
@Module({
imports: [
CacheModule.registerAsync({
extraProviders: [ConfigModule],
isGlobal: true,
useClass: CacheConfig,
}),
],
controllers: [AsyncRegisterExtraController],
})
export class AsyncRegisterExtraModule {}

View File

@@ -1,17 +0,0 @@
import {
CacheModuleOptions,
CacheOptionsFactory,
Injectable,
} from '@nestjs/common';
import { ConfigService } from './config.service';
@Injectable()
export class CacheConfig implements CacheOptionsFactory {
constructor(private readonly configService: ConfigService) {}
createCacheOptions(): CacheModuleOptions {
const ttl = this.configService.getTtl();
return { ttl };
}
}

View File

@@ -1,8 +0,0 @@
import { Module } from '@nestjs/common';
import { ConfigService } from './config.service';
@Module({
providers: [ConfigService],
exports: [ConfigService],
})
export class ConfigModule {}

View File

@@ -1,8 +0,0 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class ConfigService {
public getTtl(): number {
return 10;
}
}

View File

@@ -1,40 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"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

@@ -1,16 +0,0 @@
import { Controller, Get, Inject, CACHE_MANAGER } from '@nestjs/common';
import { Cache } from 'cache-manager';
@Controller()
export class AsyncRegisterController {
constructor(@Inject(CACHE_MANAGER) private cacheManager: Cache) {}
@Get()
async getFromStore(): Promise<string> {
const value: string | undefined = await this.cacheManager.get('key');
if (!value) {
await this.cacheManager.set('key', 'value');
}
return value ?? 'Not found';
}
}

View File

@@ -1,14 +0,0 @@
import { CacheModule, Module } from '@nestjs/common';
import { AsyncRegisterController } from './async-register.controller';
import { CacheConfig } from './config/cache.config';
@Module({
imports: [
CacheModule.registerAsync({
isGlobal: true,
useClass: CacheConfig,
}),
],
controllers: [AsyncRegisterController],
})
export class AsyncRegisterModule {}

View File

@@ -1,14 +0,0 @@
import {
CacheModuleOptions,
CacheOptionsFactory,
Injectable,
} from '@nestjs/common';
@Injectable()
export class CacheConfig implements CacheOptionsFactory {
createCacheOptions(): CacheModuleOptions {
const ttl = 100;
return { ttl };
}
}

View File

@@ -1,40 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"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

@@ -1,20 +0,0 @@
import {
CacheInterceptor,
CacheTTL,
Controller,
Get,
UseInterceptors,
} from '@nestjs/common';
@Controller()
export class CustomTtlController {
counter = 0;
constructor() {}
@Get()
@CacheTTL(500)
@UseInterceptors(CacheInterceptor)
getNumber() {
return this.counter++;
}
}

View File

@@ -1,8 +0,0 @@
import { CacheModule, Module } from '@nestjs/common';
import { CustomTtlController } from './custom-ttl.controller';
@Module({
imports: [CacheModule.register()],
controllers: [CustomTtlController],
})
export class CustomTtlModule {}

View File

@@ -1,40 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"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

@@ -1,16 +0,0 @@
import { Controller, Get, Inject, CACHE_MANAGER } from '@nestjs/common';
import { Cache } from 'cache-manager';
@Controller()
export class MultiStoreController {
constructor(@Inject(CACHE_MANAGER) private cacheManager: Cache) {}
@Get()
async getFromMultiStore(): Promise<unknown> {
const value = await this.cacheManager.get('multi-store-key');
if (!value) {
await this.cacheManager.set('multi-store-key', 'multi-store-value');
}
return value;
}
}

View File

@@ -1,24 +0,0 @@
import { CacheModule, Module } from '@nestjs/common';
import { redisStore } from 'cache-manager-redis-store';
import { MultiStoreController } from './multi-store.controller';
@Module({
imports: [
CacheModule.register([
{
store: 'memory',
max: 100,
ttl: 10,
},
{
store: redisStore,
host: 'localhost',
port: 6379,
db: 0,
ttl: 600,
},
]),
],
controllers: [MultiStoreController],
})
export class MultiStoreModule {}

View File

@@ -1,40 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"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

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -25,7 +25,7 @@ services:
- "9001:9001"
restart: always
mysql:
image: mysql:8.0.30
image: mysql:8.0.32
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
@@ -59,7 +59,7 @@ services:
kafka:
container_name: test-kafka
hostname: kafka
image: confluentinc/cp-kafka:7.0.1
image: confluentinc/cp-kafka:7.3.2
depends_on:
- zookeeper
ports:

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -1,8 +1,8 @@
import { NestFactory } from '@nestjs/core';
import { ApplicationModule } from './app.module';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(ApplicationModule);
const app = await NestFactory.create(AppModule);
await app.listen(3000);
}
bootstrap();

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -1,15 +1,16 @@
import { HttpServer, HttpStatus, INestApplication } from '@nestjs/common';
import { HttpStatus, INestApplication } from '@nestjs/common';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import { RawServerDefault } from 'fastify';
import * as request from 'supertest';
import { ErrorsController } from '../src/errors/errors.controller';
describe('Error messages', () => {
let server: HttpServer;
let server: RawServerDefault;
describe('Express', () => {
let app: INestApplication;

View File

@@ -3,7 +3,10 @@ import {
Get,
MiddlewareConsumer,
Module,
NestMiddleware,
NestModule,
Query,
Req,
RequestMethod,
} from '@nestjs/common';
import {
@@ -14,178 +17,385 @@ import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import { AppModule } from '../src/app.module';
const INCLUDED_VALUE = 'test_included';
const QUERY_VALUE = 'test_query';
const REQ_URL_VALUE = 'test_req_url';
const RETURN_VALUE = 'test';
const SCOPED_VALUE = 'test_scoped';
const WILDCARD_VALUE = 'test_wildcard';
@Controller()
class TestController {
@Get('express_style_wildcard/wildcard_nested')
express_style_wildcard() {
return RETURN_VALUE;
}
@Get('test')
test() {
return RETURN_VALUE;
}
@Get('query')
query() {
return RETURN_VALUE;
}
@Get('tests/wildcard_nested')
wildcard_nested() {
return RETURN_VALUE;
}
@Get('tests/included')
included() {
return RETURN_VALUE;
}
}
@Controller(QUERY_VALUE)
class TestQueryController {
@Get()
[QUERY_VALUE](@Query('test') test: string) {
return test;
}
}
@Module({
imports: [AppModule],
controllers: [TestController, TestQueryController],
})
class TestModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply((req, res, next) => res.end(INCLUDED_VALUE))
.forRoutes({ path: 'tests/included', method: RequestMethod.POST })
.apply((req, res, next) => res.end(`${REQ_URL_VALUE}${req.url}`))
.forRoutes('req/url/')
.apply((req, res, next) => res.end(WILDCARD_VALUE))
.forRoutes('express_style_wildcard/*', 'tests/(.*)')
.apply((req, res, next) => res.end(QUERY_VALUE))
.forRoutes('query')
.apply((req, res, next) => next())
.forRoutes(TestQueryController)
.apply((req, res, next) => res.end(SCOPED_VALUE))
.forRoutes(TestController)
.apply((req, res, next) => res.end(RETURN_VALUE))
.exclude({ path: QUERY_VALUE, method: -1 })
.forRoutes('(.*)');
}
}
describe('Middleware (FastifyAdapter)', () => {
let app: NestFastifyApplication;
beforeEach(async () => {
app = (
await Test.createTestingModule({
imports: [TestModule],
}).compile()
).createNestApplication<NestFastifyApplication>(new FastifyAdapter());
describe('should return expected values depending on the route', () => {
const INCLUDED_VALUE = 'test_included';
const QUERY_VALUE = 'test_query';
const REQ_URL_VALUE = 'test_req_url';
const RETURN_VALUE = 'test';
const SCOPED_VALUE = 'test_scoped';
const WILDCARD_VALUE = 'test_wildcard';
await app.init();
@Controller()
class TestController {
@Get('express_style_wildcard/wildcard_nested')
express_style_wildcard() {
return RETURN_VALUE;
}
@Get('test')
test() {
return RETURN_VALUE;
}
@Get('query')
query() {
return RETURN_VALUE;
}
@Get('tests/wildcard_nested')
wildcard_nested() {
return RETURN_VALUE;
}
@Get('tests/included')
included() {
return RETURN_VALUE;
}
}
@Controller(QUERY_VALUE)
class TestQueryController {
@Get()
[QUERY_VALUE](@Query('test') test: string) {
return test;
}
}
@Module({
imports: [AppModule],
controllers: [TestController, TestQueryController],
})
class TestModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply((req, res, next) => res.end(INCLUDED_VALUE))
.forRoutes({ path: 'tests/included', method: RequestMethod.POST })
.apply((req, res, next) => res.end(REQ_URL_VALUE))
.forRoutes('req/url/(.*)')
.apply((req, res, next) => res.end(WILDCARD_VALUE))
.forRoutes('express_style_wildcard/*', 'tests/(.*)')
.apply((req, res, next) => res.end(QUERY_VALUE))
.forRoutes('query')
.apply((req, res, next) => next())
.forRoutes(TestQueryController)
.apply((req, res, next) => res.end(SCOPED_VALUE))
.forRoutes(TestController)
.apply((req, res, next) => res.end(RETURN_VALUE))
.exclude({ path: QUERY_VALUE, method: -1 as any })
.forRoutes('(.*)');
}
}
beforeEach(async () => {
app = (
await Test.createTestingModule({
imports: [TestModule],
}).compile()
).createNestApplication<NestFastifyApplication>(new FastifyAdapter());
await app.init();
});
it(`forRoutes((.*))`, () => {
return app
.inject({
method: 'GET',
url: '/hello',
})
.then(({ payload }) => expect(payload).to.be.eql(RETURN_VALUE));
});
it(`forRoutes(TestController)`, () => {
return app
.inject({
method: 'GET',
url: '/test',
})
.then(({ payload }) => expect(payload).to.be.eql(SCOPED_VALUE));
});
it(`query?test=${QUERY_VALUE} forRoutes(query)`, () => {
return app
.inject({
method: 'GET',
url: '/query',
query: {
test: QUERY_VALUE,
},
})
.then(({ payload }) => expect(payload).to.be.eql(QUERY_VALUE));
});
it(`${QUERY_VALUE}?test=${QUERY_VALUE} forRoutes(${QUERY_VALUE})`, () => {
return app
.inject({
method: 'GET',
url: QUERY_VALUE,
query: {
test: QUERY_VALUE,
},
})
.then(({ payload }) => expect(payload).to.be.eql(QUERY_VALUE));
});
it(`forRoutes(tests/(.*))`, () => {
return app
.inject({
method: 'GET',
url: '/tests/wildcard_nested',
})
.then(({ payload }) => expect(payload).to.be.eql(WILDCARD_VALUE));
});
it(`forRoutes(express_style_wildcard/*)`, () => {
return app
.inject({
method: 'GET',
url: '/express_style_wildcard/wildcard_nested',
})
.then(({ payload }) => expect(payload).to.be.eql(WILDCARD_VALUE));
});
it(`forRoutes(req/url/)`, () => {
const reqUrl = '/test';
return app
.inject({
method: 'GET',
url: `/req/url${reqUrl}`,
})
.then(({ payload }) => expect(payload).to.be.eql(REQ_URL_VALUE));
});
it(`GET forRoutes(POST tests/included)`, () => {
return app
.inject({
method: 'GET',
url: '/tests/included',
})
.then(({ payload }) => expect(payload).to.be.eql(WILDCARD_VALUE));
});
it(`POST forRoutes(POST tests/included)`, () => {
return app
.inject({
method: 'POST',
url: '/tests/included',
})
.then(({ payload }) => expect(payload).to.be.eql(INCLUDED_VALUE));
});
afterEach(async () => {
await app.close();
});
});
it(`forRoutes((.*))`, () => {
return app
.inject({
method: 'GET',
url: '/hello',
})
.then(({ payload }) => expect(payload).to.be.eql(RETURN_VALUE));
});
describe.only('should execute middleware only once for given routes', () => {
class Middleware implements NestMiddleware {
use(request: any, reply: any, next: () => void) {
if (request.middlewareExecutionCount === undefined) {
request.middlewareExecutionCount = 1;
} else {
request.middlewareExecutionCount++;
}
next();
}
}
it(`forRoutes(TestController)`, () => {
return app
.inject({
method: 'GET',
url: '/test',
})
.then(({ payload }) => expect(payload).to.be.eql(SCOPED_VALUE));
});
@Controller()
class AbcController {
@Get('/a')
async a(@Req() request: any) {
return this.validateExecutionCount({
request,
expected: 1,
});
}
it(`query?test=${QUERY_VALUE} forRoutes(query)`, () => {
return app
.inject({
method: 'GET',
url: '/query',
query: {
test: QUERY_VALUE,
},
})
.then(({ payload }) => expect(payload).to.be.eql(QUERY_VALUE));
});
@Get('/a/b')
async ab(@Req() request: any) {
return this.validateExecutionCount({
request,
expected: 1,
});
}
it(`${QUERY_VALUE}?test=${QUERY_VALUE} forRoutes(${QUERY_VALUE})`, () => {
return app
.inject({
method: 'GET',
url: QUERY_VALUE,
query: {
test: QUERY_VALUE,
},
})
.then(({ payload }) => expect(payload).to.be.eql(QUERY_VALUE));
});
@Get('/a/b/c')
async abc(@Req() request: any) {
return this.validateExecutionCount({
request,
expected: 1,
});
}
it(`forRoutes(tests/(.*))`, () => {
return app
.inject({
method: 'GET',
url: '/tests/wildcard_nested',
})
.then(({ payload }) => expect(payload).to.be.eql(WILDCARD_VALUE));
});
@Get('/similar')
async withSimilar(@Req() request: any) {
return this.validateExecutionCount({
request,
expected: 1,
});
}
it(`forRoutes(express_style_wildcard/*)`, () => {
return app
.inject({
method: 'GET',
url: '/express_style_wildcard/wildcard_nested',
})
.then(({ payload }) => expect(payload).to.be.eql(WILDCARD_VALUE));
});
@Get('/similar/test')
async withSimilarTest(@Req() request: any) {
return this.validateExecutionCount({
request,
expected: 1,
});
}
it(`forRoutes(req/url/)`, () => {
const reqUrl = '/test';
return app
.inject({
method: 'GET',
url: `/req/url${reqUrl}`,
})
.then(({ payload }) =>
expect(payload).to.be.eql(`${REQ_URL_VALUE}${reqUrl}`),
);
});
@Get('/similar/:id')
async withSimilarId(@Req() request: any) {
return this.validateExecutionCount({
request,
expected: 1,
});
}
it(`GET forRoutes(POST tests/included)`, () => {
return app
.inject({
method: 'GET',
url: '/tests/included',
})
.then(({ payload }) => expect(payload).to.be.eql(WILDCARD_VALUE));
});
private validateExecutionCount({
request,
expected,
}: {
request: any;
expected: number;
}) {
let actual: number | undefined;
actual = request.raw.middlewareExecutionCount;
actual ??= 0;
it(`POST forRoutes(POST tests/included)`, () => {
return app
.inject({
method: 'POST',
url: '/tests/included',
})
.then(({ payload }) => expect(payload).to.be.eql(INCLUDED_VALUE));
});
return {
success: actual === expected,
actual,
expected,
};
}
}
afterEach(async () => {
await app.close();
@Module({
controllers: [AbcController],
})
class TestModule implements NestModule {
configure(consumer: MiddlewareConsumer) {
consumer.apply(Middleware).forRoutes(AbcController);
}
}
beforeEach(async () => {
app = (
await Test.createTestingModule({
imports: [TestModule],
}).compile()
).createNestApplication<NestFastifyApplication>(new FastifyAdapter());
await app.init();
});
it(`GET forRoutes(/a/b/c)`, () => {
return app
.inject({
method: 'GET',
url: '/a/b/c',
})
.then(({ payload }) => {
expect(payload).to.be.eql(
JSON.stringify({
success: true,
actual: 1,
expected: 1,
}),
);
});
});
it(`GET forRoutes(/a/b)`, () => {
return app
.inject({
method: 'GET',
url: '/a/b',
})
.then(({ payload }) =>
expect(payload).to.be.eql(
JSON.stringify({
success: true,
actual: 1,
expected: 1,
}),
),
);
});
it(`GET forRoutes(/a)`, () => {
return app
.inject({
method: 'GET',
url: '/a',
})
.then(({ payload }) =>
expect(payload).to.be.eql(
JSON.stringify({
success: true,
actual: 1,
expected: 1,
}),
),
);
});
it(`GET forRoutes(/similar)`, () => {
return app
.inject({
method: 'GET',
url: '/similar',
})
.then(({ payload }) =>
expect(payload).to.be.eql(
JSON.stringify({
success: true,
actual: 1,
expected: 1,
}),
),
);
});
it(`GET forRoutes(/similar/test)`, () => {
return app
.inject({
method: 'GET',
url: '/similar/test',
})
.then(({ payload }) =>
expect(payload).to.be.eql(
JSON.stringify({
success: true,
actual: 1,
expected: 1,
}),
),
);
});
it(`GET forRoutes(/similar/arbitrary)`, () => {
return app
.inject({
method: 'GET',
url: '/similar/arbitrary',
})
.then(({ payload }) =>
expect(payload).to.be.eql(
JSON.stringify({
success: true,
actual: 1,
expected: 1,
}),
),
);
});
afterEach(async () => {
await app.close();
});
});
});

View File

@@ -0,0 +1,103 @@
import {
Controller,
Get,
INestApplication,
Injectable,
MiddlewareConsumer,
NestMiddleware,
Module,
} from '@nestjs/common';
import { Test } from '../../../packages/testing';
import * as request from 'supertest';
import { expect } from 'chai';
/**
* Number of times that the middleware was executed.
*/
let triggerCounter = 0;
@Injectable()
class Middleware implements NestMiddleware {
use(req, res, next) {
triggerCounter++;
next();
}
}
@Controller()
class TestController {
@Get('/test')
testA() {}
@Get('/:id')
testB() {}
@Get('/static/route')
testC() {}
@Get('/:id/:nested')
testD() {}
}
@Module({
controllers: [TestController],
})
class TestModule {
configure(consumer: MiddlewareConsumer) {
consumer.apply(Middleware).forRoutes(TestController);
}
}
describe('Middleware (run on route match)', () => {
let app: INestApplication;
beforeEach(async () => {
triggerCounter = 0;
app = (
await Test.createTestingModule({
imports: [TestModule],
}).compile()
).createNestApplication();
await app.init();
});
it(`forRoutes(TestController) should execute middleware once when request url is equal match`, () => {
return request(app.getHttpServer())
.get('/test')
.expect(200)
.then(() => {
expect(triggerCounter).to.be.eq(1);
});
});
it(`forRoutes(TestController) should execute middleware once when request url is not equal match`, () => {
return request(app.getHttpServer())
.get('/1')
.expect(200)
.then(() => {
expect(triggerCounter).to.be.eq(1);
});
});
it(`forRoutes(TestController) should execute middleware once when request url is not of nested params`, () => {
return request(app.getHttpServer())
.get('/static/route')
.expect(200)
.then(() => {
expect(triggerCounter).to.be.eq(1);
});
});
it(`forRoutes(TestController) should execute middleware once when request url is of nested params`, () => {
return request(app.getHttpServer())
.get('/1/abc')
.expect(200)
.then(() => {
expect(triggerCounter).to.be.eq(1);
});
});
afterEach(async () => {
await app.close();
});
});

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -822,23 +822,6 @@
"token": "HttpAdapterHost"
}
},
"-553129559": {
"id": "-553129559",
"label": "HttpAdapterHost",
"parent": "555176277",
"metadata": {
"type": "provider",
"internal": true,
"sourceModuleName": "InternalCoreModule",
"durable": false,
"static": true,
"scope": 0,
"transient": false,
"exported": true,
"token": "HttpAdapterHost",
"initTime": 0
}
},
"-702581189": {
"id": "-702581189",
"label": "LazyModuleLoader",
@@ -2214,23 +2197,6 @@
},
"id": "1976848738"
},
"-1759625292": {
"source": "-553129559",
"target": "-326832201",
"metadata": {
"type": "class-to-class",
"sourceModuleName": "InternalCoreModule",
"sourceClassName": "HttpAdapterHost",
"targetClassName": "HttpAdapterHost",
"sourceClassToken": "HttpAdapterHost",
"targetClassToken": "HttpAdapterHost",
"targetModuleName": "InternalCoreModule",
"keyOrIndex": 0,
"injectionType": "constructor",
"internal": true
},
"id": "-1759625292"
},
"-2105726668": {
"source": "-1803759743",
"target": "1010833816",
@@ -2756,7 +2722,8 @@
"patterns": [
"createExternalSvc"
],
"isEventHandler": false
"isEventHandler": false,
"extras": {}
},
"id": "-349899408_create"
},
@@ -2771,7 +2738,8 @@
"patterns": [
"findAllExternalSvc"
],
"isEventHandler": false
"isEventHandler": false,
"extras": {}
},
"id": "-349899408_findAll"
},
@@ -2786,7 +2754,8 @@
"patterns": [
"findOneExternalSvc"
],
"isEventHandler": false
"isEventHandler": false,
"extras": {}
},
"id": "-349899408_findOne"
},
@@ -2801,7 +2770,8 @@
"patterns": [
"updateExternalSvc"
],
"isEventHandler": false
"isEventHandler": false,
"extras": {}
},
"id": "-349899408_update"
},
@@ -2816,7 +2786,8 @@
"patterns": [
"removeExternalSvc"
],
"isEventHandler": false
"isEventHandler": false,
"extras": {}
},
"id": "-349899408_remove"
}

View File

@@ -806,23 +806,6 @@
"token": "HttpAdapterHost"
}
},
"-553129559": {
"id": "-553129559",
"label": "HttpAdapterHost",
"parent": "555176277",
"metadata": {
"type": "provider",
"internal": true,
"sourceModuleName": "InternalCoreModule",
"durable": false,
"static": true,
"scope": 0,
"transient": false,
"exported": true,
"token": "HttpAdapterHost",
"initTime": 0
}
},
"-702581189": {
"id": "-702581189",
"label": "LazyModuleLoader",
@@ -2198,23 +2181,6 @@
},
"id": "1976848738"
},
"-1759625292": {
"source": "-553129559",
"target": "-326832201",
"metadata": {
"type": "class-to-class",
"sourceModuleName": "InternalCoreModule",
"sourceClassName": "HttpAdapterHost",
"targetClassName": "HttpAdapterHost",
"sourceClassToken": "HttpAdapterHost",
"targetClassToken": "HttpAdapterHost",
"targetModuleName": "InternalCoreModule",
"keyOrIndex": 0,
"injectionType": "constructor",
"internal": true
},
"id": "-1759625292"
},
"-2105726668": {
"source": "-1803759743",
"target": "1010833816",

View File

@@ -4,7 +4,7 @@ import { SerializedGraph } from '@nestjs/core/inspector/serialized-graph';
import { MicroserviceOptions, Transport } from '@nestjs/microservices';
import { Test, TestingModule } from '@nestjs/testing';
import { expect } from 'chai';
import { readFileSync, writeFileSync } from 'fs';
import { readFileSync } from 'fs';
import { join } from 'path';
import * as sinon from 'sinon';
import { AppModule } from '../src/app.module';
@@ -26,10 +26,10 @@ describe('Graph inspector', () => {
const graph = testingModule.get(SerializedGraph);
// Update snapshot:
writeFileSync(
join(__dirname, 'fixtures', 'pre-init-graph.json'),
graph.toString(),
);
// writeFileSync(
// join(__dirname, 'fixtures', 'pre-init-graph.json'),
// graph.toString(),
// );
const snapshot = readFileSync(
join(__dirname, 'fixtures', 'pre-init-graph.json'),
@@ -54,10 +54,10 @@ describe('Graph inspector', () => {
const graph = testingModule.get(SerializedGraph);
// Update snapshot:
writeFileSync(
join(__dirname, 'fixtures', 'post-init-graph.json'),
graph.toString(),
);
// writeFileSync(
// join(__dirname, 'fixtures', 'post-init-graph.json'),
// graph.toString(),
// );
const snapshot = readFileSync(
join(__dirname, 'fixtures', 'post-init-graph.json'),

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -0,0 +1,142 @@
import { INestApplication } from '@nestjs/common';
import { Transport } from '@nestjs/microservices';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import * as request from 'supertest';
import { AppController } from '../src/tcp-tls/app.controller';
import { ApplicationModule } from '../src/tcp-tls/app.module';
import * as fs from 'fs';
import * as path from 'path';
describe('RPC TLS transport', () => {
let server;
let app: INestApplication;
let key: string;
let cert: string;
before(() => {
// Generate a self-signed key pair
key = fs
.readFileSync(path.join(__dirname, '../src/tcp-tls/privkey.pem'), 'utf8')
.toString();
cert = fs
.readFileSync(path.join(__dirname, '../src/tcp-tls/ca.cert.pem'), 'utf8')
.toString();
});
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
}).compile();
app = module.createNestApplication();
server = app.getHttpAdapter().getInstance();
app.connectMicroservice({
transport: Transport.TCP,
options: {
host: '0.0.0.0',
tlsOptions: { key: key, cert: cert },
},
});
await app.startAllMicroservices();
await app.init();
});
it(`/POST TLS`, () => {
return request(server)
.post('/?command=sum')
.send([1, 2, 3, 4, 5])
.expect(200, '15');
});
it(`/POST (Promise/async)`, () => {
return request(server)
.post('/?command=asyncSum')
.send([1, 2, 3, 4, 5])
.expect(200)
.expect(200, '15');
});
it(`/POST (Observable stream)`, () => {
return request(server)
.post('/?command=streamSum')
.send([1, 2, 3, 4, 5])
.expect(200, '15');
});
it(`/POST (useFactory client)`, () => {
return request(server)
.post('/useFactory?command=sum')
.send([1, 2, 3, 4, 5])
.expect(200, '15');
});
it(`/POST (useClass client)`, () => {
return request(server)
.post('/useClass?command=sum')
.send([1, 2, 3, 4, 5])
.expect(200, '15');
});
it(`/POST (concurrent)`, () => {
return request(server)
.post('/concurrent')
.send([
Array.from({ length: 10 }, (v, k) => k + 1),
Array.from({ length: 10 }, (v, k) => k + 11),
Array.from({ length: 10 }, (v, k) => k + 21),
Array.from({ length: 10 }, (v, k) => k + 31),
Array.from({ length: 10 }, (v, k) => k + 41),
Array.from({ length: 10 }, (v, k) => k + 51),
Array.from({ length: 10 }, (v, k) => k + 61),
Array.from({ length: 10 }, (v, k) => k + 71),
Array.from({ length: 10 }, (v, k) => k + 81),
Array.from({ length: 10 }, (v, k) => k + 91),
])
.expect(200, 'true');
});
it(`/POST (streaming)`, () => {
return request(server)
.post('/stream')
.send([1, 2, 3, 4, 5])
.expect(200, '15');
});
it(`/POST (pattern not found)`, () => {
return request(server).post('/?command=test').expect(500);
});
it(`/POST (event notification)`, done => {
request(server)
.post('/notify')
.send([1, 2, 3, 4, 5])
.end(() => {
setTimeout(() => {
expect(AppController.IS_NOTIFIED).to.be.true;
done();
}, 1000);
});
});
it('/POST (custom client)', () => {
return request(server)
.post('/error?client=custom')
.send({})
.expect(200)
.expect('true');
});
it('/POST (standard client)', () => {
return request(server)
.post('/error?client=standard')
.send({})
.expect(200)
.expect('false');
});
afterEach(async () => {
await app.close();
});
});

View File

@@ -0,0 +1,141 @@
import {
Body,
Controller,
HttpCode,
Inject,
Post,
Query,
} from '@nestjs/common';
import {
Client,
ClientProxy,
EventPattern,
MessagePattern,
RpcException,
Transport,
} from '@nestjs/microservices';
import { from, lastValueFrom, Observable, of, throwError } from 'rxjs';
import { catchError, scan } from 'rxjs/operators';
import * as fs from 'fs';
import * as path from 'path';
@Controller()
export class AppController {
constructor(
@Inject('USE_CLASS_CLIENT') private useClassClient: ClientProxy,
@Inject('USE_FACTORY_CLIENT') private useFactoryClient: ClientProxy,
@Inject('CUSTOM_PROXY_CLIENT') private customClient: ClientProxy,
) {}
static IS_NOTIFIED = false;
@Client({
transport: Transport.TCP,
options: {
tlsOptions: {
ca: [
fs
.readFileSync(path.join(__dirname, 'ca.cert.pem'), 'utf-8')
.toString(),
],
},
},
})
client: ClientProxy;
@Post()
@HttpCode(200)
call(@Query('command') cmd, @Body() data: number[]): Observable<number> {
return this.client.send<number>({ cmd }, data);
}
@Post('useFactory')
@HttpCode(200)
callWithClientUseFactory(
@Query('command') cmd,
@Body() data: number[],
): Observable<number> {
return this.useFactoryClient.send<number>({ cmd }, data);
}
@Post('useClass')
@HttpCode(200)
callWithClientUseClass(
@Query('command') cmd,
@Body() data: number[],
): Observable<number> {
return this.useClassClient.send<number>({ cmd }, data);
}
@Post('stream')
@HttpCode(200)
stream(@Body() data: number[]): Observable<number> {
return this.client
.send<number>({ cmd: 'streaming' }, data)
.pipe(scan((a, b) => a + b));
}
@Post('concurrent')
@HttpCode(200)
concurrent(@Body() data: number[][]): Promise<boolean> {
const send = async (tab: number[]) => {
const expected = tab.reduce((a, b) => a + b);
const result = await lastValueFrom(
this.client.send<number>({ cmd: 'sum' }, tab),
);
return result === expected;
};
return data
.map(async tab => send(tab))
.reduce(async (a, b) => (await a) && b);
}
@Post('error')
@HttpCode(200)
serializeError(
@Query('client') query: 'custom' | 'standard' = 'standard',
@Body() body: Record<string, any>,
): Observable<boolean> {
const client = query === 'custom' ? this.customClient : this.client;
return client.send({ cmd: 'err' }, {}).pipe(
catchError(err => {
return of(err instanceof RpcException);
}),
);
}
@MessagePattern({ cmd: 'sum' })
sum(data: number[]): number {
return (data || []).reduce((a, b) => a + b);
}
@MessagePattern({ cmd: 'asyncSum' })
async asyncSum(data: number[]): Promise<number> {
return (data || []).reduce((a, b) => a + b);
}
@MessagePattern({ cmd: 'streamSum' })
streamSum(data: number[]): Observable<number> {
return of((data || []).reduce((a, b) => a + b));
}
@MessagePattern({ cmd: 'streaming' })
streaming(data: number[]): Observable<number> {
return from(data);
}
@MessagePattern({ cmd: 'err' })
throwAnError() {
return throwError(() => new Error('err'));
}
@Post('notify')
async sendNotification(): Promise<any> {
return this.client.emit<number>('notification', true);
}
@EventPattern('notification')
eventHandler(data: boolean) {
AppController.IS_NOTIFIED = data;
}
}

View File

@@ -0,0 +1,90 @@
import { Module, Injectable } from '@nestjs/common';
import { AppController } from './app.controller';
import {
ClientsModule,
Transport,
ClientsModuleOptionsFactory,
ClientOptions,
ClientTCP,
RpcException,
} from '@nestjs/microservices';
import * as fs from 'fs';
import * as path from 'path';
const caCert = fs.readFileSync(path.join(__dirname, 'ca.cert.pem')).toString();
class ErrorHandlingProxy extends ClientTCP {
constructor() {
super({
tlsOptions: { ca: caCert },
});
}
serializeError(err) {
return new RpcException(err);
}
}
@Injectable()
class ConfigService {
private readonly config = {
transport: Transport.TCP,
};
get(key: string, defaultValue?: any) {
return this.config[key] || defaultValue;
}
}
@Module({
providers: [ConfigService],
exports: [ConfigService],
})
class ConfigModule {}
@Injectable()
class ClientOptionService implements ClientsModuleOptionsFactory {
constructor(private readonly configService: ConfigService) {}
createClientOptions(): Promise<ClientOptions> | ClientOptions {
return {
transport: this.configService.get('transport'),
options: {
tlsOptions: { ca: caCert },
},
};
}
}
@Module({
imports: [
ClientsModule.registerAsync([
{
imports: [ConfigModule],
name: 'USE_FACTORY_CLIENT',
useFactory: (configService: ConfigService) => ({
transport: configService.get('transport'),
options: {
tlsOptions: { ca: caCert },
},
}),
inject: [ConfigService],
},
{
imports: [ConfigModule],
name: 'USE_CLASS_CLIENT',
useClass: ClientOptionService,
inject: [ConfigService],
},
{
imports: [ConfigModule],
inject: [ConfigService],
name: 'CUSTOM_PROXY_CLIENT',
useFactory: (config: ConfigService) => ({
customClass: ErrorHandlingProxy,
}),
},
]),
],
controllers: [AppController],
})
export class ApplicationModule {}

View File

@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE-----
MIICpDCCAYwCCQCyP27z3r0PFjANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDDAls
b2NhbGhvc3QwHhcNMjIxMjAyMDQ0NTQ1WhcNMzIxMTI5MDQ0NTQ1WjAUMRIwEAYD
VQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ
1IdZZXqrwXql4AIOJnlfpoGKOKoIalnK7KaKHTsq1QOF8z2abFuNBVIIrO0etQ/0
PPAaFGkXl6HHBuA5PrFpsw3V1wSnNs1Cns9NhvypHI2V71lkwBJrEaSicNWL2AOE
QkQ9cZ4YsTGd0BrM8D5VvgXdrC7gOXfj7Hx3E4K+wFO/Gi4AUXl5CXxleSFcW4U+
jFulfq/DE8rBZXs29IsGeVkkgUoICjQ4Ey4zE6EY7f3SPKgU8gfgzYyGSd/ZZ/E7
6M2yakEUX448Nl4BeuNWroBHVm1pSiMo+Cm1g34pJScPrx1yw6qquziCc/2n1M6O
B4WGIZAmJDWnAOEjjrxFAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAABGByZZUjaq
ZygICSH2qUGHPPIyrfaCe0qM7de6kYfxxPYQQZb0HDynzv780Lq1002XeT02fNR+
5sBCVFuKvS8BNvTq6kHzO1FiWIk/E5fQcYNToYSeEcXgWFLhJMty7+R6sIc9y8PH
2YNehf78Jjm9ukM52sLc4+JWl7AEeqPrOHZdh/ve8M2gTfimFKTrW5cEAVPIOPhp
2t5BdDKt8ZxgrGC7iRxga+v80VUOHRGfrd3hf3NlDQZO8upVGY8DdJhPRDB72+R0
kzJ7eyQwlGXM20atiFxPk43h0f273MneIJG8NgGiVU0ND4XnZkAB3KSAu7pB+nEw
QRYMYDgo/8Q=
-----END CERTIFICATE-----

View File

@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDZ1IdZZXqrwXql
4AIOJnlfpoGKOKoIalnK7KaKHTsq1QOF8z2abFuNBVIIrO0etQ/0PPAaFGkXl6HH
BuA5PrFpsw3V1wSnNs1Cns9NhvypHI2V71lkwBJrEaSicNWL2AOEQkQ9cZ4YsTGd
0BrM8D5VvgXdrC7gOXfj7Hx3E4K+wFO/Gi4AUXl5CXxleSFcW4U+jFulfq/DE8rB
ZXs29IsGeVkkgUoICjQ4Ey4zE6EY7f3SPKgU8gfgzYyGSd/ZZ/E76M2yakEUX448
Nl4BeuNWroBHVm1pSiMo+Cm1g34pJScPrx1yw6qquziCc/2n1M6OB4WGIZAmJDWn
AOEjjrxFAgMBAAECggEANUKZtWnyjHxKGLSkzADsPE7h7YHdUSFvwwYJ0ktDZD2h
FudacJ994wUiAa0GbTOoKvebXUUQTQxuKdOsj1Kc3lNBVr+0C46CsX9TAIm4zUCF
/dr/6HpuBm/R6UXdcMvoUDZDqSJWnYL1trhjVSiIlT5ZANJQw9JJVhlEdXj3xtuc
I9aC+33f9hKO1wzei/mTjIRGyRIeKselZPpA7qJnE4s3hmZxnO/rSqyPIvh1XLfZ
3Eoyyg+xNpTZ8JqlHB5d7hDSnj8cjboa7IYpHJDXN3r8Aui+R9e/sQkezHbF7fR0
xHpBVYQvGMuqSnTBkdJfq4qPAR1K49UrpEXB2GHaIQKBgQDs3t/ZUA138AiPIeLd
aTsEPhf5dWEZynfNvXZ0VcoSr8ckaiaq9OEllprAriYWj+XphTDsBUAh/R7KlOR4
eb+m6OwH7LseGiLIEr54GGP0LzVXAkfH2/uR1cak8qAmHB00jNEg7sj0eVAsHO3f
WQm67f+RNP/IgAa+V8JKIkgTwwKBgQDrbAH8eAQsq9rjpxcic1EUI7uFHzr+cKf/
4Y8ThLUNAzNfAbQWRBYjS1R8GM79Wiuh+WT1ooHKLryuLF7LVukvKHJ5GiNFBmaO
llf72Zf1y4tBE2RCXQbf6h8+ohSDC/hwYy+w20/i2KzSBKkS0+gQuAX/HzfTpRd3
q3/uEniXVwKBgDNnElDIbIPQlSrqgZ7mzSXYi79Y15+PLnx5VxFb5KQ1fRPL7WRA
C/PqQN77a8yNoakRfFJbuVUm5t2zffkfApYoCcCWgOzBYzbjym2pbVd6PysIlacr
d+Zn69mzxUk/5J6YyHFLIFTdVqacCIrleZUVPNa4F6HdFpmL1d/cnKOdAoGAMDuB
sKsaF9jh0LBkEf/URa8IdT6vxH9qPAeHW7VdrpvQQ4/CyKkMbBC772zZw5hcxiOl
Zpnzw2uN5pVamohk3++GfH85aKPmESKGRigPdSFNl3iUmvAaP3flDN0CHNMwBD6d
/7r/A/fmeGTSCvR1YC+DswA/XNI/G5p8bFdGc6MCgYBd9oQiZlkYMiDGPUAjx+DO
kqtAmc8DLJEanSbWdIxL2bGL04cgBRPssM4m0UScx4PucvqWEPdN/5Ug0z5TrD77
2K5nZSBUdy4DunBImz1NHRQEiytkrYX0LesGr02QlzIH4wmwb1TFu7rLkr6KfNuV
xqWi+JVY8N4vuHAxCeEALw==
-----END PRIVATE KEY-----

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"lib": ["dom"],

View File

@@ -8,7 +8,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist"

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -73,11 +73,15 @@ describe('Express FileSend', () => {
it('should return an error if the file does not exist', async () => {
return request(app.getHttpServer()).get('/file/not/exist').expect(400);
});
it('should allow for the client to end the response and be able to make another', async () => {
await app.listen(0);
const url = await getHttpBaseOptions(app);
await sendCanceledHttpRequest(new URL('/file/slow', url));
const res = await sendHttpRequest(new URL('/file/stream', url));
expect(res.statusCode).to.be.eq(200);
}).timeout(5000);
// TODO: temporarily turned off (flaky test)
it.skip(
'should allow for the client to end the response and be able to make another',
async () => {
await app.listen(0);
const url = await getHttpBaseOptions(app);
await sendCanceledHttpRequest(new URL('/file/slow', url));
const res = await sendHttpRequest(new URL('/file/stream', url));
expect(res.statusCode).to.be.eq(200);
},
).timeout(5000);
});

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -0,0 +1,12 @@
import { Injectable, Module, forwardRef } from '@nestjs/common';
import { BModule, BProvider } from './b.module';
@Injectable()
export class AProvider {}
@Module({
imports: [forwardRef(() => BModule)],
providers: [AProvider],
exports: [AProvider],
})
export class AModule {}

View File

@@ -0,0 +1,12 @@
import { Injectable, Module, forwardRef } from '@nestjs/common';
import { AModule, AProvider } from './a.module';
@Injectable()
export class BProvider {}
@Module({
imports: [forwardRef(() => AModule)],
providers: [BProvider],
exports: [BProvider],
})
export class BModule {}

View File

@@ -0,0 +1,309 @@
import {
Controller,
DynamicModule,
forwardRef,
Global,
Injectable,
Module,
} from '@nestjs/common';
import { LazyModuleLoader } from '@nestjs/core';
import { Test, TestingModule } from '@nestjs/testing';
import { expect } from 'chai';
import { AModule, AProvider } from './circular-dependency/a.module';
import { BModule, BProvider } from './circular-dependency/b.module';
describe('Modules overriding', () => {
describe('Top-level module', () => {
@Controller()
class ControllerOverwritten {}
@Module({
controllers: [ControllerOverwritten],
})
class ModuleToBeOverwritten {}
@Controller()
class ControllerOverride {}
@Module({
controllers: [ControllerOverride],
})
class ModuleOverride {}
let testingModule: TestingModule;
beforeEach(async () => {
testingModule = await Test.createTestingModule({
imports: [ModuleToBeOverwritten],
})
.overrideModule(ModuleToBeOverwritten)
.useModule(ModuleOverride)
.compile();
});
it('should override top-level modules using testing module builder', () => {
expect(() =>
testingModule.get<ControllerOverwritten>(ControllerOverwritten),
).to.throw();
expect(
testingModule.get<ControllerOverride>(ControllerOverride),
).to.be.an.instanceof(ControllerOverride);
});
});
describe('Dynamic module', () => {
@Controller()
class ControllerOverwritten {}
@Module({})
class DynamicModuleToBeOverwritten {}
const dynamicModuleOverwritten: DynamicModule = {
module: DynamicModuleToBeOverwritten,
controllers: [ControllerOverwritten],
};
@Controller()
class ControllerOverride {}
@Module({})
class DynamicModuleOverride {}
const dynamicModuleOverride: DynamicModule = {
module: DynamicModuleOverride,
controllers: [ControllerOverride],
};
let testingModule: TestingModule;
beforeEach(async () => {
testingModule = await Test.createTestingModule({
imports: [dynamicModuleOverwritten],
})
.overrideModule(dynamicModuleOverwritten)
.useModule(dynamicModuleOverride)
.compile();
});
it('should override dynamic modules using testing module builder', () => {
expect(() =>
testingModule.get<ControllerOverwritten>(ControllerOverwritten),
).to.throw();
expect(
testingModule.get<ControllerOverride>(ControllerOverride),
).to.be.an.instanceof(ControllerOverride);
});
});
describe('Circular dependency module', () => {
let testingModule: TestingModule;
@Injectable()
class CProvider {}
@Module({
providers: [CProvider],
})
class CModule {}
@Injectable()
class BProviderOverride {}
@Module({
imports: [forwardRef(() => AModule), forwardRef(() => CModule)],
providers: [BProviderOverride],
exports: [BProviderOverride],
})
class BModuleOverride {}
beforeEach(async () => {
testingModule = await Test.createTestingModule({
imports: [AModule],
})
.overrideModule(BModule)
.useModule(BModuleOverride)
.compile();
});
it('should override top-level modules using testing module builder', () => {
expect(testingModule.get<AProvider>(AProvider)).to.be.an.instanceof(
AProvider,
);
expect(() => testingModule.get<BProvider>(BProvider)).to.throw();
expect(testingModule.get<CProvider>(CProvider)).to.be.an.instanceof(
CProvider,
);
expect(
testingModule.get<BProviderOverride>(BProviderOverride),
).to.be.an.instanceof(BProviderOverride);
});
});
describe('Nested module', () => {
let testingModule: TestingModule;
@Controller()
class OverwrittenNestedModuleController {}
@Module({
controllers: [OverwrittenNestedModuleController],
})
class OverwrittenNestedModule {}
@Controller()
class OverrideNestedModuleController {}
@Module({
controllers: [OverrideNestedModuleController],
})
class OverrideNestedModule {}
@Module({
imports: [OverwrittenNestedModule],
})
class AppModule {}
beforeEach(async () => {
testingModule = await Test.createTestingModule({
imports: [AppModule],
})
.overrideModule(OverwrittenNestedModule)
.useModule(OverrideNestedModule)
.compile();
});
it('should override nested modules using testing module builder', () => {
expect(
testingModule.get<OverrideNestedModuleController>(
OverrideNestedModuleController,
),
).to.be.an.instanceof(OverrideNestedModuleController);
expect(() =>
testingModule.get<OverwrittenNestedModuleController>(
OverwrittenNestedModuleController,
),
).to.throw();
});
});
describe('Lazy-loaded module', () => {
let testingModule: TestingModule;
@Injectable()
class OverwrittenLazyProvider {
value() {
return 'overwritten lazy';
}
}
@Module({
providers: [
{
provide: 'LAZY_PROVIDER',
useClass: OverwrittenLazyProvider,
},
],
})
class OverwrittenLazyModule {}
@Injectable()
class OverrideLazyProvider {
value() {
return 'override lazy';
}
}
@Module({
providers: [
{
provide: 'LAZY_PROVIDER',
useClass: OverrideLazyProvider,
},
],
})
class OverrideLazyModule {}
@Injectable()
class AppService {
constructor(private lazyModuleLoader: LazyModuleLoader) {}
async value() {
const moduleRef = await this.lazyModuleLoader.load(
() => OverwrittenLazyModule,
);
return moduleRef.get('LAZY_PROVIDER').value();
}
}
@Module({
imports: [],
providers: [AppService],
})
class AppModule {}
beforeEach(async () => {
testingModule = await Test.createTestingModule({
imports: [AppModule],
})
.overrideModule(OverwrittenLazyModule)
.useModule(OverrideLazyModule)
.compile();
});
it('should override lazy loaded modules using testing module builder', async () => {
const result = await testingModule.get<AppService>(AppService).value();
expect(result).to.be.equal('override lazy');
});
});
describe('Global module', () => {
let testingModule: TestingModule;
@Injectable()
class OverwrittenProvider {
value() {
return 'overwritten lazy';
}
}
@Global()
@Module({
providers: [OverwrittenProvider],
exports: [OverwrittenProvider],
})
class OverwrittenModule {}
@Injectable()
class OverrideProvider {
value() {
return 'override lazy';
}
}
@Global()
@Module({
providers: [OverrideProvider],
exports: [OverrideProvider],
})
class OverrideModule {}
beforeEach(async () => {
testingModule = await Test.createTestingModule({
imports: [OverwrittenModule],
})
.overrideModule(OverwrittenModule)
.useModule(OverrideModule)
.compile();
});
it('should override global modules using testing module builder', () => {
expect(
testingModule.get<OverrideProvider>(OverrideProvider),
).to.be.an.instanceof(OverrideProvider);
expect(() =>
testingModule.get<OverwrittenProvider>(OverwrittenProvider),
).to.throw();
});
});
});

View File

@@ -0,0 +1,17 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2021",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true
},
"include": ["src/**/*"]
}

View File

@@ -1,8 +1,8 @@
import { NestFactory } from '@nestjs/core';
import { ApplicationModule } from './app.module';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(ApplicationModule);
const app = await NestFactory.create(AppModule);
await app.listen(3001);
}
bootstrap();

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -352,4 +352,70 @@ describe('URI Versioning', () => {
await app.close();
});
});
// ======================================================================== //
describe('with the global prefix enabled and an excluded route', () => {
before(async () => {
const moduleRef = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleRef.createNestApplication();
app.setGlobalPrefix('api', { exclude: ['/foo/bar'] });
app.enableVersioning({
type: VersioningType.URI,
defaultVersion: '1',
});
await app.init();
});
describe('GET /', () => {
it('V1', () => {
return request(app.getHttpServer())
.get('/api/v1')
.expect(200)
.expect('Hello World V1!');
});
it('V2', () => {
return request(app.getHttpServer())
.get('/api/v2')
.expect(200)
.expect('Hello World V2!');
});
it('V3', () => {
return request(app.getHttpServer()).get('/api/v3').expect(404);
});
it('No Version', () => {
return request(app.getHttpServer()).get('/api').expect(404);
});
});
describe('GET /foo/bar (excluded from the API prefix)', () => {
it('V1', () => {
return request(app.getHttpServer())
.get('/v1/foo/bar')
.expect(200)
.expect('Hello FooBar!');
});
it('V2', () => {
return request(app.getHttpServer()).get('/v2/foo/bar').expect(404);
});
it('V3', () => {
return request(app.getHttpServer()).get('/v3/foo/bar').expect(404);
});
it('No Version', () => {
return request(app.getHttpServer()).get('/foo/bar').expect(404);
});
});
after(async () => {
await app.close();
});
});
});

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -145,7 +145,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
}),
);
});
});
}).timeout(5000);
it(`should support 2 different gateways running on the same path (but different ports)`, async function () {
this.retries(10);

View File

@@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",

View File

@@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "9.3.12"
"version": "9.4.2"
}

32622
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +1,11 @@
{
"name": "@nestjs/core",
"version": "9.3.10",
"version": "9.4.0",
"description": "Modern, fast, powerful node.js web framework",
"homepage": "https://nestjs.com",
"repository": {
"type": "git",
"url": "https://github.com/nestjs/nest"
"url": "https://github.com/nestjs/nest.git"
},
"funding": {
"type": "opencollective",
@@ -64,65 +64,65 @@
"cli-color": "2.0.3",
"cors": "2.8.5",
"express": "4.18.2",
"fast-json-stringify": "5.6.2",
"fast-json-stringify": "5.7.0",
"fast-safe-stringify": "2.1.1",
"graphql-subscriptions": "2.0.0",
"iterare": "1.2.1",
"object-hash": "3.0.0",
"path-to-regexp": "3.2.0",
"reflect-metadata": "0.1.13",
"rxjs": "7.8.0",
"rxjs": "7.8.1",
"socket.io": "4.6.1",
"tslib": "2.5.0",
"uid": "2.0.1",
"tslib": "2.5.2",
"uid": "2.0.2",
"uuid": "9.0.0"
},
"devDependencies": {
"@apollo/server": "4.5.0",
"@apollo/server": "4.7.1",
"@codechecks/client": "0.1.12",
"@commitlint/cli": "17.4.4",
"@commitlint/config-angular": "17.4.4",
"@fastify/cors": "^8.0.0",
"@commitlint/cli": "17.6.3",
"@commitlint/config-angular": "17.6.3",
"@fastify/cors": "8.2.1",
"@fastify/formbody": "7.4.0",
"@fastify/middie": "8.1.0",
"@fastify/multipart": "7.5.0",
"@fastify/static": "6.9.0",
"@fastify/middie": "8.3.0",
"@fastify/multipart": "7.6.0",
"@fastify/static": "6.10.1",
"@fastify/view": "7.4.1",
"@grpc/grpc-js": "1.8.12",
"@grpc/proto-loader": "0.7.5",
"@nestjs/apollo": "11.0.4",
"@nestjs/graphql": "11.0.4",
"@grpc/grpc-js": "1.8.14",
"@grpc/proto-loader": "0.7.7",
"@nestjs/apollo": "11.0.5",
"@nestjs/graphql": "11.0.5",
"@nestjs/mongoose": "9.2.2",
"@nestjs/typeorm": "9.0.1",
"@types/amqplib": "0.10.1",
"@types/bytes": "3.1.1",
"@types/chai": "4.3.4",
"@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.10",
"@types/http-errors": "2.0.1",
"@types/mocha": "10.0.1",
"@types/node": "18.15.5",
"@types/sinon": "10.0.13",
"@types/node": "20.2.3",
"@types/sinon": "10.0.15",
"@types/supertest": "2.0.12",
"@types/ws": "8.5.4",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"amqp-connection-manager": "4.1.11",
"amqp-connection-manager": "4.1.13",
"amqplib": "0.10.3",
"artillery": "1.7.9",
"body-parser": "1.20.2",
"bytes": "3.1.2",
"cache-manager": "5.2.0",
"cache-manager": "5.2.1",
"cache-manager-redis-store": "3.0.1",
"chai": "4.3.7",
"chai-as-promised": "7.1.1",
"clang-format": "1.8.0",
"commitlint-circle": "1.0.0",
"concurrently": "7.6.0",
"concurrently": "8.0.1",
"conventional-changelog": "3.1.25",
"core-js": "3.29.1",
"core-js": "3.30.2",
"coveralls": "3.1.1",
"delete-empty": "3.0.0",
"engine.io-client": "6.4.0",
@@ -131,9 +131,9 @@
"eslint-plugin-import": "2.27.5",
"eventsource": "2.0.2",
"fancy-log": "2.0.0",
"fastify": "4.15.0",
"fastify": "4.17.0",
"graphql": "16.6.0",
"graphql-tools": "8.3.19",
"graphql-tools": "9.0.0",
"gulp": "4.0.2",
"gulp-clang-format": "1.0.27",
"gulp-clean": "0.4.0",
@@ -143,35 +143,35 @@
"http-errors": "2.0.0",
"husky": "8.0.3",
"imports-loader": "4.0.1",
"ioredis": "5.3.1",
"ioredis": "5.3.2",
"json-loader": "0.5.7",
"kafkajs": "2.2.4",
"lerna": "2.11.0",
"lerna-changelog": "2.2.0",
"light-my-request": "5.9.1",
"lint-staged": "13.2.0",
"lint-staged": "13.2.2",
"markdown-table": "2.0.0",
"merge-graphql-schemas": "1.7.8",
"mocha": "10.2.0",
"mongoose": "7.0.2",
"mongoose": "7.2.0",
"mqtt": "4.3.7",
"multer": "1.4.4",
"mysql2": "3.2.0",
"mysql2": "3.3.1",
"nats": "2.13.1",
"nodemon": "2.0.21",
"nodemon": "2.0.22",
"nyc": "15.1.0",
"prettier": "2.8.6",
"redis": "4.6.5",
"prettier": "2.8.8",
"redis": "4.6.6",
"rxjs-compat": "6.6.7",
"sinon": "15.0.2",
"sinon": "15.1.0",
"sinon-chai": "3.7.0",
"socket.io-client": "4.6.1",
"subscriptions-transport-ws": "0.11.0",
"supertest": "6.3.3",
"ts-morph": "17.0.1",
"ts-morph": "18.0.0",
"ts-node": "10.9.1",
"typeorm": "0.3.12",
"typescript": "4.9.5",
"typeorm": "0.3.16",
"typescript": "5.0.4",
"wrk": "1.2.1",
"ws": "8.13.0"
},

View File

@@ -1,11 +1,11 @@
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
<a href="https://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
</p>
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
<p align="center">A progressive <a href="https://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
@@ -132,7 +132,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<td align="center" valign="middle"><a href="https://klqc.de" target="_blank"><img src="https://nestjs.com/img/klcqcl-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/casinowizard-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://polygon-software.ch/" target="_blank"><img src="https://nestjs.com/img/polygon-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://mobilereality.pl/" target="_blank"><img src="https://nestjs.com/img/mobile-reality-logo.png" width="45" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://themobilereality.com/" target="_blank"><img src="https://nestjs.com/img/mobile-reality-logo.png" width="45" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://boringowl.io/" target="_blank"><img src="https://nestjs.com/img/boringowl-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.mobilefactory.jp/" target="_blank"><img src="https://nestjs.com/img/mobilefactory-logo.png" width="100" valign="middle" /></a></td>
<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>

View File

@@ -1,6 +0,0 @@
import { MODULE_OPTIONS_TOKEN } from './cache.module-definition';
export const CACHE_MANAGER = 'CACHE_MANAGER';
export const CACHE_KEY_METADATA = 'cache_module:cache_key';
export const CACHE_TTL_METADATA = 'cache_module:cache_ttl';
export const CACHE_MODULE_OPTIONS = MODULE_OPTIONS_TOKEN;

View File

@@ -1,12 +0,0 @@
import { ConfigurableModuleBuilder } from '../module-utils';
import {
CacheModuleOptions,
CacheOptionsFactory,
} from './interfaces/cache-module.interface';
export const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN } =
new ConfigurableModuleBuilder<CacheModuleOptions>({
moduleName: 'Cache',
})
.setFactoryMethodName('createCacheOptions' as keyof CacheOptionsFactory)
.build();

View File

@@ -1,60 +0,0 @@
import { Module } from '../decorators';
import { DynamicModule } from '../interfaces';
import { CACHE_MANAGER } from './cache.constants';
import { ConfigurableModuleClass } from './cache.module-definition';
import { createCacheManager } from './cache.providers';
import {
CacheModuleAsyncOptions,
CacheModuleOptions,
} from './interfaces/cache-module.interface';
/**
* Module that provides Nest cache-manager.
*
* @see [Caching](https://docs.nestjs.com/techniques/caching)
*
* @publicApi
*/
@Module({
providers: [createCacheManager()],
exports: [CACHE_MANAGER],
})
export class CacheModule extends ConfigurableModuleClass {
/**
* Configure the cache manager statically.
*
* @param options options to configure the cache manager
*
* @see [Customize caching](https://docs.nestjs.com/techniques/caching#customize-caching)
*/
static register<StoreConfig extends Record<any, any> = Record<string, any>>(
options: CacheModuleOptions<StoreConfig> = {} as any,
): DynamicModule {
return {
global: options.isGlobal,
...super.register(options),
};
}
/**
* Configure the cache manager dynamically.
*
* @param options method for dynamically supplying cache manager configuration
* options
*
* @see [Async configuration](https://docs.nestjs.com/techniques/caching#async-configuration)
*/
static registerAsync<
StoreConfig extends Record<any, any> = Record<string, any>,
>(options: CacheModuleAsyncOptions<StoreConfig>): DynamicModule {
const moduleDefinition = super.registerAsync(options);
return {
global: options.isGlobal,
...moduleDefinition,
providers: options.extraProviders
? moduleDefinition.providers.concat(options.extraProviders)
: moduleDefinition.providers,
};
}
}

View File

@@ -1,61 +0,0 @@
import { Provider } from '../interfaces';
import { loadPackage } from '../utils/load-package.util';
import { CACHE_MANAGER } from './cache.constants';
import { MODULE_OPTIONS_TOKEN } from './cache.module-definition';
import { defaultCacheOptions } from './default-options';
import {
CacheManagerOptions,
CacheStore,
} from './interfaces/cache-manager.interface';
/**
* Creates a CacheManager Provider.
*
* @publicApi
*/
export function createCacheManager(): Provider {
return {
provide: CACHE_MANAGER,
useFactory: async (options: CacheManagerOptions) => {
const cacheManager = loadPackage('cache-manager', 'CacheModule', () =>
require('cache-manager'),
);
const cacheManagerIsv5OrGreater = 'memoryStore' in cacheManager;
const cachingFactory = async (
store: CacheManagerOptions['store'],
options: Omit<CacheManagerOptions, 'store'>,
): Promise<Record<string, any>> => {
if (!cacheManagerIsv5OrGreater) {
return cacheManager.caching({
...defaultCacheOptions,
...{ ...options, store },
});
}
let cache: string | Function | CacheStore = 'memory';
defaultCacheOptions.ttl *= 1000;
if (typeof store === 'object') {
if ('create' in store) {
cache = store.create;
} else {
cache = store;
}
} else if (typeof store === 'function') {
cache = store;
}
return cacheManager.caching(cache, {
...defaultCacheOptions,
...options,
});
};
return Array.isArray(options)
? cacheManager.multiCaching(
await Promise.all(
options.map(option => cachingFactory(option.store, option)),
),
)
: cachingFactory(options.store, options);
},
inject: [MODULE_OPTIONS_TOKEN],
};
}

View File

@@ -1,17 +0,0 @@
import { SetMetadata } from '../../decorators';
import { CACHE_KEY_METADATA } from '../cache.constants';
/**
* Decorator that sets the caching key used to store/retrieve cached items for
* Web sockets or Microservice based apps.
*
* For example:
* `@CacheKey('events')`
*
* @param key string naming the field to be used as a cache key
*
* @see [Caching](https://docs.nestjs.com/techniques/caching)
*
* @publicApi
*/
export const CacheKey = (key: string) => SetMetadata(CACHE_KEY_METADATA, key);

View File

@@ -1,18 +0,0 @@
import { SetMetadata } from '../../decorators';
import { ExecutionContext } from '../../interfaces/features/execution-context.interface';
import { CACHE_TTL_METADATA } from '../cache.constants';
/**
* Decorator that sets the cache ttl setting the duration for cache expiration.
*
* For example: `@CacheTTL(5)`
*
* @param ttl number set the cache expiration time
*
* @see [Caching](https://docs.nestjs.com/techniques/caching)
*
* @publicApi
*/
type CacheTTLFactory = (ctx: ExecutionContext) => Promise<number> | number;
export const CacheTTL = (ttl: number | CacheTTLFactory) =>
SetMetadata(CACHE_TTL_METADATA, ttl);

View File

@@ -1,2 +0,0 @@
export * from './cache-key.decorator';
export * from './cache-ttl.decorator';

View File

@@ -1,5 +0,0 @@
export const defaultCacheOptions = {
ttl: 5,
max: 100,
store: 'memory',
};

View File

@@ -1,5 +0,0 @@
export * from './cache.constants';
export * from './cache.module';
export * from './decorators';
export * from './interceptors';
export * from './interfaces';

View File

@@ -1,125 +0,0 @@
import { Observable, of } from 'rxjs';
import { tap } from 'rxjs/operators';
import { Inject, Injectable, Optional } from '../../decorators';
import { StreamableFile } from '../../file-stream';
import {
CallHandler,
ExecutionContext,
HttpServer,
NestInterceptor,
} from '../../interfaces';
import { Logger } from '../../services/logger.service';
import { loadPackage } from '../../utils/load-package.util';
import { isFunction, isNil, isNumber } from '../../utils/shared.utils';
import {
CACHE_KEY_METADATA,
CACHE_MANAGER,
CACHE_TTL_METADATA,
} from '../cache.constants';
const HTTP_ADAPTER_HOST = 'HttpAdapterHost';
const REFLECTOR = 'Reflector';
export interface HttpAdapterHost<T extends HttpServer = any> {
httpAdapter: T;
}
/**
* @see [Caching](https://docs.nestjs.com/techniques/caching)
*
* @publicApi
*/
@Injectable()
export class CacheInterceptor implements NestInterceptor {
@Optional()
@Inject(HTTP_ADAPTER_HOST)
protected readonly httpAdapterHost: HttpAdapterHost;
protected allowedMethods = ['GET'];
private cacheManagerIsv5OrGreater: boolean;
constructor(
@Inject(CACHE_MANAGER) protected readonly cacheManager: any,
@Inject(REFLECTOR) protected readonly reflector: any,
) {
// We need to check if the cache-manager package is v5 or greater
// because the set method signature changed in v5
const cacheManagerPackage = loadPackage(
'cache-manager',
'CacheModule',
() => require('cache-manager'),
);
this.cacheManagerIsv5OrGreater = 'memoryStore' in cacheManagerPackage;
}
async intercept(
context: ExecutionContext,
next: CallHandler,
): Promise<Observable<any>> {
const key = this.trackBy(context);
const ttlValueOrFactory =
this.reflector.get(CACHE_TTL_METADATA, context.getHandler()) ?? null;
if (!key) {
return next.handle();
}
try {
const value = await this.cacheManager.get(key);
if (!isNil(value)) {
return of(value);
}
const ttl = isFunction(ttlValueOrFactory)
? await ttlValueOrFactory(context)
: ttlValueOrFactory;
return next.handle().pipe(
tap(async response => {
if (response instanceof StreamableFile) {
return;
}
const args = [key, response];
if (!isNil(ttl)) {
args.push(this.cacheManagerIsv5OrGreater ? ttl : { ttl });
}
try {
await this.cacheManager.set(...args);
} catch (err) {
Logger.error(
`An error has occurred when inserting "key: ${key}", "value: ${response}"`,
'CacheInterceptor',
);
}
}),
);
} catch {
return next.handle();
}
}
protected trackBy(context: ExecutionContext): string | undefined {
const httpAdapter = this.httpAdapterHost.httpAdapter;
const isHttpApp = httpAdapter && !!httpAdapter.getRequestMethod;
const cacheMetadata = this.reflector.get(
CACHE_KEY_METADATA,
context.getHandler(),
);
if (!isHttpApp || cacheMetadata) {
return cacheMetadata;
}
const request = context.getArgByIndex(0);
if (!this.isRequestCacheable(context)) {
return undefined;
}
return httpAdapter.getRequestUrl(request);
}
protected isRequestCacheable(context: ExecutionContext): boolean {
const req = context.switchToHttp().getRequest();
return this.allowedMethods.includes(req.method);
}
}

View File

@@ -1 +0,0 @@
export * from './cache.interceptor';

View File

@@ -1,86 +0,0 @@
export interface LiteralObject {
[key: string]: any;
}
/**
* Interface defining a cache store. Implement this interface to create a custom
* cache store.
*
* @publicApi
*/
export interface CacheStore {
/**
* Create a key/value pair in the cache.
*
* @param key cache key
* @param value cache value
*/
set<T>(
key: string,
value: T,
options?: CacheStoreSetOptions<T> | number,
): Promise<void> | void;
/**
* Retrieve a key/value pair from the cache.
*
* @param key cache key
*/
get<T>(key: string): Promise<T | undefined> | T | undefined;
/**
* Destroy a key/value pair from the cache.
*
* @param key cache key
*/
del?(key: string): void | Promise<void>;
}
export interface CacheStoreSetOptions<T> {
/**
* Time to live - amount of time in seconds that a response is cached before it
* is deleted. Defaults based on your cache manager settings.
*/
ttl?: ((value: T) => number) | number;
}
/**
* Interface defining a factory to create a cache store.
*
* @publicApi
*/
export type CacheStoreFactory =
| {
/**
* Return a configured cache store.
*
* @param args Cache manager options received from `CacheModule.register()`
* or `CacheModule.registerAsync()`
*/
create(args: LiteralObject): CacheStore;
}
| ((args: LiteralObject) => CacheStore | Promise<CacheStore>);
/**
* Interface defining Cache Manager configuration options.
*
* @publicApi
*/
export interface CacheManagerOptions {
/**
* Cache storage manager. Default is `'memory'` (in-memory store). See
* [Different stores](https://docs.nestjs.com/techniques/caching#different-stores)
* for more info.
*/
store?: string | CacheStoreFactory | CacheStore;
/**
* Time to live - amount of time that a response is cached before it
* is deleted. Subsequent request will call through the route handler and refresh
* the cache. Defaults to 5 seconds. In `cache-manager@^4` this value is in seconds.
* In `cache-manager@^5` this value is in milliseconds.
*/
ttl?: number;
/**
* Maximum number of responses to store in the cache. Defaults to 100.
*/
max?: number;
isCacheableValue?: (value: any) => boolean;
}

View File

@@ -1,78 +0,0 @@
import { Provider, Type } from '../../interfaces';
import { ConfigurableModuleAsyncOptions } from '../../module-utils';
import { CacheManagerOptions } from './cache-manager.interface';
export type CacheModuleOptions<
StoreConfig extends Record<any, any> = Record<string, any>,
> =
// Store-specific configuration takes precedence over cache module options due
// to how `createCacheManager` is implemented.
CacheManagerOptions &
StoreConfig & {
/**
* If "true', register `CacheModule` as a global module.
*/
isGlobal?: boolean;
};
/**
* Interface describing a `CacheOptionsFactory`. Providers supplying configuration
* options for the Cache module must implement this interface.
*
* @see [Async configuration](https://docs.nestjs.com/techniques/caching#async-configuration)
*
* @publicApi
*/
export interface CacheOptionsFactory<
StoreConfig extends Record<any, any> = Record<string, any>,
> {
createCacheOptions():
| Promise<CacheModuleOptions<StoreConfig>>
| CacheModuleOptions<StoreConfig>;
}
/**
* Options for dynamically configuring the Cache module.
*
* @see [Async configuration](https://docs.nestjs.com/techniques/caching#async-configuration)
*
* @publicApi
*/
export interface CacheModuleAsyncOptions<
StoreConfig extends Record<any, any> = Record<string, any>,
> extends ConfigurableModuleAsyncOptions<
CacheModuleOptions<StoreConfig>,
keyof CacheOptionsFactory
> {
/**
* Injection token resolving to an existing provider. The provider must implement
* the `CacheOptionsFactory` interface.
*/
useExisting?: Type<CacheOptionsFactory<StoreConfig>>;
/**
* Injection token resolving to a class that will be instantiated as a provider.
* The class must implement the `CacheOptionsFactory` interface.
*/
useClass?: Type<CacheOptionsFactory<StoreConfig>>;
/**
* Function returning options (or a Promise resolving to options) to configure the
* cache module.
*/
useFactory?: (
...args: any[]
) =>
| Promise<CacheModuleOptions<StoreConfig>>
| CacheModuleOptions<StoreConfig>;
/**
* Dependencies that a Factory may inject.
*/
inject?: any[];
/**
* Extra providers to be registered within a scope of this module.
*/
extraProviders?: Provider[];
/**
* If "true', register `CacheModule` as a global module.
*/
isGlobal?: boolean;
}

View File

@@ -1,2 +0,0 @@
export * from './cache-manager.interface';
export * from './cache-module.interface';

View File

@@ -17,10 +17,6 @@ export const SCOPE_OPTIONS_METADATA = 'scope:options';
export const METHOD_METADATA = 'method';
export const ROUTE_ARGS_METADATA = '__routeArguments__';
export const CUSTOM_ROUTE_ARGS_METADATA = '__customRouteArgs__';
/**
* @deprecated Use `CUSTOM_ROUTE_ARGS_METADATA` instead
*/
export const CUSTOM_ROUTE_AGRS_METADATA = CUSTOM_ROUTE_ARGS_METADATA;
export const FILTER_CATCH_EXCEPTIONS = '__filterCatchExceptions__';
export const PIPES_METADATA = '__pipes__';

View File

@@ -33,7 +33,9 @@ import { isUndefined } from '../../utils/shared.utils';
*
* @publicApi
*/
export function Inject<T = any>(token?: T) {
export function Inject<T = any>(
token?: T,
): PropertyDecorator & ParameterDecorator {
return (target: object, key: string | symbol | undefined, index?: number) => {
const type = token || Reflect.getMetadata('design:type', target, key);

View File

@@ -17,7 +17,7 @@ import { isUndefined } from '../../utils/shared.utils';
*
* @publicApi
*/
export function Optional() {
export function Optional(): PropertyDecorator & ParameterDecorator {
return (target: object, key: string | symbol | undefined, index?: number) => {
if (!isUndefined(index)) {
const args = Reflect.getMetadata(OPTIONAL_DEPS_METADATA, target) || [];

View File

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

View File

@@ -7,4 +7,5 @@ export enum RequestMethod {
ALL,
OPTIONS,
HEAD,
SEARCH,
}

View File

@@ -1,4 +1,7 @@
import { Logger } from '../services';
import {
HttpExceptionBody,
HttpExceptionBodyMessage,
} from '../interfaces/http/http-exception-body.interface';
import { isObject, isString } from '../utils/shared.utils';
export interface HttpExceptionOptions {
@@ -26,8 +29,6 @@ export class HttpException extends Error {
* @example
* throw new HttpException()
* throw new HttpException('message', HttpStatus.BAD_REQUEST)
* throw new HttpException({ reason: 'this can be a human readable reason' }, HttpStatus.BAD_REQUEST)
* throw new HttpException(new Error('Cause Error'), HttpStatus.BAD_REQUEST)
* throw new HttpException('custom message', HttpStatus.BAD_REQUEST, {
* cause: new Error('Cause Error'),
* })
@@ -81,13 +82,6 @@ export class HttpException extends Error {
this.cause = this.options.cause;
return;
}
if (this.response instanceof Error) {
Logger.warn(
'DEPRECATED! Passing the error cause as the first argument to HttpException constructor is deprecated. You should use the "options" parameter instead: new HttpException("message", 400, { cause: new Error("Some Error") }) ',
);
this.cause = this.response;
}
}
public initMessage() {
@@ -118,17 +112,42 @@ export class HttpException extends Error {
}
public static createBody(
objectOrErrorMessage: object | string,
description?: string,
nil: null | '',
message: HttpExceptionBodyMessage,
statusCode: number,
): HttpExceptionBody;
public static createBody(
message: HttpExceptionBodyMessage,
error: string,
statusCode: number,
): HttpExceptionBody;
public static createBody<Body extends Record<string, unknown>>(
custom: Body,
): Body;
public static createBody<Body extends Record<string, unknown>>(
arg0: null | HttpExceptionBodyMessage | Body,
arg1?: HttpExceptionBodyMessage | string,
statusCode?: number,
) {
if (!objectOrErrorMessage) {
return { statusCode, message: description };
): HttpExceptionBody | Body {
if (!arg0) {
return {
message: arg1,
statusCode: statusCode,
};
}
return isObject(objectOrErrorMessage) &&
!Array.isArray(objectOrErrorMessage)
? objectOrErrorMessage
: { statusCode, message: objectOrErrorMessage, error: description };
if (isString(arg0) || Array.isArray(arg0)) {
return {
message: arg0,
error: arg1 as string,
statusCode: statusCode,
};
}
return arg0;
}
public static getDescriptionFrom(

View File

@@ -6,7 +6,6 @@
*/
import 'reflect-metadata';
export * from './cache';
export * from './decorators';
export * from './enums';
export * from './exceptions';
@@ -27,6 +26,8 @@ export {
FactoryProvider,
ForwardReference,
HttpServer,
HttpExceptionBody,
HttpExceptionBodyMessage,
INestApplication,
INestApplicationContext,
INestMicroservice,

View File

@@ -69,7 +69,8 @@ export interface ValidatorOptions {
*/
forbidUnknownValues?: boolean;
/**
* When set to true, validation of the given property will stop after encountering the first error. Defaults to false.
* When set to true, validation of the given property will stop after encountering the first error.
* This is enabled by default.
*/
stopAtFirstError?: boolean;
}

View File

@@ -0,0 +1,7 @@
export type HttpExceptionBodyMessage = string | string[];
export interface HttpExceptionBody {
message: HttpExceptionBodyMessage;
error?: string;
statusCode: number;
}

View File

@@ -18,7 +18,11 @@ export type RequestHandler<TRequest = any, TResponse = any> = (
next?: Function,
) => any;
export interface HttpServer<TRequest = any, TResponse = any> {
export interface HttpServer<
TRequest = any,
TResponse = any,
ServerInstance = any,
> {
use(
handler:
| RequestHandler<TRequest, TResponse>
@@ -69,7 +73,7 @@ export interface HttpServer<TRequest = any, TResponse = any> {
getRequestHostname?(request: TRequest): string;
getRequestMethod?(request: TRequest): string;
getRequestUrl?(request: TRequest): string;
getInstance(): any;
getInstance(): ServerInstance;
registerParserMiddleware(...args: any[]): any;
enableCors(options: CorsOptions | CorsOptionsDelegate<TRequest>): any;
getHttpServer(): any;

View File

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

View File

@@ -4,9 +4,9 @@ import { Type } from '../type.interface';
/**
* @publicApi
*/
export type InjectionToken =
export type InjectionToken<T = any> =
| string
| symbol
| Type<any>
| Abstract<any>
| Type<T>
| Abstract<T>
| Function;

View File

@@ -21,7 +21,8 @@ import { WebSocketAdapter } from './websockets/web-socket-adapter.interface';
*
* @publicApi
*/
export interface INestApplication extends INestApplicationContext {
export interface INestApplication<TServer = any>
extends INestApplicationContext {
/**
* A wrapper function around HTTP adapter method: `adapter.use()`.
* Example `app.use(cors())`
@@ -110,9 +111,9 @@ export interface INestApplication extends INestApplicationContext {
/**
* Returns the underlying native HTTP server.
*
* @returns {*}
* @returns {TServer}
*/
getHttpServer(): any;
getHttpServer(): TServer;
/**
* Returns the underlying HTTP adapter.

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/common",
"version": "9.3.12",
"version": "9.4.2",
"description": "Nest - modern, fast, powerful node.js web framework (@common)",
"author": "Kamil Mysliwiec",
"homepage": "https://nestjs.com",
@@ -10,7 +10,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/nestjs/nest"
"url": "https://github.com/nestjs/nest.git",
"directory": "packages/common"
},
"publishConfig": {
"access": "public"
@@ -18,20 +19,16 @@
"license": "MIT",
"dependencies": {
"iterare": "1.2.1",
"tslib": "2.5.0",
"uid": "2.0.1"
"tslib": "2.5.2",
"uid": "2.0.2"
},
"peerDependencies": {
"cache-manager": "<=5",
"class-transformer": "*",
"class-validator": "*",
"reflect-metadata": "^0.1.12",
"rxjs": "^7.1.0"
},
"peerDependenciesMeta": {
"cache-manager": {
"optional": true
},
"class-validator": {
"optional": true
},

View File

@@ -1,4 +1,5 @@
import { FileValidator } from './file-validator.interface';
import { IFile } from './interfaces';
export type FileTypeValidatorOptions = {
fileType: string | RegExp;
@@ -20,17 +21,14 @@ export class FileTypeValidator extends FileValidator<FileTypeValidatorOptions> {
return `Validation failed (expected type is ${this.validationOptions.fileType})`;
}
isValid(file: any): boolean {
isValid<TFile extends IFile = any>(file: TFile): boolean {
if (!this.validationOptions) {
return true;
}
if (!file.mimetype) {
return false;
}
return Boolean(
(file.mimetype as string).match(this.validationOptions.fileType),
return (
'mimetype' in file &&
!!file.mimetype.match(this.validationOptions.fileType)
);
}
}

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