Compare commits

...

527 Commits

Author SHA1 Message Date
Kamil Myśliwiec
d13b012a13 chore(@nestjs) publish v10.0.4 release 2023-06-29 14:59:18 +02:00
Kamil Myśliwiec
2038f287c7 Merge branch 'nordfjord-async-context-tracking-breaks-retries' 2023-06-29 10:27:36 +02:00
Kamil Myśliwiec
7e4b0eded8 chore: minor tweaks 2023-06-29 10:27:24 +02:00
Einar Norðfjörð
2ee7a04e04 fix: add a context track around the callback 2023-06-28 17:49:10 -04:00
Einar Norðfjörð
fd28cdc8b2 simpliy the tests 2023-06-28 17:25:22 -04:00
Einar Norðfjörð
6f448549f5 chore(intercept): reproduce retry bug 2023-06-28 17:23:08 -04:00
Kamil Mysliwiec
da640e3ffb Merge pull request #11917 from nestjs/dependabot/npm_and_yarn/typescript-5.1.5
chore(deps-dev): bump typescript from 5.1.3 to 5.1.5
2023-06-28 14:04:30 +02:00
Kamil Mysliwiec
bc872a1c7c Merge pull request #11916 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.8.17
chore(deps-dev): bump @grpc/grpc-js from 1.8.16 to 1.8.17
2023-06-28 14:04:23 +02:00
Kamil Mysliwiec
1a83ec16fb Merge pull request #11915 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-12.0.4
chore(deps-dev): bump @nestjs/apollo from 12.0.3 to 12.0.4
2023-06-28 14:04:17 +02:00
Kamil Mysliwiec
4518567aff Merge pull request #11914 from nestjs/dependabot/npm_and_yarn/types/gulp-4.0.12
chore(deps-dev): bump @types/gulp from 4.0.11 to 4.0.12
2023-06-28 14:04:10 +02:00
Kamil Mysliwiec
61a4dffa82 Merge pull request #11909 from nestjs/renovate/nestjs-cli-10.x
chore(deps): update dependency @nestjs/cli to v10.0.5
2023-06-28 14:03:58 +02:00
Kamil Mysliwiec
6d1a5e5099 Merge pull request #11900 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-17.6.6
chore(deps-dev): bump @commitlint/config-angular from 17.6.5 to 17.6.6
2023-06-28 14:03:38 +02:00
dependabot[bot]
f626c18269 chore(deps-dev): bump typescript from 5.1.3 to 5.1.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.3 to 5.1.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.1.3...v5.1.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-28 00:58:14 +00:00
dependabot[bot]
3bc249e3b7 chore(deps-dev): bump @grpc/grpc-js from 1.8.16 to 1.8.17
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.8.16 to 1.8.17.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.8.16...@grpc/grpc-js@1.8.17)

---
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-06-28 00:57:25 +00:00
dependabot[bot]
8eebf4d25f chore(deps-dev): bump @nestjs/apollo from 12.0.3 to 12.0.4
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 12.0.3 to 12.0.4.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.3...v12.0.4)

---
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-06-28 00:57:10 +00:00
dependabot[bot]
c5e9453de4 chore(deps-dev): bump @types/gulp from 4.0.11 to 4.0.12
Bumps [@types/gulp](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/gulp) from 4.0.11 to 4.0.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/gulp)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-28 00:56:49 +00:00
renovate[bot]
804734b566 chore(deps): update dependency @nestjs/cli to v10.0.5 2023-06-27 09:48:36 +00:00
Kamil Mysliwiec
8eecb3e902 Merge pull request #11906 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-5.60.1
chore(deps-dev): bump @typescript-eslint/parser from 5.60.0 to 5.60.1
2023-06-27 08:32:19 +02:00
Kamil Mysliwiec
c581fcf7fa Merge pull request #11905 from nestjs/dependabot/npm_and_yarn/tslib-2.6.0
chore(deps): bump tslib from 2.5.3 to 2.6.0
2023-06-27 08:31:51 +02:00
dependabot[bot]
be4439df71 chore(deps-dev): bump @commitlint/config-angular from 17.6.5 to 17.6.6
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 17.6.5 to 17.6.6.
- [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.6/@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-06-27 06:31:34 +00:00
dependabot[bot]
d14bc79edb chore(deps): bump tslib from 2.5.3 to 2.6.0
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.5.3 to 2.6.0.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/v2.5.3...2.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-27 06:31:22 +00:00
Kamil Mysliwiec
964421c90c Merge pull request #11904 from nestjs/dependabot/npm_and_yarn/types/node-20.3.2
chore(deps-dev): bump @types/node from 20.3.1 to 20.3.2
2023-06-27 08:31:10 +02:00
Kamil Mysliwiec
a25c414203 Merge pull request #11902 from nestjs/dependabot/npm_and_yarn/apollo/server-4.7.5
chore(deps-dev): bump @apollo/server from 4.7.4 to 4.7.5
2023-06-27 08:30:32 +02:00
Kamil Mysliwiec
0830651f3a Merge pull request #11872 from nestjs/renovate/nestjs-mercurius-12.x
fix(deps): update dependency @nestjs/mercurius to v12.0.3
2023-06-27 08:30:19 +02:00
dependabot[bot]
d414b62fbc chore(deps-dev): bump @typescript-eslint/parser from 5.60.0 to 5.60.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.60.0 to 5.60.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.60.1/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-27 00:59:45 +00:00
dependabot[bot]
e3df7dad68 chore(deps-dev): bump @types/node from 20.3.1 to 20.3.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.3.1 to 20.3.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-27 00:58:39 +00:00
dependabot[bot]
b4636d4bd1 chore(deps-dev): bump @apollo/server from 4.7.4 to 4.7.5
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.7.4 to 4.7.5.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.7.5/packages/server)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-27 00:57:23 +00:00
renovate[bot]
8535bc7c4f fix(deps): update dependency @nestjs/mercurius to v12.0.3 2023-06-26 10:05:04 +00:00
Kamil Myśliwiec
d16f2c3a3a Merge branch 'AbdlrahmanSaberAbdo-optional-validation-for-parseEnumPipe' 2023-06-26 11:12:12 +02:00
Kamil Myśliwiec
be46af6290 style: minor tweaks 2023-06-26 11:11:58 +02:00
Kamil Myśliwiec
39b367ad5a Merge branch 'optional-validation-for-parseEnumPipe' of https://github.com/AbdlrahmanSaberAbdo/nest into AbdlrahmanSaberAbdo-optional-validation-for-parseEnumPipe 2023-06-26 11:10:28 +02:00
Kamil Mysliwiec
07bad64bb0 Merge pull request #11898 from Tony133/chore/mark-api-public-platform-express-multer
chore(): mark api public in multer module inside platform-express
2023-06-26 09:19:11 +02:00
Kamil Mysliwiec
5aa8f88b6a Merge pull request #11899 from nestjs/dependabot/npm_and_yarn/mysql2-3.4.1
chore(deps-dev): bump mysql2 from 3.4.0 to 3.4.1
2023-06-26 09:19:01 +02:00
Kamil Mysliwiec
d999b2f344 Merge pull request #11901 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.6.6
chore(deps-dev): bump @commitlint/cli from 17.6.5 to 17.6.6
2023-06-26 09:18:46 +02:00
dependabot[bot]
5e9b4281f3 chore(deps-dev): bump @commitlint/cli from 17.6.5 to 17.6.6
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.6.5 to 17.6.6.
- [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.6/@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-06-26 00:59:10 +00:00
dependabot[bot]
e9ef007f90 chore(deps-dev): bump mysql2 from 3.4.0 to 3.4.1
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.4.0 to 3.4.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.4.0...v3.4.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-06-26 00:57:23 +00:00
Tony133
bb7d5802e7 chore(): mark api public 2023-06-25 15:55:20 +02:00
AbdlrahmanSaberAbdo
8cdf4bb3a6 Merge branch 'master' into optional-validation-for-parseEnumPipe 2023-06-25 12:30:19 +03:00
AbdlrahmanSaberAbdo
37bae99af0 test: Add test cases for each pipe 2023-06-25 12:17:34 +03:00
AbdlrahmanSaberAbdo
adc3a9c212 feat: Add optional property to ParseUUIDPipe 2023-06-25 12:16:49 +03:00
AbdlrahmanSaberAbdo
3dc80a4181 feat: Add optional property to parse float/int/bool 2023-06-25 11:57:07 +03:00
AbdlrahmanSaberAbdo
79bf40e539 test: Adjust the test and add one more test cases 2023-06-23 18:38:24 +03:00
AbdlrahmanSaberAbdo
0b8f437e50 refactor: Skip when the value is equal undefined/null 2023-06-23 18:37:42 +03:00
AbdlrahmanSaberAbdo
9359160084 refactor: cleanup the code 2023-06-23 18:09:53 +03:00
Kamil Mysliwiec
a460bc6d36 Merge pull request #11888 from nestjs/renovate/nestjs-cache-manager-2.x
fix(deps): update dependency @nestjs/cache-manager to v2.0.1
2023-06-23 12:17:27 +02:00
renovate[bot]
61b3dc9134 fix(deps): update dependency @nestjs/cache-manager to v2.0.1 2023-06-23 09:12:20 +00:00
Kamil Mysliwiec
92a2d52d5e Merge pull request #11886 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.88.0
2023-06-23 11:11:07 +02:00
Kamil Mysliwiec
c98fa670cf Merge pull request #11887 from nestjs/renovate/socket.io-packages
fix(deps): update dependency socket.io to v4.7.0
2023-06-23 11:10:48 +02:00
AbdlrahmanSaberAbdo
bf9ad9c07b Merge branch 'master' into optional-validation-for-parseEnumPipe 2023-06-23 12:02:40 +03:00
renovate[bot]
8c36bdbe0f chore(deps): update dependency webpack to v5.88.0 2023-06-23 08:16:01 +00:00
Kamil Myśliwiec
dbafe8a115 sample(31-federation): regenerate package locks 2023-06-23 10:14:26 +02:00
AbdlrahmanSaberAbdo
10d5a86b6c test: update corresponding tests 2023-06-23 10:52:19 +03:00
AbdlrahmanSaberAbdo
568190a6ec refactor: Modify isOptional flag and remove conditional from constructor 2023-06-23 10:51:55 +03:00
Kamil Myśliwiec
4f05c36690 sample(31-federation): regenerate package locks 2023-06-23 09:35:01 +02:00
AbdlrahmanSaberAbdo
603b9fcc7b Merge branch 'optional-validation-for-parseEnumPipe' of github.com-AbdlrahmanSaberAbdo:AbdlrahmanSaberAbdo/nest into optional-validation-for-parseEnumPipe 2023-06-23 10:21:46 +03:00
Kamil Myśliwiec
6c5fba5e88 sample(31-federation): regenerate package locks 2023-06-23 09:13:07 +02:00
renovate[bot]
dc4eba78f8 fix(deps): update dependency socket.io to v4.7.0 2023-06-23 06:59:07 +00:00
Kamil Myśliwiec
5a860081b6 chore: refresh package-lock 2023-06-23 08:58:31 +02:00
Kamil Mysliwiec
57db16b625 Merge pull request #11885 from nestjs/dependabot/npm_and_yarn/graphql-16.7.1
chore(deps-dev): bump graphql from 16.7.0 to 16.7.1
2023-06-23 08:57:34 +02:00
Kamil Mysliwiec
25e98fb5aa Merge pull request #11873 from nestjs/renovate/nestjs-swagger-7.x
fix(deps): update dependency @nestjs/swagger to v7.0.4
2023-06-23 08:57:15 +02:00
Kamil Mysliwiec
bcaa6c8c86 Merge pull request #11874 from nestjs/renovate/mongoose-7.x
fix(deps): update dependency mongoose to v7.3.1
2023-06-23 08:57:08 +02:00
renovate[bot]
7227286d49 fix(deps): update dependency mongoose to v7.3.1 2023-06-23 06:54:42 +00:00
renovate[bot]
3fe40aff38 fix(deps): update dependency @nestjs/swagger to v7.0.4 2023-06-23 06:54:17 +00:00
dependabot[bot]
1a9bfe3bdb chore(deps-dev): bump graphql from 16.7.0 to 16.7.1
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.7.0 to 16.7.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.7.0...v16.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-23 06:53:29 +00:00
Kamil Mysliwiec
f2b7409ce5 Merge pull request #11882 from nestjs/dependabot/npm_and_yarn/socket.io-4.7.0
chore(deps): bump socket.io from 4.6.2 to 4.7.0
2023-06-23 08:52:53 +02:00
Kamil Mysliwiec
a094e3f3ec Merge pull request #11883 from nestjs/dependabot/npm_and_yarn/socket.io-client-4.7.0
chore(deps-dev): bump socket.io-client from 4.6.2 to 4.7.0
2023-06-23 08:52:47 +02:00
Kamil Mysliwiec
856175dc67 Merge pull request #11884 from nestjs/dependabot/npm_and_yarn/nats-2.15.1
chore(deps-dev): bump nats from 2.15.0 to 2.15.1
2023-06-23 08:52:40 +02:00
Kamil Mysliwiec
1a2d06111d Merge pull request #11875 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v10.0.3
2023-06-23 08:52:28 +02:00
renovate[bot]
9ef230fd60 fix(deps): update nest monorepo to v10.0.3 2023-06-23 06:49:51 +00:00
Kamil Mysliwiec
0859ac0c82 Merge pull request #11880 from Tony133/sample/update-graphql-federation
sample(31-graphql-federation-code-first): update package.json
2023-06-23 08:43:21 +02:00
dependabot[bot]
eb668167d2 chore(deps-dev): bump nats from 2.15.0 to 2.15.1
Bumps [nats](https://github.com/nats-io/nats.js) from 2.15.0 to 2.15.1.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.15.0...v2.15.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-23 00:58:08 +00:00
dependabot[bot]
a0baaaddb5 chore(deps-dev): bump socket.io-client from 4.6.2 to 4.7.0
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.6.2 to 4.7.0.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.6.2...4.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-23 00:57:42 +00:00
dependabot[bot]
ab5c83fa8c chore(deps): bump socket.io from 4.6.2 to 4.7.0
Bumps [socket.io](https://github.com/socketio/socket.io) from 4.6.2 to 4.7.0.
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/4.6.2...4.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-23 00:57:17 +00:00
Antonio Tripodi
c7facbf4ef Merge branch 'master' into sample/update-graphql-federation 2023-06-23 00:12:08 +02:00
Tony133
0d9304732f fix(): update dependencies 2023-06-22 23:48:16 +02:00
Tony133
37f18510eb fix(): downgraded @apollo/subgraph and @apollo/gateway to version 2.2.3 2023-06-22 23:06:13 +02:00
AbdlrahmanSaberAbdo
ba749b5937 Merge branch 'master' into optional-validation-for-parseEnumPipe 2023-06-22 22:40:48 +03:00
AbdlrahmanSaberAbdo
6beeedd0f5 test: Add two more test cases for ParseEnumPipe 2023-06-22 22:32:56 +03:00
AbdlrahmanSaberAbdo
7ca89dbc7b feat: add isOptional to ParseEnumPipe 2023-06-22 22:12:41 +03:00
Kamil Mysliwiec
5a79cb3958 Merge pull request #11857 from nestjs/renovate/grpc-grpc-js-1.x
fix(deps): update dependency @grpc/grpc-js to v1.8.16
2023-06-22 12:46:27 +02:00
Kamil Mysliwiec
65342d24fb Merge pull request #11861 from nestjs/renovate/nestjs-graphql-12.x
fix(deps): update dependency @nestjs/graphql to v12.0.3
2023-06-22 12:46:15 +02:00
Kamil Mysliwiec
81a06e117f Merge pull request #11814 from nestjs/renovate/nestjs-apollo-12.x
fix(deps): update dependency @nestjs/apollo to v12.0.3
2023-06-22 12:46:02 +02:00
renovate[bot]
c7a32a201a fix(deps): update dependency @nestjs/graphql to v12.0.3 2023-06-22 09:34:57 +00:00
renovate[bot]
26eb7b8225 fix(deps): update dependency @nestjs/apollo to v12.0.3 2023-06-22 09:32:58 +00:00
renovate[bot]
205f4191f3 fix(deps): update dependency @grpc/grpc-js to v1.8.16 2023-06-22 09:31:25 +00:00
Kamil Mysliwiec
4892623c66 Merge pull request #11760 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v5.60.0
2023-06-22 09:32:53 +02:00
Kamil Mysliwiec
aae3ab0c2f Merge pull request #11871 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-12.0.3
chore(deps-dev): bump @nestjs/apollo from 12.0.1 to 12.0.3
2023-06-22 09:32:40 +02:00
dependabot[bot]
e8cfec0e74 chore(deps-dev): bump @nestjs/apollo from 12.0.1 to 12.0.3
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 12.0.1 to 12.0.3.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.1...v12.0.3)

---
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-06-22 07:32:23 +00:00
Kamil Mysliwiec
a223190433 Merge pull request #11867 from nestjs/dependabot/npm_and_yarn/graphql-16.7.0
chore(deps-dev): bump graphql from 16.6.0 to 16.7.0
2023-06-22 09:32:05 +02:00
Kamil Mysliwiec
0a4fd940fe Merge pull request #11869 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-12.0.2
chore(deps-dev): bump @nestjs/graphql from 12.0.1 to 12.0.2
2023-06-22 09:31:39 +02:00
Kamil Mysliwiec
e0d07714c2 Merge pull request #11870 from nestjs/dependabot/npm_and_yarn/mongoose-7.3.1
chore(deps-dev): bump mongoose from 7.3.0 to 7.3.1
2023-06-22 09:31:30 +02:00
dependabot[bot]
d1d6f502a0 chore(deps-dev): bump mongoose from 7.3.0 to 7.3.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.3.0 to 7.3.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.3.0...7.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-22 00:59:34 +00:00
dependabot[bot]
9ace4af757 chore(deps-dev): bump @nestjs/graphql from 12.0.1 to 12.0.2
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 12.0.1 to 12.0.2.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.1...v12.0.2)

---
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-06-22 00:58:49 +00:00
dependabot[bot]
2a40ba9ed4 chore(deps-dev): bump graphql from 16.6.0 to 16.7.0
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.7.0.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-22 00:57:03 +00:00
renovate[bot]
ebe244c6a6 chore(deps): update typescript-eslint monorepo to v5.60.0 2023-06-21 13:49:09 +00:00
Kamil Mysliwiec
5458f5b91e Merge pull request #11858 from nestjs/renovate/typeorm-0.x
fix(deps): update dependency typeorm to v0.3.17
2023-06-21 15:38:23 +02:00
Kamil Mysliwiec
33c75fdef7 Merge pull request #11859 from nestjs/renovate/nestjs-swagger-7.x
fix(deps): update dependency @nestjs/swagger to v7.0.3
2023-06-21 15:38:16 +02:00
Kamil Mysliwiec
567a25e3c1 Merge pull request #11855 from nestjs/dependabot/npm_and_yarn/fastify/multipart-7.7.0
chore(deps-dev): bump @fastify/multipart from 7.6.1 to 7.7.0
2023-06-21 11:23:10 +02:00
Kamil Myśliwiec
d97abd7245 chore(@nestjs) publish v10.0.3 release 2023-06-21 11:22:48 +02:00
renovate[bot]
fab514a21f fix(deps): update dependency typeorm to v0.3.17 2023-06-21 09:18:06 +00:00
renovate[bot]
fe00f2ad65 fix(deps): update dependency @nestjs/swagger to v7.0.3 2023-06-21 09:17:32 +00:00
Kamil Myśliwiec
471d38415f chore: resolve conflicts 2023-06-21 11:15:51 +02:00
Kamil Myśliwiec
e1c690e5ae fix(core): middleware builder should match routes by method 2023-06-21 11:15:24 +02:00
dependabot[bot]
bb55eb55bc chore(deps-dev): bump @fastify/multipart from 7.6.1 to 7.7.0
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 7.6.1 to 7.7.0.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v7.6.1...v7.7.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-06-21 07:34:58 +00:00
Kamil Mysliwiec
74943d9d00 Merge pull request #11841 from nestjs/renovate/mysql2-3.x
fix(deps): update dependency mysql2 to v3.4.0
2023-06-21 09:34:25 +02:00
Kamil Mysliwiec
40fc1b89dd Merge pull request #11846 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-5.60.0
chore(deps-dev): bump @typescript-eslint/parser from 5.59.11 to 5.60.0
2023-06-21 09:34:19 +02:00
Kamil Mysliwiec
b9cb6c8baf Merge pull request #11852 from nestjs/dependabot/npm_and_yarn/typeorm-0.3.17
chore(deps-dev): bump typeorm from 0.3.16 to 0.3.17
2023-06-21 09:34:12 +02:00
Kamil Mysliwiec
ffa6382c6c Merge pull request #11853 from nestjs/dependabot/npm_and_yarn/sinon-15.2.0
chore(deps-dev): bump sinon from 15.1.2 to 15.2.0
2023-06-21 09:34:03 +02:00
Kamil Mysliwiec
7e6620693b Merge pull request #11854 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.8.16
chore(deps-dev): bump @grpc/grpc-js from 1.8.15 to 1.8.16
2023-06-21 09:33:39 +02:00
dependabot[bot]
6a75c64496 chore(deps-dev): bump @grpc/grpc-js from 1.8.15 to 1.8.16
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.8.15 to 1.8.16.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.8.15...@grpc/grpc-js@1.8.16)

---
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-06-21 00:58:33 +00:00
dependabot[bot]
cb91375238 chore(deps-dev): bump sinon from 15.1.2 to 15.2.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 15.1.2 to 15.2.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.1.2...v15.2.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-06-21 00:57:55 +00:00
dependabot[bot]
48ee550ffd chore(deps-dev): bump typeorm from 0.3.16 to 0.3.17
Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.3.16 to 0.3.17.
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/0.3.17/CHANGELOG.md)
- [Commits](https://github.com/typeorm/typeorm/compare/0.3.16...0.3.17)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-21 00:56:57 +00:00
renovate[bot]
a4984c7bf8 fix(deps): update dependency mysql2 to v3.4.0 2023-06-20 07:15:12 +00:00
dependabot[bot]
98758a43bc chore(deps-dev): bump @typescript-eslint/parser from 5.59.11 to 5.60.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.59.11 to 5.60.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.60.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-20 07:07:39 +00:00
Kamil Mysliwiec
71bb70ce07 Merge pull request #11847 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.60.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.59.11 to 5.60.0
2023-06-20 09:05:16 +02:00
Kamil Mysliwiec
c611f1f0ec Merge pull request #11845 from nestjs/dependabot/npm_and_yarn/mysql2-3.4.0
chore(deps-dev): bump mysql2 from 3.3.5 to 3.4.0
2023-06-20 09:05:09 +02:00
Kamil Mysliwiec
fccc7f8d48 Merge pull request #11843 from nestjs/renovate/nestjs-swagger-7.x
fix(deps): update dependency @nestjs/swagger to v7.0.2
2023-06-20 09:04:50 +02:00
dependabot[bot]
b03e52cadc chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.59.11 to 5.60.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.60.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-20 00:59:39 +00:00
dependabot[bot]
f74c732e0a chore(deps-dev): bump mysql2 from 3.3.5 to 3.4.0
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.3.5 to 3.4.0.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.3.5...v3.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-20 00:57:28 +00:00
renovate[bot]
15cfe2a0f1 fix(deps): update dependency @nestjs/swagger to v7.0.2 2023-06-19 16:33:39 +00:00
Kamil Mysliwiec
52fe590d73 Merge pull request #11840 from nestjs/renovate/nestjs-cli-10.x
chore(deps): update dependency @nestjs/cli to v10.0.3
2023-06-19 13:28:23 +02:00
renovate[bot]
5928ed705b chore(deps): update dependency @nestjs/cli to v10.0.3 2023-06-19 09:51:49 +00:00
Kamil Mysliwiec
8fbd7cb9bd Merge pull request #11838 from nestjs/renovate/dotenv-16.x
fix(deps): update dependency dotenv to v16.3.1
2023-06-19 11:45:18 +02:00
renovate[bot]
8fa1cded0d fix(deps): update dependency dotenv to v16.3.1 2023-06-19 09:15:10 +00:00
Kamil Mysliwiec
806d9636dc Merge pull request #11839 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v10.0.2
2023-06-19 11:13:19 +02:00
renovate[bot]
ec6d70fffc fix(deps): update nest monorepo to v10.0.2 2023-06-19 09:11:11 +00:00
Kamil Myśliwiec
78285da6ce chore(@nestjs) publish v10.0.2 release 2023-06-19 10:48:42 +02:00
Kamil Myśliwiec
7c0236afa7 test: regenerate serialized graph 2023-06-19 10:37:01 +02:00
Kamil Myśliwiec
8a86b5eef2 Merge branch 'micalevisk-fix/issue-11833' 2023-06-19 09:59:44 +02:00
Kamil Myśliwiec
6fc604b753 style(core): minor style change 2023-06-19 09:58:46 +02:00
Kamil Myśliwiec
a562231122 Merge branch 'fix/issue-11833' of https://github.com/micalevisk/nest into micalevisk-fix/issue-11833 2023-06-19 09:52:01 +02:00
Kamil Myśliwiec
a350468780 test: update mongoose test options 2023-06-19 09:26:58 +02:00
Kamil Mysliwiec
0a7fcb17de Merge pull request #11834 from nestjs/dependabot/npm_and_yarn/nats-2.15.0
chore(deps-dev): bump nats from 2.14.0 to 2.15.0
2023-06-19 08:39:41 +02:00
Kamil Mysliwiec
816f667163 Merge pull request #11805 from nestjs/dependabot/npm_and_yarn/nestjs/mongoose-10.0.0
chore(deps-dev): bump @nestjs/mongoose from 9.2.2 to 10.0.0
2023-06-19 08:39:35 +02:00
dependabot[bot]
e7352673cb chore(deps-dev): bump @nestjs/mongoose from 9.2.2 to 10.0.0
Bumps [@nestjs/mongoose](https://github.com/nestjs/mongoose) from 9.2.2 to 10.0.0.
- [Release notes](https://github.com/nestjs/mongoose/releases)
- [Changelog](https://github.com/nestjs/mongoose/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/mongoose/compare/9.2.2...10.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 06:39:26 +00:00
Kamil Mysliwiec
5ad786905a Merge pull request #11827 from nestjs/renovate/nestjs-schedule-3.x
fix(deps): update dependency @nestjs/schedule to v3.0.1
2023-06-19 08:39:09 +02:00
Kamil Mysliwiec
86cba82fed Merge pull request #11828 from nestjs/renovate/nestjs-swagger-7.x
fix(deps): update dependency @nestjs/swagger to v7.0.1
2023-06-19 08:39:01 +02:00
Kamil Mysliwiec
a7b404ac99 Merge pull request #11829 from nestjs/renovate/sequelize-6.x
fix(deps): update dependency sequelize to v6.32.1
2023-06-19 08:38:55 +02:00
Kamil Mysliwiec
8eb3cfab86 Merge pull request #11835 from nestjs/dependabot/npm_and_yarn/eslint-8.43.0
chore(deps-dev): bump eslint from 8.42.0 to 8.43.0
2023-06-19 08:38:48 +02:00
Kamil Mysliwiec
907b859164 Merge pull request #11836 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-12.0.1
chore(deps-dev): bump @nestjs/apollo from 11.0.6 to 12.0.1
2023-06-19 08:38:38 +02:00
renovate[bot]
18ed170b69 fix(deps): update dependency @nestjs/swagger to v7.0.1 2023-06-19 06:38:24 +00:00
renovate[bot]
9e27df90ed fix(deps): update dependency @nestjs/schedule to v3.0.1 2023-06-19 06:38:03 +00:00
dependabot[bot]
ebc538eb34 chore(deps-dev): bump @nestjs/apollo from 11.0.6 to 12.0.1
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 11.0.6 to 12.0.1.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 06:37:50 +00:00
dependabot[bot]
7d38783b80 chore(deps-dev): bump eslint from 8.42.0 to 8.43.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.42.0 to 8.43.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.42.0...v8.43.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 06:37:33 +00:00
Kamil Mysliwiec
5dae905940 Merge pull request #11769 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v10.0.1
2023-06-19 08:36:28 +02:00
Micael Levi L. Cavalcante
6ec99f8049 refactor(core): minor semantics improvement for isOverlapped
Replace `regexp#test` with `string#match` for readability sake
2023-06-18 22:51:49 -04:00
Micael Levi L. Cavalcante
efe788a6ae fix(core): when selecting routes to apply a nestjs middlware 2023-06-18 22:49:00 -04:00
dependabot[bot]
22aeba63f0 chore(deps-dev): bump nats from 2.14.0 to 2.15.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.14.0 to 2.15.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.14.0...v2.15.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 00:58:07 +00:00
renovate[bot]
1f788b062b fix(deps): update nest monorepo to v10.0.1 2023-06-17 13:42:50 +00:00
renovate[bot]
2d83447e3b fix(deps): update dependency sequelize to v6.32.1 2023-06-17 13:37:29 +00:00
Kamil Myśliwiec
da27730cd4 chore(@nestjs) publish v10.0.1 release 2023-06-17 11:46:02 +02:00
Kamil Mysliwiec
f676276979 Merge pull request #11826 from regevbr/subscribe
fix(microservices): migrate from deprecated kafka subscribe usage
2023-06-17 11:39:08 +02:00
regevbr
59379a4d44 fix(microservices): migrate from deprecated kafka subscribe usage 2023-06-17 12:30:12 +03:00
Kamil Myśliwiec
73f85c86e7 test: update integration tests 2023-06-17 11:28:49 +02:00
Kamil Myśliwiec
cb3d827350 chore: regenerate package lock 2023-06-17 11:18:00 +02:00
Kamil Mysliwiec
0aa2692144 Merge pull request #11808 from nestjs/dependabot/npm_and_yarn/nestjs/typeorm-10.0.0
chore(deps-dev): bump @nestjs/typeorm from 9.0.1 to 10.0.0
2023-06-17 11:15:19 +02:00
Kamil Mysliwiec
96b4ac5353 Merge pull request #11812 from nestjs/renovate/engine.io-client-6.x
chore(deps): update dependency engine.io-client to v6.5.0
2023-06-17 11:15:14 +02:00
Kamil Mysliwiec
16373b3926 Merge pull request #11817 from nestjs/renovate/nestjs-graphql-12.x
chore(deps): update dependency @nestjs/graphql to v12
2023-06-17 11:15:00 +02:00
Kamil Mysliwiec
a9b5f32c65 Merge pull request #11823 from nestjs/renovate/npm-@apollo/server-vulnerability
chore(deps): update dependency @apollo/server to v4.7.4 [security]
2023-06-17 11:14:47 +02:00
Kamil Mysliwiec
76bbeeb31a Merge pull request #11824 from nestjs/renovate/nestjs-typeorm-10.x
chore(deps): update dependency @nestjs/typeorm to v10
2023-06-17 11:14:38 +02:00
renovate[bot]
af2ade5c01 chore(deps): update dependency @nestjs/graphql to v12 2023-06-17 09:13:56 +00:00
renovate[bot]
9aa6853c7c chore(deps): update dependency engine.io-client to v6.5.0 2023-06-17 09:12:53 +00:00
Kamil Mysliwiec
3bbe0858b2 Merge pull request #11813 from nestjs/renovate/dotenv-16.x
fix(deps): update dependency dotenv to v16.3.0
2023-06-17 11:12:40 +02:00
renovate[bot]
b8464b3e8b chore(deps): update dependency @apollo/server to v4.7.4 [security] 2023-06-17 09:12:24 +00:00
Kamil Myśliwiec
f831473dbb test: remove .only calls 2023-06-17 11:12:19 +02:00
Kamil Mysliwiec
7db58ec2aa Merge pull request #11822 from regevbr/file
fix(common): type errors in file validator implementations
2023-06-17 11:11:57 +02:00
Kamil Mysliwiec
ceefebfb4e Merge pull request #11816 from regevbr/kafka
fix: kafka subscribe bad type - v10 regression
2023-06-17 11:10:47 +02:00
renovate[bot]
0e6c73baa9 chore(deps): update dependency @nestjs/typeorm to v10 2023-06-16 21:22:09 +00:00
regevbr
bfac684b69 fix(common): type errors in file validator implementations 2023-06-16 23:03:00 +03:00
regevbr
703e791ed3 fix: kafka subscribe bad type 2023-06-16 21:59:20 +03:00
renovate[bot]
42fbdcef53 fix(deps): update dependency dotenv to v16.3.0 2023-06-16 17:20:37 +00:00
dependabot[bot]
5f0e128a5c chore(deps-dev): bump @nestjs/typeorm from 9.0.1 to 10.0.0
Bumps [@nestjs/typeorm](https://github.com/nestjs/typeorm) from 9.0.1 to 10.0.0.
- [Release notes](https://github.com/nestjs/typeorm/releases)
- [Changelog](https://github.com/nestjs/typeorm/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/typeorm/compare/9.0.1...10.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-16 12:48:00 +00:00
Kamil Myśliwiec
8399c68b20 sample: upgrade deps 2023-06-16 14:45:08 +02:00
Kamil Mysliwiec
ec1a08d300 Merge pull request #11797 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.87.0
2023-06-15 13:03:51 +02:00
renovate[bot]
d9da189144 chore(deps): update dependency webpack to v5.87.0 2023-06-15 10:14:33 +00:00
Kamil Mysliwiec
1ca18f517e Merge pull request #11796 from nestjs/renovate/cache-manager-5.x-lockfile
fix(deps): update dependency cache-manager to v5.2.3
2023-06-15 12:10:52 +02:00
Kamil Myśliwiec
d0850d2062 chore(@nestjs) publish v10.0.0 release 2023-06-15 12:07:14 +02:00
Kamil Myśliwiec
a226872914 chore: update peer deps, package.json 2023-06-15 12:00:46 +02:00
renovate[bot]
77faa57fe6 fix(deps): update dependency cache-manager to v5.2.3 2023-06-15 09:53:05 +00:00
Kamil Mysliwiec
ba16a8bb43 Merge pull request #11793 from nestjs/dependabot/npm_and_yarn/mongoose-7.3.0
chore(deps-dev): bump mongoose from 7.2.4 to 7.3.0
2023-06-15 11:00:15 +02:00
Kamil Mysliwiec
2b58a29ac9 Merge pull request #11792 from nestjs/dependabot/npm_and_yarn/cache-manager-5.2.3
chore(deps-dev): bump cache-manager from 5.2.2 to 5.2.3
2023-06-15 11:00:09 +02:00
Kamil Mysliwiec
430787fd1d Merge pull request #11794 from nestjs/dependabot/npm_and_yarn/ts-morph-19.0.0
chore(deps-dev): bump ts-morph from 18.0.0 to 19.0.0
2023-06-15 11:00:01 +02:00
Kamil Mysliwiec
47aee9404a Merge pull request #11790 from nestjs/renovate/cimg-node-19.x
chore(deps): update node.js to v19.9
2023-06-15 10:59:51 +02:00
dependabot[bot]
4f9618fd79 chore(deps-dev): bump ts-morph from 18.0.0 to 19.0.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 18.0.0 to 19.0.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/18.0.0...19.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-06-15 00:57:56 +00:00
dependabot[bot]
ffc9992b18 chore(deps-dev): bump mongoose from 7.2.4 to 7.3.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.2.4 to 7.3.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.2.4...7.3.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-06-15 00:57:34 +00:00
dependabot[bot]
a27062bab0 chore(deps-dev): bump cache-manager from 5.2.2 to 5.2.3
Bumps [cache-manager](https://github.com/node-cache-manager/node-cache-manager) from 5.2.2 to 5.2.3.
- [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.2...5.2.3)

---
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-06-15 00:56:51 +00:00
renovate[bot]
b3c6aae6b1 chore(deps): update node.js to v19.9 2023-06-14 13:50:31 +00:00
Kamil Mysliwiec
60fa1fc03e Merge pull request #11787 from nestjs/renovate/cimg-node-18.x
chore(deps): update node.js to v18.16
2023-06-14 15:46:40 +02:00
Kamil Mysliwiec
f91507a5b7 Merge pull request #11788 from nestjs/renovate/major-jest-monorepo
chore(deps): update jest monorepo to v29 (major)
2023-06-14 15:46:30 +02:00
renovate[bot]
483abb5e03 chore(deps): update jest monorepo to v29 2023-06-14 12:47:05 +00:00
renovate[bot]
118052e4cc chore(deps): update node.js to v18.16 2023-06-14 12:46:09 +00:00
Kamil Mysliwiec
b601de078c Merge pull request #11786 from nestjs/renovate/cimg-node-16.x
chore(deps): update node.js to v16.20
2023-06-14 12:10:28 +02:00
Kamil Mysliwiec
c01ea3f808 Merge pull request #11785 from nestjs/fix/middleware-for-versioned-ctrls
fix(core): apply middleware to versioned controllers (ctrl-level)
2023-06-14 12:09:47 +02:00
renovate[bot]
4732f569d3 chore(deps): update node.js to v16.20 2023-06-14 09:40:42 +00:00
Kamil Mysliwiec
74251a8936 Merge pull request #11784 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v28.1.3
2023-06-14 11:37:05 +02:00
Kamil Myśliwiec
7aa710724d fix(core): apply middleware to versioned controllers (ctrl-level) 2023-06-14 11:34:56 +02:00
renovate[bot]
1e8feb0c6a chore(deps): update dependency jest to v28.1.3 2023-06-14 09:08:08 +00:00
Kamil Myśliwiec
d6507dce5d sample(14-mongoose): update cats service test 2023-06-14 10:01:24 +02:00
Kamil Myśliwiec
ff84f63030 sample(06-mongoose): update cats service test 2023-06-14 09:46:46 +02:00
Kamil Mysliwiec
513cc14f05 Merge pull request #11783 from nestjs/renovate/major-graphql-tools-monorepo
fix(deps): update graphql-tools monorepo (major)
2023-06-14 09:41:00 +02:00
Kamil Mysliwiec
f9f2331340 Merge pull request #11782 from nestjs/renovate/ts-morph-18.x
fix(deps): update dependency ts-morph to v18
2023-06-14 09:40:48 +02:00
Kamil Mysliwiec
93c79a09fa Merge pull request #11757 from nestjs/renovate/node-18.x
chore(deps): update dependency @types/node to v18.16.18
2023-06-14 09:40:39 +02:00
renovate[bot]
a722c15f09 fix(deps): update graphql-tools monorepo 2023-06-14 07:38:33 +00:00
renovate[bot]
b25362654b fix(deps): update dependency ts-morph to v18 2023-06-14 07:37:20 +00:00
renovate[bot]
2e5625c54f chore(deps): update dependency @types/node to v18.16.18 2023-06-14 07:35:13 +00:00
Kamil Mysliwiec
5fa5e11c45 Merge pull request #11780 from nestjs/renovate/mongoose-7.x
fix(deps): update dependency mongoose to v7
2023-06-14 09:28:45 +02:00
renovate[bot]
9d87b5dc7b fix(deps): update dependency mongoose to v7 2023-06-14 07:10:01 +00:00
Kamil Mysliwiec
251bc1c694 Merge pull request #11775 from nestjs/renovate/nestjs-mercurius-11.x
fix(deps): update dependency @nestjs/mercurius to v11
2023-06-14 09:02:30 +02:00
Kamil Mysliwiec
b36738b13f Merge pull request #11761 from nestjs/renovate/rxjs-7.x
fix(deps): update dependency rxjs to v7.8.1
2023-06-14 09:02:18 +02:00
renovate[bot]
c4fd37044a fix(deps): update dependency rxjs to v7.8.1 2023-06-14 07:00:10 +00:00
Kamil Mysliwiec
b43740da22 Merge pull request #11779 from nestjs/renovate/mongodb-5.x
fix(deps): update dependency mongodb to v5
2023-06-14 08:49:42 +02:00
Kamil Mysliwiec
1c0e67419b Merge pull request #11777 from nestjs/renovate/cache-manager-5.x
fix(deps): update dependency cache-manager to v5
2023-06-14 08:49:36 +02:00
Kamil Mysliwiec
e4a338b992 Merge pull request #11776 from nestjs/renovate/socket.io-redis-adapter-8.x
fix(deps): update dependency @socket.io/redis-adapter to v8
2023-06-14 08:49:14 +02:00
Kamil Mysliwiec
9aeacbe2ab Merge pull request #11772 from nestjs/renovate/webpack-cli-5.x
chore(deps): update dependency webpack-cli to v5
2023-06-14 08:49:08 +02:00
Kamil Mysliwiec
6dac3357bd Merge pull request #11768 from nestjs/dependabot/npm_and_yarn/fastify/multipart-7.6.1
chore(deps-dev): bump @fastify/multipart from 7.6.0 to 7.6.1
2023-06-14 08:49:01 +02:00
Kamil Mysliwiec
428ed39512 Merge pull request #11764 from nestjs/renovate/prisma-monorepo
fix(deps): update prisma monorepo to v4.15.0
2023-06-14 08:48:54 +02:00
Kamil Mysliwiec
39f1aad3a9 Merge pull request #11778 from nestjs/renovate/mercurius-13.x
fix(deps): update dependency mercurius to v13
2023-06-14 08:48:47 +02:00
Kamil Mysliwiec
ab9e97d84e Merge branch 'master' into renovate/nestjs-mercurius-11.x 2023-06-14 08:48:38 +02:00
Kamil Mysliwiec
d8df5e9fd1 Merge pull request #11774 from nestjs/renovate/nestjs-graphql-11.x
fix(deps): update dependency @nestjs/graphql to v11.0.6
2023-06-14 08:48:05 +02:00
Kamil Mysliwiec
da3263e70d Merge pull request #11773 from nestjs/renovate/major-jest-monorepo
chore(deps): update jest monorepo to v29 (major)
2023-06-14 08:47:47 +02:00
Kamil Mysliwiec
d8a0e80429 Merge pull request #11771 from nestjs/renovate/typescript-5.x
chore(deps): update dependency typescript to v5
2023-06-14 08:47:20 +02:00
renovate[bot]
a4db7b3e35 fix(deps): update dependency mongodb to v5 2023-06-14 01:26:18 +00:00
renovate[bot]
16ffcdb483 fix(deps): update dependency mercurius to v13 2023-06-14 01:25:57 +00:00
renovate[bot]
b3ea892dce fix(deps): update dependency cache-manager to v5 2023-06-14 01:25:39 +00:00
renovate[bot]
dfb0e7ef7d fix(deps): update dependency @socket.io/redis-adapter to v8 2023-06-14 01:25:20 +00:00
renovate[bot]
a80211a0f8 fix(deps): update dependency @nestjs/mercurius to v11 2023-06-14 01:24:57 +00:00
renovate[bot]
f6a48b5b44 fix(deps): update dependency @nestjs/graphql to v11.0.6 2023-06-14 01:24:33 +00:00
renovate[bot]
577ca3ff6e chore(deps): update jest monorepo to v29 2023-06-14 01:22:51 +00:00
renovate[bot]
43ab0781c8 chore(deps): update dependency webpack-cli to v5 2023-06-14 01:18:28 +00:00
renovate[bot]
ae279c80bc chore(deps): update dependency typescript to v5 2023-06-14 01:17:57 +00:00
renovate[bot]
0a70419c94 fix(deps): update prisma monorepo to v4.15.0 2023-06-14 01:12:07 +00:00
dependabot[bot]
30f35d0bf8 chore(deps-dev): bump @fastify/multipart from 7.6.0 to 7.6.1
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 7.6.0 to 7.6.1.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v7.6.0...v7.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-14 00:59:36 +00:00
Kamil Mysliwiec
3da64132f4 Merge pull request #11740 from nestjs/renovate/ts-loader-9.x
chore(deps): update dependency ts-loader to v9.4.3
2023-06-13 15:38:29 +02:00
Kamil Mysliwiec
01959e3902 Merge branch 'master' into renovate/ts-loader-9.x 2023-06-13 15:38:20 +02:00
Kamil Mysliwiec
36486d80af Merge pull request #11762 from nestjs/renovate/sequelize-6.x
fix(deps): update dependency sequelize to v6.32.0
2023-06-13 15:37:20 +02:00
Kamil Mysliwiec
32600c06de Merge pull request #11763 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo
2023-06-13 15:37:13 +02:00
Kamil Mysliwiec
df3a6aa2a1 Merge branch 'master' into renovate/nest-monorepo 2023-06-13 15:37:06 +02:00
Kamil Myśliwiec
47e4c742eb chore: upgrade eslint 2023-06-13 15:34:41 +02:00
renovate[bot]
87a7de3643 fix(deps): update nest monorepo 2023-06-13 13:13:40 +00:00
renovate[bot]
ffa4478050 fix(deps): update dependency sequelize to v6.32.0 2023-06-13 13:07:43 +00:00
renovate[bot]
52b8d6ba13 chore(deps): update dependency ts-loader to v9.4.3 2023-06-13 12:59:59 +00:00
Kamil Myśliwiec
7abf4c86af chore: sync package lock 2023-06-13 14:54:27 +02:00
Kamil Mysliwiec
da07ffe9d3 Merge pull request #11746 from nestjs/dependabot/npm_and_yarn/eslint-8.42.0
chore(deps-dev): bump eslint from 7.32.0 to 8.42.0
2023-06-13 14:51:09 +02:00
Kamil Mysliwiec
896cc16b14 Merge pull request #11747 from nestjs/dependabot/npm_and_yarn/mongoose-7.2.4
chore(deps-dev): bump mongoose from 7.2.2 to 7.2.4
2023-06-13 14:51:03 +02:00
Kamil Mysliwiec
61ba31f116 Merge pull request #11758 from nestjs/renovate/mysql2-3.x
fix(deps): update dependency mysql2 to v3.3.5
2023-06-13 14:50:37 +02:00
Kamil Mysliwiec
e366b0c57b Merge pull request #11759 from nestjs/renovate/jest-monorepo
chore(deps): update jest monorepo
2023-06-13 14:50:27 +02:00
renovate[bot]
d996a90067 chore(deps): update jest monorepo 2023-06-13 12:49:15 +00:00
Kamil Myśliwiec
313e1fba12 ci: enable coveralls verbose mode 2023-06-13 14:48:52 +02:00
dependabot[bot]
8a3a5962ad chore(deps-dev): bump eslint from 7.32.0 to 8.42.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.42.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.32.0...v8.42.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 12:48:11 +00:00
Kamil Mysliwiec
8f9a960cd5 Merge pull request #11519 from nestjs/renovate/jest-monorepo
chore(deps): update jest monorepo
2023-06-13 14:47:06 +02:00
renovate[bot]
5d9c3fe10d fix(deps): update dependency mysql2 to v3.3.5 2023-06-13 07:17:28 +00:00
renovate[bot]
9cb1824517 chore(deps): update jest monorepo 2023-06-13 07:14:33 +00:00
dependabot[bot]
28127c381d chore(deps-dev): bump mongoose from 7.2.2 to 7.2.4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.2.2 to 7.2.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.2.2...7.2.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-06-13 06:51:20 +00:00
Kamil Mysliwiec
884eef6a0a Merge pull request #11742 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/dottie-2.0.4
chore(deps): bump dottie from 2.0.2 to 2.0.4 in /sample/07-sequelize
2023-06-13 08:51:06 +02:00
Kamil Mysliwiec
28deb9062b Merge pull request #11743 from nestjs/dependabot/npm_and_yarn/sinon-15.1.2
chore(deps-dev): bump sinon from 15.1.0 to 15.1.2
2023-06-13 08:51:02 +02:00
Kamil Mysliwiec
8fe818f5b8 Merge pull request #11745 from nestjs/dependabot/npm_and_yarn/apollo/server-4.7.3
chore(deps-dev): bump @apollo/server from 4.7.1 to 4.7.3
2023-06-13 08:50:56 +02:00
dependabot[bot]
e59efc2942 chore(deps-dev): bump @apollo/server from 4.7.1 to 4.7.3
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.7.1 to 4.7.3.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.7.3/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-06-13 06:50:23 +00:00
Kamil Mysliwiec
798bf5909a Merge pull request #11756 from nestjs/dependabot/npm_and_yarn/types/node-20.3.1
chore(deps-dev): bump @types/node from 20.2.5 to 20.3.1
2023-06-13 08:50:20 +02:00
Kamil Mysliwiec
d1dc624420 Merge pull request #11755 from nestjs/renovate/mongoose-6.x
fix(deps): update dependency mongoose to v6.11.2
2023-06-13 08:50:02 +02:00
Kamil Mysliwiec
c96f1b7fd1 Merge pull request #11754 from nestjs/renovate/mongodb-3.x
fix(deps): update dependency mongodb to v3.7.3
2023-06-13 08:49:52 +02:00
dependabot[bot]
d89536774f chore(deps-dev): bump @types/node from 20.2.5 to 20.3.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.2.5 to 20.3.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 06:49:51 +00:00
Kamil Mysliwiec
bfa8be4442 Merge pull request #11753 from nestjs/renovate/dotenv-16.x
fix(deps): update dependency dotenv to v16.1.4
2023-06-13 08:49:47 +02:00
Kamil Mysliwiec
8c2a17f62a Merge pull request #11752 from nestjs/renovate/nestjs-event-emitter-1.x
fix(deps): update dependency @nestjs/event-emitter to v1.4.2
2023-06-13 08:49:39 +02:00
Kamil Mysliwiec
0c52e909e6 Merge pull request #11748 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages
2023-06-13 08:49:32 +02:00
Kamil Mysliwiec
904a585e9d Merge pull request #11750 from nestjs/renovate/ts-node-10.x
chore(deps): update dependency ts-node to v10.9.1
2023-06-13 08:49:14 +02:00
Kamil Mysliwiec
c2889022ff Merge pull request #11749 from nestjs/renovate/supertest-6.x
chore(deps): update dependency supertest to v6.3.3
2023-06-13 08:48:50 +02:00
Kamil Mysliwiec
94d16a53a5 Merge pull request #11751 from nestjs/renovate/typescript-eslint-monorepo
chore(deps): update typescript-eslint monorepo to v5.59.11
2023-06-13 08:48:27 +02:00
renovate[bot]
8a98fd6993 fix(deps): update dependency mongoose to v6.11.2 2023-06-13 01:27:04 +00:00
renovate[bot]
86ed5f84ed fix(deps): update dependency mongodb to v3.7.3 2023-06-13 01:26:31 +00:00
renovate[bot]
05ade04b94 fix(deps): update dependency dotenv to v16.1.4 2023-06-13 01:26:12 +00:00
renovate[bot]
ea3c77aa8a fix(deps): update dependency @nestjs/event-emitter to v1.4.2 2023-06-13 01:25:19 +00:00
renovate[bot]
d88ac0dc74 chore(deps): update typescript-eslint monorepo to v5.59.11 2023-06-13 01:24:47 +00:00
renovate[bot]
1cb94ed490 chore(deps): update dependency ts-node to v10.9.1 2023-06-13 01:13:58 +00:00
renovate[bot]
791f64b492 chore(deps): update dependency supertest to v6.3.3 2023-06-13 01:04:54 +00:00
renovate[bot]
6971a7bf40 fix(deps): update apollo graphql packages 2023-06-13 01:00:39 +00:00
dependabot[bot]
17b02446d9 chore(deps-dev): bump sinon from 15.1.0 to 15.1.2
Bumps [sinon](https://github.com/sinonjs/sinon) from 15.1.0 to 15.1.2.
- [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.1.0...v15.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 00:56:57 +00:00
dependabot[bot]
9a06bd151d chore(deps): bump dottie from 2.0.2 to 2.0.4 in /sample/07-sequelize
Bumps [dottie](https://github.com/mickhansen/dottie.js) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/mickhansen/dottie.js/releases)
- [Commits](https://github.com/mickhansen/dottie.js/compare/v2.0.2...v2.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 19:57:00 +00:00
Kamil Mysliwiec
f47291a76e Merge pull request #11741 from nestjs/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.86.0
2023-06-12 14:28:59 +02:00
renovate[bot]
5da3c66457 chore(deps): update dependency webpack to v5.86.0 2023-06-12 12:26:06 +00:00
Kamil Mysliwiec
ea29da1990 Merge pull request #11516 from nestjs/renovate/node-18.x
chore(deps): update dependency @types/node to v18.16.17
2023-06-12 14:22:47 +02:00
Kamil Mysliwiec
cfecc65b9d Merge pull request #11738 from nestjs/renovate/prettier-2.x
chore(deps): update dependency prettier to v2.8.8
2023-06-12 14:22:33 +02:00
renovate[bot]
0894baf057 chore(deps): update dependency prettier to v2.8.8 2023-06-12 12:18:20 +00:00
renovate[bot]
06141729c3 chore(deps): update dependency @types/node to v18.16.17 2023-06-12 12:12:42 +00:00
Kamil Mysliwiec
9f87b3dfda Merge pull request #11739 from nestjs/renovate/ts-jest-29.x
chore(deps): update dependency ts-jest to v29.1.0
2023-06-12 14:07:33 +02:00
Kamil Mysliwiec
a8793731f8 Merge pull request #11524 from nestjs/renovate/nestjs-mercurius-10.x
fix(deps): update dependency @nestjs/mercurius to v10.2.1
2023-06-12 14:07:26 +02:00
Kamil Mysliwiec
2176fdef83 Merge pull request #11736 from nestjs/renovate/eslint-config-prettier-8.x
chore(deps): update dependency eslint-config-prettier to v8.8.0
2023-06-12 14:06:40 +02:00
Kamil Myśliwiec
3bb4f4d40d chore: resolve conflicts 2023-06-12 14:06:26 +02:00
Kamil Myśliwiec
e2790c8b53 chore: refresh package lock 2023-06-12 14:04:31 +02:00
Kamil Mysliwiec
a6e278bad4 Merge pull request #11723 from nestjs/renovate/apollo-graphql-packages
fix(deps): update apollo graphql packages
2023-06-12 14:03:53 +02:00
Kamil Myśliwiec
60354c0704 chore: resolve conflicts 2023-06-12 14:03:30 +02:00
Kamil Myśliwiec
ddca778fdf sample(13): update mongo typeorm sample 2023-06-12 13:59:46 +02:00
renovate[bot]
a75e9512a2 chore(deps): update dependency ts-jest to v29.1.0 2023-06-12 11:50:39 +00:00
renovate[bot]
d28a2722f1 chore(deps): update dependency eslint-config-prettier to v8.8.0 2023-06-12 11:40:30 +00:00
Kamil Mysliwiec
86e4ea4d02 Merge pull request #11667 from mathewtrivett/support-multer-none
feat(express): add support for multer.none
2023-06-12 13:30:45 +02:00
Kamil Mysliwiec
5481a01f16 Merge pull request #10545 from jmcdo29/feat/websocket-get-pattern
feat: create method on client to get websocket pattern
2023-06-12 13:29:23 +02:00
Kamil Mysliwiec
8dcaef7d16 Merge pull request #11734 from nestjs/renovate/confluentinc-cp-zookeeper-7.x
chore(deps): update confluentinc/cp-zookeeper docker tag to v7.4.0
2023-06-12 13:27:39 +02:00
Kamil Mysliwiec
753d8d02f3 Merge pull request #11737 from nestjs/renovate/eslint-plugin-import-2.x
chore(deps): update dependency eslint-plugin-import to v2.27.5
2023-06-12 13:27:21 +02:00
renovate[bot]
5fca4e3913 fix(deps): update apollo graphql packages 2023-06-12 11:27:17 +00:00
Kamil Mysliwiec
c526a0c52c Merge pull request #11732 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo to v7.22.5
2023-06-12 13:27:14 +02:00
Kamil Mysliwiec
028b961cb6 Merge pull request #11731 from nestjs/renovate/typeorm-0.x
fix(deps): update dependency typeorm to v0.3.16
2023-06-12 13:27:07 +02:00
Kamil Mysliwiec
9c921c5b18 Merge pull request #11735 from nestjs/renovate/nestjs-cli-9.x
chore(deps): update dependency @nestjs/cli to v9.5.0
2023-06-12 13:26:24 +02:00
Kamil Mysliwiec
46a34f8e98 Merge pull request #11730 from nestjs/renovate/socket.io-packages
fix(deps): update dependency socket.io to v4.6.2
2023-06-12 13:26:07 +02:00
Kamil Mysliwiec
c233f251f0 Merge pull request #11733 from nestjs/renovate/confluentinc-cp-kafka-7.x
chore(deps): update confluentinc/cp-kafka docker tag to v7.4.0
2023-06-12 13:26:01 +02:00
Kamil Mysliwiec
f0c64bd97f Merge pull request #11724 from nestjs/renovate/fastify-static-6.x
fix(deps): update dependency @fastify/static to v6.10.2
2023-06-12 13:25:52 +02:00
Kamil Mysliwiec
3186e8b8c2 Merge pull request #11727 from nestjs/renovate/nestjs-schedule-2.x
fix(deps): update dependency @nestjs/schedule to v2.2.3
2023-06-12 13:25:45 +02:00
Kamil Mysliwiec
3b9570c085 Merge pull request #11729 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency graphql-tools to v8.3.20
2023-06-12 13:25:26 +02:00
Kamil Mysliwiec
34150b02df Merge pull request #11728 from nestjs/renovate/nestjs-sequelize-9.x
fix(deps): update dependency @nestjs/sequelize to v9.0.2
2023-06-12 13:25:21 +02:00
Kamil Mysliwiec
eec3a45560 Merge pull request #11726 from nestjs/renovate/nestjs-apollo-11.x
fix(deps): update dependency @nestjs/apollo to v11.0.6
2023-06-12 13:25:14 +02:00
Kamil Mysliwiec
7ec5b18698 Merge pull request #11725 from nestjs/renovate/grpc-grpc-js-1.x
fix(deps): update dependency @grpc/grpc-js to v1.8.15
2023-06-12 13:25:11 +02:00
Kamil Mysliwiec
bacfa7b159 Merge pull request #11722 from nestjs/renovate/mysql-8.x
chore(deps): update mysql docker tag to v8.0.33
2023-06-12 13:25:03 +02:00
Kamil Mysliwiec
b96db2b6d1 Merge pull request #11721 from nestjs/renovate/redis-4.x
chore(deps): update dependency redis to v4.6.7
2023-06-12 13:24:56 +02:00
Kamil Mysliwiec
de81082e99 Merge pull request #11720 from nestjs/renovate/express-4.x
chore(deps): update dependency @types/express to v4.17.17
2023-06-12 13:24:23 +02:00
renovate[bot]
8dd21f35c9 chore(deps): update dependency eslint-plugin-import to v2.27.5 2023-06-12 11:19:04 +00:00
renovate[bot]
f250b0aa10 chore(deps): update dependency @nestjs/cli to v9.5.0 2023-06-12 11:09:59 +00:00
renovate[bot]
8ec876210e chore(deps): update confluentinc/cp-zookeeper docker tag to v7.4.0 2023-06-12 11:05:00 +00:00
renovate[bot]
1c70dd834c chore(deps): update confluentinc/cp-kafka docker tag to v7.4.0 2023-06-12 11:04:49 +00:00
renovate[bot]
395fb21f4e chore(deps): update babel monorepo to v7.22.5 2023-06-12 11:04:38 +00:00
renovate[bot]
461de6d369 fix(deps): update dependency typeorm to v0.3.16 2023-06-12 11:04:16 +00:00
renovate[bot]
5dde7f113e fix(deps): update dependency socket.io to v4.6.2 2023-06-12 11:03:47 +00:00
renovate[bot]
5565050387 fix(deps): update dependency graphql-tools to v8.3.20 2023-06-12 11:03:28 +00:00
renovate[bot]
83f6ed15fd fix(deps): update dependency @nestjs/sequelize to v9.0.2 2023-06-12 11:02:27 +00:00
renovate[bot]
ece35fef55 fix(deps): update dependency @nestjs/schedule to v2.2.3 2023-06-12 11:02:07 +00:00
renovate[bot]
06358961ba fix(deps): update dependency @nestjs/apollo to v11.0.6 2023-06-12 11:01:48 +00:00
renovate[bot]
997fbf498e fix(deps): update dependency @grpc/grpc-js to v1.8.15 2023-06-12 11:00:24 +00:00
Kamil Myśliwiec
78b44186df chore: update target 2023-06-12 13:00:20 +02:00
renovate[bot]
2382baec21 fix(deps): update dependency @fastify/static to v6.10.2 2023-06-12 11:00:05 +00:00
renovate[bot]
8afe6259eb chore(deps): update mysql docker tag to v8.0.33 2023-06-12 10:57:57 +00:00
renovate[bot]
a1b9ad44ff chore(deps): update dependency redis to v4.6.7 2023-06-12 10:57:46 +00:00
renovate[bot]
930edcf0cf chore(deps): update dependency @types/express to v4.17.17 2023-06-12 10:57:25 +00:00
Kamil Mysliwiec
fcd0ee2daf Merge pull request #11716 from nestjs/dependabot/npm_and_yarn/light-my-request-5.10.0
chore(deps): bump light-my-request from 5.9.1 to 5.10.0
2023-06-12 12:52:43 +02:00
Kamil Mysliwiec
9dec2723a4 Merge pull request #11695 from nestjs/dependabot/npm_and_yarn/typescript-5.1.3
chore(deps-dev): bump typescript from 5.0.4 to 5.1.3
2023-06-12 12:52:35 +02:00
Kamil Mysliwiec
4b4d12e5b4 Merge pull request #11719 from autofix-bot/autofix-trailing-spaces-cd25d2
Autofix: trailing-spaces
2023-06-12 12:52:21 +02:00
Kamil Mysliwiec
efa9909b63 Merge pull request #11673 from namoscato/fix-11665-error-cause-type
fix(common): loosen http exception cause type
2023-06-12 12:31:48 +02:00
Kamil Mysliwiec
404e2c7170 Merge pull request #11036 from Tony133/refactor/update-logger
refactor(common): update log level
2023-06-12 12:30:33 +02:00
Autofix
3a6016c3df Autofix: trailing-spaces 2023-06-12 10:26:57 +00:00
dependabot[bot]
9382b30c86 chore(deps-dev): bump typescript from 5.0.4 to 5.1.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.0.4 to 5.1.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.0.4...v5.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 10:26:55 +00:00
dependabot[bot]
6b45922912 chore(deps): bump light-my-request from 5.9.1 to 5.10.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.9.1 to 5.10.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.9.1...v5.10.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 10:26:39 +00:00
Kamil Mysliwiec
a41e6bc45b Merge pull request #11517 from nestjs/10.0.0
chore: laying the grounds for 10.0.0
2023-06-12 12:25:49 +02:00
Kamil Myśliwiec
98bb859e2c Merge branch 'master' into 10.0.0 2023-06-12 12:25:32 +02:00
Kamil Myśliwiec
7cdca66d37 chore: update readme 2023-06-12 12:25:21 +02:00
Kamil Myśliwiec
8f679ec862 chore(@nestjs) publish v9.4.3 release 2023-06-12 12:25:03 +02:00
Kamil Myśliwiec
1f44c1c72a chore: resolve conflicts 2023-06-12 12:24:08 +02:00
Kamil Mysliwiec
0fa730885a Merge pull request #11692 from OleksandrZaturskyi/fix/client-kafka-consumer-assignments
fix(microservices): check length of member partitions on group join
2023-06-12 12:23:20 +02:00
Kamil Mysliwiec
13819f07e7 Merge pull request #11712 from nestjs/dependabot/npm_and_yarn/conventional-changelog-4.0.0
chore(deps-dev): bump conventional-changelog from 3.1.25 to 4.0.0
2023-06-12 12:20:11 +02:00
Kamil Mysliwiec
f925fe5b63 Merge pull request #11718 from nestjs/fix/fastify-middleware-execution
fix(fastify): validate middleware paths
2023-06-12 12:20:00 +02:00
Kamil Myśliwiec
a412dccfbe fix(fastify): validate middleware paths 2023-06-12 11:03:31 +02:00
dependabot[bot]
635be95696 chore(deps-dev): bump conventional-changelog from 3.1.25 to 4.0.0
Bumps [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) from 3.1.25 to 4.0.0.
- [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases)
- [Changelog](https://github.com/conventional-changelog/conventional-changelog/blob/master/.release-please-manifest.json)
- [Commits](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-v3.1.25...conventional-changelog-v4.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 08:10:53 +00:00
Kamil Mysliwiec
117e8c5a04 Merge pull request #11706 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/fast-xml-parser-and-aws-sdk/credential-providers-4.2.4
chore(deps): bump fast-xml-parser and @aws-sdk/credential-providers in /sample/14-mongoose-base
2023-06-12 10:05:03 +02:00
Kamil Mysliwiec
1fbf6dde52 Merge pull request #11705 from nestjs/dependabot/npm_and_yarn/sample/06-mongoose/fast-xml-parser-and-aws-sdk/credential-providers-4.2.4
chore(deps): bump fast-xml-parser and @aws-sdk/credential-providers in /sample/06-mongoose
2023-06-12 10:04:54 +02:00
Kamil Mysliwiec
718fd8e61a Merge pull request #11709 from nestjs/dependabot/npm_and_yarn/mysql2-3.3.4
chore(deps-dev): bump mysql2 from 3.3.3 to 3.3.4
2023-06-12 10:04:50 +02:00
Kamil Mysliwiec
7268dcd7b6 Merge pull request #11711 from nestjs/dependabot/npm_and_yarn/concurrently-8.2.0
chore(deps-dev): bump concurrently from 8.1.0 to 8.2.0
2023-06-12 10:04:43 +02:00
Kamil Mysliwiec
ab3bd947fe Merge pull request #11713 from nestjs/dependabot/npm_and_yarn/core-js-3.31.0
chore(deps-dev): bump core-js from 3.30.2 to 3.31.0
2023-06-12 10:04:34 +02:00
Kamil Mysliwiec
80792d45d3 Merge pull request #11714 from nestjs/dependabot/npm_and_yarn/fastify-4.18.0
chore(deps): bump fastify from 4.17.0 to 4.18.0
2023-06-12 10:04:28 +02:00
Kamil Mysliwiec
302a8ed7b4 Merge pull request #11715 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.8.15
chore(deps-dev): bump @grpc/grpc-js from 1.8.14 to 1.8.15
2023-06-12 10:04:21 +02:00
Kamil Mysliwiec
c5ee6d7eb1 Merge pull request #11717 from nestjs/dependabot/npm_and_yarn/types/ws-8.5.5
chore(deps-dev): bump @types/ws from 8.5.4 to 8.5.5
2023-06-12 10:04:07 +02:00
dependabot[bot]
e3f92ae88e chore(deps-dev): bump @types/ws from 8.5.4 to 8.5.5
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.4 to 8.5.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 02:10:08 +00:00
dependabot[bot]
6bea1e7848 chore(deps-dev): bump @grpc/grpc-js from 1.8.14 to 1.8.15
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.8.14 to 1.8.15.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.8.14...@grpc/grpc-js@1.8.15)

---
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-06-12 02:07:39 +00:00
dependabot[bot]
66152fa85f chore(deps): bump fastify from 4.17.0 to 4.18.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.17.0 to 4.18.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/4.17.0...v4.18.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-06-12 02:04:28 +00:00
dependabot[bot]
895cf6223a chore(deps-dev): bump core-js from 3.30.2 to 3.31.0
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.30.2 to 3.31.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.31.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-06-12 02:02:33 +00:00
dependabot[bot]
0af750a570 chore(deps-dev): bump concurrently from 8.1.0 to 8.2.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v8.1.0...v8.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 01:58:05 +00:00
dependabot[bot]
b941954d0c chore(deps-dev): bump mysql2 from 3.3.3 to 3.3.4
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.3.3 to 3.3.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.3.3...v3.3.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-06-12 01:56:23 +00:00
Kamil Mysliwiec
c8eec5db0d Merge pull request #11690 from nestjs/dependabot/npm_and_yarn/socket.io-4.6.2
chore(deps): bump socket.io from 4.6.1 to 4.6.2
2023-06-09 09:42:24 +02:00
Kamil Mysliwiec
61fbb46b39 Merge pull request #11684 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-17.6.5
chore(deps-dev): bump @commitlint/config-angular from 17.6.3 to 17.6.5
2023-06-09 09:42:17 +02:00
Kamil Mysliwiec
2b2afeb10b Merge pull request #11685 from nestjs/dependabot/npm_and_yarn/mongoose-7.2.2
chore(deps-dev): bump mongoose from 7.2.1 to 7.2.2
2023-06-09 09:42:09 +02:00
dependabot[bot]
2b2b7cf24b chore(deps): bump socket.io from 4.6.1 to 4.6.2
Bumps [socket.io](https://github.com/socketio/socket.io) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/4.6.1...4.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-09 07:42:00 +00:00
dependabot[bot]
58f941c5b6 chore(deps-dev): bump @commitlint/config-angular from 17.6.3 to 17.6.5
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 17.6.3 to 17.6.5.
- [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.5/@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-06-09 07:42:00 +00:00
Kamil Mysliwiec
cb66c83dd6 Merge pull request #11697 from nestjs/dependabot/npm_and_yarn/cache-manager-5.2.2
chore(deps-dev): bump cache-manager from 5.2.1 to 5.2.2
2023-06-09 09:41:01 +02:00
dependabot[bot]
047a5c70b1 chore(deps): bump fast-xml-parser and @aws-sdk/credential-providers
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) and [@aws-sdk/credential-providers](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/credential-providers). These dependencies needed to be updated together.

Updates `fast-xml-parser` from 4.1.2 to 4.2.4
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.2...v4.2.4)

Updates `@aws-sdk/credential-providers` from 3.312.0 to 3.348.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/credential-providers/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.348.0/packages/credential-providers)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: indirect
- dependency-name: "@aws-sdk/credential-providers"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-09 07:40:58 +00:00
Kamil Mysliwiec
ca3031a87c Merge pull request #11691 from nestjs/dependabot/npm_and_yarn/socket.io-client-4.6.2
chore(deps-dev): bump socket.io-client from 4.6.1 to 4.6.2
2023-06-09 09:40:53 +02:00
dependabot[bot]
d9f372fdcc chore(deps): bump fast-xml-parser and @aws-sdk/credential-providers
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) and [@aws-sdk/credential-providers](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/credential-providers). These dependencies needed to be updated together.

Updates `fast-xml-parser` from 4.1.2 to 4.2.4
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.2...v4.2.4)

Updates `@aws-sdk/credential-providers` from 3.312.0 to 3.348.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/credential-providers/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.348.0/packages/credential-providers)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: indirect
- dependency-name: "@aws-sdk/credential-providers"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-09 07:40:27 +00:00
Kamil Mysliwiec
3da0bcc0a4 Merge pull request #11686 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.6.5
chore(deps-dev): bump @commitlint/cli from 17.6.3 to 17.6.5
2023-06-09 09:40:10 +02:00
Kamil Mysliwiec
90deac4b61 Merge pull request #11689 from nestjs/dependabot/npm_and_yarn/redis-4.6.7
chore(deps-dev): bump redis from 4.6.6 to 4.6.7
2023-06-09 09:39:56 +02:00
Kamil Mysliwiec
b5cb188330 Merge pull request #11694 from nestjs/dependabot/npm_and_yarn/concurrently-8.1.0
chore(deps-dev): bump concurrently from 8.0.1 to 8.1.0
2023-06-09 09:39:38 +02:00
Kamil Mysliwiec
be202c8c1f Merge pull request #11698 from nestjs/dependabot/npm_and_yarn/tslib-2.5.3
chore(deps): bump tslib from 2.5.2 to 2.5.3
2023-06-09 09:39:25 +02:00
dependabot[bot]
e0b20ae54f chore(deps): bump tslib from 2.5.2 to 2.5.3
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.5.2 to 2.5.3.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/2.5.2...v2.5.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 01:06:24 +00:00
dependabot[bot]
8692bdd5da chore(deps-dev): bump cache-manager from 5.2.1 to 5.2.2
Bumps [cache-manager](https://github.com/node-cache-manager/node-cache-manager) from 5.2.1 to 5.2.2.
- [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.1...5.2.2)

---
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-06-05 01:01:19 +00:00
dependabot[bot]
bc4c29926a chore(deps-dev): bump concurrently from 8.0.1 to 8.1.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 8.0.1 to 8.1.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v8.0.1...v8.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 01:00:25 +00:00
Aleksandr
7a467e6fbe fix(microservices): check length of member partitions on group join 2023-06-01 09:04:09 +03:00
dependabot[bot]
f28c20c47f chore(deps-dev): bump socket.io-client from 4.6.1 to 4.6.2
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.6.1...4.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 01:08:11 +00:00
dependabot[bot]
2b1516d2aa chore(deps-dev): bump redis from 4.6.6 to 4.6.7
Bumps [redis](https://github.com/redis/node-redis) from 4.6.6 to 4.6.7.
- [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.6...redis@4.6.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 01:01:27 +00:00
dependabot[bot]
9560bc6551 chore(deps-dev): bump @commitlint/cli from 17.6.3 to 17.6.5
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.6.3 to 17.6.5.
- [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.5/@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-31 01:05:21 +00:00
dependabot[bot]
bbee253241 chore(deps-dev): bump mongoose from 7.2.1 to 7.2.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.2.1 to 7.2.2.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/7.2.1...7.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-31 01:02:20 +00:00
Kamil Mysliwiec
d92a64e7e2 Merge pull request #11678 from MansurAliKoroglu/fix-test-issue
refactor(common): remove barrel import in parse enum pipe file
2023-05-29 08:29:34 +02:00
Kamil Mysliwiec
a4d4cf44ae Merge pull request #11648 from 9w/fix/mysql-connection-host-sample
fix(sample): change mysql connection host to 127.0.0.1
2023-05-29 08:28:06 +02:00
Kamil Mysliwiec
52ccb559c4 Merge pull request #11649 from 9w/fix/mysql-connection-host-integration
fix(integration): change mysql connection host to 127.0.0.1
2023-05-29 08:27:52 +02:00
Kamil Mysliwiec
44b9d88fcc Merge pull request #11668 from nestjs/dependabot/npm_and_yarn/fastify/cors-8.3.0
chore(deps): bump @fastify/cors from 8.2.1 to 8.3.0
2023-05-29 08:27:34 +02:00
Kamil Mysliwiec
5b46502e45 Merge pull request #11670 from nestjs/dependabot/npm_and_yarn/fastify/static-6.10.2
chore(deps-dev): bump @fastify/static from 6.10.1 to 6.10.2
2023-05-29 08:27:28 +02:00
Kamil Mysliwiec
9042f678d0 Merge pull request #11671 from nestjs/dependabot/npm_and_yarn/types/gulp-4.0.11
chore(deps-dev): bump @types/gulp from 4.0.10 to 4.0.11
2023-05-29 08:27:22 +02:00
Kamil Mysliwiec
71e7ae32ea Merge pull request #11677 from nestjs/renovate/sequelize-6.x
fix(deps): update dependency sequelize to v6.31.1
2023-05-29 08:27:16 +02:00
Kamil Mysliwiec
61bc57e5b3 Merge pull request #11679 from nestjs/dependabot/npm_and_yarn/types/node-20.2.5
chore(deps-dev): bump @types/node from 20.2.3 to 20.2.5
2023-05-29 08:27:10 +02:00
Kamil Mysliwiec
9644116dd8 Merge pull request #11680 from nestjs/dependabot/npm_and_yarn/mysql2-3.3.3
chore(deps-dev): bump mysql2 from 3.3.2 to 3.3.3
2023-05-29 08:27:03 +02:00
Kamil Mysliwiec
5e1f3dc8ef Merge pull request #11661 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-11.0.6
chore(deps-dev): bump @nestjs/graphql from 11.0.5 to 11.0.6
2023-05-29 08:26:52 +02:00
dependabot[bot]
2c0022e4c4 chore(deps-dev): bump mysql2 from 3.3.2 to 3.3.3
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.3.2 to 3.3.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.3.2...v3.3.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-05-29 01:08:33 +00:00
dependabot[bot]
0e714591ab chore(deps-dev): bump @types/node from 20.2.3 to 20.2.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.2.3 to 20.2.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-29 01:03:30 +00:00
Mansur Ali Koroglu
de5bc51c3d refactor(common): remove barrel import in parse enum pipe file 2023-05-29 02:44:41 +03:00
renovate[bot]
f860d56ebb fix(deps): update dependency sequelize to v6.31.1 2023-05-28 09:54:34 +00:00
renovate[bot]
eeb3866346 fix(deps): update dependency @nestjs/mercurius to v10.2.1 2023-05-28 09:54:18 +00:00
Nick Amoscato
41552d398e fix(common): loosen http exception cause type
resolves #11665
2023-05-26 08:45:00 -04:00
dependabot[bot]
fa386768bb chore(deps-dev): bump @types/gulp from 4.0.10 to 4.0.11
Bumps [@types/gulp](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/gulp) from 4.0.10 to 4.0.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/gulp)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 01:15:26 +00:00
dependabot[bot]
f6c2682aaf chore(deps-dev): bump @fastify/static from 6.10.1 to 6.10.2
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 6.10.1 to 6.10.2.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v6.10.1...v6.10.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 01:13:56 +00:00
dependabot[bot]
5aa4d747da chore(deps): bump @fastify/cors from 8.2.1 to 8.3.0
Bumps [@fastify/cors](https://github.com/fastify/fastify-cors) from 8.2.1 to 8.3.0.
- [Release notes](https://github.com/fastify/fastify-cors/releases)
- [Commits](https://github.com/fastify/fastify-cors/compare/v8.2.1...v8.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 01:04:06 +00:00
Mathew Trivett
e2c15af6b9 feat(express): add support for multer.none
Adds an interceptor for multer's none option https://github.com/expressjs/multer#none. This allows for Nest.js users to process
`multipart/form-data` that does not include any files.
2023-05-25 17:57:58 +01:00
Kamil Mysliwiec
a1f16ae843 Merge pull request #11656 from nestjs/dependabot/npm_and_yarn/mysql2-3.3.2
chore(deps-dev): bump mysql2 from 3.3.1 to 3.3.2
2023-05-25 08:48:46 +02:00
dependabot[bot]
5457825697 chore(deps-dev): bump @nestjs/graphql from 11.0.5 to 11.0.6
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 11.0.5 to 11.0.6.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v11.0.5...v11.0.6)

---
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-05-25 06:38:54 +00:00
dependabot[bot]
45f0045a7c chore(deps-dev): bump mysql2 from 3.3.1 to 3.3.2
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.3.1 to 3.3.2.
- [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.3.1...v3.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-25 06:37:54 +00:00
Kamil Mysliwiec
cb021df989 Merge pull request #11655 from nestjs/dependabot/npm_and_yarn/nats-2.14.0
chore(deps-dev): bump nats from 2.13.1 to 2.14.0
2023-05-25 08:35:39 +02:00
Kamil Mysliwiec
9fb16823e3 Merge pull request #11657 from nestjs/dependabot/npm_and_yarn/sample/02-gateways/socket.io-parser-4.2.3
chore(deps): bump socket.io-parser from 4.2.2 to 4.2.3 in /sample/02-gateways
2023-05-25 08:35:28 +02:00
Kamil Mysliwiec
f1e24e4090 Merge pull request #11663 from nestjs/dependabot/npm_and_yarn/mongoose-7.2.1
bump mongoose from 7.2.0 to 7.2.1
2023-05-25 08:35:24 +02:00
Kamil Mysliwiec
1febbb2b2a Merge pull request #11662 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-11.0.6
chore(deps-dev): bump @nestjs/apollo from 11.0.5 to 11.0.6
2023-05-25 08:34:50 +02:00
Kamil Mysliwiec
89c5cb3f00 Merge pull request #11654 from nestjs/dependabot/npm_and_yarn/socket.io-parser-4.2.3
chore(deps): bump socket.io-parser from 4.2.1 to 4.2.3
2023-05-25 08:34:39 +02:00
dependabot[bot]
d64946f5f9 bump mongoose from 7.2.0 to 7.2.1
---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-25 01:12:03 +00:00
dependabot[bot]
630692f28b chore(deps-dev): bump @nestjs/apollo from 11.0.5 to 11.0.6
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 11.0.5 to 11.0.6.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v11.0.5...v11.0.6)

---
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-05-25 01:10:56 +00:00
dependabot[bot]
bf79658900 chore(deps): bump socket.io-parser in /sample/02-gateways
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-parser/compare/4.2.2...4.2.3)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-24 01:55:57 +00:00
dependabot[bot]
3db7d8a6e4 chore(deps-dev): bump nats from 2.13.1 to 2.14.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.13.1 to 2.14.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.13.1...v2.14.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-24 01:01:54 +00:00
dependabot[bot]
dda48635a0 chore(deps): bump socket.io-parser from 4.2.1 to 4.2.3
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 4.2.1 to 4.2.3.
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-parser/compare/4.2.1...4.2.3)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-24 00:10:03 +00: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
9w
a32cfc53d4 fix(integration): change mysql connection host to 127.0.0.1 2023-05-22 18:54:42 +09:00
9w
49d853a1a8 fix(sample): change mysql connection host to 127.0.0.1 2023-05-22 18:31:48 +09: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
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
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
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
Julien Sarazin
9af95fcf50 fix(microservices): grpc-server handle async interceptors 2023-04-06 16:06:34 +02:00
Tony133
d0d81511e5 refactor(common): update log level 2023-02-03 15:08:40 +01:00
Jay McDoniel
ff9a577119 fix: address pr comments 2023-02-02 06:47:04 -08:00
Jay McDoniel
c29a919e05 ci: don't install greater than npm 8 2023-02-02 06:47:04 -08:00
Jay McDoniel
edbd0a80c6 feat: move get pattern to top level method of switch to ws 2023-02-02 06:47:04 -08:00
Jay McDoniel
ce74e7fa2e fix: add case for when args is null 2023-02-02 06:47:04 -08:00
Jay McDoniel
8ff0a048d1 feat: create on client to get websocket pattern
close: #10520
2023-02-02 06:47:01 -08:00
200 changed files with 106571 additions and 116622 deletions

View File

@@ -30,7 +30,7 @@ jobs:
build:
working_directory: ~/nest
docker:
- image: cimg/node:16.19
- image: cimg/node:16.20
steps:
- checkout
- run:
@@ -52,7 +52,7 @@ jobs:
test_node_16:
working_directory: ~/nest
docker:
- image: cimg/node:16.19
- image: cimg/node:16.20
steps:
- checkout
- *restore-cache
@@ -70,12 +70,12 @@ jobs:
test_node_18:
<<: *unit-tests-template
docker:
- image: cimg/node:18.14
- image: cimg/node:18.16
test_node_19:
<<: *unit-tests-template
docker:
- image: cimg/node:19.8
- image: cimg/node:19.9
lint:
working_directory: ~/nest
@@ -130,7 +130,7 @@ jobs:
codechecks_benchmarks:
working_directory: ~/nest
docker:
- image: cimg/node:16.19
- image: cimg/node:16.20
steps:
- checkout
- *restore-cache
@@ -146,7 +146,7 @@ jobs:
samples:
working_directory: ~/nest
docker:
- image: cimg/node:16.19
- image: cimg/node:16.20
environment:
- DISABLE_OPENCOLLECTIVE: true
steps:

View File

@@ -6,7 +6,7 @@ body:
attributes:
value: |
## :warning: We use GitHub Issues to track bug reports, feature requests and regressions
If you are not sure that your issue is a bug, you could:
- read the [FAQ's common errors](https://docs.nestjs.com/faq/common-errors) page

View File

@@ -6,7 +6,7 @@ body:
attributes:
value: |
## :warning: We use GitHub Issues to track bug reports, feature requests and regressions
If you are not sure that your issue is a bug, you could:
- read the [FAQ's common errors](https://docs.nestjs.com/faq/common-errors) page

View File

@@ -6,7 +6,7 @@ body:
attributes:
value: |
## :warning: We use GitHub Issues to track bug reports, feature requests and regressions
If you are not sure that your issue is a bug, you could:
- read the [FAQ's common errors](https://docs.nestjs.com/faq/common-errors) page

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>
@@ -136,7 +136,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<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

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

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 as any })
.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('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

@@ -4,9 +4,7 @@ import { CatsModule } from './cats/cats.module';
@Module({
imports: [
MongooseModule.forRoot('mongodb://localhost:27017/test', {
useNewUrlParser: true,
}),
MongooseModule.forRoot('mongodb://localhost:27017/test'),
CatsModule,
],
})

View File

@@ -10,7 +10,6 @@ class ConfigService implements MongooseOptionsFactory {
createMongooseOptions(): MongooseModuleOptions {
return {
uri: 'mongodb://localhost:27017/test',
useNewUrlParser: true,
};
}
}

View File

@@ -10,7 +10,6 @@ class ConfigService implements MongooseOptionsFactory {
createMongooseOptions(): MongooseModuleOptions {
return {
uri: 'mongodb://localhost:27017/test',
useNewUrlParser: true,
};
}
}

View File

@@ -6,7 +6,6 @@ import { CatsModule } from './cats/cats.module';
imports: [
MongooseModule.forRootAsync({
useFactory: () => ({
useNewUrlParser: true,
uri: 'mongodb://localhost:27017/test',
}),
}),

View File

@@ -77,7 +77,7 @@ describe('Fastify FileSend', () => {
expect(headers['content-disposition']).to.equal(
'attachment; filename="Readme.md"',
);
expect(headers['content-length']).to.equal(readme.byteLength);
expect(headers['content-length']).to.equal(`${readme.byteLength}`);
expect(payload).to.equal(readmeString);
});
});

View File

@@ -1,6 +1,6 @@
{
"type": "mysql",
"host": "localhost",
"host": "127.0.0.1",
"port": 3306,
"username": "root",
"password": "root",

View File

@@ -7,7 +7,7 @@ import { PhotoModule } from './photo/photo.module';
imports: [
TypeOrmModule.forRoot({
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',

View File

@@ -11,7 +11,7 @@ class ConfigService implements TypeOrmOptionsFactory {
createTypeOrmOptions(): TypeOrmModuleOptions {
return {
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',

View File

@@ -11,7 +11,7 @@ class ConfigService implements TypeOrmOptionsFactory {
createTypeOrmOptions(): TypeOrmModuleOptions {
return {
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',

View File

@@ -8,7 +8,7 @@ import { PhotoModule } from './photo/photo.module';
TypeOrmModule.forRootAsync({
useFactory: () => ({
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',

View File

@@ -11,7 +11,7 @@ export class DatabaseModule {
imports: [
TypeOrmModule.forRoot({
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',

View File

@@ -418,4 +418,67 @@ describe('URI Versioning', () => {
await app.close();
});
});
// ======================================================================== //
describe('with middleware applied', () => {
before(async () => {
const moduleRef = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleRef.createNestApplication();
app.enableVersioning({
type: VersioningType.URI,
defaultVersion: '1',
});
await app.init();
});
describe('GET /middleware', () => {
it('should return "Hello from middleware function!"', () => {
return request(app.getHttpServer())
.get('/v1/middleware')
.expect(200)
.expect('Hello from middleware function!');
});
});
describe('GET /middleware/override', () => {
it('should return "Hello from middleware function!"', () => {
return request(app.getHttpServer())
.get('/v2/middleware/override')
.expect(200)
.expect('Hello from middleware function!');
});
});
describe('GET /middleware/multiple', () => {
it('should return "Hello from middleware function!" (v1)', () => {
return request(app.getHttpServer())
.get('/v1/middleware/multiple')
.expect(200)
.expect('Hello from middleware function!');
});
it('should return "Hello from middleware function!" (v2)', () => {
return request(app.getHttpServer())
.get('/v2/middleware/multiple')
.expect(200)
.expect('Hello from middleware function!');
});
});
describe('GET /middleware/neutral', () => {
it('should return "Hello from middleware function!"', () => {
return request(app.getHttpServer())
.get('/middleware/neutral')
.expect(200)
.expect('Hello from middleware function!');
});
});
after(async () => {
await app.close();
});
});
});

View File

@@ -1,11 +1,14 @@
import { Module } from '@nestjs/common';
import { MiddlewareConsumer, Module } from '@nestjs/common';
import { AppV1Controller } from './app-v1.controller';
import { AppV2Controller } from './app-v2.controller';
import { MiddlewareController } from './middleware.controller';
import { MultipleMiddlewareVersionController } from './multiple-middleware.controller';
import { MultipleVersionController } from './multiple.controller';
import { NoVersioningController } from './no-versioning.controller';
import { VersionNeutralMiddlewareController } from './neutral-middleware.controller';
import { VersionNeutralController } from './neutral.controller';
import { OverrideController } from './override.controller';
import { NoVersioningController } from './no-versioning.controller';
import { OverridePartialController } from './override-partial.controller';
import { OverrideController } from './override.controller';
@Module({
imports: [],
@@ -17,6 +20,19 @@ import { OverridePartialController } from './override-partial.controller';
VersionNeutralController,
OverrideController,
OverridePartialController,
MiddlewareController,
MultipleMiddlewareVersionController,
VersionNeutralMiddlewareController,
],
})
export class AppModule {}
export class AppModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply((req, res) => res.end('Hello from middleware function!'))
.forRoutes(
MiddlewareController,
MultipleMiddlewareVersionController,
VersionNeutralMiddlewareController,
);
}
}

View File

@@ -0,0 +1,18 @@
import { Controller, Get, Version } from '@nestjs/common';
@Controller({
path: 'middleware',
version: '1',
})
export class MiddlewareController {
@Get('/')
hello() {
return 'Hello from "MiddlewareController"!';
}
@Version('2')
@Get('/override')
hellov2() {
return 'Hello from "MiddlewareController"!';
}
}

View File

@@ -0,0 +1,12 @@
import { Controller, Get } from '@nestjs/common';
@Controller({
version: ['1', '2'],
path: 'middleware',
})
export class MultipleMiddlewareVersionController {
@Get('/multiple')
multiple() {
return 'Multiple Versions 1 or 2';
}
}

View File

@@ -0,0 +1,12 @@
import { Controller, Get, VERSION_NEUTRAL } from '@nestjs/common';
@Controller({
path: 'middleware',
version: VERSION_NEUTRAL,
})
export class VersionNeutralMiddlewareController {
@Get('/neutral')
neutral() {
return 'Neutral';
}
}

View File

@@ -66,5 +66,21 @@ describe('WebSocketGateway', () => {
);
});
it(`should be able to get the pattern in an interceptor`, async () => {
app = await createNestApp(ApplicationGateway);
await app.listen(3000);
ws = io('http://localhost:8080');
ws.emit('getClient', {
test: 'test',
});
await new Promise<void>(resolve =>
ws.on('popClient', data => {
expect(data.path).to.be.eql('getClient');
resolve();
}),
);
});
afterEach(() => app.close());
});

View File

@@ -194,6 +194,30 @@ describe('WebSocketGateway (WsAdapter)', () => {
});
});
it('should let the execution context have a getPattern() method on getClient()', async () => {
app = await createNestApp(ApplicationGateway);
await app.listen(3000);
ws = new WebSocket('ws://localhost:8080');
await new Promise(resolve => ws.on('open', resolve));
ws.send(
JSON.stringify({
event: 'getClient',
data: {
test: 'test',
},
}),
);
await new Promise<void>(resolve =>
ws.on('message', data => {
expect(JSON.parse(data).data.path).to.be.eql('getClient');
ws.close();
resolve();
}),
);
});
afterEach(async function () {
await app.close();
});

View File

@@ -1,8 +1,10 @@
import { UseInterceptors } from '@nestjs/common';
import {
MessageBody,
SubscribeMessage,
WebSocketGateway,
} from '@nestjs/websockets';
import { RequestInterceptor } from './request.interceptor';
@WebSocketGateway(8080)
export class ApplicationGateway {
@@ -13,4 +15,13 @@ export class ApplicationGateway {
data,
};
}
@UseInterceptors(RequestInterceptor)
@SubscribeMessage('getClient')
getPathCalled(client, data) {
return {
event: 'popClient',
data: { ...data, path: client.pattern },
};
}
}

View File

@@ -0,0 +1,11 @@
import { CallHandler, ExecutionContext, Injectable } from '@nestjs/common';
@Injectable()
export class RequestInterceptor {
intercept(context: ExecutionContext, next: CallHandler) {
const client = context.switchToWs().getClient();
const pattern = context.switchToWs().getPattern();
client.pattern = pattern;
return next.handle();
}
}

View File

@@ -1,4 +1,6 @@
import { UseInterceptors } from '@nestjs/common';
import { SubscribeMessage, WebSocketGateway } from '@nestjs/websockets';
import { RequestInterceptor } from './request.interceptor';
@WebSocketGateway()
export class ServerGateway {
@@ -9,4 +11,13 @@ export class ServerGateway {
data,
};
}
@UseInterceptors(RequestInterceptor)
@SubscribeMessage('getClient')
getPathCalled(client, data) {
return {
event: 'popClient',
data: { ...data, path: client.pattern },
};
}
}

View File

@@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "9.4.0"
"version": "10.0.4"
}

5418
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "9.4.0",
"version": "10.0.0",
"description": "Modern, fast, powerful node.js web framework",
"homepage": "https://nestjs.com",
"repository": {
@@ -25,7 +25,7 @@
"move:node_modules": "gulp move:node_modules",
"build:samples": "gulp install:samples && npm run build && npm run move:samples && gulp build:samples && gulp test:samples && gulp test:e2e:samples",
"codechecks:benchmarks": "codechecks ./tools/benchmarks/check-benchmarks.ts",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report --reporter=text-lcov | coveralls -v",
"format": "prettier \"**/*.ts\" \"packages/**/*.json\" --ignore-path ./.prettierignore --write && git status",
"postinstall": "opencollective",
"test": "mocha packages/**/*.spec.ts",
@@ -71,69 +71,69 @@
"object-hash": "3.0.0",
"path-to-regexp": "3.2.0",
"reflect-metadata": "0.1.13",
"rxjs": "7.8.0",
"socket.io": "4.6.1",
"tslib": "2.5.0",
"rxjs": "7.8.1",
"socket.io": "4.7.0",
"tslib": "2.6.0",
"uid": "2.0.2",
"uuid": "9.0.0"
},
"devDependencies": {
"@apollo/server": "4.7.0",
"@apollo/server": "4.7.5",
"@codechecks/client": "0.1.12",
"@commitlint/cli": "17.6.1",
"@commitlint/config-angular": "17.6.1",
"@fastify/cors": "^8.0.0",
"@commitlint/cli": "17.6.6",
"@commitlint/config-angular": "17.6.6",
"@fastify/cors": "8.3.0",
"@fastify/formbody": "7.4.0",
"@fastify/middie": "8.1.0",
"@fastify/multipart": "7.6.0",
"@fastify/static": "6.10.1",
"@fastify/middie": "8.3.0",
"@fastify/multipart": "7.7.0",
"@fastify/static": "6.10.2",
"@fastify/view": "7.4.1",
"@grpc/grpc-js": "1.8.14",
"@grpc/proto-loader": "0.7.6",
"@nestjs/apollo": "11.0.5",
"@nestjs/graphql": "11.0.5",
"@nestjs/mongoose": "9.2.2",
"@nestjs/typeorm": "9.0.1",
"@grpc/grpc-js": "1.8.17",
"@grpc/proto-loader": "0.7.7",
"@nestjs/apollo": "12.0.4",
"@nestjs/graphql": "12.0.3",
"@nestjs/mongoose": "10.0.0",
"@nestjs/typeorm": "10.0.0",
"@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/gulp": "4.0.12",
"@types/http-errors": "2.0.1",
"@types/mocha": "10.0.1",
"@types/node": "18.16.0",
"@types/sinon": "10.0.14",
"@types/node": "20.3.2",
"@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.12",
"@types/ws": "8.5.5",
"@typescript-eslint/eslint-plugin": "5.60.0",
"@typescript-eslint/parser": "5.60.1",
"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.1",
"cache-manager": "5.2.3",
"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": "8.0.1",
"conventional-changelog": "3.1.25",
"core-js": "3.30.1",
"concurrently": "8.2.0",
"conventional-changelog": "4.0.0",
"core-js": "3.31.0",
"coveralls": "3.1.1",
"delete-empty": "3.0.0",
"engine.io-client": "6.4.0",
"eslint": "7.32.0",
"engine.io-client": "6.5.0",
"eslint": "8.43.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"eventsource": "2.0.2",
"fancy-log": "2.0.0",
"fastify": "4.15.0",
"graphql": "16.6.0",
"graphql-tools": "8.3.20",
"fastify": "4.18.0",
"graphql": "16.7.1",
"graphql-tools": "9.0.0",
"gulp": "4.0.2",
"gulp-clang-format": "1.0.27",
"gulp-clean": "0.4.0",
@@ -148,30 +148,30 @@
"kafkajs": "2.2.4",
"lerna": "2.11.0",
"lerna-changelog": "2.2.0",
"light-my-request": "5.9.1",
"lint-staged": "13.2.1",
"light-my-request": "5.10.0",
"lint-staged": "13.2.2",
"markdown-table": "2.0.0",
"merge-graphql-schemas": "1.7.8",
"mocha": "10.2.0",
"mongoose": "7.0.4",
"mongoose": "7.3.1",
"mqtt": "4.3.7",
"multer": "1.4.4",
"mysql2": "3.2.3",
"nats": "2.13.1",
"mysql2": "3.4.1",
"nats": "2.15.1",
"nodemon": "2.0.22",
"nyc": "15.1.0",
"prettier": "2.8.8",
"redis": "4.6.5",
"redis": "4.6.7",
"rxjs-compat": "6.6.7",
"sinon": "15.0.4",
"sinon": "15.2.0",
"sinon-chai": "3.7.0",
"socket.io-client": "4.6.1",
"socket.io-client": "4.7.0",
"subscriptions-transport-ws": "0.11.0",
"supertest": "6.3.3",
"ts-morph": "18.0.0",
"ts-morph": "19.0.0",
"ts-node": "10.9.1",
"typeorm": "0.3.15",
"typescript": "5.0.4",
"typeorm": "0.3.17",
"typescript": "5.1.5",
"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,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

@@ -5,7 +5,8 @@ import {
import { isObject, isString } from '../utils/shared.utils';
export interface HttpExceptionOptions {
cause?: Error;
/** original cause of the error */
cause?: unknown;
description?: string;
}
@@ -68,14 +69,13 @@ export class HttpException extends Error {
this.initCause();
}
public cause: Error | undefined;
public cause: unknown;
/**
* Configures error chaining support
*
* See:
* - https://nodejs.org/en/blog/release/v16.9.0/#error-cause
* - https://github.com/microsoft/TypeScript/issues/45167
* @see https://nodejs.org/en/blog/release/v16.9.0/#error-cause
* @see https://github.com/microsoft/TypeScript/issues/45167
*/
public initCause(): void {
if (this.options?.cause) {

View File

@@ -31,6 +31,10 @@ export interface WsArgumentsHost {
* Returns the client object.
*/
getClient<T = any>(): T;
/**
* Returns the pattern for the event
*/
getPattern(): string;
}
/**

View File

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

View File

@@ -21,12 +21,13 @@ export class FileTypeValidator extends FileValidator<FileTypeValidatorOptions> {
return `Validation failed (expected type is ${this.validationOptions.fileType})`;
}
isValid<TFile extends IFile = any>(file: TFile): boolean {
isValid<TFile extends IFile = any>(file?: TFile): boolean {
if (!this.validationOptions) {
return true;
}
return (
!!file &&
'mimetype' in file &&
!!file.mimetype.match(this.validationOptions.fileType)
);

View File

@@ -3,6 +3,7 @@ import { IFile } from './interfaces';
export type MaxFileSizeValidatorOptions = {
maxSize: number;
message?: string | ((maxSize: number) => string);
};
/**
@@ -14,11 +15,19 @@ export type MaxFileSizeValidatorOptions = {
*/
export class MaxFileSizeValidator extends FileValidator<MaxFileSizeValidatorOptions> {
buildErrorMessage(): string {
if ('message' in this.validationOptions) {
if (typeof this.validationOptions.message === 'function') {
return this.validationOptions.message(this.validationOptions.maxSize);
}
return this.validationOptions.message;
}
return `Validation failed (expected size is less than ${this.validationOptions.maxSize})`;
}
public isValid<TFile extends IFile = any>(file: TFile): boolean {
if (!this.validationOptions) {
public isValid<TFile extends IFile = any>(file?: TFile): boolean {
if (!this.validationOptions || !file) {
return true;
}

View File

@@ -9,6 +9,7 @@ import {
ErrorHttpStatusCode,
HttpErrorByCode,
} from '../utils/http-error-by-code.util';
import { isNil } from '../utils/shared.utils';
/**
* @publicApi
@@ -16,6 +17,7 @@ import {
export interface ParseBoolPipeOptions {
errorHttpStatusCode?: ErrorHttpStatusCode;
exceptionFactory?: (error: string) => any;
optional?: boolean;
}
/**
@@ -31,7 +33,7 @@ export class ParseBoolPipe
{
protected exceptionFactory: (error: string) => any;
constructor(@Optional() options?: ParseBoolPipeOptions) {
constructor(@Optional() protected readonly options?: ParseBoolPipeOptions) {
options = options || {};
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } =
options;
@@ -51,6 +53,9 @@ export class ParseBoolPipe
value: string | boolean,
metadata: ArgumentMetadata,
): Promise<boolean> {
if (isNil(value) && this.options.optional) {
return value;
}
if (this.isTrue(value)) {
return true;
}

View File

@@ -1,14 +1,17 @@
import { ArgumentMetadata, HttpStatus, Injectable, Optional } from '../index';
import { ArgumentMetadata, HttpStatus } from '../index';
import { Injectable, Optional } from '../decorators/core';
import { PipeTransform } from '../interfaces/features/pipe-transform.interface';
import {
ErrorHttpStatusCode,
HttpErrorByCode,
} from '../utils/http-error-by-code.util';
import { isNil } from '../utils/shared.utils';
/**
* @publicApi
*/
export interface ParseEnumPipeOptions {
optional?: boolean;
errorHttpStatusCode?: ErrorHttpStatusCode;
exceptionFactory?: (error: string) => any;
}
@@ -23,10 +26,9 @@ export interface ParseEnumPipeOptions {
@Injectable()
export class ParseEnumPipe<T = any> implements PipeTransform<T> {
protected exceptionFactory: (error: string) => any;
constructor(
protected readonly enumType: T,
@Optional() options?: ParseEnumPipeOptions,
@Optional() protected readonly options?: ParseEnumPipeOptions,
) {
if (!enumType) {
throw new Error(
@@ -50,6 +52,9 @@ export class ParseEnumPipe<T = any> implements PipeTransform<T> {
* @param metadata contains metadata about the currently processed route argument
*/
async transform(value: T, metadata: ArgumentMetadata): Promise<T> {
if (isNil(value) && this.options.optional) {
return value;
}
if (!this.isEnum(value)) {
throw this.exceptionFactory(
'Validation failed (enum string is expected)',

View File

@@ -1,9 +1,11 @@
import { ArgumentMetadata, HttpStatus, Injectable, Optional } from '../index';
import { ArgumentMetadata, HttpStatus } from '../index';
import { Injectable, Optional } from '../decorators/core';
import { PipeTransform } from '../interfaces/features/pipe-transform.interface';
import {
ErrorHttpStatusCode,
HttpErrorByCode,
} from '../utils/http-error-by-code.util';
import { isNil } from '../utils/shared.utils';
/**
* @publicApi
@@ -11,6 +13,7 @@ import {
export interface ParseFloatPipeOptions {
errorHttpStatusCode?: ErrorHttpStatusCode;
exceptionFactory?: (error: string) => any;
optional?: boolean;
}
/**
@@ -24,7 +27,7 @@ export interface ParseFloatPipeOptions {
export class ParseFloatPipe implements PipeTransform<string> {
protected exceptionFactory: (error: string) => any;
constructor(@Optional() options?: ParseFloatPipeOptions) {
constructor(@Optional() protected readonly options?: ParseFloatPipeOptions) {
options = options || {};
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } =
options;
@@ -42,6 +45,9 @@ export class ParseFloatPipe implements PipeTransform<string> {
* @param metadata contains metadata about the currently processed route argument
*/
async transform(value: string, metadata: ArgumentMetadata): Promise<number> {
if (isNil(value) && this.options.optional) {
return value;
}
if (!this.isNumeric(value)) {
throw this.exceptionFactory(
'Validation failed (numeric string is expected)',

View File

@@ -9,6 +9,7 @@ import {
ErrorHttpStatusCode,
HttpErrorByCode,
} from '../utils/http-error-by-code.util';
import { isNil } from '../utils/shared.utils';
/**
* @publicApi
@@ -16,6 +17,7 @@ import {
export interface ParseIntPipeOptions {
errorHttpStatusCode?: ErrorHttpStatusCode;
exceptionFactory?: (error: string) => any;
optional?: boolean;
}
/**
@@ -29,7 +31,7 @@ export interface ParseIntPipeOptions {
export class ParseIntPipe implements PipeTransform<string> {
protected exceptionFactory: (error: string) => any;
constructor(@Optional() options?: ParseIntPipeOptions) {
constructor(@Optional() protected readonly options?: ParseIntPipeOptions) {
options = options || {};
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } =
options;
@@ -47,6 +49,9 @@ export class ParseIntPipe implements PipeTransform<string> {
* @param metadata contains metadata about the currently processed route argument
*/
async transform(value: string, metadata: ArgumentMetadata): Promise<number> {
if (isNil(value) && this.options.optional) {
return value;
}
if (!this.isNumeric(value)) {
throw this.exceptionFactory(
'Validation failed (numeric string is expected)',

View File

@@ -9,7 +9,7 @@ import {
ErrorHttpStatusCode,
HttpErrorByCode,
} from '../utils/http-error-by-code.util';
import { isString } from '../utils/shared.utils';
import { isNil, isString } from '../utils/shared.utils';
/**
* @publicApi
@@ -18,6 +18,7 @@ export interface ParseUUIDPipeOptions {
version?: '3' | '4' | '5';
errorHttpStatusCode?: ErrorHttpStatusCode;
exceptionFactory?: (errors: string) => any;
optional?: boolean;
}
/**
@@ -38,7 +39,7 @@ export class ParseUUIDPipe implements PipeTransform<string> {
private readonly version: '3' | '4' | '5';
protected exceptionFactory: (errors: string) => any;
constructor(@Optional() options?: ParseUUIDPipeOptions) {
constructor(@Optional() protected readonly options?: ParseUUIDPipeOptions) {
options = options || {};
const {
exceptionFactory,
@@ -53,6 +54,9 @@ export class ParseUUIDPipe implements PipeTransform<string> {
}
async transform(value: string, metadata: ArgumentMetadata): Promise<string> {
if (isNil(value) && this.options.optional) {
return value;
}
if (!this.isUUID(value, this.version)) {
throw this.exceptionFactory(
`Validation failed (uuid${

View File

@@ -80,6 +80,7 @@ export class ConsoleLogger implements LoggerService {
* Write an 'error' level log, if the configured level allows for it.
* Prints to `stderr` with newline.
*/
error(message: any, stackOrContext?: string): void;
error(message: any, stack?: string, context?: string): void;
error(message: any, ...optionalParams: [...any, string?, string?]): void;
error(message: any, ...optionalParams: any[]) {
@@ -281,6 +282,19 @@ export class ConsoleLogger implements LoggerService {
}
private getContextAndStackAndMessagesToPrint(args: unknown[]) {
if (args.length === 2) {
return this.isStackFormat(args[1])
? {
messages: [args[0]],
stack: args[1] as string,
context: this.context,
}
: {
messages: [args[0]],
context: args[1] as string,
};
}
const { messages, context } = this.getContextAndMessagesToPrint(args);
if (messages?.length <= 1) {
return { messages, context };
@@ -298,6 +312,14 @@ export class ConsoleLogger implements LoggerService {
};
}
private isStackFormat(stack: unknown) {
if (!isString(stack) && !isUndefined(stack)) {
return false;
}
return /^(.)+\n\s+at .+:\d+:\d+$/.test(stack);
}
private getColorByLogLevel(level: LogLevel) {
switch (level) {
case 'debug':

View File

@@ -188,6 +188,7 @@ export class Logger implements LoggerService {
/**
* Write an 'error' level log.
*/
static error(message: any, stackOrContext?: string): void;
static error(message: any, context?: string): void;
static error(message: any, stack?: string, context?: string): void;
static error(

View File

@@ -1,8 +1,8 @@
import { LogLevel } from '../logger.service';
const LOG_LEVEL_VALUES: Record<LogLevel, number> = {
debug: 0,
verbose: 1,
verbose: 0,
debug: 1,
log: 2,
warn: 3,
error: 4,

View File

@@ -72,6 +72,14 @@ describe('FileTypeValidator', () => {
expect(fileTypeValidator.isValid(requestFile)).to.equal(false);
});
it('should return false when no file provided', () => {
const fileTypeValidator = new FileTypeValidator({
fileType: 'image/jpeg',
});
expect(fileTypeValidator.isValid()).to.equal(false);
});
});
describe('buildErrorMessage', () => {

View File

@@ -40,6 +40,14 @@ describe('MaxFileSizeValidator', () => {
expect(maxFileSizeValidator.isValid(requestFile)).to.equal(false);
});
it('should return true when no file provided', () => {
const maxFileSizeValidator = new MaxFileSizeValidator({
maxSize: oneKb,
});
expect(maxFileSizeValidator.isValid()).to.equal(true);
});
});
describe('buildErrorMessage', () => {

View File

@@ -18,6 +18,12 @@ describe('ParseBoolPipe', () => {
expect(await target.transform(false, {} as ArgumentMetadata)).to.be
.false;
});
it('should not throw an error if the value is undefined/null and optional is true', async () => {
const target = new ParseBoolPipe({ optional: true });
const value = await target.transform(undefined, {} as ArgumentMetadata);
expect(value).to.equal(undefined);
});
});
describe('when validation fails', () => {
it('should throw an error', async () => {

View File

@@ -14,6 +14,7 @@ describe('ParseEnumPipe', () => {
Up = 'UP',
}
let target: ParseEnumPipe;
beforeEach(() => {
target = new ParseEnumPipe(Direction, {
exceptionFactory: (error: any) => new CustomTestError(),
@@ -26,6 +27,12 @@ describe('ParseEnumPipe', () => {
Direction.Up,
);
});
it('should not throw an error if enumType is undefined/null and optional is true', async () => {
const target = new ParseEnumPipe('DOWN', { optional: true });
const value = await target.transform(undefined, {} as ArgumentMetadata);
expect(value).to.equal(undefined);
});
});
describe('when validation fails', () => {
it('should throw an error', async () => {
@@ -33,6 +40,16 @@ describe('ParseEnumPipe', () => {
target.transform('DOWN', {} as ArgumentMetadata),
).to.be.rejectedWith(CustomTestError);
});
it('should throw an error if enumType is wrong and optional is true', async () => {
target = new ParseEnumPipe(Direction, {
exceptionFactory: (error: any) => new CustomTestError(),
optional: true,
});
return expect(
target.transform('DOWN', {} as ArgumentMetadata),
).to.be.rejectedWith(CustomTestError);
});
});
});
describe('constructor', () => {

View File

@@ -25,6 +25,11 @@ describe('ParseFloatPipe', () => {
parseFloat(num),
);
});
it('should not throw an error if the value is undefined/null and optional is true', async () => {
const target = new ParseFloatPipe({ optional: true });
const value = await target.transform(undefined, {} as ArgumentMetadata);
expect(value).to.equal(undefined);
});
});
describe('when validation fails', () => {
it('should throw an error', async () => {

View File

@@ -30,6 +30,11 @@ describe('ParseIntPipe', () => {
-3,
);
});
it('should not throw an error if the value is undefined/null and optional is true', async () => {
const target = new ParseIntPipe({ optional: true });
const value = await target.transform(undefined, {} as ArgumentMetadata);
expect(value).to.equal(undefined);
});
});
describe('when validation fails', () => {
it('should throw an error', async () => {

View File

@@ -41,6 +41,11 @@ describe('ParseUUIDPipe', () => {
target = new ParseUUIDPipe({ version: '5', exceptionFactory });
expect(await target.transform(v5, {} as ArgumentMetadata)).to.equal(v5);
});
it('should not throw an error if the value is undefined/null and optional is true', async () => {
const target = new ParseUUIDPipe({ optional: true });
const value = await target.transform(undefined, {} as ArgumentMetadata);
expect(value).to.equal(undefined);
});
});
describe('when validation fails', () => {

View File

@@ -70,7 +70,7 @@ describe('Logger', () => {
);
});
it('should print one error to the console', () => {
it('should print one error to the console with context', () => {
const message = 'random error';
const context = 'RandomContext';
@@ -83,6 +83,20 @@ describe('Logger', () => {
expect(processStderrWriteSpy.firstCall.firstArg).to.include(message);
});
it('should print one error to the console with stacktrace', () => {
const message = 'random error';
const stacktrace = 'Error: message\n at <anonymous>:1:2';
Logger.error(message, stacktrace);
expect(processStderrWriteSpy.calledTwice).to.be.true;
expect(processStderrWriteSpy.firstCall.firstArg).to.not.include(`[]`);
expect(processStderrWriteSpy.firstCall.firstArg).to.include(message);
expect(processStderrWriteSpy.secondCall.firstArg).to.equal(
stacktrace + '\n',
);
});
it('should print one error without context to the console', () => {
const message = 'random error without context';
@@ -354,7 +368,7 @@ describe('Logger', () => {
);
});
it('should print one error to the console', () => {
it('should print one error to the console with context', () => {
const message = 'random error';
const context = 'RandomContext';
@@ -367,6 +381,20 @@ describe('Logger', () => {
expect(processStderrWriteSpy.firstCall.firstArg).to.include(message);
});
it('should print one error to the console with stacktrace', () => {
const message = 'random error';
const stacktrace = 'Error: message\n at <anonymous>:1:2';
logger.error(message, stacktrace);
expect(processStderrWriteSpy.calledTwice).to.be.true;
expect(processStderrWriteSpy.firstCall.firstArg).to.not.include(`[]`);
expect(processStderrWriteSpy.firstCall.firstArg).to.include(message);
expect(processStderrWriteSpy.secondCall.firstArg).to.equal(
stacktrace + '\n',
);
});
it('should print one error without context to the console', () => {
const message = 'random error without context';

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

@@ -59,6 +59,7 @@ export class ExecutionContextHost implements ExecutionContext {
return Object.assign(this, {
getClient: () => this.getArgByIndex(0),
getData: () => this.getArgByIndex(1),
getPattern: () => this.getArgByIndex(this.getArgs().length - 1),
});
}
}

View File

@@ -5,7 +5,8 @@ import {
Controller,
} from '@nestjs/common/interfaces';
import { isEmpty } from '@nestjs/common/utils/shared.utils';
import { defer, from as fromPromise, Observable } from 'rxjs';
import { AsyncResource } from 'async_hooks';
import { Observable, defer, from as fromPromise } from 'rxjs';
import { mergeAll, switchMap } from 'rxjs/operators';
import { ExecutionContextHost } from '../helpers/execution-context-host';
@@ -26,7 +27,7 @@ export class InterceptorsConsumer {
const nextFn = async (i = 0) => {
if (i >= interceptors.length) {
return this.transformDeferred(next);
return defer(AsyncResource.bind(() => this.transformDeferred(next)));
}
const handler: CallHandler = {
handle: () => fromPromise(nextFn(i + 1)).pipe(mergeAll()),

View File

@@ -9,7 +9,7 @@ export class MetadataScanner {
private readonly cachedScannedPrototypes: Map<object, string[]> = new Map();
/**
* @deprecated
* @deprecated
* @see {@link getAllMethodNames}
* @see getAllMethodNames
*/
@@ -62,7 +62,7 @@ export class MetadataScanner {
}
/**
* @deprecated
* @deprecated
* @see {@link getAllMethodNames}
* @see getAllMethodNames
*/

View File

@@ -9,6 +9,7 @@ import {
MiddlewareConfiguration,
RouteInfo,
} from '@nestjs/common/interfaces/middleware';
import { stripEndSlash } from '@nestjs/common/utils/shared.utils';
import { iterate } from 'iterare';
import { RouteInfoPathExtractor } from './route-info-path-extractor';
import { RoutesMapper } from './routes-mapper';
@@ -100,21 +101,27 @@ export class MiddlewareBuilder implements MiddlewareConsumer {
const routesWithRegex = routes
.filter(route => route.path.includes(':'))
.map(route => ({
method: route.method,
path: route.path,
regex: new RegExp(
'^(' + route.path.replace(regexMatchParams, wildcard) + ')$',
'g',
),
}));
return routes.filter(route => {
const isOverlapped = (v: { path: string; regex: RegExp }) => {
return route.path !== v.path && route.path.match(v.regex);
const isOverlapped = (item: { regex: RegExp } & RouteInfo): boolean => {
if (route.method !== item.method) {
return false;
}
const normalizedRoutePath = stripEndSlash(route.path);
return (
normalizedRoutePath !== item.path &&
item.regex.test(normalizedRoutePath)
);
};
const routeMatch = routesWithRegex.find(isOverlapped);
if (routeMatch === undefined) {
return route;
}
return routeMatch === undefined;
});
}
};

View File

@@ -66,7 +66,7 @@ export class MiddlewareModule<
config,
appRef,
);
this.routesMapper = new RoutesMapper(container);
this.routesMapper = new RoutesMapper(container, config);
this.resolver = new MiddlewareResolver(middlewareContainer, injector);
this.routeInfoPathExtractor = new RouteInfoPathExtractor(config);
this.injector = injector;

View File

@@ -1,35 +1,48 @@
import { MODULE_PATH, PATH_METADATA } from '@nestjs/common/constants';
import { RouteInfo, Type } from '@nestjs/common/interfaces';
import {
MODULE_PATH,
PATH_METADATA,
VERSION_METADATA,
} from '@nestjs/common/constants';
import {
RouteInfo,
Type,
VERSION_NEUTRAL,
VersionValue,
} from '@nestjs/common/interfaces';
import {
addLeadingSlash,
isString,
isUndefined,
} from '@nestjs/common/utils/shared.utils';
import { ApplicationConfig } from '../application-config';
import { NestContainer } from '../injector/container';
import { Module } from '../injector/module';
import { MetadataScanner } from '../metadata-scanner';
import { PathsExplorer } from '../router/paths-explorer';
import { PathsExplorer, RouteDefinition } from '../router/paths-explorer';
import { targetModulesByContainer } from '../router/router-module';
export class RoutesMapper {
private readonly pathsExplorer: PathsExplorer;
constructor(private readonly container: NestContainer) {
constructor(
private readonly container: NestContainer,
private readonly applicationConfig: ApplicationConfig,
) {
this.pathsExplorer = new PathsExplorer(new MetadataScanner());
}
public mapRouteToRouteInfo(
route: Type<any> | RouteInfo | string,
controllerOrRoute: Type<any> | RouteInfo | string,
): RouteInfo[] {
if (isString(route)) {
return this.getRouteInfoFromPath(route);
if (isString(controllerOrRoute)) {
return this.getRouteInfoFromPath(controllerOrRoute);
}
const routePathOrPaths = this.getRoutePath(route);
if (this.isRouteInfo(routePathOrPaths, route)) {
return this.getRouteInfoFromObject(route);
const routePathOrPaths = this.getRoutePath(controllerOrRoute);
if (this.isRouteInfo(routePathOrPaths, controllerOrRoute)) {
return this.getRouteInfoFromObject(controllerOrRoute);
}
return this.getRouteInfoFromController(route, routePathOrPaths);
return this.getRouteInfoFromController(controllerOrRoute, routePathOrPaths);
}
private getRouteInfoFromPath(routePath: string): RouteInfo[] {
@@ -62,33 +75,47 @@ export class RoutesMapper {
Object.create(controller),
controller.prototype,
);
const controllerVersion = this.getVersionMetadata(controller);
const versioningConfig = this.applicationConfig.getVersioning();
const moduleRef = this.getHostModuleOfController(controller);
const modulePath = this.getModulePath(moduleRef?.metatype);
const concatPaths = <T>(acc: T[], currentValue: T[]) =>
acc.concat(currentValue);
const toUndefinedIfNeural = (version: VersionValue) =>
version === VERSION_NEUTRAL ? undefined : version;
const toRouteInfo = (item: RouteDefinition, prefix: string) =>
item.path
?.map(p => {
let endpointPath = modulePath ?? '';
endpointPath += this.normalizeGlobalPath(prefix) + addLeadingSlash(p);
const routeInfo: RouteInfo = {
path: endpointPath,
method: item.requestMethod,
};
const version = item.version ?? controllerVersion;
if (version && versioningConfig) {
if (typeof version !== 'string' && Array.isArray(version)) {
return version.map(v => ({
...routeInfo,
version: toUndefinedIfNeural(v),
}));
}
routeInfo.version = toUndefinedIfNeural(version);
}
return routeInfo;
})
.flat() as RouteInfo[];
return []
.concat(routePath)
.map(routePath =>
controllerPaths
.map(item =>
item.path?.map(p => {
let path = modulePath ?? '';
path += this.normalizeGlobalPath(routePath) + addLeadingSlash(p);
const routeInfo: RouteInfo = {
path,
method: item.requestMethod,
};
if (item.version) {
routeInfo.version = item.version;
}
return routeInfo;
}),
)
.map(item => toRouteInfo(item, routePath))
.reduce(concatPaths, []),
)
.reduce(concatPaths, []);
@@ -141,4 +168,16 @@ export class RoutesMapper {
);
return modulePath ?? Reflect.getMetadata(MODULE_PATH, metatype);
}
private getVersionMetadata(
metatype: Type<unknown> | Function,
): VersionValue | undefined {
const versioningConfig = this.applicationConfig.getVersioning();
if (versioningConfig) {
return (
Reflect.getMetadata(VERSION_METADATA, metatype) ??
versioningConfig.defaultVersion
);
}
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "9.4.0",
"version": "10.0.4",
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -32,17 +32,17 @@
"fast-safe-stringify": "2.1.1",
"iterare": "1.2.1",
"path-to-regexp": "3.2.0",
"tslib": "2.5.0",
"tslib": "2.6.0",
"uid": "2.0.2"
},
"devDependencies": {
"@nestjs/common": "9.4.0"
"@nestjs/common": "10.0.4"
},
"peerDependencies": {
"@nestjs/common": "^9.0.0",
"@nestjs/microservices": "^9.0.0",
"@nestjs/platform-express": "^9.0.0",
"@nestjs/websockets": "^9.0.0",
"@nestjs/common": "^10.0.0",
"@nestjs/microservices": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/websockets": "^10.0.0",
"reflect-metadata": "^0.1.12",
"rxjs": "^7.1.0"
},

View File

@@ -386,7 +386,9 @@ export class DependenciesScanner {
const moduleImports = moduleRef.imports;
moduleImports.forEach(importedModuleRef => {
if (importedModuleRef) {
importedModuleRef.distance = distance;
if (distance > importedModuleRef.distance) {
importedModuleRef.distance = distance;
}
calculateDistance(importedModuleRef, distance + 1);
}
});

View File

@@ -16,7 +16,7 @@ describe('Error Messages', () => {
it('should display class', () => {
const expectedResult =
stringCleaner(`Nest can't resolve dependencies of the CatService (?, CatService). Please make sure that the argument dependency at index [0] is available in the current context.
Potential solutions:
- If dependency is a provider, is it part of the current Module?
- If dependency is exported from a separate @Module, is that module imported within Module?
@@ -39,7 +39,7 @@ describe('Error Messages', () => {
it('should display the provide token', () => {
const expectedResult =
stringCleaner(`Nest can't resolve dependencies of the CatService (?, MY_TOKEN). Please make sure that the argument dependency at index [0] is available in the current context.
Potential solutions:
- If dependency is a provider, is it part of the current Module?
- If dependency is exported from a separate @Module, is that module imported within Module?
@@ -60,7 +60,7 @@ describe('Error Messages', () => {
it('should display the function name', () => {
const expectedResult =
stringCleaner(`Nest can't resolve dependencies of the CatService (?, CatFunction). Please make sure that the argument dependency at index [0] is available in the current context.
Potential solutions:
- If dependency is a provider, is it part of the current Module?
- If dependency is exported from a separate @Module, is that module imported within Module?
@@ -81,7 +81,7 @@ describe('Error Messages', () => {
it('should use "+" if unknown dependency name', () => {
const expectedResult =
stringCleaner(`Nest can't resolve dependencies of the CatService (?, +). Please make sure that the argument dependency at index [0] is available in the current context.
Potential solutions:
- If dependency is a provider, is it part of the current Module?
- If dependency is exported from a separate @Module, is that module imported within Module?
@@ -102,7 +102,7 @@ describe('Error Messages', () => {
it('should display the module name', () => {
const expectedResult =
stringCleaner(`Nest can't resolve dependencies of the CatService (?, MY_TOKEN). Please make sure that the argument dependency at index [0] is available in the TestModule context.
Potential solutions:
- Is TestModule a valid NestJS module?
- If dependency is a provider, is it part of the current TestModule?
@@ -136,7 +136,7 @@ describe('Error Messages', () => {
it('should display the symbol name of the provider', () => {
const expectedResult =
stringCleaner(`Nest can't resolve dependencies of the Symbol(CatProvider) (?). Please make sure that the argument dependency at index [0] is available in the current context.
Potential solutions:
- If dependency is a provider, is it part of the current Module?
- If dependency is exported from a separate @Module, is that module imported within Module?
@@ -157,7 +157,7 @@ describe('Error Messages', () => {
it('should display the symbol dependency of the provider', () => {
const expectedResult =
stringCleaner(`Nest can't resolve dependencies of the CatProvider (?, Symbol(DogProvider)). Please make sure that the argument dependency at index [0] is available in the current context.
Potential solutions:
- If dependency is a provider, is it part of the current Module?
- If dependency is exported from a separate @Module, is that module imported within Module?
@@ -201,7 +201,7 @@ Scope [AppModule -> CatsModule]`);
it('should display the module name with the invalid index and scope', () => {
const expectedMessage =
stringCleaner(`Nest cannot create the CatsModule instance.
Received an unexpected value at index [0] of the CatsModule "imports" array.
Received an unexpected value at index [0] of the CatsModule "imports" array.
Scope [AppModule -> CatsModule]`);

View File

@@ -1,7 +1,7 @@
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
import { AsyncLocalStorage } from 'async_hooks';
import { expect } from 'chai';
import { Observable, lastValueFrom, of } from 'rxjs';
import { Observable, lastValueFrom, of, retry } from 'rxjs';
import * as sinon from 'sinon';
import { InterceptorsConsumer } from '../../interceptors/interceptors-consumer';
@@ -85,8 +85,8 @@ describe('InterceptorsConsumer', () => {
});
});
describe('AsyncLocalStorage', () => {
it('Allows an interceptor to set values in AsyncLocalStorage that are accesible from the controller', async () => {
describe('when AsyncLocalStorage is used', () => {
it('should allow an interceptor to set values in AsyncLocalStorage that are accesible from the controller', async () => {
const storage = new AsyncLocalStorage<Record<string, any>>();
class StorageInterceptor implements NestInterceptor {
intercept(
@@ -96,7 +96,9 @@ describe('InterceptorsConsumer', () => {
return storage.run({ value: 'hello' }, () => next.handle());
}
}
const next = () => Promise.resolve(storage.getStore().value);
const next = () => {
return Promise.resolve(storage.getStore().value);
};
const intercepted = await consumer.intercept(
[new StorageInterceptor()],
null,
@@ -108,6 +110,35 @@ describe('InterceptorsConsumer', () => {
expect(result).to.equal('hello');
});
});
describe('when retrying is enabled', () => {
it('should retry a specified amount of times', async () => {
let count = 0;
const next = () => {
count++;
if (count < 3) {
return Promise.reject(new Error('count not reached'));
}
return Promise.resolve(count);
};
class RetryInterceptor implements NestInterceptor {
intercept(
_context: ExecutionContext,
next: CallHandler<any>,
): Observable<any> | Promise<Observable<any>> {
return next.handle().pipe(retry(4));
}
}
const intercepted = await consumer.intercept(
[new RetryInterceptor()],
null,
{ constructor: null },
null,
next,
);
expect(await transformToResult(intercepted)).to.equal(3);
});
});
});
describe('createContext', () => {
it('should return execution context object', () => {

View File

@@ -1,5 +1,18 @@
import { expect } from 'chai';
import { Controller, Get, RequestMethod, Version } from '../../../common';
import {
Controller,
Delete,
Get,
Head,
Options,
Patch,
Post,
Put,
RequestMethod,
Version,
VersioningType,
} from '../../../common';
import { MiddlewareConfigProxy } from '../../../common/interfaces';
import { ApplicationConfig } from '../../application-config';
import { NestContainer } from '../../injector/container';
import { MiddlewareBuilder } from '../../middleware/builder';
@@ -13,23 +26,26 @@ describe('MiddlewareBuilder', () => {
beforeEach(() => {
const container = new NestContainer();
const appConfig = new ApplicationConfig();
appConfig.enableVersioning({ type: VersioningType.URI });
builder = new MiddlewareBuilder(
new RoutesMapper(container),
new RoutesMapper(container, appConfig),
new NoopHttpAdapter({}),
new RouteInfoPathExtractor(appConfig),
);
});
describe('apply', () => {
let configProxy;
beforeEach(() => {
configProxy = builder.apply([]);
});
it('should return configuration proxy', () => {
const configProxy = builder.apply([]);
const metatype = (MiddlewareBuilder as any).ConfigProxy;
expect(configProxy instanceof metatype).to.be.true;
});
describe('configuration proxy', () => {
describe('when "forRoutes()" called', () => {
let configProxy: MiddlewareConfigProxy;
beforeEach(() => {
configProxy = builder.apply([]);
});
@Controller('path')
class Test {
@Get('route')
@@ -40,6 +56,7 @@ describe('MiddlewareBuilder', () => {
public getAllVersioned() {}
}
const route = { path: '/test', method: RequestMethod.GET };
it('should store configuration passed as argument', () => {
configProxy.forRoutes(route, Test);
@@ -64,6 +81,106 @@ describe('MiddlewareBuilder', () => {
},
]);
});
@Controller('users')
class UsersController {
@Head('rsvp')
hRsvp() {}
@Options('rsvp')
oRsvp() {}
@Get('rsvp')
gRsvp() {}
@Post('rsvp')
pRsvp() {}
@Put('rsvp')
puRsvp() {}
@Patch('rsvp')
ptRsvp() {}
@Delete('rsvp')
dRsvp() {}
@Post()
create() {}
@Get()
findAll() {}
@Get(':id')
findOne() {}
@Patch(':id')
update() {}
@Delete(':id')
remove() {}
}
it('should remove overlapping routes', () => {
configProxy.forRoutes(UsersController);
expect(builder.build()).to.deep.equal([
{
middleware: [],
forRoutes: [
{
method: RequestMethod.HEAD,
path: '/users/rsvp',
},
{
method: RequestMethod.OPTIONS,
path: '/users/rsvp',
},
{
method: RequestMethod.POST,
path: '/users/rsvp',
},
{
method: RequestMethod.PUT,
path: '/users/rsvp',
},
{
method: RequestMethod.POST,
path: '/users/',
},
{
method: RequestMethod.GET,
path: '/users/',
},
{
method: RequestMethod.GET,
path: '/users/:id',
},
{
method: RequestMethod.PATCH,
path: '/users/:id',
},
{
method: RequestMethod.DELETE,
path: '/users/:id',
},
// Overlapping:
// {
// method: RequestMethod.GET,
// path: '/users/rsvp',
// },
// {
// method: RequestMethod.PATCH,
// path: '/users/rsvp',
// },
// {
// method: RequestMethod.DELETE,
// path: '/users/rsvp',
// },
],
},
]);
});
});
});
});

View File

@@ -1,12 +1,13 @@
import { Version } from '../../../common';
import { MiddlewareConfiguration } from '../../../common/interfaces';
import { expect } from 'chai';
import { Version, VersioningType } from '../../../common';
import { Controller } from '../../../common/decorators/core/controller.decorator';
import {
Get,
RequestMapping,
} from '../../../common/decorators/http/request-mapping.decorator';
import { RequestMethod } from '../../../common/enums/request-method.enum';
import { MiddlewareConfiguration } from '../../../common/interfaces';
import { ApplicationConfig } from '../../application-config';
import { NestContainer } from '../../injector/container';
import { RoutesMapper } from '../../middleware/routes-mapper';
@@ -26,7 +27,9 @@ describe('RoutesMapper', () => {
let mapper: RoutesMapper;
beforeEach(() => {
mapper = new RoutesMapper(new NestContainer());
const appConfig = new ApplicationConfig();
appConfig.enableVersioning({ type: VersioningType.URI });
mapper = new RoutesMapper(new NestContainer(), appConfig);
});
it('should map @Controller() to "ControllerMetadata" in forRoutes', () => {
@@ -81,4 +84,47 @@ describe('RoutesMapper', () => {
{ path: '/test2/another', method: RequestMethod.DELETE },
]);
});
@Controller({
version: '1',
path: 'versioned',
})
class VersionedController {
@Get()
hello() {
return 'Hello from "VersionedController"!';
}
@Version('2')
@Get('/override')
override() {
return 'Hello from "VersionedController"!';
}
}
@Controller({
version: ['1', '2'],
})
class MultipleVersionController {
@Get('multiple')
multiple() {
return 'Multiple Versions 1 or 2';
}
}
it('should map a versioned controller to the corresponding route info objects (single version)', () => {
expect(mapper.mapRouteToRouteInfo(VersionedController)).to.deep.equal([
{ path: '/versioned/', version: '1', method: RequestMethod.GET },
{ path: '/versioned/override', version: '2', method: RequestMethod.GET },
]);
});
it('should map a versioned controller to the corresponding route info objects (multiple versions)', () => {
expect(mapper.mapRouteToRouteInfo(MultipleVersionController)).to.deep.equal(
[
{ path: '/multiple', version: '1', method: RequestMethod.GET },
{ path: '/multiple', version: '2', method: RequestMethod.GET },
],
);
});
});

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

@@ -163,12 +163,13 @@ export class ClientKafka extends ClientProxy {
}
const consumerSubscribeOptions = this.options.subscribe || {};
const subscribeTo = async (responsePattern: string) =>
this.consumer.subscribe({
topic: responsePattern,
if (this.responsePatterns.length > 0) {
await this.consumer.subscribe({
...consumerSubscribeOptions,
topics: this.responsePatterns,
});
await Promise.all(this.responsePatterns.map(subscribeTo));
}
await this.consumer.run(
Object.assign(this.options.run || {}, {
@@ -299,12 +300,12 @@ export class ClientKafka extends ClientProxy {
const consumerAssignments: { [key: string]: number } = {};
// only need to set the minimum
Object.keys(data.payload.memberAssignment).forEach(memberId => {
const minimumPartition = Math.min(
...data.payload.memberAssignment[memberId],
);
Object.keys(data.payload.memberAssignment).forEach(topic => {
const memberPartitions = data.payload.memberAssignment[topic];
consumerAssignments[memberId] = minimumPartition;
if (memberPartitions.length) {
consumerAssignments[topic] = Math.min(...memberPartitions);
}
});
this.consumerAssignments = consumerAssignments;

View File

@@ -40,6 +40,11 @@ export const RQM_DEFAULT_QUEUE_OPTIONS = {};
export const RQM_DEFAULT_NOACK = true;
export const RQM_DEFAULT_PERSISTENT = false;
export const RQM_DEFAULT_NO_ASSERT = false;
export const RQM_NO_EVENT_HANDLER = (
text: TemplateStringsArray,
pattern: string,
) =>
`An unsupported event was received. It has been acknowledged, so it will not be re-delivered. Pattern: ${pattern}`;
export const GRPC_DEFAULT_PROTO_LOADER = '@grpc/proto-loader';
export const NO_EVENT_HANDLER = (text: TemplateStringsArray, pattern: string) =>

View File

@@ -240,7 +240,7 @@ export interface KafkaOptions {
client?: KafkaConfig;
consumer?: ConsumerConfig;
run?: Omit<ConsumerRunConfig, 'eachBatch' | 'eachMessage'>;
subscribe?: Omit<ConsumerSubscribeTopics, 'topic'>;
subscribe?: Omit<ConsumerSubscribeTopics, 'topics'>;
producer?: ProducerConfig;
send?: Omit<ProducerRecord, 'topic' | 'messages'>;
serializer?: Serializer;

View File

@@ -16,26 +16,29 @@ import {
@Module({})
export class ClientsModule {
static register(options: ClientsModuleOptions): DynamicModule {
const clients = (options || []).map(item => ({
const clientsOptions = !Array.isArray(options) ? options.clients : options;
const clients = (clientsOptions || []).map(item => ({
provide: item.name,
useValue: this.assignOnAppShutdownHook(ClientProxyFactory.create(item)),
}));
return {
module: ClientsModule,
global: !Array.isArray(options) && options.isGlobal,
providers: clients,
exports: clients,
};
}
static registerAsync(options: ClientsModuleAsyncOptions): DynamicModule {
const providers: Provider[] = options.reduce(
const clientsOptions = !Array.isArray(options) ? options.clients : options;
const providers: Provider[] = clientsOptions.reduce(
(accProviders: Provider[], item) =>
accProviders
.concat(this.createAsyncProviders(item))
.concat(item.extraProviders || []),
[],
);
const imports = options.reduce(
const imports = clientsOptions.reduce(
(accImports, option) =>
option.imports && !accImports.includes(option.imports)
? accImports.concat(option.imports)
@@ -44,6 +47,7 @@ export class ClientsModule {
);
return {
module: ClientsModule,
global: !Array.isArray(options) && options.isGlobal,
imports,
providers: providers,
exports: providers,

View File

@@ -7,7 +7,12 @@ export type ClientProviderOptions = ClientProvider & {
name: string | symbol;
};
export type ClientsModuleOptions = Array<ClientProviderOptions>;
export type ClientsModuleOptions =
| Array<ClientProviderOptions>
| {
clients: Array<ClientProviderOptions>;
isGlobal?: boolean;
};
export interface ClientsModuleOptionsFactory {
createClientOptions(): Promise<ClientProvider> | ClientProvider;
@@ -23,4 +28,9 @@ export interface ClientsProviderAsyncOptions
name: string | symbol;
}
export type ClientsModuleAsyncOptions = Array<ClientsProviderAsyncOptions>;
export type ClientsModuleAsyncOptions =
| Array<ClientsProviderAsyncOptions>
| {
clients: Array<ClientsProviderAsyncOptions>;
isGlobal?: boolean;
};

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/microservices",
"version": "9.4.0",
"version": "10.0.4",
"description": "Nest - modern, fast, powerful node.js web framework (@microservices)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -19,17 +19,17 @@
},
"dependencies": {
"iterare": "1.2.1",
"tslib": "2.5.0"
"tslib": "2.6.0"
},
"devDependencies": {
"@nestjs/common": "9.4.0",
"@nestjs/core": "9.4.0"
"@nestjs/common": "10.0.4",
"@nestjs/core": "10.0.4"
},
"peerDependencies": {
"@grpc/grpc-js": "*",
"@nestjs/common": "^9.0.0",
"@nestjs/core": "^9.0.0",
"@nestjs/websockets": "^9.0.0",
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/websockets": "^10.0.0",
"amqp-connection-manager": "*",
"amqplib": "*",
"cache-manager": "*",

View File

@@ -221,7 +221,7 @@ export class ServerGrpc extends Server implements CustomTransportStrategy {
return async (call: GrpcCall, callback: Function) => {
const handler = methodHandler(call.request, call.metadata, call);
this.transformToObservable(await handler).subscribe({
next: data => callback(null, data),
next: async data => callback(null, await data),
error: (err: any) => callback(err),
});
};

View File

@@ -122,12 +122,13 @@ export class ServerKafka extends Server implements CustomTransportStrategy {
public async bindEvents(consumer: Consumer) {
const registeredPatterns = [...this.messageHandlers.keys()];
const consumerSubscribeOptions = this.options.subscribe || {};
const subscribeToPattern = async (pattern: string) =>
consumer.subscribe({
topic: pattern,
if (registeredPatterns.length > 0) {
await this.consumer.subscribe({
...consumerSubscribeOptions,
topics: registeredPatterns,
});
await Promise.all(registeredPatterns.map(subscribeToPattern));
}
const consumerRunOptions = Object.assign(this.options.run || {}, {
eachMessage: this.getMessageHandler(),

View File

@@ -67,6 +67,7 @@ export class ServerMqtt extends Server implements CustomTransportStrategy {
public bindEvents(mqttClient: MqttClient) {
mqttClient.on(MESSAGE_EVENT, this.getMessageHandler(mqttClient).bind(this));
const registeredPatterns = [...this.messageHandlers.keys()];
registeredPatterns.forEach(pattern => {
const { isEventHandler } = this.messageHandlers.get(pattern);

View File

@@ -17,6 +17,7 @@ import {
RQM_DEFAULT_QUEUE,
RQM_DEFAULT_QUEUE_OPTIONS,
RQM_DEFAULT_URL,
RQM_NO_EVENT_HANDLER,
} from '../constants';
import { RmqContext } from '../ctx-host';
import { Transport } from '../enums';
@@ -25,6 +26,7 @@ import { CustomTransportStrategy, RmqOptions } from '../interfaces';
import {
IncomingRequest,
OutgoingResponse,
ReadPacket,
} from '../interfaces/packet.interface';
import { RmqRecordSerializer } from '../serializers/rmq-record.serializer';
import { Server } from './server';
@@ -42,6 +44,7 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
protected readonly urls: string[] | RmqUrl[];
protected readonly queue: string;
protected readonly prefetchCount: number;
protected readonly noAck: boolean;
protected readonly queueOptions: any;
protected readonly isGlobalPrefetchCount: boolean;
protected readonly noAssert: boolean;
@@ -54,6 +57,7 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
this.prefetchCount =
this.getOptionsProp(this.options, 'prefetchCount') ||
RQM_DEFAULT_PREFETCH_COUNT;
this.noAck = this.getOptionsProp(this.options, 'noAck', RQM_DEFAULT_NOACK);
this.isGlobalPrefetchCount =
this.getOptionsProp(this.options, 'isGlobalPrefetchCount') ||
RQM_DEFAULT_IS_GLOBAL_PREFETCH_COUNT;
@@ -141,8 +145,6 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
}
public async setupChannel(channel: any, callback: Function) {
const noAck = this.getOptionsProp(this.options, 'noAck', RQM_DEFAULT_NOACK);
if (!this.queueOptions.noAssert) {
await channel.assertQueue(this.queue, this.queueOptions);
}
@@ -151,7 +153,7 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
this.queue,
(msg: Record<string, any>) => this.handleMessage(msg, channel),
{
noAck,
noAck: this.noAck,
},
);
callback();
@@ -200,6 +202,19 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
response$ && this.send(response$, publish);
}
public async handleEvent(
pattern: string,
packet: ReadPacket,
context: RmqContext,
): Promise<any> {
const handler = this.getHandlerByPattern(pattern);
if (!handler && !this.noAck) {
this.channel.nack(context.getMessage(), false, false);
return this.logger.warn(RQM_NO_EVENT_HANDLER`${pattern}`);
}
return super.handleEvent(pattern, packet, context);
}
public sendMessage<T = any>(
message: T,
replyTo: any,

View File

@@ -395,6 +395,34 @@ describe('ClientKafka', () => {
},
);
});
it('should not update consumer assignments if there are no partitions assigned to consumer', async () => {
await client.connect();
const consumerAssignments: ConsumerGroupJoinEvent = {
id: 'id',
type: 'type',
timestamp: 1234567890,
payload: {
duration: 20,
groupId: 'group-id',
isLeader: true,
leaderId: 'member-1',
groupProtocol: 'RoundRobin',
memberId: 'member-1',
memberAssignment: {
'topic-a': [],
'topic-b': [3, 4, 5],
},
},
};
client['setConsumerAssignments'](consumerAssignments);
expect(client['consumerAssignments']).to.deep.eq({
'topic-b': 3,
});
});
});
describe('bindTopics', () => {
@@ -407,7 +435,7 @@ describe('ClientKafka', () => {
expect(subscribe.calledOnce).to.be.true;
expect(
subscribe.calledWith({
topic: replyTopic,
topics: [replyTopic],
}),
).to.be.true;
expect(run.calledOnce).to.be.true;
@@ -424,7 +452,7 @@ describe('ClientKafka', () => {
expect(subscribe.calledOnce).to.be.true;
expect(
subscribe.calledWith({
topic: replyTopic,
topics: [replyTopic],
fromBeginning: true,
}),
).to.be.true;

View File

@@ -1,7 +1,7 @@
import { Logger } from '@nestjs/common';
import { expect } from 'chai';
import { join } from 'path';
import { of } from 'rxjs';
import { of, ReplaySubject, Subject } from 'rxjs';
import * as sinon from 'sinon';
import { CANCEL_EVENT } from '../../constants';
import { InvalidGrpcPackageException } from '../../errors/invalid-grpc-package.exception';
@@ -442,6 +442,29 @@ describe('ServerGrpc', () => {
expect(native.called).to.be.true;
expect(callback.called).to.be.true;
});
it('should await when a promise is return by the native', async () => {
const call = { write: sinon.spy(), end: sinon.spy() };
const callback = sinon.spy();
const original = { native: Function };
const mock = sinon.mock(original);
mock
.expects('native')
.once()
.returns(
(() => {
const sub = new ReplaySubject<any>(1);
sub.next(new Promise(resolve => resolve({ foo: 'bar' })));
return sub.asObservable();
})(),
);
await server.createUnaryServiceMethod(original.native)(call, callback);
mock.verify();
expect(callback.calledWith(null, { foo: 'bar' })).to.be.true;
});
});
});

View File

@@ -190,7 +190,7 @@ describe('ServerKafka', () => {
expect(subscribe.called).to.be.true;
expect(
subscribe.calledWith({
topic: pattern,
topics: [pattern],
}),
).to.be.true;
@@ -214,7 +214,7 @@ describe('ServerKafka', () => {
expect(subscribe.called).to.be.true;
expect(
subscribe.calledWith({
topic: pattern,
topics: [pattern],
fromBeginning: true,
}),
).to.be.true;

View File

@@ -3,6 +3,7 @@ import * as sinon from 'sinon';
import { NO_MESSAGE_HANDLER } from '../../constants';
import { BaseRpcContext } from '../../ctx-host/base-rpc.context';
import { ServerRMQ } from '../../server/server-rmq';
import { RmqContext } from '../../ctx-host';
describe('ServerRMQ', () => {
let server: ServerRMQ;
@@ -99,10 +100,15 @@ describe('ServerRMQ', () => {
data: 'tests',
id: '3',
});
const channel = {
nack: sinon.spy(),
};
let sendMessageStub: sinon.SinonStub;
beforeEach(() => {
sendMessageStub = sinon.stub(server, 'sendMessage').callsFake(() => ({}));
(server as any).channel = channel;
});
it('should call "handleEvent" if identifier is not present', async () => {
const handleEventSpy = sinon.spy(server, 'handleEvent');
@@ -223,9 +229,33 @@ describe('ServerRMQ', () => {
server.handleEvent(
channel,
{ pattern: '', data },
new BaseRpcContext([]),
new RmqContext([{}, {}, '']),
);
expect(handler.calledWith(data)).to.be.true;
});
it('should negative acknowledge without retrying if key does not exists in handlers object and noAck option is false', () => {
const nack = sinon.spy();
const message = { pattern: 'no-exists', data };
(server as any).channel = {
nack,
};
(server as any).noAck = false;
server.handleEvent(channel, message, new RmqContext([message, '', '']));
expect(nack.calledWith(message, false, false)).to.be.true;
});
it('should not negative acknowledge if key does not exists in handlers object but noAck option is true', () => {
const nack = sinon.spy();
const message = { pattern: 'no-exists', data };
(server as any).channel = {
nack,
};
(server as any).noAck = true;
server.handleEvent(channel, message, new RmqContext([message, '', '']));
expect(nack.calledWith(message, false, false)).not.to.be.true;
});
});
});

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

@@ -16,6 +16,11 @@ import { transformException } from '../multer/multer.utils';
type MulterInstance = any;
/**
* @param localOptions
*
* @publicApi
*/
export function AnyFilesInterceptor(
localOptions?: MulterOptions,
): Type<NestInterceptor> {

View File

@@ -19,6 +19,11 @@ import { transformException } from '../multer/multer.utils';
type MulterInstance = any;
/**
* @param uploadFields
* @param localOptions
* @publicApi
*/
export function FileFieldsInterceptor(
uploadFields: MulterField[],
localOptions?: MulterOptions,

View File

@@ -16,6 +16,12 @@ import { transformException } from '../multer/multer.utils';
type MulterInstance = any;
/**
* @param fieldName
* @param localOptions
*
* @publicApi
*/
export function FileInterceptor(
fieldName: string,
localOptions?: MulterOptions,

View File

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

View File

@@ -2,3 +2,4 @@ export * from './any-files.interceptor';
export * from './file-fields.interceptor';
export * from './file.interceptor';
export * from './files.interceptor';
export * from './no-files.interceptor';

View File

@@ -0,0 +1,61 @@
import {
CallHandler,
ExecutionContext,
Inject,
mixin,
NestInterceptor,
Optional,
Type,
} from '@nestjs/common';
import * as multer from 'multer';
import { Observable } from 'rxjs';
import { MULTER_MODULE_OPTIONS } from '../files.constants';
import { MulterModuleOptions } from '../interfaces';
import { MulterOptions } from '../interfaces/multer-options.interface';
import { transformException } from '../multer/multer.utils';
type MulterInstance = any;
/**
*
* @param localOptions
* @publicApi
*/
export function NoFilesInterceptor(
localOptions?: MulterOptions,
): Type<NestInterceptor> {
class MixinInterceptor implements NestInterceptor {
protected multer: MulterInstance;
constructor(
@Optional()
@Inject(MULTER_MODULE_OPTIONS)
options: MulterModuleOptions = {},
) {
this.multer = (multer as any)({
...options,
...localOptions,
});
}
async intercept(
context: ExecutionContext,
next: CallHandler,
): Promise<Observable<any>> {
const ctx = context.switchToHttp();
await new Promise<void>((resolve, reject) =>
this.multer.none()(ctx.getRequest(), ctx.getResponse(), (err: any) => {
if (err) {
const error = transformException(err);
return reject(error);
}
resolve();
}),
);
return next.handle();
}
}
const Interceptor = mixin(MixinInterceptor);
return Interceptor;
}

View File

@@ -3,10 +3,17 @@ import { MulterOptions } from './multer-options.interface';
export type MulterModuleOptions = MulterOptions;
/**
* @publicApi
*/
export interface MulterOptionsFactory {
createMulterOptions(): Promise<MulterModuleOptions> | MulterModuleOptions;
}
/**
* @publicApi
*/
export interface MulterModuleAsyncOptions
extends Pick<ModuleMetadata, 'imports'> {
useExisting?: Type<MulterOptionsFactory>;

View File

@@ -1,5 +1,7 @@
/**
* @see https://github.com/expressjs/multer
*
* @publicApi
*/
export interface MulterOptions {
dest?: string;
@@ -55,6 +57,9 @@ export interface MulterOptions {
): void;
}
/**
* @publicApi
*/
export interface MulterField {
/** The field name. */
name: string;

View File

@@ -8,6 +8,9 @@ import {
} from './interfaces/files-upload-module.interface';
import { MULTER_MODULE_ID } from './multer.constants';
/**
* @publicApi
*/
@Module({})
export class MulterModule {
static register(options: MulterModuleOptions = {}): DynamicModule {

View File

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

View File

@@ -0,0 +1,44 @@
import { CallHandler } from '@nestjs/common';
import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host';
import { expect } from 'chai';
import { of } from 'rxjs';
import * as sinon from 'sinon';
import { NoFilesInterceptor } from '../../../multer/interceptors/no-files.interceptor';
describe('NoFilesInterceptor', () => {
it('should return metatype with expected structure', async () => {
const targetClass = NoFilesInterceptor();
expect(targetClass.prototype.intercept).to.not.be.undefined;
});
describe('intercept', () => {
let handler: CallHandler;
beforeEach(() => {
handler = {
handle: () => of('test'),
};
});
it('should call none() with expected params', async () => {
const target = new (NoFilesInterceptor())();
const callback = (req, res, next) => next();
const noneSpy = sinon
.stub((target as any).multer, 'none')
.returns(callback);
await target.intercept(new ExecutionContextHost([]), handler);
expect(noneSpy.called).to.be.true;
});
it('should transform exception', async () => {
const target = new (NoFilesInterceptor())();
const err = {};
const callback = (req, res, next) => next(err);
(target as any).multer = {
none: () => callback,
};
(target.intercept(new ExecutionContextHost([]), handler) as any).catch(
error => expect(error).to.not.be.undefined,
);
});
});
});

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

@@ -4,9 +4,9 @@ import {
RawBodyRequest,
RequestMethod,
StreamableFile,
VERSION_NEUTRAL,
VersioningOptions,
VersioningType,
VERSION_NEUTRAL,
} from '@nestjs/common';
import { VersionValue } from '@nestjs/common/interfaces';
import {
@@ -17,7 +17,6 @@ import { loadPackage } from '@nestjs/common/utils/load-package.util';
import { isString, isUndefined } from '@nestjs/common/utils/shared.utils';
import { AbstractHttpAdapter } from '@nestjs/core/adapters/http-adapter';
import {
fastify,
FastifyBaseLogger,
FastifyBodyParser,
FastifyInstance,
@@ -33,6 +32,7 @@ import {
RawServerBase,
RawServerDefault,
RequestGenericInterface,
fastify,
} from 'fastify';
import * as Reply from 'fastify/lib/reply';
import { kRouteContext } from 'fastify/lib/symbols';
@@ -40,10 +40,11 @@ import { RouteShorthandMethod } from 'fastify/types/route';
import * as http2 from 'http2';
import * as https from 'https';
import {
Chain as LightMyRequestChain,
InjectOptions,
Chain as LightMyRequestChain,
Response as LightMyRequestResponse,
} from 'light-my-request';
import * as pathToRegexp from 'path-to-regexp';
// `querystring` is used internally in fastify for registering urlencoded body parser.
import { parse as querystringParse } from 'querystring';
import { NestFastifyBodyParserOptions } from '../interfaces';
@@ -547,11 +548,24 @@ export class FastifyAdapter<
// Fallback to "(.*)" to support plugins like GraphQL
normalizedPath = normalizedPath === '/(.*)' ? '(.*)' : normalizedPath;
const re = pathToRegexp(normalizedPath);
// The following type assertion is valid as we use import('@fastify/middie') rather than require('@fastify/middie')
// ref https://github.com/fastify/middie/pull/55
this.instance.use(
normalizedPath,
callback as Parameters<TInstance['use']>['1'],
(req: any, res: any, next: Function) => {
const queryParamsIndex = req.originalUrl.indexOf('?');
const pathname =
queryParamsIndex >= 0
? req.originalUrl.slice(0, queryParamsIndex)
: req.originalUrl;
if (!re.exec(pathname + '/') && normalizedPath) {
return next();
}
return callback(req, res, next);
},
);
};
}

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/platform-fastify",
"version": "9.4.0",
"version": "10.0.4",
"description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -18,19 +18,19 @@
"access": "public"
},
"dependencies": {
"@fastify/cors": "8.2.1",
"@fastify/cors": "8.3.0",
"@fastify/formbody": "7.4.0",
"@fastify/middie": "8.1.0",
"fastify": "4.15.0",
"light-my-request": "5.9.1",
"@fastify/middie": "8.3.0",
"fastify": "4.18.0",
"light-my-request": "5.10.0",
"path-to-regexp": "3.2.0",
"tslib": "2.5.0"
"tslib": "2.6.0"
},
"peerDependencies": {
"@fastify/static": "^6.0.0",
"@fastify/view": "^7.0.0",
"@nestjs/common": "^9.0.0",
"@nestjs/core": "^9.0.0"
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0"
},
"peerDependenciesMeta": {
"@fastify/static": {

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

@@ -1,6 +1,6 @@
{
"name": "@nestjs/platform-socket.io",
"version": "9.4.0",
"version": "10.0.4",
"description": "Nest - modern, fast, powerful node.js web framework (@platform-socket.io)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -18,12 +18,12 @@
"access": "public"
},
"dependencies": {
"socket.io": "4.6.1",
"tslib": "2.5.0"
"socket.io": "4.7.0",
"tslib": "2.6.0"
},
"peerDependencies": {
"@nestjs/common": "^9.0.0",
"@nestjs/websockets": "^9.0.0",
"@nestjs/common": "^10.0.0",
"@nestjs/websockets": "^10.0.0",
"rxjs": "^7.1.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,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

@@ -1,6 +1,6 @@
{
"name": "@nestjs/platform-ws",
"version": "9.4.0",
"version": "10.0.4",
"description": "Nest - modern, fast, powerful node.js web framework (@platform-ws)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -18,12 +18,12 @@
"access": "public"
},
"dependencies": {
"tslib": "2.5.0",
"tslib": "2.6.0",
"ws": "8.13.0"
},
"peerDependencies": {
"@nestjs/common": "^9.0.0",
"@nestjs/websockets": "^9.0.0",
"@nestjs/common": "^10.0.0",
"@nestjs/websockets": "^10.0.0",
"rxjs": "^7.1.0"
}
}

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