Compare commits

..

917 Commits

Author SHA1 Message Date
Kamil Myśliwiec
61ebc12521 chore(@nestjs) publish v9.0.2 release 2022-07-11 09:39:36 +02:00
Kamil Myśliwiec
6ad5520d30 feat(core): load native repl module lazily, on demand 2022-07-11 09:16:14 +02:00
Kamil Myśliwiec
300a2c758b Merge branch 'Tony133-chore/update-deps' 2022-07-11 09:10:55 +02:00
Kamil Myśliwiec
9bfbea24d9 chore(): resolve conflicts 2022-07-11 09:10:46 +02:00
Kamil Mysliwiec
892ed45e2b Merge pull request #9906 from nestjs/dependabot/npm_and_yarn/mongoose-6.4.4
chore(deps-dev): bump mongoose from 6.4.3 to 6.4.4
2022-07-11 08:59:30 +02:00
Kamil Mysliwiec
6fe0b7272a Merge pull request #9908 from nestjs/dependabot/npm_and_yarn/cache-manager-4.1.0
chore(deps-dev): bump cache-manager from 4.0.1 to 4.1.0
2022-07-11 08:59:18 +02:00
Kamil Mysliwiec
8ac4be93ac Merge pull request #9898 from Tony133/chore/update-deps-platform-fastify
chore(): update deps platform fastify
2022-07-11 08:58:42 +02:00
Kamil Mysliwiec
04b659d33e Merge pull request #9910 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.0.18
chore(deps-dev): bump @nestjs/graphql from 10.0.16 to 10.0.18
2022-07-11 08:58:15 +02:00
Kamil Mysliwiec
48c50e7b72 Merge pull request #9911 from nestjs/dependabot/npm_and_yarn/core-js-3.23.4
chore(deps-dev): bump core-js from 3.23.3 to 3.23.4
2022-07-11 08:58:10 +02:00
Kamil Mysliwiec
b95b4a9cf0 Merge pull request #9896 from Tony133/chore/update-samples
chore(samples): updated dependencies for NestJS v9 in all samples
2022-07-11 08:57:33 +02:00
Kamil Mysliwiec
9f90706d1b Merge pull request #9902 from micalevisk/refactor/use-builtin-node12-functions
refactor(core): replace our own 1-level flatten by the native one
2022-07-11 08:56:11 +02:00
Kamil Mysliwiec
b449b5a00b Merge pull request #9904 from tugascript/fix-cache-module-async-register
fix(common): Fix CacheModule registerAsync
2022-07-11 08:55:45 +02:00
dependabot[bot]
dc9f568723 chore(deps-dev): bump core-js from 3.23.3 to 3.23.4
Bumps [core-js](https://github.com/zloirock/core-js) from 3.23.3 to 3.23.4.
- [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/compare/v3.23.3...v3.23.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 00:28:40 +00:00
dependabot[bot]
1c43bba7d8 chore(deps-dev): bump @nestjs/graphql from 10.0.16 to 10.0.18
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.16 to 10.0.18.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.16...v10.0.18)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 00:23:17 +00:00
dependabot[bot]
97bd24016b chore(deps-dev): bump cache-manager from 4.0.1 to 4.1.0
Bumps [cache-manager](https://github.com/BryanDonovan/node-cache-manager) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/BryanDonovan/node-cache-manager/releases)
- [Changelog](https://github.com/BryanDonovan/node-cache-manager/blob/master/History.md)
- [Commits](https://github.com/BryanDonovan/node-cache-manager/compare/4.0.1...4.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 00:16:08 +00:00
dependabot[bot]
d87eef7fe0 chore(deps-dev): bump mongoose from 6.4.3 to 6.4.4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.4.3 to 6.4.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/6.4.3...6.4.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 00:11:11 +00:00
Tony133
503a104340 sample(): update logo readme 2022-07-10 22:57:47 +02:00
Afonso Barracha
3ec0d4f243 fix(common): Fix CacheModule RegisterAsync, restore package-lock.json 2022-07-10 20:06:23 +01:00
Afonso Barracha
6c42feb383 fix(common): Fix CacheModule registerAsync 2022-07-10 19:51:59 +01:00
Tony133
1d2cc845fc sample(): upgrade sample 22-graphql-prisma 2022-07-10 15:43:15 +02:00
Tony133
e533bf36af sample(11-swagger): remove deps swagger-ui-express 2022-07-10 15:23:47 +02:00
Micael Levi (@micalevisk)
0c2a6d10c3 refactor(core): replace 1-level flatten by arr.flat(1) 2022-07-09 19:08:51 -04:00
Tony133
de73d4a29b chore(): fastify-adapter.ts 2022-07-09 17:04:46 +02:00
Tony133
56bf0f6669 sample(): update sample 07-sequelize 2022-07-09 16:22:00 +02:00
Tony133
999df48675 sample(): update dependencies 2022-07-09 16:18:14 +02:00
Tony133
f56454c5ee sample(): update sample 07-sequelize 2022-07-09 16:03:52 +02:00
Tony133
d0b935b312 chore(): upgrade version typeorm 2022-07-09 15:57:55 +02:00
Tony133
d6ad2b51a2 chore(): update deps 2022-07-09 15:47:11 +02:00
Tony133
880206daf4 chore(): update deps platform fastify 2022-07-09 15:22:11 +02:00
Tony133
0615c1b4cb sample(): update deps 2022-07-09 15:03:06 +02:00
Tony133
6575c951aa sample(): update deps 2022-07-09 14:59:49 +02:00
Tony133
54dea36ca1 sample(13-mongo-typeorm): fix version mongodb 2022-07-09 14:47:47 +02:00
Tony133
44f4d825d0 chore(samples): update deps 2022-07-09 14:38:52 +02:00
Kamil Myśliwiec
34cb6001c3 chore(@nestjs) publish v9.0.1 release 2022-07-08 11:07:53 +02:00
Kamil Myśliwiec
a3ecb1b1d8 fix(platform-fastify): bump fastify/static version 2022-07-08 11:06:55 +02:00
Kamil Myśliwiec
1c380bac57 chore(): update package json version 2022-07-08 09:59:21 +02:00
Kamil Myśliwiec
308bec4ac5 chore(@nestjs) publish v9.0.0 release 2022-07-08 09:08:31 +02:00
Kamil Myśliwiec
03acfbbd7c chore(): update package.json files 2022-07-08 09:05:41 +02:00
Kamil Myśliwiec
d74f3d9335 chore(): update readme 2022-07-08 09:01:57 +02:00
Kamil Mysliwiec
3fdd39e945 Merge pull request #9885 from nestjs/dependabot/npm_and_yarn/fastify/static-6.4.0
chore(deps-dev): bump @fastify/static from 5.0.0 to 6.4.0
2022-07-08 08:43:09 +02:00
dependabot[bot]
4b6af10a92 chore(deps-dev): bump @fastify/static from 5.0.0 to 6.4.0
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 5.0.0 to 6.4.0.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v5.0.0...v6.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 06:40:27 +00:00
Kamil Mysliwiec
fb72b281e1 Update renovate.json 2022-07-08 08:38:43 +02:00
Kamil Mysliwiec
a590c43353 Merge pull request #9883 from nestjs/dependabot/npm_and_yarn/ioredis-5.1.0
chore(deps-dev): bump ioredis from 5.0.4 to 5.1.0
2022-07-08 08:35:56 +02:00
Kamil Mysliwiec
be7e301282 Merge pull request #9884 from nestjs/dependabot/npm_and_yarn/nodemon-2.0.19
chore(deps-dev): bump nodemon from 2.0.18 to 2.0.19
2022-07-08 08:35:51 +02:00
Kamil Mysliwiec
0c932678e0 Merge pull request #9886 from nestjs/dependabot/npm_and_yarn/supertest-6.2.4
chore(deps-dev): bump supertest from 6.2.3 to 6.2.4
2022-07-08 08:35:44 +02:00
Kamil Mysliwiec
7d7aa9ed60 Merge pull request #9888 from nestjs/dependabot/npm_and_yarn/types/cache-manager-4.0.1
chore(deps-dev): bump @types/cache-manager from 4.0.0 to 4.0.1
2022-07-08 08:35:36 +02:00
Kamil Mysliwiec
265748f7fa Merge pull request #9889 from nestjs/dependabot/npm_and_yarn/cli-color-2.0.3
chore(deps): bump cli-color from 2.0.2 to 2.0.3
2022-07-08 08:35:32 +02:00
Kamil Mysliwiec
9bbee5a184 Merge pull request #9890 from nestjs/dependabot/npm_and_yarn/types/node-18.0.3
chore(deps-dev): bump @types/node from 18.0.0 to 18.0.3
2022-07-08 08:35:28 +02:00
Kamil Mysliwiec
3650907d32 Merge pull request #9882 from nestjs/dependabot/npm_and_yarn/fastify/multipart-7.1.0
chore(deps-dev): bump @fastify/multipart from 6.0.0 to 7.1.0
2022-07-08 08:35:00 +02:00
Kamil Mysliwiec
b8370e97d6 Merge pull request #9881 from yevgeniypak/websockets-max-http-buffer-size-default-value
docs(websockets): update GatewayMetadata maxHttpBufferSize default value to 1 MB
2022-07-08 08:21:09 +02:00
dependabot[bot]
33059ccfb6 chore(deps-dev): bump @types/node from 18.0.0 to 18.0.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.0.0 to 18.0.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>
2022-07-08 00:18:38 +00:00
dependabot[bot]
5337051a3d chore(deps): bump cli-color from 2.0.2 to 2.0.3
Bumps [cli-color](https://github.com/medikoo/cli-color) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/medikoo/cli-color/releases)
- [Changelog](https://github.com/medikoo/cli-color/blob/main/CHANGELOG.md)
- [Commits](https://github.com/medikoo/cli-color/compare/v2.0.2...v2.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 00:17:12 +00:00
dependabot[bot]
7e2afbe583 chore(deps-dev): bump @types/cache-manager from 4.0.0 to 4.0.1
Bumps [@types/cache-manager](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/cache-manager) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/cache-manager)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 00:15:59 +00:00
dependabot[bot]
db9adedcf5 chore(deps-dev): bump supertest from 6.2.3 to 6.2.4
Bumps [supertest](https://github.com/visionmedia/supertest) from 6.2.3 to 6.2.4.
- [Release notes](https://github.com/visionmedia/supertest/releases)
- [Commits](https://github.com/visionmedia/supertest/compare/v6.2.3...v6.2.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 00:10:04 +00:00
dependabot[bot]
a9d12cb2bd chore(deps-dev): bump nodemon from 2.0.18 to 2.0.19
Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.18 to 2.0.19.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.18...v2.0.19)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 00:06:26 +00:00
dependabot[bot]
5c05cddf11 chore(deps-dev): bump ioredis from 5.0.4 to 5.1.0
Bumps [ioredis](https://github.com/luin/ioredis) from 5.0.4 to 5.1.0.
- [Release notes](https://github.com/luin/ioredis/releases)
- [Changelog](https://github.com/luin/ioredis/blob/main/CHANGELOG.md)
- [Commits](https://github.com/luin/ioredis/compare/v5.0.4...v5.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 00:05:28 +00:00
dependabot[bot]
2c9c90f479 chore(deps-dev): bump @fastify/multipart from 6.0.0 to 7.1.0
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 6.0.0 to 7.1.0.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v6.0.0...v7.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 00:03:55 +00:00
“Yevgeniy”
673d04098d docs(websockets): update GatewayMetadata maxHttpBufferSize default value to 1 MB 2022-07-08 00:43:34 +06:00
Kamil Myśliwiec
c2d73f91d7 chore(): resolve conflicts 2022-07-07 12:23:39 +02:00
Kamil Myśliwiec
50e457817d deps(): upgrade ts-node to 10.8.2 2022-07-07 12:22:45 +02:00
Kamil Mysliwiec
52950aa095 Merge pull request #9869 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.0.6
chore(deps): bump fast-json-stringify from 5.0.1 to 5.0.6
2022-07-07 11:23:33 +02:00
Kamil Myśliwiec
2c52ec5a31 Merge branch 'master' of https://github.com/nestjs/nest 2022-07-07 11:23:20 +02:00
Kamil Myśliwiec
987d48ceee sample(): add test script to 08-webpack sample 2022-07-07 11:23:17 +02:00
Kamil Mysliwiec
5ac821c4d4 Merge pull request #9851 from nestjs/dependabot/npm_and_yarn/kafkajs-2.1.0
chore(deps-dev): bump kafkajs from 2.0.2 to 2.1.0
2022-07-07 11:22:11 +02:00
dependabot[bot]
3508ea99b0 chore(deps): bump fast-json-stringify from 5.0.1 to 5.0.6
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.0.1 to 5.0.6.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.0.1...v5.0.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 09:17:07 +00:00
Kamil Mysliwiec
1d1b369f39 Merge pull request #9848 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.3.0
chore(deps-dev): bump graphql-tools from 8.2.13 to 8.3.0
2022-07-07 11:15:31 +02:00
Kamil Mysliwiec
c2f738375b Merge pull request #9837 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-17.0.3
chore(deps-dev): bump @commitlint/config-angular from 17.0.0 to 17.0.3
2022-07-07 11:15:20 +02:00
Kamil Mysliwiec
902bfe5d15 Merge pull request #9871 from nestjs/dependabot/npm_and_yarn/redis-4.2.0
chore(deps-dev): bump redis from 3.1.2 to 4.2.0
2022-07-07 11:15:07 +02:00
dependabot[bot]
bc87794b1f chore(deps-dev): bump graphql-tools from 8.2.13 to 8.3.0
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.2.13 to 8.3.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@8.3.0/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 09:14:41 +00:00
Kamil Mysliwiec
0f7ce9a9bd Merge pull request #9853 from nestjs/dependabot/npm_and_yarn/fastify-4.2.0
chore(deps): bump fastify from 3.29.0 to 4.2.0
2022-07-07 11:11:38 +02:00
Kamil Myśliwiec
3a9aa7522b chore(fastify): explicitly cast plugin imports 2022-07-07 11:11:11 +02:00
dependabot[bot]
7bb359c325 chore(deps-dev): bump redis from 3.1.2 to 4.2.0
Bumps [redis](https://github.com/redis/node-redis) from 3.1.2 to 4.2.0.
- [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/v3.1.2...redis@4.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 09:10:08 +00:00
Kamil Mysliwiec
21800378ed Merge pull request #9870 from nestjs/dependabot/npm_and_yarn/mongoose-6.4.3
chore(deps-dev): bump mongoose from 6.4.0 to 6.4.3
2022-07-07 11:07:18 +02:00
Kamil Mysliwiec
97862d49db Merge pull request #9852 from nestjs/dependabot/npm_and_yarn/types/sinon-10.0.12
chore(deps-dev): bump @types/sinon from 10.0.11 to 10.0.12
2022-07-07 11:07:13 +02:00
Kamil Mysliwiec
2d7b7ec20c Merge pull request #9766 from nestjs/dependabot/npm_and_yarn/middie-7.1.0
chore(deps): bump middie from 6.1.0 to 7.1.0
2022-07-07 11:07:06 +02:00
dependabot[bot]
740f567fcf chore(deps): bump middie from 6.1.0 to 7.1.0
Bumps [middie](https://github.com/fastify/middie) from 6.1.0 to 7.1.0.
- [Release notes](https://github.com/fastify/middie/releases)
- [Commits](https://github.com/fastify/middie/commits)

---
updated-dependencies:
- dependency-name: middie
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 09:01:09 +00:00
dependabot[bot]
4db51ac3a4 chore(deps): bump fastify from 3.29.0 to 4.2.0
Bumps [fastify](https://github.com/fastify/fastify) from 3.29.0 to 4.2.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v3.29.0...v4.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 09:01:03 +00:00
dependabot[bot]
b5b1ce7f06 chore(deps-dev): bump mongoose from 6.4.0 to 6.4.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.4.0 to 6.4.3.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.4.0...6.4.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 09:00:57 +00:00
dependabot[bot]
05b9e651d1 chore(deps-dev): bump @types/sinon from 10.0.11 to 10.0.12
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.11 to 10.0.12.
- [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>
2022-07-07 09:00:44 +00:00
dependabot[bot]
f6e3831057 chore(deps-dev): bump kafkajs from 2.0.2 to 2.1.0
Bumps [kafkajs](https://github.com/tulios/kafkajs) from 2.0.2 to 2.1.0.
- [Release notes](https://github.com/tulios/kafkajs/releases)
- [Changelog](https://github.com/tulios/kafkajs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tulios/kafkajs/compare/v2.0.2...v2.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 09:00:43 +00:00
Kamil Mysliwiec
69c520560a Merge pull request #9872 from Wojciechowski-Marcin/update-kafka-external-interface
fix(microservices): Update LogEntry in external kafka interface
2022-07-07 10:58:57 +02:00
Kamil Mysliwiec
4605f35dfa Merge pull request #9876 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/moment-2.29.4
chore(deps): bump moment from 2.29.2 to 2.29.4 in /sample/07-sequelize
2022-07-07 10:57:27 +02:00
Kamil Mysliwiec
5233b47dc6 Merge pull request #9875 from nestjs/dependabot/npm_and_yarn/sample/26-queues/moment-2.29.4
chore(deps): bump moment from 2.29.2 to 2.29.4 in /sample/26-queues
2022-07-07 10:57:20 +02:00
Kamil Mysliwiec
504e1bd9ac Merge pull request #9877 from nestjs/dependabot/npm_and_yarn/sample/27-scheduling/moment-2.29.4
chore(deps): bump moment from 2.29.2 to 2.29.4 in /sample/27-scheduling
2022-07-07 10:57:12 +02:00
Kamil Mysliwiec
e32d0aa6f5 Merge pull request #9878 from nestjs/dependabot/npm_and_yarn/moment-2.29.4
chore(deps): bump moment from 2.29.2 to 2.29.4
2022-07-07 10:57:03 +02:00
Kamil Myśliwiec
578ddb5996 ci(): use node v16 for samples, lint, test cov 2022-07-07 10:55:37 +02:00
Kamil Myśliwiec
8504690856 ci(): bump codechecks node version 2022-07-07 10:45:42 +02:00
Kamil Myśliwiec
d44a647969 ci(codechecks): add logs to the benchmark pipeline 2022-07-07 10:37:02 +02:00
Kamil Myśliwiec
cf0a3d2eec style(fastify): let to const, address lint error 2022-07-07 10:27:38 +02:00
Kamil Myśliwiec
836484d47c ci(): update benchmarks job 2022-07-07 10:19:10 +02:00
Kamil Myśliwiec
05d0fda6eb fix(fastify): address deprecation warning 2022-07-07 10:18:53 +02:00
dependabot[bot]
8d56d3b3b4 chore(deps-dev): bump @commitlint/config-angular from 17.0.0 to 17.0.3
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 17.0.0 to 17.0.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.0.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>
2022-07-07 07:30:18 +00:00
dependabot[bot]
fc11b58f6d chore(deps): bump moment from 2.29.2 to 2.29.4
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 07:28:29 +00:00
dependabot[bot]
1fc51dcbde chore(deps): bump moment from 2.29.2 to 2.29.4 in /sample/27-scheduling
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 07:27:41 +00:00
dependabot[bot]
8803812dc9 chore(deps): bump moment from 2.29.2 to 2.29.4 in /sample/07-sequelize
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 07:27:34 +00:00
dependabot[bot]
be803609e9 chore(deps): bump moment from 2.29.2 to 2.29.4 in /sample/26-queues
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 07:27:33 +00:00
Kamil Mysliwiec
21bd8c3736 Merge pull request #9588 from nestjs/9.0.0
chore(): v9.0.0 release (wip)
2022-07-07 09:26:26 +02:00
Kamil Myśliwiec
569916117c Merge branch '9.0.0' of https://github.com/nestjs/nest into 9.0.0 2022-07-07 09:25:53 +02:00
Kamil Myśliwiec
c728ecf9b4 chore(): resolve conflicts 2022-07-07 09:25:38 +02:00
Wojciechowski Marcin
0b73d04f06 fix(microservices): Update LogEntry in external kafka interface 2022-07-06 16:56:23 +02:00
Kamil Mysliwiec
9108e4166c Update Readme.md 2022-07-05 09:40:28 +02:00
Kamil Mysliwiec
349fb280b9 Merge pull request #9832 from thiagomini/feature/file-mime-type-pipe
feat(common): file type validator
2022-06-27 14:57:45 +02:00
Kamil Mysliwiec
d5b6e48920 Merge pull request #9838 from nestjs/dependabot/npm_and_yarn/core-js-3.23.3
chore(deps-dev): bump core-js from 3.23.2 to 3.23.3
2022-06-27 09:34:27 +02:00
Kamil Mysliwiec
2c2187806f Merge pull request #9839 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.0.3
chore(deps-dev): bump @commitlint/cli from 17.0.2 to 17.0.3
2022-06-27 09:34:23 +02:00
Kamil Mysliwiec
e32d83b15d Merge pull request #9841 from nestjs/dependabot/npm_and_yarn/lint-staged-13.0.3
chore(deps-dev): bump lint-staged from 13.0.2 to 13.0.3
2022-06-27 09:34:16 +02:00
Kamil Myśliwiec
018c0d24d6 test(cors): skip fastify cors integration tests 2022-06-27 09:32:56 +02:00
Kamil Mysliwiec
650b7bcb7e Update packages/platform-fastify/package.json
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
2022-06-27 08:55:49 +02:00
Kamil Mysliwiec
060130c1a0 Merge pull request #9831 from thiagomini/fix/test-script
chore(): fix test script
2022-06-27 08:47:12 +02:00
dependabot[bot]
9c4b09146a chore(deps-dev): bump lint-staged from 13.0.2 to 13.0.3
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.0.2 to 13.0.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.0.2...v13.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-27 01:04:49 +00:00
dependabot[bot]
ac41bb9ecc chore(deps-dev): bump @commitlint/cli from 17.0.2 to 17.0.3
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.0.2 to 17.0.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.0.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>
2022-06-27 00:56:36 +00:00
dependabot[bot]
2e0b6069f2 chore(deps-dev): bump core-js from 3.23.2 to 3.23.3
Bumps [core-js](https://github.com/zloirock/core-js) from 3.23.2 to 3.23.3.
- [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/compare/v3.23.2...v3.23.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-27 00:44:45 +00:00
Thiago Martins
231b9f6b3e feat(common): file type validator
add regex support when checking a file mime-type
2022-06-24 18:26:44 -03:00
Thiago Martins
c3f27f54d1 chore(): fix test script
fix package.json test script to previous version
2022-06-24 16:27:32 -03:00
Kamil Mysliwiec
709ea327d7 Merge pull request #9830 from nestjs/dependabot/npm_and_yarn/nodemon-2.0.18
chore(deps-dev): bump nodemon from 2.0.16 to 2.0.18
2022-06-24 13:55:48 +02:00
Kamil Mysliwiec
f6e3465927 Merge pull request #9828 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.0.1
chore(deps): bump fast-json-stringify from 4.2.0 to 5.0.1
2022-06-24 13:55:43 +02:00
Kamil Mysliwiec
b2a4633a8a Merge pull request #9827 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.2.13
chore(deps-dev): bump graphql-tools from 8.2.12 to 8.2.13
2022-06-24 13:55:35 +02:00
Kamil Mysliwiec
901cf3ff88 Merge pull request #9825 from nestjs/renovate/npm-got-vulnerability
chore(deps): update dependency got to 11.8.5 [security]
2022-06-24 13:55:24 +02:00
Kamil Myśliwiec
55b95c794e Merge branch 'micalevisk-feat/testing-module-options' into 9.0.0 2022-06-24 10:19:34 +02:00
Kamil Myśliwiec
21a0aeeea5 chore(): fix lockfile 2022-06-24 10:19:23 +02:00
Kamil Myśliwiec
8293aac2fb Merge branch 'feat/testing-module-options' of github.com:micalevisk/nest into micalevisk-feat/testing-module-options 2022-06-24 10:17:28 +02:00
Kamil Mysliwiec
69377a61bf Merge pull request #9829 from micalevisk/update-error-messages
docs(common): replace 'v8' by 'v9' on error message
2022-06-24 09:20:58 +02:00
renovate[bot]
55a6434b36 chore(deps): update dependency got to 11.8.5 [security] 2022-06-24 07:03:59 +00:00
dependabot[bot]
8ac2c25112 chore(deps-dev): bump nodemon from 2.0.16 to 2.0.18
Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.16 to 2.0.18.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.16...v2.0.18)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-24 00:08:01 +00:00
Micael Levi L. Cavalcante
70b142d45a docs(common): replace 'v8' by 'v9' on error message 2022-06-23 20:05:32 -04:00
dependabot[bot]
f1b4caa0c4 chore(deps): bump fast-json-stringify from 4.2.0 to 5.0.1
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 4.2.0 to 5.0.1.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-24 00:04:48 +00:00
dependabot[bot]
19fe5b802d chore(deps-dev): bump graphql-tools from 8.2.12 to 8.2.13
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.2.12 to 8.2.13.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.2.13/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-24 00:03:50 +00:00
Micael Levi (@micalevisk)
04beaf939c chore(deps): upgrade @fastify/cors to v8.0.0 2022-06-23 19:41:20 -04:00
Micael Levi (@micalevisk)
5e8c61985b test(integration): drop the first arg of createNestApplication 2022-06-23 19:21:43 -04:00
Micael Levi (@micalevisk)
eadb5857db feat(testing): allow omitting httpAdapter arg on createNestApplication 2022-06-23 19:21:43 -04:00
Kamil Myśliwiec
772ed954b7 test(core): fix injector unit tests 2022-06-23 13:49:55 +02:00
Kamil Myśliwiec
8ca45b3163 fix(core): injector should rethrow nested exception for scoped providers 2022-06-23 13:27:56 +02:00
Kamil Myśliwiec
6cb2717772 fix(fastify): fix listen method 2022-06-23 13:15:35 +02:00
Kamil Myśliwiec
56404cfd71 fix(fastify): hotfix listen method 2022-06-21 13:20:55 +02:00
Kamil Myśliwiec
522b9912ba chore(fastify): remove the use of deprecated listen method 2022-06-21 12:53:38 +02:00
Kamil Myśliwiec
fa4c899255 chore(core): rename child context id info to host component info 2022-06-21 10:59:18 +02:00
Kamil Mysliwiec
6274e39ccf Merge pull request #9815 from nestjs/dependabot/npm_and_yarn/core-js-3.23.2
chore(deps-dev): bump core-js from 3.23.1 to 3.23.2
2022-06-21 10:10:14 +02:00
Kamil Mysliwiec
a70a5aaf2d Merge pull request #9814 from micalevisk/test/integration-repl
fix(integration,core): register native function aliases on repl feature
2022-06-21 09:37:57 +02:00
dependabot[bot]
a18f9c881e chore(deps-dev): bump core-js from 3.23.1 to 3.23.2
Bumps [core-js](https://github.com/zloirock/core-js) from 3.23.1 to 3.23.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/compare/v3.23.1...v3.23.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-21 00:05:42 +00:00
Micael Levi (@micalevisk)
4a975f48eb fix(core): when native repl functions has aliases to register 2022-06-20 12:16:31 -04:00
Micael Levi (@micalevisk)
6df03b83eb test(integration): add missing test for get function alias on repl 2022-06-20 11:53:44 -04:00
Kamil Mysliwiec
e091cd5c07 Merge pull request #8802 from wSedlacek/fix/interceptor-check-headers-sent
fix: only send exception responses if header is not already sent
2022-06-20 15:00:38 +02:00
Kamil Mysliwiec
95cea896c7 Merge pull request #9718 from thiagomini/feature/4752-file-validators-pipe
Feature/4752 file validators pipe
2022-06-20 14:59:48 +02:00
Kamil Mysliwiec
61b11ad315 Merge pull request #9796 from nestjs/dependabot/npm_and_yarn/prettier-2.7.1
chore(deps-dev): bump prettier from 2.7.0 to 2.7.1
2022-06-20 08:49:59 +02:00
Kamil Mysliwiec
ff46a1c250 Merge pull request #9806 from chunghha/fix_typos
chore: typo fix
2022-06-20 08:49:48 +02:00
Kamil Mysliwiec
f3060a02a2 Merge pull request #9807 from nestjs/dependabot/npm_and_yarn/mongoose-6.4.0
chore(deps-dev): bump mongoose from 6.3.8 to 6.4.0
2022-06-20 08:49:13 +02:00
Kamil Mysliwiec
3df2932315 Merge pull request #9795 from ZanMinKian/refactor-relector
perf(core): use find instead of filter
2022-06-20 08:38:45 +02:00
Kamil Mysliwiec
63a8161b69 Merge pull request #9808 from nestjs/dependabot/npm_and_yarn/typescript-4.7.4
chore(deps-dev): bump typescript from 4.7.3 to 4.7.4
2022-06-20 08:37:10 +02:00
dependabot[bot]
9f27cf7600 chore(deps-dev): bump typescript from 4.7.3 to 4.7.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.3 to 4.7.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.3...v4.7.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-20 00:19:43 +00:00
dependabot[bot]
e845ffdf63 chore(deps-dev): bump mongoose from 6.3.8 to 6.4.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.3.8 to 6.4.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/6.3.8...6.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-20 00:15:43 +00:00
Chris Ha
bf7376803c chore: typo fix 2022-06-19 10:36:22 -05:00
Thiago Martins
2e8426b2b3 test(sample): add file upload e2e test
add test using file parse pipe
2022-06-17 16:33:44 -03:00
Thiago Martins
ad0d1bcb17 refactor(common): file type validator
add partial mimetype check
2022-06-17 16:33:06 -03:00
Thiago Martins
bdd939749f refactor(common): parse file pipe
add async validation feature
2022-06-17 14:56:18 -03:00
Kamil Myśliwiec
f41ee3d471 chore(deps): bump fastify/formbody package 2022-06-17 14:21:46 +02:00
dependabot[bot]
71e2ee556e chore(deps-dev): bump prettier from 2.7.0 to 2.7.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.7.0...2.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 12:21:04 +00:00
Kamil Mysliwiec
83098e2d4c Merge pull request #9791 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.9.0
chore(deps-dev): bump apollo-server-core from 3.8.2 to 3.9.0
2022-06-17 14:15:43 +02:00
Kamil Mysliwiec
1a4ce9696a Merge pull request #9790 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.16
chore(deps-dev): bump @nestjs/apollo from 10.0.14 to 10.0.16
2022-06-17 14:15:24 +02:00
dependabot[bot]
f462fc4fb1 chore(deps-dev): bump @nestjs/apollo from 10.0.14 to 10.0.16
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.14 to 10.0.16.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.14...v10.0.16)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 11:59:51 +00:00
dependabot[bot]
42738260fd chore(deps-dev): bump apollo-server-core from 3.8.2 to 3.9.0
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.8.2 to 3.9.0.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-core@3.9.0/packages/apollo-server-core)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 11:59:37 +00:00
Kamil Mysliwiec
454df7fcf0 Merge pull request #9787 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.9.0
chore(deps-dev): bump apollo-server-express from 3.8.2 to 3.9.0
2022-06-17 13:57:16 +02:00
Kamil Mysliwiec
43358d4e63 Merge pull request #9788 from nestjs/dependabot/npm_and_yarn/types/node-18.0.0
chore(deps-dev): bump @types/node from 17.0.43 to 18.0.0
2022-06-17 13:57:10 +02:00
Kamil Mysliwiec
49c956e65f Merge pull request #9792 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.0.16
chore(deps-dev): bump @nestjs/graphql from 10.0.15 to 10.0.16
2022-06-17 13:57:06 +02:00
Kamil Mysliwiec
f8f6d78887 Merge pull request #9794 from nestjs/dependabot/npm_and_yarn/lint-staged-13.0.2
chore(deps-dev): bump lint-staged from 13.0.1 to 13.0.2
2022-06-17 13:56:51 +02:00
曾明健
91879d5bc0 perf(core): use find instead of filter 2022-06-17 09:13:40 +00:00
dependabot[bot]
0e632b4518 chore(deps-dev): bump lint-staged from 13.0.1 to 13.0.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.0.1...v13.0.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>
2022-06-17 00:07:08 +00:00
dependabot[bot]
ba58557421 chore(deps-dev): bump @nestjs/graphql from 10.0.15 to 10.0.16
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.15 to 10.0.16.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.15...v10.0.16)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-16 00:23:01 +00:00
dependabot[bot]
ad35b88d9b chore(deps-dev): bump @types/node from 17.0.43 to 18.0.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.43 to 18.0.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-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-16 00:10:08 +00:00
dependabot[bot]
854df635c0 chore(deps-dev): bump apollo-server-express from 3.8.2 to 3.9.0
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.8.2 to 3.9.0.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-express@3.9.0/packages/apollo-server-express)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-16 00:08:36 +00:00
Kamil Myśliwiec
71fb83bc87 Merge branch '9.0.0' of https://github.com/nestjs/nest into 9.0.0 2022-06-15 11:54:47 +02:00
Kamil Myśliwiec
907b8601a2 chore(platform-fastify): upgrade to fastify v4 2022-06-15 11:54:39 +02:00
Kamil Mysliwiec
29b2ffa32d Merge pull request #9705 from vinnymac/feature/error-chaining
feat(common): Add error chaining support to http exception
2022-06-15 11:49:31 +02:00
Kamil Myśliwiec
7501e3f700 chore(): resolve conflicts 2022-06-15 11:47:23 +02:00
Kamil Mysliwiec
e3ddfafcbf Merge pull request #9681 from micalevisk/fix-issue-9677
fix(microservices): allow `postfixId` on `KafkaOptions` to be an empty string
2022-06-15 11:43:28 +02:00
Kamil Mysliwiec
42a538e7b8 Merge pull request #9674 from dkonasov/message-handler-type
fix(microservices): Fixed typings for MessageHandler
2022-06-15 11:42:56 +02:00
Kamil Mysliwiec
b29d88fec5 Merge pull request #9684 from nestjs/feat/repl
feat(core): read–eval–print loop feature
2022-06-15 11:41:05 +02:00
Kamil Mysliwiec
36eda246c9 Merge pull request #9779 from nestjs/dependabot/npm_and_yarn/concurrently-7.2.2
chore(deps-dev): bump concurrently from 7.2.1 to 7.2.2
2022-06-15 10:05:17 +02:00
dependabot[bot]
c539fbd2d6 chore(deps-dev): bump concurrently from 7.2.1 to 7.2.2
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.2.1 to 7.2.2.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.2.1...v7.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15 07:16:06 +00:00
Kamil Mysliwiec
6843117558 Merge pull request #9720 from micalevisk/feat/repl-fix-injections
fix(core): prevent renaming global providers and modules in the repl
2022-06-15 09:12:42 +02:00
Kamil Mysliwiec
4e37670df3 Merge pull request #9780 from nestjs/dependabot/npm_and_yarn/types/node-17.0.43
chore(deps-dev): bump @types/node from 17.0.42 to 17.0.43
2022-06-15 09:12:14 +02:00
Kamil Mysliwiec
f88758bfa9 Merge pull request #9781 from nestjs/dependabot/npm_and_yarn/core-js-3.23.1
chore(deps-dev): bump core-js from 3.23.0 to 3.23.1
2022-06-15 09:12:09 +02:00
Kamil Mysliwiec
c72589161a Merge pull request #9782 from nestjs/dependabot/npm_and_yarn/nestjs/mongoose-9.1.1
chore(deps-dev): bump @nestjs/mongoose from 9.1.0 to 9.1.1
2022-06-15 09:12:03 +02:00
dependabot[bot]
8a5bc3c1b0 chore(deps-dev): bump @nestjs/mongoose from 9.1.0 to 9.1.1
Bumps [@nestjs/mongoose](https://github.com/nestjs/mongoose) from 9.1.0 to 9.1.1.
- [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.1.0...9.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15 00:11:56 +00:00
dependabot[bot]
5592aa96f9 chore(deps-dev): bump core-js from 3.23.0 to 3.23.1
Bumps [core-js](https://github.com/zloirock/core-js) from 3.23.0 to 3.23.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.23.0...v3.23.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15 00:09:14 +00:00
dependabot[bot]
cbd89b5da6 chore(deps-dev): bump @types/node from 17.0.42 to 17.0.43
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.42 to 17.0.43.
- [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>
2022-06-15 00:06:00 +00:00
Micael Levi (@micalevisk)
1cc12acaf6 refactor(repl): extract utility from repl main file 2022-06-14 08:48:35 -04:00
Kamil Mysliwiec
0f8beee711 Merge pull request #9772 from nestjs/dependabot/npm_and_yarn/prettier-2.7.0
chore(deps-dev): bump prettier from 2.6.2 to 2.7.0
2022-06-14 09:29:51 +02:00
dependabot[bot]
e2d1205103 chore(deps-dev): bump prettier from 2.6.2 to 2.7.0
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.2 to 2.7.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.6.2...2.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 07:28:38 +00:00
Kamil Mysliwiec
0fcfa92a79 Merge pull request #9734 from nestjs/dependabot/npm_and_yarn/ts-node-10.8.1
chore(deps-dev): bump ts-node from 10.8.0 to 10.8.1
2022-06-14 09:28:16 +02:00
Kamil Mysliwiec
b72aaa6537 Merge pull request #9761 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-4.2.0
chore(deps): bump fast-json-stringify from 4.1.0 to 4.2.0
2022-06-14 09:27:56 +02:00
Kamil Mysliwiec
fce8d676d9 Merge pull request #9770 from nestjs/dependabot/npm_and_yarn/ws-8.8.0
chore(deps): bump ws from 8.7.0 to 8.8.0
2022-06-14 09:27:51 +02:00
Kamil Mysliwiec
3f84e55cb3 Merge pull request #9771 from nestjs/dependabot/npm_and_yarn/core-js-3.23.0
chore(deps-dev): bump core-js from 3.22.8 to 3.23.0
2022-06-14 09:27:47 +02:00
Kamil Mysliwiec
7810b006cd Merge pull request #9773 from nestjs/dependabot/npm_and_yarn/types/cache-manager-4.0.0
chore(deps-dev): bump @types/cache-manager from 3.4.3 to 4.0.0
2022-06-14 09:27:36 +02:00
Kamil Myśliwiec
465b883c2e chore(): update readme 2022-06-14 09:26:38 +02:00
Kamil Myśliwiec
f383352eae chore(@nestjs) publish v8.4.7 release 2022-06-14 09:25:23 +02:00
dependabot[bot]
6e8cf08e37 chore(deps-dev): bump @types/cache-manager from 3.4.3 to 4.0.0
Bumps [@types/cache-manager](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/cache-manager) from 3.4.3 to 4.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/cache-manager)

---
updated-dependencies:
- dependency-name: "@types/cache-manager"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 06:55:11 +00:00
dependabot[bot]
33f4d5be04 chore(deps): bump fast-json-stringify from 4.1.0 to 4.2.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v4.1.0...v4.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 06:51:57 +00:00
dependabot[bot]
42f5536e4b chore(deps-dev): bump core-js from 3.22.8 to 3.23.0
Bumps [core-js](https://github.com/zloirock/core-js) from 3.22.8 to 3.23.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/compare/v3.22.8...v3.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 06:51:15 +00:00
Kamil Mysliwiec
11c32dfada Merge pull request #9731 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.8.2
chore(deps-dev): bump apollo-server-core from 3.8.1 to 3.8.2
2022-06-14 08:50:20 +02:00
Kamil Mysliwiec
995b516176 Merge pull request #9719 from delucca-workspaces/feat/export-base-rpc-context
feat(microservices): exposes base context on the main package
2022-06-14 08:49:13 +02:00
dependabot[bot]
547a5ca8c1 chore(deps): bump ws from 8.7.0 to 8.8.0
Bumps [ws](https://github.com/websockets/ws) from 8.7.0 to 8.8.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.7.0...8.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 06:49:08 +00:00
Kamil Mysliwiec
552313966c Merge pull request #9686 from sushant9096/master
chore(express): bump multer 1.4.4 to 1.4.4-lts.1 to fix "CVE-2022-24434"
2022-06-14 08:48:53 +02:00
Kamil Mysliwiec
279f6faeba Merge pull request #9751 from delucca-workspaces/fix/server-transport-connection-hanging
fix(microservices): adds feedback message when RabbitMQ server connection hangs
2022-06-14 08:48:24 +02:00
Kamil Mysliwiec
52cf0b7ba3 Merge pull request #9762 from nestjs/dependabot/npm_and_yarn/lint-staged-13.0.1
chore(deps-dev): bump lint-staged from 13.0.0 to 13.0.1
2022-06-14 08:46:55 +02:00
Kamil Mysliwiec
bc3b431258 Merge pull request #9764 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.2.12
chore(deps-dev): bump graphql-tools from 8.2.11 to 8.2.12
2022-06-14 08:46:51 +02:00
Kamil Mysliwiec
ba971a71b6 Merge pull request #9765 from nestjs/dependabot/npm_and_yarn/point-of-view-6.3.0
chore(deps-dev): bump point-of-view from 6.2.1 to 6.3.0
2022-06-14 08:46:47 +02:00
Kamil Mysliwiec
6e7cf524c5 Merge pull request #9769 from nestjs/dependabot/npm_and_yarn/mongoose-6.3.8
chore(deps-dev): bump mongoose from 6.3.5 to 6.3.8
2022-06-14 08:46:26 +02:00
dependabot[bot]
92fc598713 chore(deps-dev): bump mongoose from 6.3.5 to 6.3.8
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.3.5 to 6.3.8.
- [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/6.3.5...6.3.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 00:07:46 +00:00
dependabot[bot]
4e18c85b38 chore(deps-dev): bump point-of-view from 6.2.1 to 6.3.0
Bumps [point-of-view](https://github.com/fastify/point-of-view) from 6.2.1 to 6.3.0.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/commits)

---
updated-dependencies:
- dependency-name: point-of-view
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 13:01:00 +00:00
dependabot[bot]
f13e86de06 chore(deps-dev): bump graphql-tools from 8.2.11 to 8.2.12
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.2.11 to 8.2.12.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.2.12/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 13:00:06 +00:00
dependabot[bot]
11a91fbec0 chore(deps-dev): bump lint-staged from 13.0.0 to 13.0.1
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.0.0 to 13.0.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.0.0...v13.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 12:57:28 +00:00
dependabot[bot]
3f72bde13f chore(deps-dev): bump ts-node from 10.8.0 to 10.8.1
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.8.0 to 10.8.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.8.0...v10.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 12:53:57 +00:00
dependabot[bot]
1ff80f8e8d chore(deps-dev): bump apollo-server-core from 3.8.1 to 3.8.2
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.8.1 to 3.8.2.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-core@3.8.2/packages/apollo-server-core)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 12:53:53 +00:00
Kamil Mysliwiec
4c6fe8250f Merge pull request #9729 from nestjs/dependabot/npm_and_yarn/cache-manager-4.0.1
chore(deps-dev): bump cache-manager from 4.0.0 to 4.0.1
2022-06-13 14:51:31 +02:00
Kamil Mysliwiec
697d2b6570 Merge pull request #9730 from nestjs/dependabot/npm_and_yarn/typescript-4.7.3
chore(deps-dev): bump typescript from 4.7.2 to 4.7.3
2022-06-13 14:51:26 +02:00
Kamil Mysliwiec
75758a2dfd Merge pull request #9732 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.8.2
chore(deps-dev): bump apollo-server-express from 3.8.1 to 3.8.2
2022-06-13 14:51:19 +02:00
Kamil Mysliwiec
a9c4ef65a7 Merge pull request #9735 from nestjs/dependabot/npm_and_yarn/ts-morph-15.1.0
chore(deps-dev): bump ts-morph from 15.0.0 to 15.1.0
2022-06-13 14:51:14 +02:00
Kamil Mysliwiec
67c2c2b4fe Merge pull request #9740 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.6.13
chore(deps-dev): bump @grpc/proto-loader from 0.6.12 to 0.6.13
2022-06-13 14:51:10 +02:00
Kamil Mysliwiec
8065913faa Merge pull request #9755 from bovatitar/sample(05-sql-typeorm)-update-types-for-findOne
sample(sample/5): sample(sample/5): change types for id param in findone
2022-06-13 14:50:47 +02:00
Kamil Mysliwiec
1769c28cf5 Merge pull request #9756 from nestjs/dependabot/npm_and_yarn/types/node-17.0.42
chore(deps-dev): bump @types/node from 17.0.38 to 17.0.42
2022-06-13 14:49:42 +02:00
Kamil Mysliwiec
610a4eca74 Merge pull request #9757 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-4.1.0
chore(deps): bump fast-json-stringify from 3.2.0 to 4.1.0
2022-06-13 14:49:35 +02:00
Kamil Mysliwiec
ade844e467 Merge pull request #9742 from mjgp2/stripProtoKeys-performance
Improve stripProtoKeys performance, especially for TypedArray
2022-06-13 14:49:26 +02:00
dependabot[bot]
f824853c38 chore(deps): bump fast-json-stringify from 3.2.0 to 4.1.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 3.2.0 to 4.1.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v3.2.0...v4.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 00:30:26 +00:00
dependabot[bot]
69038416e7 chore(deps-dev): bump @types/node from 17.0.38 to 17.0.42
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.38 to 17.0.42.
- [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>
2022-06-13 00:26:20 +00:00
Volodymyr Tytarenko
ec5de679b0 sample(sample/5): sample(sample/5): update unit test 2022-06-12 20:21:00 +02:00
Volodymyr Tytarenko
a444f94a0a sample(sample/5): sample(sample/5): update unit test 2022-06-12 20:18:03 +02:00
Volodymyr Tytarenko
149756e56f sample(sample/5): sample(sample/5): change types for id param in findone 2022-06-12 16:42:37 +02:00
delucca
c9f5f01e69 fix(microservices): adds unit test to rmq server 2022-06-10 16:39:17 -04:00
delucca
a3258d5fbb fix(microservices): adds logging to failed rmq connection 2022-06-10 16:21:14 -04:00
mjgp2
f445f237bd fix(core): Fix stripProtoKeys performance 2022-06-10 08:33:12 +01:00
dependabot[bot]
8962d5263c chore(deps-dev): bump @grpc/proto-loader from 0.6.12 to 0.6.13
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.6.12 to 0.6.13.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/proto-loader@0.6.12...@grpc/proto-loader@0.6.13)

---
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>
2022-06-07 00:06:05 +00:00
dependabot[bot]
75e264392e chore(deps-dev): bump ts-morph from 15.0.0 to 15.1.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 15.0.0 to 15.1.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/15.0.0...15.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 00:24:38 +00:00
dependabot[bot]
69605e11b5 chore(deps-dev): bump apollo-server-express from 3.8.1 to 3.8.2
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.8.1 to 3.8.2.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-express@3.8.2/packages/apollo-server-express)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 00:17:49 +00:00
dependabot[bot]
eacc02e521 chore(deps-dev): bump typescript from 4.7.2 to 4.7.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.2 to 4.7.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.2...v4.7.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 00:10:23 +00:00
dependabot[bot]
c829256764 chore(deps-dev): bump cache-manager from 4.0.0 to 4.0.1
Bumps [cache-manager](https://github.com/BryanDonovan/node-cache-manager) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/BryanDonovan/node-cache-manager/releases)
- [Changelog](https://github.com/BryanDonovan/node-cache-manager/blob/master/History.md)
- [Commits](https://github.com/BryanDonovan/node-cache-manager/compare/4.0.0...4.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 00:06:52 +00:00
Micael Levi (@micalevisk)
2c4aa9f0b4 refactor(core): fix typo on spec files name 2022-06-04 18:56:17 -04:00
Micael Levi (@micalevisk)
30618bf703 feat(core): drop globalThis usage from ReplContext 2022-06-04 18:56:12 -04:00
Kamil Mysliwiec
ad39c3cfd7 Update Readme.md 2022-06-04 21:22:34 +02:00
Kamil Mysliwiec
e326e5dc4d Merge pull request #9711 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.14
chore(deps-dev): bump @nestjs/apollo from 10.0.13 to 10.0.14
2022-06-03 10:48:02 +02:00
dependabot[bot]
9cfdd57cf0 chore(deps-dev): bump @nestjs/apollo from 10.0.13 to 10.0.14
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.13 to 10.0.14.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.13...v10.0.14)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-03 08:14:47 +00:00
Kamil Mysliwiec
f4b29d3b6d Merge pull request #9712 from nestjs/dependabot/npm_and_yarn/lint-staged-13.0.0
chore(deps-dev): bump lint-staged from 12.5.0 to 13.0.0
2022-06-03 10:08:46 +02:00
Kamil Mysliwiec
f52e6b07bb Merge pull request #9710 from nestjs/dependabot/npm_and_yarn/cache-manager-4.0.0
chore(deps-dev): bump cache-manager from 3.6.3 to 4.0.0
2022-06-03 10:08:40 +02:00
Kamil Mysliwiec
a4ada398a1 Merge pull request #9709 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.0.2
chore(deps-dev): bump @commitlint/cli from 17.0.1 to 17.0.2
2022-06-03 10:08:35 +02:00
Kamil Mysliwiec
0e6f826765 Merge pull request #9713 from nestjs/dependabot/npm_and_yarn/core-js-3.22.8
chore(deps-dev): bump core-js from 3.22.7 to 3.22.8
2022-06-03 10:06:53 +02:00
Kamil Mysliwiec
19bcebacd2 Merge pull request #9723 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.0.15
chore(deps-dev): bump @nestjs/graphql from 10.0.13 to 10.0.15
2022-06-03 10:01:16 +02:00
Kamil Mysliwiec
2e54c7bce3 Merge pull request #9722 from nestjs/dependabot/npm_and_yarn/protobufjs-6.11.3
chore(deps): bump protobufjs from 6.11.2 to 6.11.3
2022-06-03 10:01:11 +02:00
Kamil Mysliwiec
e7379e90d7 Merge pull request #9721 from nestjs/dependabot/npm_and_yarn/sample/04-grpc/protobufjs-6.11.3
chore(deps): bump protobufjs from 6.11.2 to 6.11.3 in /sample/04-grpc
2022-06-03 10:01:06 +02:00
Kamil Mysliwiec
4e90019dbc Merge pull request #9724 from nestjs/dependabot/npm_and_yarn/amqplib-0.10.0
chore(deps-dev): bump amqplib from 0.9.1 to 0.10.0
2022-06-03 09:49:28 +02:00
dependabot[bot]
b07078ac57 chore(deps-dev): bump amqplib from 0.9.1 to 0.10.0
Bumps [amqplib](https://github.com/amqp-node/amqplib) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/amqp-node/amqplib/releases)
- [Changelog](https://github.com/amqp-node/amqplib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/amqp-node/amqplib/commits/v0.10.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-03 03:08:47 +00:00
dependabot[bot]
ece7873d77 chore(deps-dev): bump @nestjs/graphql from 10.0.13 to 10.0.15
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.13 to 10.0.15.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.13...v10.0.15)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-03 03:06:57 +00:00
dependabot[bot]
a6d9d5a4a3 chore(deps): bump protobufjs from 6.11.2 to 6.11.3
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 6.11.2 to 6.11.3.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases)
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/v6.11.3/CHANGELOG.md)
- [Commits](https://github.com/protobufjs/protobuf.js/compare/v6.11.2...v6.11.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-03 00:51:15 +00:00
dependabot[bot]
dd046d1da8 chore(deps): bump protobufjs from 6.11.2 to 6.11.3 in /sample/04-grpc
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 6.11.2 to 6.11.3.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases)
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/v6.11.3/CHANGELOG.md)
- [Commits](https://github.com/protobufjs/protobuf.js/compare/v6.11.2...v6.11.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-03 00:17:34 +00:00
Micael Levi (@micalevisk)
a2732a4f10 fix(core): prevents renaming global providers and modules
by marking them as a read-only properties of `globalThis` obj
2022-06-02 20:13:44 -04:00
delucca
dd3d85ae8a feat(microservices): exposes base context on the main package 2022-06-02 16:57:12 -04:00
Thiago Martins
2ad86480c5 docs(common): add validators docs 2022-06-02 14:41:44 -03:00
Thiago Martins
d62d96bd65 test(common): add builder tests
add tests for parse file pipe builder and refactor associated classes
2022-06-02 14:41:34 -03:00
Thiago Martins
b178eb5bce refactor(common): add braces
add curly braces to if statement for consistency
2022-06-02 14:41:31 -03:00
Thiago Martins
c43dbd8624 test(common): fix import to relative path
fix import to relative path, the alias was causing cyclic references
2022-06-02 14:41:28 -03:00
Thiago Martins
b277f958a5 fix(test): remove multer types 2022-06-02 14:41:23 -03:00
Thiago Martins
466abf66a8 test(common): add test for parse file pipe 2022-06-02 14:41:20 -03:00
Thiago Martins
e9d311a39d feat(common): add parse file pipe 2022-06-02 14:41:13 -03:00
Kamil Mysliwiec
018fd6bb5b Merge pull request #9715 from micalevisk/feat/repl-fix-coloring
fix(core): prompt respects `NO_COLOR` config
2022-06-02 09:35:23 +02:00
Kamil Mysliwiec
f3b8662620 Merge pull request #9706 from Tony133/sample/update-version-typeorm
sample(05-sql-typeorm): update version typeorm
2022-06-02 09:32:04 +02:00
Micael Levi (@micalevisk)
d8c8e67148 fix(core): prompt indicador respect NO_COLOR config 2022-06-01 22:35:37 -04:00
dependabot[bot]
9c2078905c chore(deps-dev): bump core-js from 3.22.7 to 3.22.8
Bumps [core-js](https://github.com/zloirock/core-js) from 3.22.7 to 3.22.8.
- [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/compare/v3.22.7...v3.22.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-02 00:10:49 +00:00
dependabot[bot]
c734a77d2e chore(deps-dev): bump lint-staged from 12.5.0 to 13.0.0
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.5.0 to 13.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.5.0...v13.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-02 00:09:48 +00:00
dependabot[bot]
b9b0e8a021 chore(deps-dev): bump cache-manager from 3.6.3 to 4.0.0
Bumps [cache-manager](https://github.com/BryanDonovan/node-cache-manager) from 3.6.3 to 4.0.0.
- [Release notes](https://github.com/BryanDonovan/node-cache-manager/releases)
- [Changelog](https://github.com/BryanDonovan/node-cache-manager/blob/master/History.md)
- [Commits](https://github.com/BryanDonovan/node-cache-manager/compare/3.6.3...4.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-02 00:05:09 +00:00
dependabot[bot]
00a0c1321f chore(deps-dev): bump @commitlint/cli from 17.0.1 to 17.0.2
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.0.1 to 17.0.2.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.0.2/@commitlint/cli)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-02 00:04:12 +00:00
Vincent Taverna
727b239515 Add public cause attribute 2022-06-01 15:04:29 -04:00
Tony133
edf9b62239 sample(05-sql-typeorm): update unit test 2022-06-01 18:10:21 +02:00
Tony133
ea7d2ac1eb sample(05-sql-typeorm): update version typeorm 2022-06-01 18:09:01 +02:00
Kamil Mysliwiec
1ba99cc6d0 Update Readme.md 2022-06-01 12:58:25 +02:00
Kamil Mysliwiec
c97257c9cf Merge pull request #9700 from nestjs/dependabot/npm_and_yarn/kafkajs-2.0.2
chore(deps-dev): bump kafkajs from 2.0.1 to 2.0.2
2022-06-01 12:34:47 +02:00
Kamil Mysliwiec
3e4ae03a2f Merge pull request #9701 from nestjs/dependabot/npm_and_yarn/types/node-17.0.38
chore(deps-dev): bump @types/node from 17.0.36 to 17.0.38
2022-06-01 12:34:07 +02:00
Kamil Mysliwiec
b042e15df8 Merge pull request #9702 from nestjs/dependabot/npm_and_yarn/point-of-view-6.2.1
chore(deps-dev): bump point-of-view from 5.3.0 to 6.2.1
2022-06-01 12:34:02 +02:00
Kamil Mysliwiec
3f8b20ceb8 Merge pull request #9703 from nestjs/dependabot/npm_and_yarn/lint-staged-12.5.0
chore(deps-dev): bump lint-staged from 12.4.3 to 12.5.0
2022-06-01 12:33:53 +02:00
Kamil Mysliwiec
9fd45a9e93 Merge pull request #9695 from micalevisk/feat/repl-improvements-v2
feat(core,common): add help messages to REPL built-in functions
2022-06-01 12:33:38 +02:00
Kamil Mysliwiec
09d6c4b857 Update packages/core/test/repl/native-functions/help-relp-fn.spec.ts 2022-06-01 12:01:22 +02:00
Kamil Mysliwiec
b8e48632e8 Update packages/core/test/repl/native-functions/help-relp-fn.spec.ts 2022-06-01 12:01:16 +02:00
Kamil Mysliwiec
c18f4b9f36 Update packages/core/test/repl/native-functions/help-relp-fn.spec.ts 2022-06-01 12:01:09 +02:00
Kamil Mysliwiec
99c6c628a4 Update packages/core/repl/native-functions/resolve-repl-fn.ts 2022-06-01 11:54:26 +02:00
Kamil Mysliwiec
160b521ef7 Update packages/core/repl/native-functions/methods-repl-fn.ts 2022-06-01 11:54:07 +02:00
Kamil Mysliwiec
89b39f946a Update packages/core/repl/native-functions/debug-repl-fn.ts 2022-06-01 11:53:45 +02:00
Kamil Mysliwiec
53fc03a821 Update packages/core/repl/native-functions/debug-repl-fn.ts 2022-06-01 11:52:47 +02:00
Micael Levi (@micalevisk)
833d16e21c test(core): add few missing tests for repl scope 2022-05-31 22:48:17 -04:00
dependabot[bot]
b9967462be chore(deps-dev): bump lint-staged from 12.4.3 to 12.5.0
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.4.3 to 12.5.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.4.3...v12.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 00:15:49 +00:00
dependabot[bot]
f407a204fb chore(deps-dev): bump point-of-view from 5.3.0 to 6.2.1
Bumps [point-of-view](https://github.com/fastify/point-of-view) from 5.3.0 to 6.2.1.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/compare/v5.3.0...v6.2.1)

---
updated-dependencies:
- dependency-name: point-of-view
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 00:14:11 +00:00
dependabot[bot]
663eeb85b6 chore(deps-dev): bump @types/node from 17.0.36 to 17.0.38
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.36 to 17.0.38.
- [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>
2022-06-01 00:12:54 +00:00
dependabot[bot]
50bceb0b2b chore(deps-dev): bump kafkajs from 2.0.1 to 2.0.2
Bumps [kafkajs](https://github.com/tulios/kafkajs) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/tulios/kafkajs/releases)
- [Changelog](https://github.com/tulios/kafkajs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tulios/kafkajs/compare/v2.0.1...v2.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 00:09:48 +00:00
Micael Levi (@micalevisk)
5ab8800bcb fix(core): add missing return to GetReplFn#action 2022-05-31 11:06:15 -04:00
Micael Levi (@micalevisk)
59965cf631 test(core,integration): fix repl test suite for the new api 2022-05-31 11:00:18 -04:00
Micael Levi (@micalevisk)
32c0a744fd feat(core): add description to debug native repl function 2022-05-31 08:19:29 -04:00
Micael Levi (@micalevisk)
092f350eb8 refactor(core): replace array by map for nativeFunctions field 2022-05-31 07:52:41 -04:00
Micael Levi (@micalevisk)
fbc0ab81b2 refactor(core): clean-up ReplContext fields 2022-05-31 06:58:41 -04:00
Micael Levi (@micalevisk)
d38a4e6a4c refactor(core): extract loadNativeFunctionsIntoContext from repl.ts 2022-05-31 06:42:40 -04:00
Micael Levi (@micalevisk)
964d02df6f refactor(core): rename ReplContext#initialize to initializeContext 2022-05-31 06:40:54 -04:00
Micael Levi (@micalevisk)
8282d8f48f refactor(core): move each repl function to their own file 2022-05-31 06:39:34 -04:00
Kamil Myśliwiec
9407ec90b3 chore(@nestjs) publish v8.4.6 release 2022-05-31 12:10:58 +02:00
Kamil Myśliwiec
ac1c066827 feat(core): make context id factory getter configurable 2022-05-31 12:07:02 +02:00
Kamil Myśliwiec
d0bb082db2 chore(): revert lerna to v2 2022-05-31 12:04:13 +02:00
Kamil Myśliwiec
cdb3043af3 chore(): revert lerna to v2 2022-05-31 11:56:37 +02:00
Kamil Myśliwiec
a287020ba9 Merge branch '9.0.0' of https://github.com/nestjs/nest into 9.0.0 2022-05-31 11:47:34 +02:00
Kamil Myśliwiec
2b10ff60c6 chore(): resolve conflicts 2022-05-31 11:47:17 +02:00
Kamil Mysliwiec
6cb1fbad32 Merge pull request #9697 from nestjs/feat/durable-providers
feat(core): add durable providers feature
2022-05-31 11:45:01 +02:00
Kamil Myśliwiec
ac5df55945 test(): uncomment context id factory strategy revert 2022-05-31 11:32:39 +02:00
Kamil Mysliwiec
404efbb75c Merge pull request #9597 from yiminghe/fix-number
fix(sample): id param is string type
2022-05-31 11:05:27 +02:00
Kamil Myśliwiec
b8652f8770 feat(core): add durable providers feature 2022-05-31 11:03:47 +02:00
Sushant Zope
457139098d fix(express): vulnerability "CVE-2022-24434"
Signed-off-by: Sushant Zope <sushantzope9096@gmail.com>
2022-05-31 14:18:09 +05:30
Kamil Mysliwiec
6b38ce1b77 Merge pull request #9665 from Tony133/chore/removed-types-socket-io
chore(): removed types for socket.io
2022-05-31 09:31:43 +02:00
Kamil Mysliwiec
7ec5537687 Merge pull request #9693 from nestjs/dependabot/npm_and_yarn/mongoose-6.3.5
chore(deps-dev): bump mongoose from 6.3.4 to 6.3.5
2022-05-31 08:40:08 +02:00
Kamil Mysliwiec
692f8f94ad Merge pull request #9688 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.13
chore(deps-dev): bump @nestjs/apollo from 10.0.12 to 10.0.13
2022-05-31 08:38:55 +02:00
Kamil Mysliwiec
bf058c64ee Merge pull request #9694 from nestjs/dependabot/npm_and_yarn/lint-staged-12.4.3
chore(deps-dev): bump lint-staged from 12.4.2 to 12.4.3
2022-05-31 08:38:29 +02:00
Micael Levi (@micalevisk)
1b95a46a62 feat(core): add help native function to repl 2022-05-31 02:07:07 -04:00
Micael Levi (@micalevisk)
f37e5d5cf8 feat(core): add help messages to built-in repl functions 2022-05-31 02:05:44 -04:00
Micael Levi (@micalevisk)
a5ecaebda1 feat(common): add bold coloring to cli colors utils 2022-05-31 02:04:47 -04:00
dependabot[bot]
8d5a76db6f chore(deps-dev): bump lint-staged from 12.4.2 to 12.4.3
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.4.2 to 12.4.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.4.2...v12.4.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-31 00:06:35 +00:00
dependabot[bot]
e65053cdaf chore(deps-dev): bump mongoose from 6.3.4 to 6.3.5
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.3.4 to 6.3.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/6.3.4...6.3.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-31 00:04:22 +00:00
Tony133
6f48b2840d chore(): removed types for socket.io 2022-05-30 09:30:05 +02:00
dependabot[bot]
b5c33d99b5 chore(deps-dev): bump @nestjs/apollo from 10.0.12 to 10.0.13
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.12 to 10.0.13.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.12...v10.0.13)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 06:25:28 +00:00
Kamil Mysliwiec
d0449dadb4 Merge pull request #9682 from TheKhanj/master
Fix typo in docs
2022-05-30 08:22:23 +02:00
Kamil Mysliwiec
d7ac0f1ce3 Merge pull request #9687 from nestjs/dependabot/npm_and_yarn/ws-8.7.0
chore(deps): bump ws from 8.6.0 to 8.7.0
2022-05-30 08:22:06 +02:00
Kamil Mysliwiec
bfac2c332d Merge pull request #9689 from nestjs/dependabot/npm_and_yarn/nats-2.7.1
chore(deps-dev): bump nats from 2.7.0 to 2.7.1
2022-05-30 08:20:02 +02:00
Kamil Mysliwiec
4bcdce98c3 Merge pull request #9690 from nestjs/dependabot/npm_and_yarn/types/node-17.0.36
chore(deps-dev): bump @types/node from 17.0.35 to 17.0.36
2022-05-30 08:19:39 +02:00
Kamil Mysliwiec
e1fde6f168 Merge pull request #9691 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.0.13
chore(deps-dev): bump @nestjs/graphql from 10.0.12 to 10.0.13
2022-05-30 08:19:15 +02:00
dependabot[bot]
b39fa69f2f chore(deps-dev): bump @nestjs/graphql from 10.0.12 to 10.0.13
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.12 to 10.0.13.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.12...v10.0.13)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 00:21:28 +00:00
dependabot[bot]
c27e3c4615 chore(deps-dev): bump @types/node from 17.0.35 to 17.0.36
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.35 to 17.0.36.
- [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>
2022-05-30 00:19:12 +00:00
dependabot[bot]
d9e6090643 chore(deps-dev): bump nats from 2.7.0 to 2.7.1
Bumps [nats](https://github.com/nats-io/nats.js) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.7.0...v2.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 00:17:15 +00:00
dependabot[bot]
9a776f16b1 chore(deps): bump ws from 8.6.0 to 8.7.0
Bumps [ws](https://github.com/websockets/ws) from 8.6.0 to 8.7.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.6.0...8.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 00:10:50 +00:00
Kamil Myśliwiec
21d6dd1376 lint(core): address linter errors 2022-05-29 16:23:46 +02:00
Kamil Myśliwiec
bae30b23ce test(): remove unnecessary files 2022-05-29 16:20:59 +02:00
Kamil Myśliwiec
245ccd1249 feat(core): repl 2022-05-29 16:08:15 +02:00
Pooyan Khanjankhani
0cbde57766 Fix typo in docs 2022-05-28 14:54:23 +04:30
Micael Levi (@micalevisk)
1e5f548c11 docs(microservices): clarify what is the default value of postfixId 2022-05-27 23:50:53 -04:00
Micael Levi (@micalevisk)
0359fa4666 fix(microservices): when postfixId is an empty string on kafka 2022-05-27 23:35:38 -04:00
Kamil Mysliwiec
2e3727b786 Merge pull request #9676 from micalevisk/patch-2
chore: cover `integration` dir on lint-staged config
2022-05-27 10:17:43 +02:00
Micael Levi L. Cavalcante
66387721f3 chore: fix mismatch between lint-staged config and format 2022-05-27 00:20:01 -04:00
Konasov Dmitriy
e8e22acb39 fix(microservices): Fixed typings for MessageHandler 2022-05-26 20:43:33 +03:00
Kamil Mysliwiec
f765e2c8c9 Merge pull request #9669 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.0.1
chore(deps-dev): bump @commitlint/cli from 17.0.0 to 17.0.1
2022-05-26 09:03:01 +02:00
dependabot[bot]
8de876e082 chore(deps-dev): bump @commitlint/cli from 17.0.0 to 17.0.1
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.0.0 to 17.0.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.0.1/@commitlint/cli)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-26 00:52:45 +00:00
Vincent Taverna
32d1e9617b feat(common): Add error chaining support to http exception
Adds the ability to configure the cause of an error when passing an error object to http exception.
- https://nodejs.org/en/blog/release/v16.9.0/#error-cause
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Error#rethrowing_an_error_with_a_cause
- https://github.com/microsoft/TypeScript/issues/45167
2022-05-25 10:34:53 -04:00
Kamil Mysliwiec
e322564fd8 Merge pull request #9658 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.8.1
chore(deps-dev): bump apollo-server-core from 3.7.0 to 3.8.1
2022-05-25 11:53:10 +02:00
dependabot[bot]
233725075c chore(deps-dev): bump apollo-server-core from 3.7.0 to 3.8.1
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.7.0 to 3.8.1.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-core@3.8.1/packages/apollo-server-core)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-25 08:19:22 +00:00
Kamil Mysliwiec
d83edc32dd Merge pull request #9631 from micalevisk/refactoring-applyVersioning-express
refactor(express): improve `applyVersioning` handler selector code
2022-05-25 10:17:24 +02:00
Kamil Mysliwiec
943b70a7ce Merge pull request #9659 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.8.1
chore(deps-dev): bump apollo-server-express from 3.7.0 to 3.8.1
2022-05-25 10:16:42 +02:00
Kamil Mysliwiec
bf6869afe0 Merge pull request #9660 from nestjs/dependabot/npm_and_yarn/ts-morph-15.0.0
chore(deps-dev): bump ts-morph from 14.0.0 to 15.0.0
2022-05-25 10:16:38 +02:00
Kamil Mysliwiec
1e57108a7c Merge pull request #9661 from nestjs/dependabot/npm_and_yarn/lint-staged-12.4.2
chore(deps-dev): bump lint-staged from 12.4.1 to 12.4.2
2022-05-25 10:16:34 +02:00
Kamil Mysliwiec
6582ed412e Merge pull request #9662 from nestjs/dependabot/npm_and_yarn/core-js-3.22.7
chore(deps-dev): bump core-js from 3.22.6 to 3.22.7
2022-05-25 10:16:26 +02:00
Kamil Mysliwiec
9b129f14b8 Merge pull request #9663 from nestjs/dependabot/npm_and_yarn/typescript-4.7.2
chore(deps-dev): bump typescript from 4.6.4 to 4.7.2
2022-05-25 10:16:21 +02:00
Kamil Mysliwiec
ca59ee5bf4 Merge pull request #9657 from Tony133/test/rename-app-module
test(integration): rename app module in test e2e
2022-05-25 08:54:36 +02:00
dependabot[bot]
ef93fb7844 chore(deps-dev): bump typescript from 4.6.4 to 4.7.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.4 to 4.7.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.4...v4.7.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-25 00:40:47 +00:00
dependabot[bot]
eb32940d2e chore(deps-dev): bump core-js from 3.22.6 to 3.22.7
Bumps [core-js](https://github.com/zloirock/core-js) from 3.22.6 to 3.22.7.
- [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/compare/v3.22.6...v3.22.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-25 00:37:18 +00:00
dependabot[bot]
05d74b549d chore(deps-dev): bump lint-staged from 12.4.1 to 12.4.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.4.1 to 12.4.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.4.1...v12.4.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>
2022-05-25 00:34:38 +00:00
dependabot[bot]
8d834e0454 chore(deps-dev): bump ts-morph from 14.0.0 to 15.0.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 14.0.0 to 15.0.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/14.0.0...15.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>
2022-05-25 00:33:16 +00:00
dependabot[bot]
6f46d8e47d chore(deps-dev): bump apollo-server-express from 3.7.0 to 3.8.1
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.7.0 to 3.8.1.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-express@3.8.1/packages/apollo-server-express)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-25 00:31:52 +00:00
Tony133
c9e619e74a test(integration): rename app module in test e2e 2022-05-24 21:28:34 +02:00
Kamil Mysliwiec
3dfdfe4b41 Merge pull request #9653 from tolgap/fix/9652-fastify-raw-body-specs
fix(testing): raw body spec not using fastify adapter
2022-05-24 11:30:22 +02:00
Tolga Paksoy
9db43f6f66 fix(testing): raw body spec not using fastify adapter 2022-05-24 10:17:50 +02:00
Kamil Mysliwiec
7b112ddb30 Merge pull request #9646 from nestjs/dependabot/npm_and_yarn/kafkajs-2.0.1
chore(deps-dev): bump kafkajs from 2.0.0 to 2.0.1
2022-05-23 13:23:43 +02:00
Kamil Mysliwiec
eadebe41eb Merge pull request #9645 from nestjs/dependabot/npm_and_yarn/core-js-3.22.6
chore(deps-dev): bump core-js from 3.22.5 to 3.22.6
2022-05-23 13:23:37 +02:00
Kamil Mysliwiec
e6cd980de6 Merge pull request #9639 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.0.12
chore(deps-dev): bump @nestjs/graphql from 10.0.8 to 10.0.12
2022-05-23 13:23:03 +02:00
Micael Levi (@micalevisk)
dca949ae32 refactor(express): improve applyVersioning handler selector code 2022-05-23 06:23:02 -04:00
dependabot[bot]
f57a2d1956 chore(deps-dev): bump @nestjs/graphql from 10.0.8 to 10.0.12
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.8 to 10.0.12.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.8...v10.0.12)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 07:46:56 +00:00
dependabot[bot]
008766a999 chore(deps-dev): bump kafkajs from 2.0.0 to 2.0.1
Bumps [kafkajs](https://github.com/tulios/kafkajs) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/tulios/kafkajs/releases)
- [Changelog](https://github.com/tulios/kafkajs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tulios/kafkajs/compare/v2.0.0...v2.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 07:46:46 +00:00
dependabot[bot]
18727a47e3 chore(deps-dev): bump core-js from 3.22.5 to 3.22.6
Bumps [core-js](https://github.com/zloirock/core-js) from 3.22.5 to 3.22.6.
- [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/compare/v3.22.5...v3.22.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 07:46:24 +00:00
Kamil Mysliwiec
ad8b5fbe5b Merge pull request #9637 from nestjs/dependabot/npm_and_yarn/nestjs/mongoose-9.1.0
chore(deps-dev): bump @nestjs/mongoose from 9.0.3 to 9.1.0
2022-05-23 09:44:06 +02:00
dependabot[bot]
798851d70d chore(deps-dev): bump @nestjs/mongoose from 9.0.3 to 9.1.0
Bumps [@nestjs/mongoose](https://github.com/nestjs/mongoose) from 9.0.3 to 9.1.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.0.3...9.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 07:40:24 +00:00
Kamil Mysliwiec
4836fbe80e Merge pull request #9641 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.2.11
chore(deps-dev): bump graphql-tools from 8.2.9 to 8.2.11
2022-05-23 09:39:09 +02:00
Kamil Mysliwiec
d964f23b24 Merge pull request #9640 from nestjs/dependabot/npm_and_yarn/concurrently-7.2.1
chore(deps-dev): bump concurrently from 7.2.0 to 7.2.1
2022-05-23 09:38:57 +02:00
Kamil Mysliwiec
85c5207640 Merge pull request #9642 from nestjs/dependabot/npm_and_yarn/ts-node-10.8.0
chore(deps-dev): bump ts-node from 10.7.0 to 10.8.0
2022-05-23 09:35:50 +02:00
Kamil Mysliwiec
f5827cf569 Merge pull request #9643 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.12
chore(deps-dev): bump @nestjs/apollo from 10.0.11 to 10.0.12
2022-05-23 09:35:45 +02:00
Kamil Mysliwiec
e9cfc1176b Merge pull request #9638 from nestjs/dependabot/npm_and_yarn/amqplib-0.9.1
chore(deps-dev): bump amqplib from 0.9.0 to 0.9.1
2022-05-23 09:35:37 +02:00
Kamil Mysliwiec
7d5622870a Merge pull request #9636 from nestjs/dependabot/npm_and_yarn/nestjs/typeorm-8.0.4
chore(deps-dev): bump @nestjs/typeorm from 8.0.3 to 8.0.4
2022-05-23 09:35:24 +02:00
Kamil Mysliwiec
9e1c98d9e4 Merge pull request #9635 from nestjs/dependabot/npm_and_yarn/cache-manager-3.6.3
chore(deps-dev): bump cache-manager from 3.6.2 to 3.6.3
2022-05-23 09:35:17 +02:00
Kamil Mysliwiec
b76dd0ddad Merge pull request #9630 from micalevisk/fix-testing-logger-disabling
fix(testing): disable logs when `logger` is `false` on `TestingModule`
2022-05-23 09:13:23 +02:00
dependabot[bot]
bb73fee218 chore(deps-dev): bump concurrently from 7.2.0 to 7.2.1
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.2.0 to 7.2.1.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.2.0...v7.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 06:51:01 +00:00
Kamil Mysliwiec
29208cada8 Merge pull request #9628 from micalevisk/development-improvements
chore: keep only one eslint config file & fix linter and tsc for dev
2022-05-23 08:48:19 +02:00
Kamil Mysliwiec
895becf82b Merge pull request #9627 from micalevisk/patch-1
docs: add more commit scopes on contributing guide
2022-05-23 08:38:41 +02:00
Kamil Mysliwiec
3f8a6c96d8 Update packages/platform-fastify/adapters/fastify-adapter.ts
Co-authored-by: Micael Levi L. Cavalcante <mllc@icomp.ufam.edu.br>
2022-05-23 08:36:43 +02:00
dependabot[bot]
77ce066b47 chore(deps-dev): bump @nestjs/apollo from 10.0.11 to 10.0.12
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.11 to 10.0.12.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.11...v10.0.12)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 00:27:44 +00:00
dependabot[bot]
fae2267179 chore(deps-dev): bump ts-node from 10.7.0 to 10.8.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.7.0 to 10.8.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.7.0...v10.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 00:25:05 +00:00
dependabot[bot]
1fe3d2be42 chore(deps-dev): bump graphql-tools from 8.2.9 to 8.2.11
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.2.9 to 8.2.11.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.2.11/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 00:23:25 +00:00
dependabot[bot]
876a6ba582 chore(deps-dev): bump amqplib from 0.9.0 to 0.9.1
Bumps [amqplib](https://github.com/amqp-node/amqplib) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/amqp-node/amqplib/releases)
- [Changelog](https://github.com/amqp-node/amqplib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/amqp-node/amqplib/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 00:17:52 +00:00
dependabot[bot]
0b8034bbc8 chore(deps-dev): bump @nestjs/typeorm from 8.0.3 to 8.0.4
Bumps [@nestjs/typeorm](https://github.com/nestjs/typeorm) from 8.0.3 to 8.0.4.
- [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/8.0.3...8.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 00:11:49 +00:00
dependabot[bot]
a0a4bfd007 chore(deps-dev): bump cache-manager from 3.6.2 to 3.6.3
Bumps [cache-manager](https://github.com/BryanDonovan/node-cache-manager) from 3.6.2 to 3.6.3.
- [Release notes](https://github.com/BryanDonovan/node-cache-manager/releases)
- [Changelog](https://github.com/BryanDonovan/node-cache-manager/blob/master/History.md)
- [Commits](https://github.com/BryanDonovan/node-cache-manager/compare/3.6.2...3.6.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>
2022-05-23 00:09:48 +00:00
Micael Levi (@micalevisk)
935a3d645d fix(testing): disable logs when logger is false on TestingModule 2022-05-21 23:46:05 -04:00
Micael Levi (@micalevisk)
d59700c939 chore: add tsconfig file for test directories
This file was added to circumvent a VSC limitation where the IDE can't
detect the right tsconfig to use for a given file.
More on this issue here: https://github.com/microsoft/vscode/issues/3772
2022-05-21 19:43:59 -04:00
Micael Levi (@micalevisk)
2ce994dbd0 chore: keep only one eslint config file for dev 2022-05-21 19:43:55 -04:00
Micael Levi (@micalevisk)
6a2dc6fab5 chore: add allowed scopes to commitlint config 2022-05-21 18:31:13 -04:00
Micael Levi (@micalevisk)
e6db2b40f6 docs: add more commit scopes on contributing guide 2022-05-21 18:31:03 -04:00
Kamil Mysliwiec
6aeb3258ac Merge pull request #9623 from nestjs/dependabot/npm_and_yarn/light-my-request-5.0.0
chore(deps): bump light-my-request from 4.10.1 to 5.0.0
2022-05-20 11:02:24 +02:00
Kamil Mysliwiec
cabb6a698d Merge pull request #9624 from nestjs/dependabot/npm_and_yarn/cache-manager-3.6.2
chore(deps-dev): bump cache-manager from 3.6.1 to 3.6.2
2022-05-20 11:02:15 +02:00
Kamil Mysliwiec
6fb1cf9ad1 Merge pull request #9625 from nestjs/dependabot/npm_and_yarn/types/node-17.0.35
chore(deps-dev): bump @types/node from 17.0.34 to 17.0.35
2022-05-20 11:02:10 +02:00
Kamil Mysliwiec
1a93f53da1 Merge pull request #9626 from nestjs/dependabot/npm_and_yarn/mongoose-6.3.4
chore(deps-dev): bump mongoose from 6.3.3 to 6.3.4
2022-05-20 11:01:50 +02:00
dependabot[bot]
41b9872c5a chore(deps-dev): bump mongoose from 6.3.3 to 6.3.4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.3.3 to 6.3.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/6.3.3...6.3.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 00:15:55 +00:00
dependabot[bot]
981b9750d0 chore(deps-dev): bump @types/node from 17.0.34 to 17.0.35
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.34 to 17.0.35.
- [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>
2022-05-20 00:14:07 +00:00
dependabot[bot]
c002c99f9d chore(deps-dev): bump cache-manager from 3.6.1 to 3.6.2
Bumps [cache-manager](https://github.com/BryanDonovan/node-cache-manager) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/BryanDonovan/node-cache-manager/releases)
- [Changelog](https://github.com/BryanDonovan/node-cache-manager/blob/master/History.md)
- [Commits](https://github.com/BryanDonovan/node-cache-manager/compare/3.6.1...3.6.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>
2022-05-20 00:10:55 +00:00
dependabot[bot]
89a7017bbd chore(deps): bump light-my-request from 4.10.1 to 5.0.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 4.10.1 to 5.0.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v4.10.1...v5.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 00:04:29 +00:00
Kamil Myśliwiec
5de7913f9b chore(deps): remove axios dependency 2022-05-19 10:21:25 +02:00
Kamil Mysliwiec
76d123d1c4 Merge pull request #9618 from micalevisk/drop-json-socket-dep
chore(microservices,testing): drop `json-socket` and `optional` hard dependencies
2022-05-19 10:21:09 +02:00
Kamil Mysliwiec
ebc432f3c4 Merge pull request #9619 from nestjs/dependabot/npm_and_yarn/nats-2.7.0
chore(deps-dev): bump nats from 2.6.1 to 2.7.0
2022-05-19 10:17:15 +02:00
dependabot[bot]
585312ad50 chore(deps-dev): bump nats from 2.6.1 to 2.7.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.6.1...v2.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-19 00:09:43 +00:00
Micael Levi (@micalevisk)
c38f025fb2 chore(testing): drop useless optional hard dependency 2022-05-18 18:22:53 -04:00
Micael Levi (@micalevisk)
19acae5e73 chore(microservices): drop useless json-socket hard dependency
The commit 9c3e15a902 added our own
version of the package `json-socket` (which looks abandoned)
2022-05-18 18:07:54 -04:00
yiminghe
477303b058 fix(sample): id param is string type 2022-05-18 22:55:09 +08:00
Kamil Mysliwiec
a4294e485b Merge pull request #9604 from micalevisk/drop-deprecated-functions
refactor(common,core,microservices)!: drop all deprecated methods
2022-05-18 14:26:59 +02:00
Kamil Mysliwiec
ea44da521a Merge pull request #9601 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/node-fetch-2.6.7
chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/07-sequelize
2022-05-18 13:59:51 +02:00
Kamil Mysliwiec
c08f0a0347 Merge pull request #9607 from nestjs/dependabot/npm_and_yarn/sample/12-graphql-schema-first/node-fetch-2.6.7
chore(deps): bump node-fetch from 2.6.1 to 2.6.7 in /sample/12-graphql-schema-first
2022-05-18 13:59:47 +02:00
dependabot[bot]
797fd34c12 chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/07-sequelize
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:59:42 +00:00
Kamil Mysliwiec
0f4502763d Merge pull request #9609 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/path-parse-1.0.7
chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/14-mongoose-base
2022-05-18 13:59:39 +02:00
dependabot[bot]
709309f613 chore(deps): bump path-parse in /sample/14-mongoose-base
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:59:35 +00:00
dependabot[bot]
73b3295987 chore(deps): bump node-fetch in /sample/12-graphql-schema-first
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:59:21 +00:00
Kamil Mysliwiec
5cc14c425c Merge pull request #9599 from nestjs/dependabot/npm_and_yarn/sample/09-babel-example/path-parse-1.0.7
chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/09-babel-example
2022-05-18 13:59:13 +02:00
Kamil Mysliwiec
a3cd6f1d0e Merge pull request #9600 from nestjs/dependabot/npm_and_yarn/sample/08-webpack/node-fetch-2.6.7
chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/08-webpack
2022-05-18 13:59:09 +02:00
Kamil Mysliwiec
7e51d0a383 Merge pull request #9602 from nestjs/dependabot/npm_and_yarn/sample/09-babel-example/lodash-4.17.21
chore(deps): bump lodash from 4.17.20 to 4.17.21 in /sample/09-babel-example
2022-05-18 13:59:05 +02:00
Kamil Mysliwiec
46fa788925 Merge pull request #9603 from nestjs/dependabot/npm_and_yarn/sample/06-mongoose/node-fetch-2.6.7
chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/06-mongoose
2022-05-18 13:59:01 +02:00
Kamil Mysliwiec
967b11740c Merge pull request #9605 from nestjs/dependabot/npm_and_yarn/sample/15-mvc/lodash-4.17.21
chore(deps): bump lodash from 4.17.20 to 4.17.21 in /sample/15-mvc
2022-05-18 13:58:57 +02:00
Kamil Mysliwiec
ab4f7e28ca Merge pull request #9606 from nestjs/dependabot/npm_and_yarn/sample/15-mvc/path-parse-1.0.7
chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/15-mvc
2022-05-18 13:58:51 +02:00
Kamil Mysliwiec
3b77c17744 Merge pull request #9608 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/node-fetch-2.6.7
chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/14-mongoose-base
2022-05-18 13:58:44 +02:00
Kamil Mysliwiec
8f2220fdb3 Merge pull request #9610 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/lodash-4.17.21
chore(deps): bump lodash from 4.17.20 to 4.17.21 in /sample/14-mongoose-base
2022-05-18 13:58:36 +02:00
dependabot[bot]
88d1defc5a chore(deps): bump lodash from 4.17.20 to 4.17.21 in /sample/15-mvc
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:56:37 +00:00
dependabot[bot]
88a467c30a chore(deps): bump lodash in /sample/09-babel-example
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:56:36 +00:00
dependabot[bot]
94a8317307 chore(deps): bump node-fetch in /sample/14-mongoose-base
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:56:36 +00:00
dependabot[bot]
bab39b0b4c chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/06-mongoose
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:56:35 +00:00
dependabot[bot]
9787fab63a chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/15-mvc
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:56:28 +00:00
dependabot[bot]
78c2630e70 chore(deps): bump lodash in /sample/14-mongoose-base
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:56:28 +00:00
dependabot[bot]
68f56fafd2 chore(deps): bump path-parse in /sample/09-babel-example
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:56:24 +00:00
dependabot[bot]
c91ec71600 chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/08-webpack
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:56:20 +00:00
Kamil Mysliwiec
9c26865103 Merge pull request #9611 from nestjs/dependabot/npm_and_yarn/sample/11-swagger/node-fetch-2.6.7
chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/11-swagger
2022-05-18 13:55:56 +02:00
Kamil Mysliwiec
3bb69c3e40 Merge pull request #9612 from nestjs/dependabot/npm_and_yarn/sample/11-swagger/path-parse-1.0.7
chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/11-swagger
2022-05-18 13:55:49 +02:00
Kamil Mysliwiec
2fbad9ecaf Merge pull request #9613 from nestjs/dependabot/npm_and_yarn/sample/11-swagger/lodash-4.17.21
chore(deps): bump lodash from 4.17.20 to 4.17.21 in /sample/11-swagger
2022-05-18 13:55:45 +02:00
Kamil Mysliwiec
7283ca9e64 Merge pull request #9614 from nestjs/dependabot/npm_and_yarn/sample/10-fastify/lodash-4.17.21
chore(deps): bump lodash from 4.17.20 to 4.17.21 in /sample/10-fastify
2022-05-18 13:55:40 +02:00
Kamil Mysliwiec
51405ee9fc Merge pull request #9615 from nestjs/dependabot/npm_and_yarn/sample/09-babel-example/node-fetch-2.6.7
chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/09-babel-example
2022-05-18 13:55:36 +02:00
Kamil Mysliwiec
7eb767297e Merge pull request #9598 from nestjs/dependabot/npm_and_yarn/sample/08-webpack/path-parse-1.0.7
chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/08-webpack
2022-05-18 13:55:29 +02:00
dependabot[bot]
9d82204378 chore(deps): bump node-fetch in /sample/09-babel-example
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:44:33 +00:00
dependabot[bot]
825b8d49fe chore(deps): bump lodash from 4.17.20 to 4.17.21 in /sample/10-fastify
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:44:32 +00:00
dependabot[bot]
6250010091 chore(deps): bump lodash from 4.17.20 to 4.17.21 in /sample/11-swagger
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:44:26 +00:00
dependabot[bot]
2a9250f2cf chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/11-swagger
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:44:24 +00:00
dependabot[bot]
4f85cf842c chore(deps): bump node-fetch from 2.6.6 to 2.6.7 in /sample/11-swagger
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:44:22 +00:00
dependabot[bot]
dd3b97b491 chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/08-webpack
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 11:41:41 +00:00
Micael Levi (@micalevisk)
6d3cab8c99 refactor(common,core,microservices): drop all deprecated methods 2022-05-18 07:40:54 -04:00
Micael Levi (@micalevisk)
2f6bbaffe1 feat(common): remove deprecated shared utility validatePath 2022-05-18 07:32:52 -04:00
Kamil Mysliwiec
cb2101990a Merge pull request #9592 from nestjs/dependabot/npm_and_yarn/socket.io-4.5.1
chore(deps): bump socket.io from 4.5.0 to 4.5.1
2022-05-18 09:30:10 +02:00
Kamil Mysliwiec
c8185137f8 Merge pull request #9594 from nestjs/dependabot/npm_and_yarn/imports-loader-4.0.0
chore(deps-dev): bump imports-loader from 3.1.1 to 4.0.0
2022-05-18 09:30:02 +02:00
Kamil Mysliwiec
b463d71166 Merge pull request #9595 from nestjs/dependabot/npm_and_yarn/socket.io-client-4.5.1
chore(deps-dev): bump socket.io-client from 4.5.0 to 4.5.1
2022-05-18 09:29:51 +02:00
Kamil Mysliwiec
34d09c0494 Merge pull request #9591 from micalevisk/make-applyVersionFilter-mandatory
feat(common,core)!: make `HttpServer#applyVersionFilter` mandatory
2022-05-18 09:29:41 +02:00
Kamil Mysliwiec
c5dbdaf57e Merge pull request #9596 from micalevisk/replace-warn-with-error
feat(core)!: throw an exception instead of logging due to module import misusage
2022-05-18 09:28:52 +02:00
Kamil Myśliwiec
1ee52b1157 Merge branch 'Tony133-chore/remove-http-module' into 9.0.0 2022-05-18 09:25:09 +02:00
Kamil Myśliwiec
4fac9c9bf2 chore(): remove http folder 2022-05-18 09:24:36 +02:00
Micael Levi (@micalevisk)
2d87a5addb feat(core): throw an exception instead of logging due to module misusage 2022-05-17 23:08:21 -04:00
Micael Levi (@micalevisk)
696672e7e6 refactor(core): remove temp variable on applyVersionFilter 2022-05-17 20:16:15 -04:00
Micael Levi (@micalevisk)
0e337d0e3a feat(common,core): make HttpServer#applyVersionFilter mandatory 2022-05-17 20:16:12 -04:00
dependabot[bot]
052f439683 chore(deps-dev): bump socket.io-client from 4.5.0 to 4.5.1
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.5.0 to 4.5.1.
- [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.5.0...4.5.1)

---
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>
2022-05-18 00:12:14 +00:00
dependabot[bot]
f4b3123c93 chore(deps-dev): bump imports-loader from 3.1.1 to 4.0.0
Bumps [imports-loader](https://github.com/webpack-contrib/imports-loader) from 3.1.1 to 4.0.0.
- [Release notes](https://github.com/webpack-contrib/imports-loader/releases)
- [Changelog](https://github.com/webpack-contrib/imports-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/imports-loader/compare/v3.1.1...v4.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 00:11:01 +00:00
dependabot[bot]
afbb24f03d chore(deps): bump socket.io from 4.5.0 to 4.5.1
Bumps [socket.io](https://github.com/socketio/socket.io) from 4.5.0 to 4.5.1.
- [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.5.0...4.5.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 00:03:48 +00:00
Tony133
dd58e42501 chore(): remove http module deprecated 2022-05-17 17:53:30 +02:00
Kamil Mysliwiec
2362ade438 Merge pull request #9311 from woobottle/woo_bottle/change-reflectMetatData-params-order
Refactoring(core): Change ReflectMetadata Params Order
2022-05-17 17:04:26 +02:00
Kamil Myśliwiec
f11181071e chore(): resolve conflicts 2022-05-17 14:11:27 +02:00
Kamil Mysliwiec
11ac94e23e Merge pull request #8798 from nestjs/feat/migrate-to-ioredis
feat(microservices): migrate redis transporter to internally use ioredis package
2022-05-17 14:10:38 +02:00
Kamil Mysliwiec
cd62e31bcf Merge pull request #9522 from nestjs/dependabot/npm_and_yarn/mocha-10.0.0
chore(deps-dev): bump mocha from 9.2.2 to 10.0.0
2022-05-17 14:09:04 +02:00
Kamil Myśliwiec
34143d9e79 test(microservices): update outdated listeners controller test 2022-05-17 14:02:12 +02:00
Kamil Myśliwiec
79cccd0574 Merge branch 'tolgap-express-raw-body' 2022-05-17 13:45:59 +02:00
Kamil Myśliwiec
71e3143d90 style(): minor foramtting tweaks 2022-05-17 13:45:29 +02:00
Kamil Myśliwiec
2eaee87f09 Merge branch 'express-raw-body' of https://github.com/tolgap/nest into tolgap-express-raw-body 2022-05-17 13:44:04 +02:00
Kamil Myśliwiec
7ca14a2ed4 Merge branch 'esahin90-sahin/optional-consumer-kafka-client' 2022-05-17 13:42:33 +02:00
Kamil Myśliwiec
b7d92b2b2a style(): run prettier 2022-05-17 13:42:03 +02:00
Kamil Myśliwiec
d38a7d894f Merge branch 'sahin/optional-consumer-kafka-client' of https://github.com/esahin90/nest into esahin90-sahin/optional-consumer-kafka-client 2022-05-17 13:41:17 +02:00
Kamil Myśliwiec
cf42ed5b8d ci(): remove test_node_10 job 2022-05-17 13:39:29 +02:00
Kamil Myśliwiec
72c046dec7 fix(microservices): update ioredis options 2022-05-17 13:39:18 +02:00
Kamil Myśliwiec
1e8966b603 test(microservices): update server & client redis unit tests 2022-05-17 13:33:21 +02:00
Kamil Myśliwiec
40e2755c82 feat(microservices): migrate redis transporter to internally use ioredis package 2022-05-17 13:33:21 +02:00
dependabot[bot]
64e58b750c chore(deps-dev): bump mocha from 9.2.2 to 10.0.0
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.2 to 10.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.2...v10.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-17 11:25:46 +00:00
Kamil Mysliwiec
a21c75c4f7 Update packages/microservices/client/client-kafka.ts 2022-05-17 13:25:45 +02:00
Kamil Myśliwiec
61bcb7fe39 Merge branch 'alexfriesen-master' into 9.0.0 2022-05-17 13:24:07 +02:00
Kamil Myśliwiec
ddd95b810f chore(): resolve conflicts 2022-05-17 13:23:51 +02:00
Kamil Mysliwiec
707a3e069f Merge pull request #9587 from nestjs/fix/revert-interceptors-grpc
fix(microservices): revert grpc client interceptors (grpc-specific)
2022-05-17 13:22:01 +02:00
Kamil Mysliwiec
66da12aecf Merge pull request #9586 from nestjs/fix/propagate-kafka-errors
feat(microservices): add kafka retriable exception, auto-unwrap payloads
2022-05-17 13:21:35 +02:00
Kamil Myśliwiec
1f5a5b4f2e chore(): set minimum node version to v12 2022-05-17 13:21:25 +02:00
Kamil Myśliwiec
be1a8c33bd Merge branch 'Dzixxx-support-multiple-patterns' into 9.0.0 2022-05-17 13:17:02 +02:00
Kamil Myśliwiec
e3e3ef5cc5 chore(): resolve conflicts 2022-05-17 13:16:46 +02:00
Kamil Mysliwiec
fc95619e4d Merge pull request #9534 from nestjs/feat/module-utils
feat(core): add configurable module builder, module utils
2022-05-17 13:14:31 +02:00
Kamil Mysliwiec
19b55e9a37 Merge pull request #9491 from micalevisk/fix-use-isObservable
Use rxjs when checking if the value is an observable
2022-05-17 13:14:04 +02:00
Kamil Mysliwiec
ca967b809e Merge pull request #9383 from micalevisk/fix-issue-9357
feat(common)!: disallow usage of `inject` on class and value providers at type level
2022-05-17 13:13:56 +02:00
Kamil Mysliwiec
206579242a Merge pull request #9023 from ZanMinKian/fix/factory-provider-type
fix: fix factory provider definition
2022-05-17 13:13:22 +02:00
Kamil Mysliwiec
ddd24f970d Merge pull request #8058 from diesal11/master
Improve ParseUUIDPipe error message
2022-05-17 13:09:41 +02:00
Kamil Mysliwiec
28afaa27dc Merge pull request #8459 from titivuk/fix/ParseUUIDPipe
fix(common): ParseUUIDPipe - throw exceptions with exceptionFactory only
2022-05-17 13:09:16 +02:00
Kamil Mysliwiec
bad85d9172 Merge pull request #9585 from micalevisk/fix-issue-9581
fix: when version is an array with neutral version
2022-05-17 13:07:59 +02:00
Kamil Myśliwiec
dde23b1a2b fix(microservices): revert interceptors (grpc option) 2022-05-17 13:05:26 +02:00
Kamil Myśliwiec
4ca738dddf chore(): resolve conflicts 2022-05-17 12:55:34 +02:00
Kamil Myśliwiec
5464d72738 chore(microservices): make method name somewhat more self descriptive 2022-05-17 12:48:29 +02:00
Kamil Myśliwiec
cfe1191d22 fix(microservices): combine streams instead of subscribing twice 2022-05-17 12:47:42 +02:00
Kamil Mysliwiec
20870b1d41 Merge pull request #9583 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.0.0
chore(deps-dev): bump @commitlint/cli from 16.3.0 to 17.0.0
2022-05-17 11:44:45 +02:00
Kamil Myśliwiec
90af9590f5 feat(microservices): dont swallow kafka event handler exceptions 2022-05-17 11:33:42 +02:00
Kamil Myśliwiec
6547f922fb feat(microservices): add kafka request deserializer, unwrap request 2022-05-17 10:49:51 +02:00
Kamil Myśliwiec
a439055646 feat(microservices): add kafka retriable exception, rethrow if needed 2022-05-17 10:41:08 +02:00
dependabot[bot]
842b7cb776 chore(deps-dev): bump @commitlint/cli from 16.3.0 to 17.0.0
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 16.3.0 to 17.0.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.0.0/@commitlint/cli)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-17 08:24:17 +00:00
Kamil Mysliwiec
7cea25f6b7 Merge pull request #9584 from nestjs/dependabot/npm_and_yarn/types/node-17.0.34
chore(deps-dev): bump @types/node from 17.0.33 to 17.0.34
2022-05-17 10:21:33 +02:00
Kamil Mysliwiec
5c904a622f Merge pull request #9582 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-17.0.0
chore(deps-dev): bump @commitlint/config-angular from 16.3.0 to 17.0.0
2022-05-17 10:21:20 +02:00
Micael Levi (@micalevisk)
15737e0622 test: add tests to cover version array with neutral 2022-05-16 22:07:53 -04:00
Micael Levi (@micalevisk)
46ec9770b9 test(core): improve typings on RouterExplorer suite 2022-05-16 21:49:05 -04:00
Micael Levi (@micalevisk)
5467777e9b fix(platform-fastify): when version is an array with neutral 2022-05-16 21:27:06 -04:00
Micael Levi (@micalevisk)
07e17a4ca9 fix(core,platform-express): when version is an array with neutral
on header and media type versioning, on the express adapter
2022-05-16 21:26:37 -04:00
dependabot[bot]
21bffef69b chore(deps-dev): bump @types/node from 17.0.33 to 17.0.34
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.33 to 17.0.34.
- [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>
2022-05-17 00:09:30 +00:00
dependabot[bot]
353854e88d chore(deps-dev): bump @commitlint/config-angular from 16.3.0 to 17.0.0
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 16.3.0 to 17.0.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-angular/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.0.0/@commitlint/config-angular)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-17 00:03:23 +00:00
Kamil Mysliwiec
73f45db25e Merge pull request #9578 from nestjs/dependabot/npm_and_yarn/commitlint/cli-16.3.0
chore(deps-dev): bump @commitlint/cli from 16.2.4 to 16.3.0
2022-05-16 08:59:51 +02:00
dependabot[bot]
2c1bde5ddc chore(deps-dev): bump @commitlint/cli from 16.2.4 to 16.3.0
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 16.2.4 to 16.3.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v16.3.0/@commitlint/cli)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-16 06:34:03 +00:00
Kamil Mysliwiec
c10d17c71c Merge pull request #9579 from nestjs/dependabot/npm_and_yarn/concurrently-7.2.0
chore(deps-dev): bump concurrently from 7.1.0 to 7.2.0
2022-05-16 08:29:39 +02:00
Kamil Mysliwiec
956d7f828b Merge pull request #9575 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.7.0
chore(deps-dev): bump apollo-server-core from 3.6.7 to 3.7.0
2022-05-16 08:29:32 +02:00
Kamil Mysliwiec
d30d990ca9 Merge pull request #9580 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-16.3.0
chore(deps-dev): bump @commitlint/config-angular from 16.2.4 to 16.3.0
2022-05-16 08:29:07 +02:00
dependabot[bot]
68cf225b28 chore(deps-dev): bump @commitlint/config-angular from 16.2.4 to 16.3.0
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 16.2.4 to 16.3.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-angular/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v16.3.0/@commitlint/config-angular)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-16 00:17:55 +00:00
dependabot[bot]
df2e404c93 chore(deps-dev): bump concurrently from 7.1.0 to 7.2.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.1.0...v7.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>
2022-05-16 00:16:00 +00:00
Tolga Paksoy
26fd5a7d41 refactor(platform-fastify): allow any truthy value
Co-authored-by: Kamil Mysliwiec <mail@kamilmysliwiec.com>
2022-05-13 17:48:21 +02:00
dependabot[bot]
63ed53f1cb chore(deps-dev): bump apollo-server-core from 3.6.7 to 3.7.0
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.6.7 to 3.7.0.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-core@3.7.0/packages/apollo-server-core)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 13:30:46 +00:00
Kamil Mysliwiec
1e56057251 Merge pull request #9574 from nestjs/dependabot/npm_and_yarn/point-of-view-5.3.0
chore(deps-dev): bump point-of-view from 5.2.0 to 5.3.0
2022-05-13 15:26:14 +02:00
Kamil Mysliwiec
ce2a4590b4 Merge pull request #9573 from nestjs/dependabot/npm_and_yarn/amqplib-0.9.0
chore(deps-dev): bump amqplib from 0.8.0 to 0.9.0
2022-05-13 15:26:08 +02:00
Kamil Myśliwiec
23760fe43c chore(deps): update ws package to v8 2022-05-13 15:24:43 +02:00
dependabot[bot]
98f4ac8fae chore(deps-dev): bump point-of-view from 5.2.0 to 5.3.0
Bumps [point-of-view](https://github.com/fastify/point-of-view) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/compare/v5.2.0...v5.3.0)

---
updated-dependencies:
- dependency-name: point-of-view
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 13:00:37 +00:00
dependabot[bot]
b5a1e7b427 chore(deps-dev): bump amqplib from 0.8.0 to 0.9.0
Bumps [amqplib](https://github.com/squaremo/amqp.node) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/squaremo/amqp.node/releases)
- [Changelog](https://github.com/amqp-node/amqplib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/squaremo/amqp.node/compare/v0.8.0...v0.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 12:59:42 +00:00
Kamil Mysliwiec
521f5867e9 Merge pull request #9550 from nestjs/dependabot/npm_and_yarn/husky-8.0.1
chore(deps-dev): bump husky from 7.0.4 to 8.0.1
2022-05-13 14:56:28 +02:00
Kamil Mysliwiec
4064b96196 Merge pull request #9572 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.2.9
chore(deps-dev): bump graphql-tools from 8.2.8 to 8.2.9
2022-05-13 14:55:46 +02:00
Kamil Mysliwiec
cc2a242986 Merge pull request #9571 from nestjs/dependabot/npm_and_yarn/sinon-14.0.0
chore(deps-dev): bump sinon from 13.0.2 to 14.0.0
2022-05-13 14:55:34 +02:00
Kamil Mysliwiec
1c2d77cba1 Merge pull request #9570 from nestjs/dependabot/npm_and_yarn/core-js-3.22.5
chore(deps-dev): bump core-js from 3.22.4 to 3.22.5
2022-05-13 14:55:28 +02:00
Kamil Mysliwiec
7f185052f9 Merge pull request #9568 from nestjs/dependabot/npm_and_yarn/eventsource-2.0.2
chore(deps-dev): bump eventsource from 2.0.0 to 2.0.2
2022-05-13 14:55:23 +02:00
Kamil Mysliwiec
81392cb480 Merge pull request #9564 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.11
chore(deps-dev): bump @nestjs/apollo from 10.0.8 to 10.0.11
2022-05-13 14:55:19 +02:00
Kamil Mysliwiec
c8358b01f3 Merge pull request #9539 from nestjs/dependabot/npm_and_yarn/fastify-formbody-5.3.0
chore(deps): bump fastify-formbody from 5.2.0 to 5.3.0
2022-05-13 14:55:12 +02:00
Kamil Myśliwiec
6f5986d19e chore(): update readme 2022-05-13 14:45:02 +02:00
Kamil Myśliwiec
dea497a66f chore(@nestjs) publish v8.4.5 release 2022-05-13 14:28:13 +02:00
Kamil Myśliwiec
f0a8ac32bc Merge branch 'saurabh-prakash-fix-allow-individual-test-run' 2022-05-13 14:19:11 +02:00
Kamil Myśliwiec
1c0bec8f95 chore(): minor tweak, move mocha hook to hooks folder 2022-05-13 14:19:01 +02:00
dependabot[bot]
dee8396f2d chore(deps-dev): bump graphql-tools from 8.2.8 to 8.2.9
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.2.8 to 8.2.9.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.2.9/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 12:15:29 +00:00
Kamil Myśliwiec
532b5e8c65 Merge branch 'fix-allow-individual-test-run' of https://github.com/saurabh-prakash/nest into saurabh-prakash-fix-allow-individual-test-run 2022-05-13 14:14:50 +02:00
dependabot[bot]
97bfb4af94 chore(deps-dev): bump husky from 7.0.4 to 8.0.1
Bumps [husky](https://github.com/typicode/husky) from 7.0.4 to 8.0.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v7.0.4...v8.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 12:13:21 +00:00
dependabot[bot]
3be31dde46 chore(deps-dev): bump sinon from 13.0.2 to 14.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 13.0.2 to 14.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v13.0.2...v14.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 12:12:46 +00:00
dependabot[bot]
ff2de15bf1 chore(deps-dev): bump @nestjs/apollo from 10.0.8 to 10.0.11
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.8 to 10.0.11.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.8...v10.0.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 12:12:17 +00:00
dependabot[bot]
654ba2b6f0 chore(deps): bump fastify-formbody from 5.2.0 to 5.3.0
Bumps [fastify-formbody](https://github.com/fastify/fastify-formbody) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/fastify/fastify-formbody/releases)
- [Commits](https://github.com/fastify/fastify-formbody/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 12:12:07 +00:00
dependabot[bot]
b7370b2236 chore(deps-dev): bump core-js from 3.22.4 to 3.22.5
Bumps [core-js](https://github.com/zloirock/core-js) from 3.22.4 to 3.22.5.
- [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/compare/v3.22.4...v3.22.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 12:11:56 +00:00
Kamil Mysliwiec
3c04cbb992 Merge pull request #9566 from nestjs/dependabot/npm_and_yarn/kafkajs-2.0.0
chore(deps-dev): bump kafkajs from 1.16.0 to 2.0.0
2022-05-13 14:10:37 +02:00
Kamil Mysliwiec
24e67a5fa2 Merge pull request #9456 from MyAeroCode/lutz-fix/scoped-injection-with-symbol
fix(core): scoped injection with symbol field name
2022-05-13 14:10:13 +02:00
Kamil Mysliwiec
d14a944a9c Merge pull request #9496 from micalevisk/refactor-builtin-pipes
feat(common): improve extensibility on few built-in pipes
2022-05-13 14:10:08 +02:00
Kamil Mysliwiec
002c11af4f Merge pull request #9506 from ntibi/enhance_circular_dep_error_msg_context
feat(core): enhance circular dependency error message
2022-05-13 14:09:59 +02:00
dependabot[bot]
ace4fe5556 chore(deps-dev): bump eventsource from 2.0.0 to 2.0.2
Bumps [eventsource](https://github.com/EventSource/eventsource) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v2.0.0...v2.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 12:09:15 +00:00
Kamil Mysliwiec
c453522252 Merge pull request #9567 from nestjs/dependabot/npm_and_yarn/middie-6.1.0
chore(deps): bump middie from 6.0.0 to 6.1.0
2022-05-13 14:07:14 +02:00
Kamil Mysliwiec
9dbc23b1ca Merge pull request #9565 from nestjs/dependabot/npm_and_yarn/types/node-17.0.33
chore(deps-dev): bump @types/node from 17.0.23 to 17.0.33
2022-05-13 14:07:04 +02:00
Kamil Mysliwiec
b614b49f4c Merge pull request #9562 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-3.2.0
chore(deps): bump fast-json-stringify from 3.0.3 to 3.2.0
2022-05-13 14:06:48 +02:00
dependabot[bot]
87a24633dd chore(deps): bump middie from 6.0.0 to 6.1.0
Bumps [middie](https://github.com/fastify/middleman) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/fastify/middleman/releases)
- [Commits](https://github.com/fastify/middleman/compare/v6.0.0...v6.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 10:50:21 +00:00
dependabot[bot]
7f2ce42a0f chore(deps-dev): bump kafkajs from 1.16.0 to 2.0.0
Bumps [kafkajs](https://github.com/tulios/kafkajs) from 1.16.0 to 2.0.0.
- [Release notes](https://github.com/tulios/kafkajs/releases)
- [Changelog](https://github.com/tulios/kafkajs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tulios/kafkajs/compare/v1.16.0...v2.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 10:49:22 +00:00
dependabot[bot]
d97e117269 chore(deps-dev): bump @types/node from 17.0.23 to 17.0.33
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.23 to 17.0.33.
- [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>
2022-05-13 10:48:23 +00:00
dependabot[bot]
e2715836f8 chore(deps): bump fast-json-stringify from 3.0.3 to 3.2.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 3.0.3 to 3.2.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/commits/v3.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 10:46:33 +00:00
Kamil Mysliwiec
5e127fc673 Update packages/platform-express/adapters/express-adapter.ts
Co-authored-by: Micael Levi L. Cavalcante <mllc@icomp.ufam.edu.br>
2022-05-13 12:46:22 +02:00
Kamil Mysliwiec
de28fa349b Merge pull request #8865 from Tony133/sample-05/add-test-e2e
sample(05-sql-typeorm): added test e2e
2022-05-13 12:45:54 +02:00
Kamil Mysliwiec
0fed555560 Merge pull request #9559 from nestjs/dependabot/npm_and_yarn/commitlint/cli-16.2.4
chore(deps-dev): bump @commitlint/cli from 16.2.3 to 16.2.4
2022-05-13 12:40:58 +02:00
Kamil Mysliwiec
5376136979 Merge pull request #9560 from nestjs/dependabot/npm_and_yarn/supertest-6.2.3
chore(deps-dev): bump supertest from 6.2.2 to 6.2.3
2022-05-13 12:40:54 +02:00
Kamil Mysliwiec
e5565fc4c2 Merge pull request #9561 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.6.12
chore(deps-dev): bump @grpc/proto-loader from 0.6.9 to 0.6.12
2022-05-13 12:40:49 +02:00
Kamil Mysliwiec
1d8374e007 Merge pull request #9563 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.7.0
chore(deps-dev): bump apollo-server-express from 3.6.7 to 3.7.0
2022-05-13 12:40:30 +02:00
dependabot[bot]
0a077c94b4 chore(deps-dev): bump apollo-server-express from 3.6.7 to 3.7.0
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.6.7 to 3.7.0.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-express@3.7.0/packages/apollo-server-express)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 07:17:29 +00:00
dependabot[bot]
cf37e61bc1 chore(deps-dev): bump @grpc/proto-loader from 0.6.9 to 0.6.12
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.6.9 to 0.6.12.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/proto-loader@0.6.9...@grpc/proto-loader@0.6.12)

---
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>
2022-05-13 07:15:47 +00:00
dependabot[bot]
03ab77cb74 chore(deps-dev): bump supertest from 6.2.2 to 6.2.3
Bumps [supertest](https://github.com/visionmedia/supertest) from 6.2.2 to 6.2.3.
- [Release notes](https://github.com/visionmedia/supertest/releases)
- [Commits](https://github.com/visionmedia/supertest/compare/v6.2.2...v6.2.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 07:14:53 +00:00
dependabot[bot]
dafa1cf754 chore(deps-dev): bump @commitlint/cli from 16.2.3 to 16.2.4
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 16.2.3 to 16.2.4.
- [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/v16.2.4/@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>
2022-05-13 07:14:03 +00:00
Kamil Mysliwiec
0a1c7e9768 Merge pull request #9536 from nestjs/dependabot/npm_and_yarn/socket.io-4.5.0
chore(deps): bump socket.io from 4.4.1 to 4.5.0
2022-05-13 09:11:22 +02:00
Kamil Mysliwiec
44cd4573f9 Merge pull request #9551 from nestjs/dependabot/npm_and_yarn/mongoose-6.3.3
chore(deps-dev): bump mongoose from 6.3.2 to 6.3.3
2022-05-13 09:11:17 +02:00
Kamil Mysliwiec
ea4f9d0edc Merge pull request #9549 from nestjs/dependabot/npm_and_yarn/express-4.18.1
chore(deps): bump express from 4.17.3 to 4.18.1
2022-05-13 09:11:12 +02:00
Kamil Mysliwiec
8f237751b3 Merge pull request #9548 from nestjs/dependabot/npm_and_yarn/axios-0.27.2
chore(deps): bump axios from 0.26.1 to 0.27.2
2022-05-13 09:11:08 +02:00
Kamil Mysliwiec
6ded88c0c9 Merge pull request #9538 from nestjs/dependabot/npm_and_yarn/engine.io-client-6.2.2
chore(deps-dev): bump engine.io-client from 6.1.1 to 6.2.2
2022-05-13 09:10:59 +02:00
dependabot[bot]
c77bef9e56 chore(deps-dev): bump mongoose from 6.3.2 to 6.3.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.3.2 to 6.3.3.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.3.2...6.3.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-10 00:07:32 +00:00
dependabot[bot]
8584af1ac5 chore(deps): bump express from 4.17.3 to 4.18.1
Bumps [express](https://github.com/expressjs/express) from 4.17.3 to 4.18.1.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.3...4.18.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-10 00:04:46 +00:00
dependabot[bot]
ae2cde105d chore(deps): bump axios from 0.26.1 to 0.27.2
Bumps [axios](https://github.com/axios/axios) from 0.26.1 to 0.27.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.26.1...v0.27.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-10 00:03:14 +00:00
dependabot[bot]
2db088fa14 chore(deps): bump socket.io from 4.4.1 to 4.5.0
Bumps [socket.io](https://github.com/socketio/socket.io) from 4.4.1 to 4.5.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.4.1...4.5.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>
2022-05-09 10:09:14 +00:00
Kamil Mysliwiec
2f9f2edf89 Merge pull request #9533 from nestjs/dependabot/npm_and_yarn/fastify-static-4.7.0
chore(deps-dev): bump fastify-static from 4.6.1 to 4.7.0
2022-05-09 12:05:38 +02:00
Kamil Mysliwiec
74e3f5fff3 Merge pull request #9535 from nestjs/dependabot/npm_and_yarn/amqp-connection-manager-4.1.3
chore(deps-dev): bump amqp-connection-manager from 4.1.2 to 4.1.3
2022-05-09 12:04:56 +02:00
Kamil Mysliwiec
37f7b1cc3a Merge pull request #9537 from nestjs/dependabot/npm_and_yarn/typescript-4.6.4
chore(deps-dev): bump typescript from 4.6.3 to 4.6.4
2022-05-09 12:04:42 +02:00
Kamil Mysliwiec
0b137ff1c5 Merge pull request #9540 from nestjs/dependabot/npm_and_yarn/fastify-cors-6.1.0
chore(deps): bump fastify-cors from 6.0.3 to 6.1.0
2022-05-09 12:04:29 +02:00
Alexander Friesen
e7087adcb7 chore: update package-lock 2022-05-07 13:15:26 +02:00
Alex
a3cfb1717a Merge branch 'master' into master 2022-05-07 13:10:53 +02:00
dependabot[bot]
e0255e7a1e chore(deps): bump fastify-cors from 6.0.3 to 6.1.0
Bumps [fastify-cors](https://github.com/fastify/fastify-cors) from 6.0.3 to 6.1.0.
- [Release notes](https://github.com/fastify/fastify-cors/releases)
- [Commits](https://github.com/fastify/fastify-cors/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 17:00:43 +00:00
dependabot[bot]
341f0518f9 chore(deps-dev): bump fastify-static from 4.6.1 to 4.7.0
Bumps [fastify-static](https://github.com/fastify/fastify-static) from 4.6.1 to 4.7.0.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 17:00:34 +00:00
dependabot[bot]
2d8f838aea chore(deps-dev): bump engine.io-client from 6.1.1 to 6.2.2
Bumps [engine.io-client](https://github.com/socketio/engine.io-client) from 6.1.1 to 6.2.2.
- [Release notes](https://github.com/socketio/engine.io-client/releases)
- [Changelog](https://github.com/socketio/engine.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io-client/compare/6.1.1...6.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 16:58:57 +00:00
dependabot[bot]
7d84e835f4 chore(deps-dev): bump typescript from 4.6.3 to 4.6.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.3 to 4.6.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.6.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 16:58:09 +00:00
Kamil Mysliwiec
d1d1a16eb4 Merge pull request #9532 from nestjs/dependabot/npm_and_yarn/lint-staged-12.4.1
chore(deps-dev): bump lint-staged from 12.3.7 to 12.4.1
2022-05-06 18:57:11 +02:00
Kamil Myśliwiec
4d6216695d chore(): cleanup, remove initialize function calls 2022-05-06 18:57:03 +02:00
dependabot[bot]
8d7d63daa4 chore(deps-dev): bump amqp-connection-manager from 4.1.2 to 4.1.3
Bumps [amqp-connection-manager](https://github.com/jwalton/node-amqp-connection-manager) from 4.1.2 to 4.1.3.
- [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.2...v4.1.3)

---
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>
2022-05-06 16:56:20 +00:00
dependabot[bot]
37f580c0a2 chore(deps-dev): bump lint-staged from 12.3.7 to 12.4.1
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.3.7 to 12.4.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.3.7...v12.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 16:56:19 +00:00
Kamil Mysliwiec
9cd425cac7 Merge pull request #9524 from nestjs/dependabot/npm_and_yarn/fastify-multipart-5.4.0
chore(deps-dev): bump fastify-multipart from 5.3.1 to 5.4.0
2022-05-06 18:55:53 +02:00
Kamil Mysliwiec
3ceeb114af Merge pull request #9530 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-16.2.4
chore(deps-dev): bump @commitlint/config-angular from 16.2.3 to 16.2.4
2022-05-06 18:55:46 +02:00
Kamil Mysliwiec
340dcaaef4 Merge pull request #9531 from nestjs/dependabot/npm_and_yarn/nodemon-2.0.16
chore(deps-dev): bump nodemon from 2.0.15 to 2.0.16
2022-05-06 18:53:53 +02:00
Kamil Mysliwiec
92bc4556f7 Merge pull request #9529 from nestjs/dependabot/npm_and_yarn/tslib-2.4.0
chore(deps): bump tslib from 2.3.1 to 2.4.0
2022-05-06 18:53:47 +02:00
Kamil Mysliwiec
5eedf8a9b1 Update Readme.md 2022-05-05 11:36:30 +02:00
dependabot[bot]
13f71afa60 chore(deps-dev): bump nodemon from 2.0.15 to 2.0.16
Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.15 to 2.0.16.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.15...v2.0.16)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 09:26:47 +00:00
dependabot[bot]
e17dc7b4a8 chore(deps-dev): bump @commitlint/config-angular from 16.2.3 to 16.2.4
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 16.2.3 to 16.2.4.
- [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/v16.2.4/@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>
2022-05-05 09:25:23 +00:00
dependabot[bot]
bb38f328e3 chore(deps): bump tslib from 2.3.1 to 2.4.0
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/2.3.1...2.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 09:24:30 +00:00
dependabot[bot]
d9eeda4d79 chore(deps-dev): bump fastify-multipart from 5.3.1 to 5.4.0
Bumps [fastify-multipart](https://github.com/fastify/fastify-multipart) from 5.3.1 to 5.4.0.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 09:23:46 +00:00
Kamil Mysliwiec
9ba4903419 Merge pull request #9523 from nestjs/dependabot/npm_and_yarn/types/mocha-9.1.1
chore(deps-dev): bump @types/mocha from 9.1.0 to 9.1.1
2022-05-05 11:21:38 +02:00
Kamil Mysliwiec
7192d4de53 Merge pull request #9525 from nestjs/dependabot/npm_and_yarn/socket.io-client-4.5.0
chore(deps-dev): bump socket.io-client from 4.4.1 to 4.5.0
2022-05-05 11:21:30 +02:00
Kamil Mysliwiec
9cd4fefd3a Merge pull request #9526 from nestjs/dependabot/npm_and_yarn/fastify-3.29.0
chore(deps): bump fastify from 3.28.0 to 3.29.0
2022-05-05 11:21:26 +02:00
Kamil Mysliwiec
84c4589497 Merge pull request #9527 from nestjs/dependabot/npm_and_yarn/light-my-request-4.10.1
chore(deps): bump light-my-request from 4.9.0 to 4.10.1
2022-05-05 11:21:21 +02:00
Kamil Mysliwiec
f3a31c8ffd Merge pull request #9528 from nestjs/dependabot/npm_and_yarn/core-js-3.22.4
chore(deps-dev): bump core-js from 3.21.1 to 3.22.4
2022-05-05 11:21:06 +02:00
dependabot[bot]
1aa7b946c6 chore(deps-dev): bump core-js from 3.21.1 to 3.22.4
Bumps [core-js](https://github.com/zloirock/core-js) from 3.21.1 to 3.22.4.
- [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/compare/v3.21.1...v3.22.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 00:12:03 +00:00
dependabot[bot]
38b0f8b69e chore(deps): bump light-my-request from 4.9.0 to 4.10.1
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 4.9.0 to 4.10.1.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v4.9.0...v4.10.1)

---
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>
2022-05-05 00:10:08 +00:00
dependabot[bot]
df6e227da4 chore(deps): bump fastify from 3.28.0 to 3.29.0
Bumps [fastify](https://github.com/fastify/fastify) from 3.28.0 to 3.29.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v3.28.0...v3.29.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 00:09:00 +00:00
dependabot[bot]
0b82026efc chore(deps-dev): bump socket.io-client from 4.4.1 to 4.5.0
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.4.1 to 4.5.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.4.1...4.5.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>
2022-05-05 00:07:34 +00:00
dependabot[bot]
85c06f3a1e chore(deps-dev): bump @types/mocha from 9.1.0 to 9.1.1
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 9.1.0 to 9.1.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 00:05:14 +00:00
Alexander Friesen
0d0a6c7657 chore: define optional deps 2022-05-04 20:23:16 +02:00
Kamil Mysliwiec
581ba5aec6 Merge pull request #9512 from nestjs/dependabot/npm_and_yarn/mongoose-6.3.2
chore(deps-dev): bump mongoose from 6.2.10 to 6.3.2
2022-05-04 14:21:19 +02:00
Kamil Mysliwiec
6c7c1d63dc Merge pull request #9513 from nestjs/dependabot/npm_and_yarn/clang-format-1.8.0
chore(deps-dev): bump clang-format from 1.6.0 to 1.8.0
2022-05-04 14:21:09 +02:00
Kamil Mysliwiec
19b210337f Merge pull request #9460 from nestjs/dependabot/npm_and_yarn/types/chai-4.3.1
chore(deps-dev): bump @types/chai from 4.3.0 to 4.3.1
2022-05-04 14:20:56 +02:00
dependabot[bot]
6731aaf59b chore(deps-dev): bump clang-format from 1.6.0 to 1.8.0
Bumps [clang-format](https://github.com/angular/clang-format) from 1.6.0 to 1.8.0.
- [Release notes](https://github.com/angular/clang-format/releases)
- [Commits](https://github.com/angular/clang-format/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 11:03:14 +00:00
Kamil Mysliwiec
208390e98f Merge pull request #9461 from nestjs/dependabot/npm_and_yarn/amqp-connection-manager-4.1.2
chore(deps-dev): bump amqp-connection-manager from 4.1.1 to 4.1.2
2022-05-04 13:01:02 +02:00
Kamil Mysliwiec
0e75c7db31 Merge pull request #9466 from nestjs/dependabot/npm_and_yarn/sinon-13.0.2
chore(deps-dev): bump sinon from 13.0.1 to 13.0.2
2022-05-04 13:00:58 +02:00
Kamil Mysliwiec
fc19ec532d Merge pull request #9478 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.2.8
chore(deps-dev): bump graphql-tools from 8.2.5 to 8.2.8
2022-05-04 13:00:48 +02:00
Kamil Mysliwiec
fae3431e81 Merge pull request #9482 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.6.7
chore(deps-dev): bump @grpc/grpc-js from 1.6.2 to 1.6.7
2022-05-04 13:00:44 +02:00
Kamil Mysliwiec
a5eb9b3d82 Merge pull request #9493 from nestjs/renovate/npm-lodash-vulnerability
chore(deps): update dependency lodash to 4.17.21 [security]
2022-05-04 13:00:32 +02:00
Kamil Mysliwiec
73ddac2005 Merge pull request #9494 from nestjs/renovate/npm-mem-vulnerability
chore(deps): update dependency mem to 4.0.0 [security]
2022-05-04 13:00:27 +02:00
Kamil Mysliwiec
02d9f4941e Merge pull request #9499 from nestjs/dependabot/github_actions/github/codeql-action-2
chore(deps): bump github/codeql-action from 1 to 2
2022-05-04 12:59:45 +02:00
Kamil Mysliwiec
d21c30f7bc Merge pull request #9505 from nestjs/renovate/npm-cross-fetch-vulnerability
chore(deps): update dependency cross-fetch to 3.1.5 [security]
2022-05-04 12:59:30 +02:00
Renovate Bot
82b019dae0 chore(deps): update dependency mem to 4.0.0 [security] 2022-05-04 02:57:27 +00:00
Renovate Bot
2574a79a8b chore(deps): update dependency lodash to 4.17.21 [security] 2022-05-04 02:55:41 +00:00
Alexander Friesen
87969fba5f chore: update interfaces 2022-05-03 20:00:45 +02:00
Renovate Bot
55371752ba chore(deps): update dependency cross-fetch to 3.1.5 [security] 2022-05-03 15:49:36 +00:00
dependabot[bot]
560379c166 chore(deps-dev): bump mongoose from 6.2.10 to 6.3.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.2.10 to 6.3.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/6.2.10...6.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 00:11:03 +00:00
Alexander Friesen
c53f7f2cde chore: update package-lock 2022-05-01 13:07:32 +02:00
Alexander Friesen
b11959c979 chore: update fastify 2022-04-30 00:47:08 +02:00
ntibi
9a8adbee88 feat(core): enhance circular dependency error message 2022-04-29 18:08:25 +02:00
dependabot[bot]
7685993942 chore(deps): bump github/codeql-action from 1 to 2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-26 00:52:00 +00:00
Micael Levi (@micalevisk)
4ce5877b2e feat(common): improve extensibility on built-in pipes 2022-04-24 18:09:52 -04:00
Micael Levi (@micalevisk)
bc0a1dedf8 fix(core,websockets): use rxjs when checking if is an observable 2022-04-24 15:42:14 -04:00
Micael Levi (@micalevisk)
d51c7289a8 test(websockets): add odd input on pickResult method 2022-04-24 15:42:14 -04:00
Micael Levi (@micalevisk)
41850c0920 test(core): add odd input on transformToResult method 2022-04-24 15:42:14 -04:00
Tolga Paksoy
4fb646ec29 test(platform): ensure json parsed body works as well 2022-04-22 15:11:02 +02:00
Tolga Paksoy
43089c5b28 fix(platform): use RawBodyRequest interface instead of monkeypatch
To access the raw body of a request use:

* `RawBodyRequest<Request>` on express
* `RawBodyRequest<FastifyRequest>` on fastify
2022-04-22 15:10:03 +02:00
Tolga Paksoy
d067144331 fix(platform-express): add stricter types for raw body options 2022-04-22 13:02:58 +02:00
Kamil Mysliwiec
1f6fca5f55 Merge pull request #9485 from OSA413/patch-1
fix: prevent handle leak in default e2e test
2022-04-22 08:59:58 +02:00
Kamil Mysliwiec
8036e2a59b Update sample/30-event-emitter/test/app.e2e-spec.ts 2022-04-22 08:59:52 +02:00
Oleg "OSA413" Sokolov
b1844b6be4 Update sample/30-event-emitter/test/app.e2e-spec.ts
Co-authored-by: Micael Levi L. Cavalcante <mllc@icomp.ufam.edu.br>
2022-04-22 03:50:31 +05:00
Oleg "OSA413" Sokolov
f14d2f2714 Updated according to the suggestions 2022-04-21 22:35:52 +05:00
Oleg "OSA413" Sokolov
de044a3daf fix: prevent handle leak in default e2e test 2022-04-21 22:24:44 +05:00
dependabot[bot]
3d9bd7fcfa chore(deps-dev): bump @grpc/grpc-js from 1.6.2 to 1.6.7
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.6.2 to 1.6.7.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.6.2...@grpc/grpc-js@1.6.7)

---
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>
2022-04-21 00:17:09 +00:00
dependabot[bot]
fd40c9bea4 chore(deps-dev): bump graphql-tools from 8.2.5 to 8.2.8
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.2.5 to 8.2.8.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.2.8/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-20 00:14:26 +00:00
Saurabh Prakash
e0a4ed39fe fix(): individual test run 2022-04-19 02:29:20 +05:30
Emre Sahin
844bbbb6fc feat(microservices): Introduce producerOnlyMode to ClientKafka
This feature flag enables users to skip the consumer group creation and
rebalancing and allows to only act as a producer on Kafka.

Resolves: #7259
2022-04-15 15:22:47 +02:00
dependabot[bot]
ef6c770bec chore(deps-dev): bump sinon from 13.0.1 to 13.0.2
Bumps [sinon](https://github.com/sinonjs/sinon) from 13.0.1 to 13.0.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/v13.0.1...v13.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-15 00:04:42 +00:00
dependabot[bot]
1a1f39fa4f chore(deps-dev): bump amqp-connection-manager from 4.1.1 to 4.1.2
Bumps [amqp-connection-manager](https://github.com/jwalton/node-amqp-connection-manager) from 4.1.1 to 4.1.2.
- [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.1...v4.1.2)

---
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>
2022-04-14 00:07:31 +00:00
dependabot[bot]
e80a14f447 chore(deps-dev): bump @types/chai from 4.3.0 to 4.3.1
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.0 to 4.3.1.
- [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>
2022-04-14 00:04:56 +00:00
Kamil Mysliwiec
d9d628d112 Merge pull request #9453 from nestjs/dependabot/npm_and_yarn/sample/27-scheduling/moment-2.29.2
chore(deps): bump moment from 2.29.1 to 2.29.2 in /sample/27-scheduling
2022-04-11 08:22:47 +02:00
Kamil Mysliwiec
525f4f066c Merge pull request #9454 from nestjs/dependabot/npm_and_yarn/sample/26-queues/moment-2.29.2
chore(deps): bump moment from 2.29.1 to 2.29.2 in /sample/26-queues
2022-04-11 08:22:38 +02:00
dependabot[bot]
1089eedec4 chore(deps): bump moment from 2.29.1 to 2.29.2 in /sample/27-scheduling
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 06:22:36 +00:00
dependabot[bot]
a2d65f3d01 chore(deps): bump moment from 2.29.1 to 2.29.2 in /sample/26-queues
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 06:22:33 +00:00
Kamil Mysliwiec
e55cad38d9 Merge pull request #9447 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.2.5
chore(deps-dev): bump graphql-tools from 8.2.4 to 8.2.5
2022-04-11 08:22:32 +02:00
Kamil Mysliwiec
41bf2dc9bf Merge pull request #9448 from nestjs/dependabot/npm_and_yarn/cache-manager-3.6.1
chore(deps-dev): bump cache-manager from 3.6.0 to 3.6.1
2022-04-11 08:22:27 +02:00
Kamil Mysliwiec
c5c41495a2 Merge pull request #9451 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/moment-2.29.2
chore(deps): bump moment from 2.29.1 to 2.29.2 in /sample/07-sequelize
2022-04-11 08:22:21 +02:00
Kamil Mysliwiec
eed06091d3 Merge pull request #9452 from nestjs/dependabot/npm_and_yarn/moment-2.29.2
chore(deps): bump moment from 2.24.0 to 2.29.2
2022-04-11 08:21:28 +02:00
Lutz
3601f1a171 test(core): nest application context 2022-04-10 10:39:47 +09:00
Lutz
a7ba3e0dc2 test(core): add dependency metadata test 2022-04-10 10:00:08 +09:00
Lutz
4c649edc2d fix(core): scoped injection with symbol key issue 2022-04-09 23:22:04 +09:00
Lutz
acac12790c feat(core): support symbol key 2022-04-09 23:19:35 +09:00
dependabot[bot]
4177feabdc chore(deps): bump moment from 2.24.0 to 2.29.2
Bumps [moment](https://github.com/moment/moment) from 2.24.0 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.24.0...2.29.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-09 13:29:06 +00:00
dependabot[bot]
381fc42301 chore(deps): bump moment from 2.29.1 to 2.29.2 in /sample/07-sequelize
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-09 13:28:16 +00:00
Lutz
fe9c8d071c Merge branch 'nestjs:master' into master 2022-04-09 14:07:06 +09:00
dependabot[bot]
2d342a1b49 chore(deps-dev): bump cache-manager from 3.6.0 to 3.6.1
Bumps [cache-manager](https://github.com/BryanDonovan/node-cache-manager) from 3.6.0 to 3.6.1.
- [Release notes](https://github.com/BryanDonovan/node-cache-manager/releases)
- [Changelog](https://github.com/BryanDonovan/node-cache-manager/blob/master/History.md)
- [Commits](https://github.com/BryanDonovan/node-cache-manager/compare/3.6.0...3.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 00:09:39 +00:00
dependabot[bot]
c7a72bfd33 chore(deps-dev): bump graphql-tools from 8.2.4 to 8.2.5
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.2.4 to 8.2.5.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.2.5/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 00:04:01 +00:00
Kamil Myśliwiec
65d7f1e8ea chore(): rename prepublish to prepublish only 2022-04-07 14:00:08 +02:00
Kamil Myśliwiec
a615d70044 chore(): update package.json and readme files 2022-04-07 13:46:18 +02:00
Kamil Myśliwiec
785db640aa chore(@nestjs) publish v8.4.4 release 2022-04-07 13:39:57 +02:00
Kamil Mysliwiec
625d3672d4 Merge pull request #9444 from micalevisk/feat-relax-pipes-access
feat(common): change `private` modifer on built-in pipes to `protected`
2022-04-07 13:33:11 +02:00
Kamil Mysliwiec
ffdefbf856 Merge pull request #9441 from nestjs/dependabot/npm_and_yarn/eslint-plugin-import-2.26.0
chore(deps-dev): bump eslint-plugin-import from 2.25.4 to 2.26.0
2022-04-07 13:32:39 +02:00
Kamil Mysliwiec
be6848dac9 Merge pull request #9435 from jonahsnider/feat/streamable-file-auto-length
feat(common): set default StreamableFile length automatically when possible
2022-04-07 13:32:29 +02:00
Kamil Mysliwiec
45872ae2ea Merge pull request #9425 from nestjs/fix/multiple-rmq-client-urls
fix(microservices): multiple rmq client urls issue #9364
2022-04-07 13:32:17 +02:00
dependabot[bot]
21e3293052 chore(deps-dev): bump eslint-plugin-import from 2.25.4 to 2.26.0
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.25.4 to 2.26.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.25.4...v2.26.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-06 11:27:08 +00:00
Kamil Mysliwiec
53d88e5952 Update Readme.md 2022-04-06 13:22:52 +02:00
Kamil Mysliwiec
efa45f6a45 Merge pull request #9442 from nestjs/dependabot/npm_and_yarn/fastify-3.28.0
chore(deps): bump fastify from 3.27.4 to 3.28.0
2022-04-06 13:21:29 +02:00
Micael Levi (@micalevisk)
d884e569f0 feat(common): change private modifer on built-in pipes to protected 2022-04-05 22:44:24 -04:00
dependabot[bot]
b389f5aa4e chore(deps): bump fastify from 3.27.4 to 3.28.0
Bumps [fastify](https://github.com/fastify/fastify) from 3.27.4 to 3.28.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v3.27.4...v3.28.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-06 00:04:34 +00:00
Kamil Mysliwiec
8864699539 Merge pull request #9439 from nestjs/renovate/npm-path-parse-vulnerability
chore(deps): update dependency path-parse to 1.0.7 [security]
2022-04-05 09:17:39 +02:00
Kamil Mysliwiec
97613abf26 Merge pull request #9438 from nestjs/dependabot/npm_and_yarn/mongoose-6.2.10
chore(deps-dev): bump mongoose from 6.2.9 to 6.2.10
2022-04-05 09:17:32 +02:00
Kamil Mysliwiec
30b6e8c494 Merge pull request #9437 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.6.2
chore(deps-dev): bump @grpc/grpc-js from 1.6.1 to 1.6.2
2022-04-05 09:17:25 +02:00
Kamil Mysliwiec
9497c8a8ef Merge pull request #9343 from nestjs/dependabot/npm_and_yarn/commitlint/cli-16.2.3
chore(deps-dev): bump @commitlint/cli from 16.2.1 to 16.2.3
2022-04-05 09:17:13 +02:00
Renovate Bot
8d96b09349 chore(deps): update dependency path-parse to 1.0.7 [security] 2022-04-05 04:49:55 +00:00
dependabot[bot]
a3b2dde463 chore(deps-dev): bump mongoose from 6.2.9 to 6.2.10
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.2.9 to 6.2.10.
- [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/6.2.9...6.2.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-05 00:08:50 +00:00
dependabot[bot]
2308640395 chore(deps-dev): bump @grpc/grpc-js from 1.6.1 to 1.6.2
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.6.1...@grpc/grpc-js@1.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-05 00:06:54 +00:00
Jonah Snider
215878ec59 feat(common): set default StreamableFile length automatically when possible 2022-04-04 12:36:11 -07:00
dependabot[bot]
fc5bd1dfe8 chore(deps-dev): bump @commitlint/cli from 16.2.1 to 16.2.3
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 16.2.1 to 16.2.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/v16.2.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>
2022-04-04 07:03:32 +00:00
Kamil Mysliwiec
12c899f8b3 Merge pull request #9418 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.6.7
chore(deps-dev): bump apollo-server-core from 3.6.6 to 3.6.7
2022-04-04 09:01:00 +02:00
Kamil Mysliwiec
1622e9a6e9 Merge pull request #9423 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.2.4
chore(deps-dev): bump graphql-tools from 8.2.3 to 8.2.4
2022-04-04 09:00:56 +02:00
Kamil Mysliwiec
5910bd60f9 Merge pull request #9431 from nestjs/dependabot/npm_and_yarn/body-parser-1.20.0
chore(deps): bump body-parser from 1.19.2 to 1.20.0
2022-04-04 09:00:51 +02:00
Kamil Mysliwiec
b267c63012 Merge pull request #9432 from nestjs/dependabot/npm_and_yarn/concurrently-7.1.0
chore(deps-dev): bump concurrently from 7.0.0 to 7.1.0
2022-04-04 09:00:46 +02:00
Kamil Mysliwiec
926e06a211 Merge pull request #9433 from nestjs/dependabot/npm_and_yarn/prettier-2.6.2
chore(deps-dev): bump prettier from 2.6.1 to 2.6.2
2022-04-04 09:00:41 +02:00
Kamil Mysliwiec
faa32ab9a6 Merge pull request #9434 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.6.1
chore(deps-dev): bump @grpc/grpc-js from 1.5.10 to 1.6.1
2022-04-04 09:00:29 +02:00
dependabot[bot]
a2c9570f5e chore(deps-dev): bump @grpc/grpc-js from 1.5.10 to 1.6.1
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.5.10 to 1.6.1.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.5.10...@grpc/grpc-js@1.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 00:16:21 +00:00
dependabot[bot]
088111874e chore(deps-dev): bump prettier from 2.6.1 to 2.6.2
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.6.1...2.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 00:13:31 +00:00
dependabot[bot]
890d2beb47 chore(deps-dev): bump concurrently from 7.0.0 to 7.1.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.0.0...v7.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>
2022-04-04 00:11:17 +00:00
dependabot[bot]
5745b24608 chore(deps): bump body-parser from 1.19.2 to 1.20.0
Bumps [body-parser](https://github.com/expressjs/body-parser) from 1.19.2 to 1.20.0.
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.19.2...1.20.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 00:09:20 +00:00
Tolga Paksoy
43fa5bc4c5 fix(common): add raw body app option as a non-breaking change 2022-04-01 17:14:00 +02:00
Kamil Myśliwiec
e971856555 fix(microservices): add default urls value 2022-04-01 16:53:53 +02:00
Kamil Myśliwiec
af0e4001ff fix(microservices): multiple rmq client urls issue #9364 2022-04-01 16:51:46 +02:00
dependabot[bot]
123dd469ee chore(deps-dev): bump apollo-server-core from 3.6.6 to 3.6.7
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.6.6 to 3.6.7.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-core@3.6.7/packages/apollo-server-core)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 08:30:15 +00:00
dependabot[bot]
e5e8252bcd chore(deps-dev): bump graphql-tools from 8.2.3 to 8.2.4
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.2.3 to 8.2.4.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.2.4/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 08:28:01 +00:00
Kamil Mysliwiec
4f91d6f4d4 Merge pull request #9409 from nestjs/dependabot/npm_and_yarn/point-of-view-5.2.0
chore(deps-dev): bump point-of-view from 5.1.0 to 5.2.0
2022-04-01 10:26:39 +02:00
Kamil Mysliwiec
9431b6cfe9 Merge pull request #9410 from nestjs/dependabot/npm_and_yarn/mongoose-6.2.9
chore(deps-dev): bump mongoose from 6.2.8 to 6.2.9
2022-04-01 10:26:34 +02:00
Kamil Mysliwiec
3a8b0ffe90 Merge pull request #9411 from nestjs/dependabot/npm_and_yarn/typescript-4.6.3
chore(deps-dev): bump typescript from 4.6.2 to 4.6.3
2022-04-01 10:23:51 +02:00
Kamil Mysliwiec
02d80be75e Merge pull request #9419 from nestjs/dependabot/npm_and_yarn/cli-color-2.0.2
chore(deps): bump cli-color from 2.0.1 to 2.0.2
2022-04-01 10:23:41 +02:00
Kamil Mysliwiec
aab08839cc Merge pull request #9408 from nestjs/dependabot/npm_and_yarn/types/node-17.0.23
chore(deps-dev): bump @types/node from 17.0.21 to 17.0.23
2022-04-01 10:23:28 +02:00
dependabot[bot]
75188b79a3 chore(deps-dev): bump mongoose from 6.2.8 to 6.2.9
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.2.8 to 6.2.9.
- [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/6.2.8...6.2.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-31 18:46:28 +00:00
dependabot[bot]
d3cccbe4d5 chore(deps-dev): bump point-of-view from 5.1.0 to 5.2.0
Bumps [point-of-view](https://github.com/fastify/point-of-view) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/compare/v5.1.0...v5.2.0)

---
updated-dependencies:
- dependency-name: point-of-view
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-31 18:46:24 +00:00
dependabot[bot]
31b5affe40 chore(deps-dev): bump typescript from 4.6.2 to 4.6.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.2 to 4.6.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.2...v4.6.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-31 18:46:09 +00:00
dependabot[bot]
604a10b3b6 chore(deps): bump cli-color from 2.0.1 to 2.0.2
Bumps [cli-color](https://github.com/medikoo/cli-color) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/medikoo/cli-color/releases)
- [Changelog](https://github.com/medikoo/cli-color/blob/main/CHANGELOG.md)
- [Commits](https://github.com/medikoo/cli-color/compare/v2.0.1...v2.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-31 18:44:51 +00:00
dependabot[bot]
f23486f943 chore(deps-dev): bump @types/node from 17.0.21 to 17.0.23
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.21 to 17.0.23.
- [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>
2022-03-31 18:44:17 +00:00
Kamil Mysliwiec
b1badde2ea Merge pull request #9404 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/ansi-regex-5.0.1
chore(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /sample/31-graphql-federation-code-first/gateway
2022-03-31 20:41:07 +02:00
Kamil Mysliwiec
048da5b823 Merge pull request #9398 from nestjs/dependabot/npm_and_yarn/sample/25-dynamic-modules/ansi-regex-5.0.1
chore(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /sample/25-dynamic-modules
2022-03-31 20:41:00 +02:00
Kamil Mysliwiec
a718cd9e3d Merge pull request #9407 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.5.10
chore(deps-dev): bump @grpc/grpc-js from 1.5.9 to 1.5.10
2022-03-31 20:40:53 +02:00
Kamil Mysliwiec
72f6312822 Merge pull request #9412 from nestjs/renovate/npm-ansi-regex-vulnerability
chore(deps): update dependency ansi-regex [security]
2022-03-31 20:40:30 +02:00
Kamil Mysliwiec
03bc1a4875 Merge pull request #9415 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.6.7
chore(deps-dev): bump apollo-server-express from 3.6.6 to 3.6.7
2022-03-31 20:40:21 +02:00
Renovate Bot
dd00c82fdf chore(deps): update dependency ansi-regex [security] 2022-03-31 17:14:17 +00:00
dependabot[bot]
3368e75377 chore(deps-dev): bump apollo-server-express from 3.6.6 to 3.6.7
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.6.6 to 3.6.7.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-express@3.6.7/packages/apollo-server-express)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-30 00:05:14 +00:00
dependabot[bot]
65fb78a77d chore(deps-dev): bump @grpc/grpc-js from 1.5.9 to 1.5.10
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.5.9 to 1.5.10.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.5.9...@grpc/grpc-js@1.5.10)

---
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>
2022-03-29 08:10:45 +00:00
Kamil Mysliwiec
31001bbb87 Merge pull request #9360 from nestjs/dependabot/npm_and_yarn/graphql-15.8.0
chore(deps-dev): bump graphql from 15.7.2 to 15.8.0
2022-03-29 10:08:02 +02:00
Kamil Mysliwiec
9c04af69fb Merge pull request #9378 from nestjs/dependabot/npm_and_yarn/lint-staged-12.3.7
chore(deps-dev): bump lint-staged from 12.3.5 to 12.3.7
2022-03-29 10:07:57 +02:00
Kamil Mysliwiec
07dd969245 Merge pull request #9379 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.6.6
chore(deps-dev): bump apollo-server-core from 3.6.4 to 3.6.6
2022-03-29 10:07:47 +02:00
Kamil Mysliwiec
75fdb69599 Merge pull request #9380 from nestjs/dependabot/npm_and_yarn/prettier-2.6.1
chore(deps-dev): bump prettier from 2.6.0 to 2.6.1
2022-03-29 10:07:43 +02:00
dependabot[bot]
da41efe3c1 chore(deps-dev): bump lint-staged from 12.3.5 to 12.3.7
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.3.5 to 12.3.7.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.3.5...v12.3.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 08:07:40 +00:00
dependabot[bot]
1d1c558b23 chore(deps): bump ansi-regex
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 08:06:02 +00:00
dependabot[bot]
53cf87de7d chore(deps): bump ansi-regex in /sample/25-dynamic-modules
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 08:05:56 +00:00
Kamil Mysliwiec
2694e87aa3 Merge pull request #9381 from nestjs/dependabot/npm_and_yarn/light-my-request-4.9.0
chore(deps): bump light-my-request from 4.8.0 to 4.9.0
2022-03-29 10:05:10 +02:00
Kamil Mysliwiec
93fd9a6752 Merge pull request #9382 from nestjs/dependabot/npm_and_yarn/types/supertest-2.0.12
chore(deps-dev): bump @types/supertest from 2.0.11 to 2.0.12
2022-03-29 10:04:57 +02:00
Kamil Mysliwiec
f1af65e92e Merge pull request #9386 from micalevisk/docs-fix-links
docs(common): update hyperlinks on `@see` tag comments
2022-03-28 09:36:00 +02:00
Kamil Mysliwiec
e485ddf960 Merge pull request #9384 from cichy380/patch-1
Update photo.service.ts
2022-03-28 09:35:42 +02:00
Kamil Mysliwiec
37607cdfae Merge pull request #9389 from wiasliaw/fix/typo
fix(platform-fastify): fix typo
2022-03-28 09:21:15 +02:00
wiasliaw
aabe1accee fix(platform-fastify): fix typo
chore(.): update copyright
2022-03-28 13:41:00 +08:00
Micael Levi (@micalevisk)
5ad8f2ba57 docs(common): update hyperlinks on @see tag comments 2022-03-25 16:54:27 -04:00
Micael Levi (@micalevisk)
eb33fe5919 feat(common): disallow option inject on class/value providers types 2022-03-25 16:18:36 -04:00
dependabot[bot]
33cba79f55 chore(deps-dev): bump apollo-server-core from 3.6.4 to 3.6.6
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.6.4 to 3.6.6.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-core@3.6.6/packages/apollo-server-core)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 15:16:05 +00:00
Kamil Myśliwiec
43a0514edd chore(@nestjs) publish v8.4.3 release 2022-03-25 16:12:43 +01:00
Kamil Myśliwiec
60f09913af fix(microservices): fix tcp client reconnection issue #9363 2022-03-25 16:11:28 +01:00
Marcin
8b0632e6c7 Update photo.service.ts
Change to MongoRepository class - dedicated to manage mongodb documents
2022-03-25 15:48:47 +01:00
Kamil Myśliwiec
c4887a7f44 chore(common): final improvements, drop initialize method 2022-03-25 14:07:22 +01:00
dependabot[bot]
d4420611f7 chore(deps-dev): bump @types/supertest from 2.0.11 to 2.0.12
Bumps [@types/supertest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/supertest) from 2.0.11 to 2.0.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/supertest)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 10:21:54 +00:00
dependabot[bot]
993faeb299 chore(deps): bump light-my-request from 4.8.0 to 4.9.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 4.8.0 to 4.9.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v4.8.0...v4.9.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>
2022-03-25 10:20:36 +00:00
dependabot[bot]
f4be93b3e6 chore(deps-dev): bump prettier from 2.6.0 to 2.6.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.6.0...2.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 10:18:56 +00:00
dependabot[bot]
33ac6add9f chore(deps-dev): bump graphql from 15.7.2 to 15.8.0
Bumps [graphql](https://github.com/graphql/graphql-js) from 15.7.2 to 15.8.0.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v15.7.2...v15.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 10:15:32 +00:00
Kamil Mysliwiec
e1f67b9eac Merge pull request #9361 from nestjs/dependabot/npm_and_yarn/mqtt-4.3.7
chore(deps-dev): bump mqtt from 4.3.6 to 4.3.7
2022-03-25 11:12:07 +01:00
Kamil Mysliwiec
04b8567ce6 Merge pull request #9369 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.8
chore(deps-dev): bump @nestjs/apollo from 10.0.7 to 10.0.8
2022-03-25 11:11:55 +01:00
Kamil Mysliwiec
868771f018 Merge pull request #9370 from nestjs/dependabot/npm_and_yarn/fastify-static-4.6.1
chore(deps-dev): bump fastify-static from 4.5.0 to 4.6.1
2022-03-25 11:11:44 +01:00
Kamil Mysliwiec
5e21db79a3 Merge pull request #9371 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.2.3
chore(deps-dev): bump graphql-tools from 8.2.1 to 8.2.3
2022-03-25 11:11:34 +01:00
Kamil Mysliwiec
2b42b410c6 Merge pull request #9375 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.6.6
chore(deps-dev): bump apollo-server-express from 3.6.5 to 3.6.6
2022-03-25 11:11:23 +01:00
Kamil Mysliwiec
0e1ee44276 Merge pull request #9374 from turrisxyz/naveen/feat/extended-security-codeql
Enhanced codeql security scanning
2022-03-25 11:11:01 +01:00
Kamil Mysliwiec
cb17bbbbe4 Merge pull request #9373 from turrisxyz/naveen/feat/dependabot-githubactions
Included dependabot for GitHub actions
2022-03-25 11:10:29 +01:00
dependabot[bot]
34a4883aad chore(deps-dev): bump apollo-server-express from 3.6.5 to 3.6.6
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.6.5 to 3.6.6.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-express@3.6.6/packages/apollo-server-express)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 00:03:50 +00:00
naveensrinivasan
40cfd37fb3 Enhanced codeql security scanning
- Enhanced the codeql enhanced security scanning.
https://github.blog/2022-02-17-code-scanning-finds-vulnerabilities-using-machine-learning/

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
2022-03-24 19:14:29 +00:00
naveensrinivasan
ae52d9651a Included dependabot for GitHub actions
At the moment there isn't a dependabot config for githubactions. With
this it includes for GitHub actions.

The GitHub actions aren't getting updates. The codeql github action has release of
2.8.3 and the one that is running right now is at 1.x.x. The codeql
  plays a critical role in identifying vulnerabilities.
2022-03-24 19:01:12 +00:00
Kamil Myśliwiec
18be1e1158 Merge branch 'master' into feat/module-utils 2022-03-24 10:51:38 +01:00
dependabot[bot]
a1bebff55b chore(deps-dev): bump @nestjs/apollo from 10.0.7 to 10.0.8
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.7 to 10.0.8.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.7...v10.0.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 08:18:38 +00:00
dependabot[bot]
0de707a997 chore(deps-dev): bump graphql-tools from 8.2.1 to 8.2.3
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.2.1 to 8.2.3.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.2.3/packages/graphql-tools)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 08:15:33 +00:00
Kamil Mysliwiec
061a19eac6 Merge pull request #9358 from nestjs/dependabot/npm_and_yarn/prettier-2.6.0
chore(deps-dev): bump prettier from 2.5.1 to 2.6.0
2022-03-24 09:14:33 +01:00
dependabot[bot]
0ad71f844f chore(deps-dev): bump fastify-static from 4.5.0 to 4.6.1
Bumps [fastify-static](https://github.com/fastify/fastify-static) from 4.5.0 to 4.6.1.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v4.5.0...v4.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 08:14:32 +00:00
Kamil Mysliwiec
120ad4ccdb Merge pull request #9359 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.6.5
chore(deps-dev): bump apollo-server-express from 3.6.4 to 3.6.5
2022-03-24 09:14:17 +01:00
Kamil Mysliwiec
0253e92d89 Merge pull request #9365 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.0.8
chore(deps-dev): bump @nestjs/graphql from 10.0.6 to 10.0.8
2022-03-24 09:12:59 +01:00
dependabot[bot]
8c8db9f497 chore(deps-dev): bump mqtt from 4.3.6 to 4.3.7
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 4.3.6 to 4.3.7.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v4.3.6...v4.3.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 08:08:25 +00:00
Kamil Mysliwiec
d581153c06 Merge pull request #9368 from nestjs/dependabot/npm_and_yarn/mongoose-6.2.8
chore(deps-dev): bump mongoose from 6.2.6 to 6.2.8
2022-03-24 09:05:18 +01:00
dependabot[bot]
d74a8d637f chore(deps-dev): bump mongoose from 6.2.6 to 6.2.8
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.2.6 to 6.2.8.
- [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/6.2.6...6.2.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 00:15:46 +00:00
dependabot[bot]
ad7972b203 chore(deps-dev): bump @nestjs/graphql from 10.0.6 to 10.0.8
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.6 to 10.0.8.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.6...v10.0.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-23 00:13:28 +00:00
dependabot[bot]
e9462d2712 chore(deps-dev): bump apollo-server-express from 3.6.4 to 3.6.5
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.6.4 to 3.6.5.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-express@3.6.5/packages/apollo-server-express)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 00:04:28 +00:00
dependabot[bot]
276b28cdcb chore(deps-dev): bump prettier from 2.5.1 to 2.6.0
Bumps [prettier](https://github.com/prettier/prettier) from 2.5.1 to 2.6.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.5.1...2.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 00:03:25 +00:00
Kamil Myśliwiec
17d48f3cb4 Merge branch 'master' into feat/module-utils 2022-03-21 15:49:30 +01:00
Kamil Myśliwiec
f502bed31f chore(@nestjs) publish v8.4.2 release 2022-03-21 15:48:00 +01:00
Kamil Mysliwiec
bf583bc870 Merge pull request #9339 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.7
chore(deps-dev): bump @nestjs/apollo from 10.0.6 to 10.0.7
2022-03-21 10:16:21 +01:00
Kamil Mysliwiec
6c842b5ee6 Merge pull request #9344 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-16.2.3
chore(deps-dev): bump @commitlint/config-angular from 16.2.1 to 16.2.3
2022-03-21 10:16:11 +01:00
dependabot[bot]
b56be10e06 chore(deps-dev): bump @nestjs/apollo from 10.0.6 to 10.0.7
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.6 to 10.0.7.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.6...v10.0.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-21 08:52:52 +00:00
dependabot[bot]
c23a9f7ef7 chore(deps-dev): bump @commitlint/config-angular from 16.2.1 to 16.2.3
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 16.2.1 to 16.2.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/v16.2.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>
2022-03-21 08:51:20 +00:00
Kamil Mysliwiec
852770f4ed Merge pull request #9333 from nestjs/renovate/webpack-cli-4.x
chore(deps): update dependency webpack-cli to v4.9.2
2022-03-21 09:46:27 +01:00
Kamil Mysliwiec
85a18b97e7 Merge pull request #9334 from nestjs/renovate/jest-monorepo
chore(deps): update jest monorepo
2022-03-21 09:46:22 +01:00
Kamil Mysliwiec
b83940ea50 Merge pull request #9335 from nestjs/renovate/graphql-tools-monorepo
fix(deps): update dependency @graphql-tools/utils to v8.6.3
2022-03-21 09:46:18 +01:00
Kamil Mysliwiec
faf1863cd3 Merge pull request #9336 from nestjs/renovate/babel-monorepo
chore(deps): update babel monorepo
2022-03-21 09:46:10 +01:00
Kamil Mysliwiec
a4ef8b85d8 Merge pull request #9340 from nestjs/dependabot/npm_and_yarn/nestjs/mongoose-9.0.3
chore(deps-dev): bump @nestjs/mongoose from 9.0.2 to 9.0.3
2022-03-21 09:45:58 +01:00
Kamil Mysliwiec
5c1d8dbad9 Merge pull request #9345 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.2.1
chore(deps-dev): bump graphql-tools from 7.0.5 to 8.2.1
2022-03-21 09:45:48 +01:00
Kamil Mysliwiec
e671a38b15 Merge pull request #9346 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.5.9
chore(deps-dev): bump @grpc/grpc-js from 1.5.7 to 1.5.9
2022-03-21 09:45:40 +01:00
Kamil Mysliwiec
a83923425f Merge pull request #9347 from xavierchow/feat-custom-transpoter-id
feat(microservices): allow to set custom transport to decorators
2022-03-21 09:44:40 +01:00
Kamil Mysliwiec
f0988950f6 Merge pull request #9350 from nestjs/renovate/npm-swagger-ui-dist-vulnerability
chore(deps): update dependency swagger-ui-dist to 4.1.3 [security]
2022-03-21 09:44:30 +01:00
Kamil Mysliwiec
97d657408a Merge pull request #9355 from nestjs/revert-9278-feat/better-cli-color-detection
Revert "feat(common): do not use colors in CLI if not supported"
2022-03-21 09:44:22 +01:00
Kamil Mysliwiec
460c2ebfe2 Revert "feat(common): do not use colors in CLI if not supported" 2022-03-21 09:35:48 +01:00
Renovate Bot
42c0353518 fix(deps): update dependency @graphql-tools/utils to v8.6.3 2022-03-21 07:13:08 +00:00
Renovate Bot
54ec050404 chore(deps): update jest monorepo 2022-03-21 07:12:01 +00:00
Renovate Bot
3776733960 chore(deps): update dependency webpack-cli to v4.9.2 2022-03-21 06:54:41 +00:00
Renovate Bot
abdde0aad5 chore(deps): update babel monorepo 2022-03-21 06:53:38 +00:00
Renovate Bot
6183d04ba9 chore(deps): update dependency swagger-ui-dist to 4.1.3 [security] 2022-03-21 06:41:29 +00:00
Tolga Paksoy
8ea63376ee test(platform-fastify): add tests for raw body option in fastify adapter 2022-03-17 12:00:41 +01:00
Tolga Paksoy
c8bd058757 feat(platform-fastify): add raw body to request if configured in options 2022-03-17 12:00:41 +01:00
Tolga Paksoy
f28a964200 test(platform-express): add tests for raw body option in express adapter 2022-03-17 12:00:38 +01:00
Xavier Zhou
4539568030 feat(microservices): allow to set custom transport to decorators 2022-03-17 09:22:23 +08:00
dependabot[bot]
7e349178f9 chore(deps-dev): bump @grpc/grpc-js from 1.5.7 to 1.5.9
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.5.7 to 1.5.9.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.5.7...@grpc/grpc-js@1.5.9)

---
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>
2022-03-17 00:16:23 +00:00
dependabot[bot]
b2fd422149 chore(deps-dev): bump graphql-tools from 7.0.5 to 8.2.1
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 7.0.5 to 8.2.1.
- [Release notes](https://github.com/ardatan/graphql-tools/releases)
- [Changelog](https://github.com/ardatan/graphql-tools/blob/master/packages/graphql-tools/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-tools/commits/graphql-tools@8.2.1/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>
2022-03-17 00:08:08 +00:00
Tolga Paksoy
b0e568e929 feat(platform-express): add raw body to request if configured in options 2022-03-16 20:47:30 +01:00
Tolga Paksoy
a6e28f5953 feat(core): allow middleware to be setup using app options 2022-03-16 20:41:45 +01:00
Tolga Paksoy
c05fcfb2ca feat(common): add raw body option to application options 2022-03-16 20:40:09 +01:00
dependabot[bot]
7d1124a42f chore(deps-dev): bump @nestjs/mongoose from 9.0.2 to 9.0.3
Bumps [@nestjs/mongoose](https://github.com/nestjs/mongoose) from 9.0.2 to 9.0.3.
- [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.0.2...9.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 00:08:10 +00:00
Kamil Myśliwiec
0dc4f919f1 chore(@nestjs) publish v8.4.1 release 2022-03-14 15:21:12 +01:00
Kamil Mysliwiec
0990d4b270 Merge pull request #9331 from nestjs/renovate/ts-loader-9.x
chore(deps): update dependency ts-loader to v9.2.8
2022-03-14 14:56:44 +01:00
Kamil Mysliwiec
8c705aa8da Merge pull request #9332 from nestjs/fix/middleware-with-exclude-routes
fix(core): apply global middleware to routes excluded from prefix
2022-03-14 14:56:34 +01:00
Kamil Mysliwiec
2f4e9d9293 Merge pull request #9326 from nestjs/dependabot/npm_and_yarn/mongoose-6.2.6
chore(deps-dev): bump mongoose from 6.2.5 to 6.2.6
2022-03-14 14:44:09 +01:00
Kamil Myśliwiec
1ae72e1fdb fix(core): apply global middleware to routes excluded from prefix 2022-03-14 14:43:03 +01:00
Renovate Bot
c7bdeada00 chore(deps): update dependency ts-loader to v9.2.8 2022-03-14 13:30:58 +00:00
dependabot[bot]
6fc31586bc chore(deps-dev): bump mongoose from 6.2.5 to 6.2.6
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.2.5 to 6.2.6.
- [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/6.2.5...6.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 13:01:08 +00:00
Kamil Mysliwiec
ab9a1a54f6 Merge pull request #9278 from jonahsnider/feat/better-cli-color-detection
feat(common): do not use colors in CLI if not supported
2022-03-14 13:58:38 +01:00
Kamil Mysliwiec
f3530eee5e Merge pull request #9290 from radekmikeska/kafka-server-event-pattern-fix
fix(microservices): fix event pattern behavior
2022-03-14 13:58:20 +01:00
Kamil Mysliwiec
26b3d1d8d8 Merge pull request #9303 from nestjs/fix/tcp-client-parallel-connections
fix(microservices): tcp client parallel connections issue
2022-03-14 13:57:25 +01:00
Kamil Mysliwiec
2d989b116f Merge pull request #9316 from stanimirovv/feat/custom-logger-formatters
feat: allow custom log msg formatters
2022-03-14 13:57:10 +01:00
Kamil Mysliwiec
61fe8de7e7 Merge pull request #9322 from nestjs/fix/nested-transient-providers
fix(core): use context module for nested transient providers
2022-03-14 13:56:44 +01:00
Kamil Mysliwiec
8fa574453a Merge pull request #9327 from nestjs/dependabot/npm_and_yarn/types/ws-8.5.3
chore(deps-dev): bump @types/ws from 8.5.2 to 8.5.3
2022-03-14 13:56:18 +01:00
Kamil Mysliwiec
4d9b4cc118 Merge pull request #9320 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.6.4
chore(deps-dev): bump apollo-server-core from 3.6.3 to 3.6.4
2022-03-14 13:56:10 +01:00
Kamil Mysliwiec
b71bf6b9df Merge pull request #9323 from nestjs/renovate/node-16.x
chore(deps): update dependency @types/node to v16.11.26
2022-03-14 13:56:06 +01:00
Kamil Mysliwiec
0efe425187 Merge pull request #9324 from nestjs/renovate/mocha-9.x
chore(deps): update dependency mocha to v9.2.2
2022-03-14 13:56:01 +01:00
Kamil Mysliwiec
5ef23f1058 Merge pull request #9325 from nestjs/renovate/mysql-8.x
chore(deps): update dependency mysql to v8.0.28
2022-03-14 13:55:56 +01:00
Kamil Mysliwiec
7d265c34e2 Merge pull request #9328 from nestjs/dependabot/npm_and_yarn/mocha-9.2.2
chore(deps-dev): bump mocha from 9.2.1 to 9.2.2
2022-03-14 13:55:40 +01:00
Renovate Bot
efc5b63ed0 chore(deps): update dependency mysql to v8.0.28 2022-03-14 11:56:44 +00:00
Renovate Bot
9997006637 chore(deps): update dependency mocha to v9.2.2 2022-03-14 11:56:34 +00:00
Renovate Bot
fc96eea2d7 chore(deps): update dependency @types/node to v16.11.26 2022-03-14 11:54:27 +00:00
dependabot[bot]
c09f6debd1 chore(deps-dev): bump mocha from 9.2.1 to 9.2.2
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.1 to 9.2.2.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.1...v9.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 00:14:35 +00:00
dependabot[bot]
a23f858011 chore(deps-dev): bump @types/ws from 8.5.2 to 8.5.3
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.2 to 8.5.3.
- [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>
2022-03-14 00:13:00 +00:00
Zlatin Stanimirov
50bb472ea3 feat: extract protected method for pid 2022-03-11 20:09:47 +02:00
Zlatin Stanimirov
674a09c175 refactor: extract colorize 2022-03-11 19:20:16 +02:00
dependabot[bot]
34c09f5a61 chore(deps-dev): bump apollo-server-core from 3.6.3 to 3.6.4
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.6.3 to 3.6.4.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-core@3.6.4/packages/apollo-server-core)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-11 14:21:45 +00:00
Kamil Mysliwiec
76b1837886 Merge pull request #9321 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.6.4
chore(deps-dev): bump apollo-server-express from 3.6.3 to 3.6.4
2022-03-11 15:18:54 +01:00
Kamil Myśliwiec
3b2407bba7 fix(core): use context module for nested transient providers 2022-03-11 15:17:42 +01:00
dependabot[bot]
a06ae58426 chore(deps-dev): bump apollo-server-express from 3.6.3 to 3.6.4
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.6.3 to 3.6.4.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-express@3.6.4/packages/apollo-server-express)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-11 00:07:52 +00:00
David Schütte
37d83eeb21 test(microservices): add tests for kafka-rpc-proxy 2022-03-10 12:36:48 +01:00
David Schütte
0b93404bef refactor(microservices): simplify function call 2022-03-10 12:34:52 +01:00
Zlatin Stanimirov
89d97652ca feat: allow custom log formatters 2022-03-10 12:57:58 +02:00
Kamil Mysliwiec
bf0768ed4b Merge pull request #9317 from nestjs/dependabot/npm_and_yarn/axios-0.26.1
chore(deps): bump axios from 0.26.0 to 0.26.1
2022-03-10 08:34:25 +01:00
Kamil Mysliwiec
6071755cc1 Merge pull request #9318 from nestjs/dependabot/npm_and_yarn/mongoose-6.2.5
chore(deps-dev): bump mongoose from 6.2.4 to 6.2.5
2022-03-10 08:34:21 +01:00
Kamil Mysliwiec
f89de3f85a Merge pull request #9319 from nestjs/dependabot/npm_and_yarn/fastify-3.27.4
chore(deps): bump fastify from 3.27.3 to 3.27.4
2022-03-10 08:34:13 +01:00
dependabot[bot]
a05369ff98 chore(deps): bump fastify from 3.27.3 to 3.27.4
Bumps [fastify](https://github.com/fastify/fastify) from 3.27.3 to 3.27.4.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v3.27.3...v3.27.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-10 00:11:25 +00:00
dependabot[bot]
4aa257a30e chore(deps-dev): bump mongoose from 6.2.4 to 6.2.5
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.2.4 to 6.2.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/6.2.4...6.2.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-10 00:07:03 +00:00
dependabot[bot]
335a4dd48a chore(deps): bump axios from 0.26.0 to 0.26.1
Bumps [axios](https://github.com/axios/axios) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.26.0...v0.26.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-10 00:05:26 +00:00
woobottle
f5051727ea fix(core): Change ReflectMetadata Params Order
i saw reflectMetadata public method in scanner.ts use params backwards
same levele methods in scanner.ts like insertInjectable,
insertExportedProvider, insertController use pararms forward
i think this params order should be fixed
and only params reversed order in reflectMetadata can get hard to read
2022-03-09 17:59:47 +09:00
Kamil Mysliwiec
4a6edc5e75 Merge pull request #9307 from nestjs/dependabot/npm_and_yarn/rxjs-7.5.5
chore(deps): bump rxjs from 7.5.4 to 7.5.5
2022-03-09 09:10:34 +01:00
dependabot[bot]
625bea70b2 chore(deps): bump rxjs from 7.5.4 to 7.5.5
Bumps [rxjs](https://github.com/reactivex/rxjs) from 7.5.4 to 7.5.5.
- [Release notes](https://github.com/reactivex/rxjs/releases)
- [Changelog](https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reactivex/rxjs/compare/7.5.4...7.5.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 00:06:03 +00:00
Michał Dzik
5e52a7e85e chore: align message pattern to event pattern 2022-03-08 21:16:37 +01:00
Kamil Mysliwiec
6920399925 Merge pull request #9304 from nestjs/renovate/nestjs-schematics-8.x
chore(deps): update dependency @nestjs/schematics to v8.0.8
2022-03-08 09:56:17 +01:00
Kamil Mysliwiec
2d8db167df Merge pull request #9305 from nestjs/dependabot/npm_and_yarn/fastify-3.27.3
chore(deps): bump fastify from 3.27.2 to 3.27.3
2022-03-08 09:53:33 +01:00
Renovate Bot
dbdc5963b2 chore(deps): update dependency @nestjs/schematics to v8.0.8 2022-03-08 06:37:41 +00:00
dependabot[bot]
1de8aac473 chore(deps): bump fastify from 3.27.2 to 3.27.3
Bumps [fastify](https://github.com/fastify/fastify) from 3.27.2 to 3.27.3.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v3.27.2...v3.27.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 00:07:12 +00:00
Michał Dzik
0fe67d5f90 chore: alignments after review 2022-03-07 21:18:56 +01:00
titivuk
ef70418627 fix(common): ParseUUIDPipe - use optional chaining 2022-03-07 18:01:42 +01:00
David Schütte
b91803c671 feat(microservices): add consumer getter to kafka context
Provide access to native consumer of kafkajs using @Ctx() decorator.
2022-03-07 14:41:31 +01:00
Kamil Myśliwiec
e337f29954 fix(microservices): tcp client parallel connections issue 2022-03-07 13:52:58 +01:00
Kamil Mysliwiec
4e41a72773 Merge pull request #9300 from nestjs/dependabot/npm_and_yarn/ts-node-10.7.0
chore(deps-dev): bump ts-node from 10.6.0 to 10.7.0
2022-03-07 10:12:17 +01:00
dependabot[bot]
a5552c34e6 chore(deps-dev): bump ts-node from 10.6.0 to 10.7.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.6.0 to 10.7.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.6.0...v10.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 08:49:51 +00:00
Kamil Mysliwiec
46ccebeda3 Merge pull request #9292 from nestjs/dependabot/npm_and_yarn/ts-morph-14.0.0
chore(deps-dev): bump ts-morph from 13.0.3 to 14.0.0
2022-03-07 09:47:20 +01:00
Kamil Mysliwiec
5feda61e17 Merge pull request #9301 from nestjs/dependabot/npm_and_yarn/typeorm-0.2.45
chore(deps-dev): bump typeorm from 0.2.44 to 0.2.45
2022-03-07 09:47:08 +01:00
Kamil Mysliwiec
a129ee137b Merge pull request #9302 from nestjs/dependabot/npm_and_yarn/lint-staged-12.3.5
chore(deps-dev): bump lint-staged from 12.3.4 to 12.3.5
2022-03-07 09:47:04 +01:00
Kamil Mysliwiec
4d9fb0d29a Merge pull request #9296 from ZanMinKian/chore-zmj-update_gitignore
chore: add .devcontainer to gitignore
2022-03-07 09:17:53 +01:00
dependabot[bot]
0be9c63bf0 chore(deps-dev): bump lint-staged from 12.3.4 to 12.3.5
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.3.4 to 12.3.5.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.3.4...v12.3.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 00:14:20 +00:00
dependabot[bot]
d661fda872 chore(deps-dev): bump typeorm from 0.2.44 to 0.2.45
Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.2.44 to 0.2.45.
- [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.2.44...0.2.45)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 00:10:59 +00:00
曾明健
c151efebcb chore: add .devcontainer to gitignore 2022-03-06 06:24:33 +08:00
Tony
795eaec304 Merge branch 'master' into sample-05/add-test-e2e 2022-03-04 18:18:31 +01:00
Michał Dzik
48dca4ee22 chore: align event pattern 2022-03-04 14:19:02 +01:00
David Schütte
c229a75c43 fix(microservices): fix import path 2022-03-04 09:42:35 +01:00
Radek Mikeska
4d689ee356 refactor(microservices): use optional chaining
code review
2022-03-04 07:30:26 +01:00
David Schütte
77b7bd6905 feat(microservices): dont catch errors thrown by kafka event handling
Error thrown by event handling method are no longer being caught by RcpExecptionFilter.
Instead errors are passed to kafkajs's eachMessage.
This results in proper interaction with kafka.

This commit closes Kafka commitOffsets #9283.
2022-03-04 01:21:41 +01:00
David Schütte
5b24f81cd8 feat(microservices): add commit offset to kafka context
Provide access to kafkajs commitOffset by using @Ctx() decorator when handeling an event.

This commit closes Kafka commitOffsets #9283.
2022-03-04 01:17:13 +01:00
dependabot[bot]
5038132633 chore(deps-dev): bump ts-morph from 13.0.3 to 14.0.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 13.0.3 to 14.0.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/13.0.3...14.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>
2022-03-04 00:06:18 +00:00
Radek Mikeska
94b39db8f5 fix(microservices): fix event pattern behavior
When listening to messages from Kafka using EventPattern the message should not be replied to even if it contains correlation id and reply topic.

BREAKING CHANGE: existing methods where EventPattern is used instead of MessagePattern do not send message to a reply topic anymore which might cause bugs.
2022-03-03 16:08:14 +01:00
Kamil Myśliwiec
db3654a891 sample(23-code-first): add missing directive declaration 2022-03-03 13:33:59 +01:00
Kamil Mysliwiec
46db4c4d4b Merge pull request #9273 from nestjs/dependabot/npm_and_yarn/typescript-4.6.2
chore(deps-dev): bump typescript from 4.3.5 to 4.6.2
2022-03-03 10:37:50 +01:00
Kamil Mysliwiec
788e11ff5e Merge pull request #9285 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.6
chore(deps-dev): bump @nestjs/apollo from 10.0.5 to 10.0.6
2022-03-03 10:05:55 +01:00
Kamil Myśliwiec
8f7b7a8014 chore(): resolve conflicts, update tsconfig 2022-03-03 10:05:11 +01:00
Kamil Mysliwiec
f864d75b72 Merge pull request #9287 from nestjs/dependabot/npm_and_yarn/eventsource-2.0.0
chore(deps-dev): bump eventsource from 1.1.0 to 2.0.0
2022-03-03 09:59:54 +01:00
dependabot[bot]
88565b417f chore(deps-dev): bump @nestjs/apollo from 10.0.5 to 10.0.6
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.5 to 10.0.6.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.5...v10.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>
2022-03-03 08:25:52 +00:00
dependabot[bot]
2d7d28189e chore(deps-dev): bump eventsource from 1.1.0 to 2.0.0
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 2.0.0.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.1.0...v2.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-03 08:25:22 +00:00
Kamil Mysliwiec
e5080b85ee Merge pull request #9284 from nestjs/dependabot/npm_and_yarn/eslint-config-prettier-8.5.0
chore(deps-dev): bump eslint-config-prettier from 8.4.0 to 8.5.0
2022-03-03 09:22:17 +01:00
Kamil Mysliwiec
cce221d726 Merge pull request #9286 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.0.6
chore(deps-dev): bump @nestjs/graphql from 10.0.5 to 10.0.6
2022-03-03 09:22:08 +01:00
Kamil Mysliwiec
2f73f70414 Merge pull request #9257 from capitantrueno/master
fix(gateways): add the socket.io types dependency
2022-03-03 09:22:01 +01:00
dependabot[bot]
31d63d6859 chore(deps-dev): bump @nestjs/graphql from 10.0.5 to 10.0.6
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.5 to 10.0.6.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.5...v10.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>
2022-03-03 00:09:53 +00:00
dependabot[bot]
285bd4b595 chore(deps-dev): bump eslint-config-prettier from 8.4.0 to 8.5.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.4.0 to 8.5.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.4.0...v8.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-03 00:03:42 +00:00
dependabot[bot]
5f2e784a44 chore(deps-dev): bump typescript from 4.3.5 to 4.6.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.6.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 10:19:55 +00:00
Kamil Mysliwiec
797e04ae26 Merge pull request #9280 from nestjs/dependabot/npm_and_yarn/ts-node-10.6.0
chore(deps-dev): bump ts-node from 10.5.0 to 10.6.0
2022-03-02 11:17:11 +01:00
Kamil Mysliwiec
7f9aa9cec0 Merge pull request #9279 from nestjs/dependabot/npm_and_yarn/types/ws-8.5.2
chore(deps-dev): bump @types/ws from 8.5.1 to 8.5.2
2022-03-02 11:16:42 +01:00
Jonah Snider
07c9ce75ea style(common): format 2022-03-01 20:10:06 -08:00
dependabot[bot]
acc96ddb3f chore(deps-dev): bump ts-node from 10.5.0 to 10.6.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.5.0 to 10.6.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.5.0...v10.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 00:09:01 +00:00
dependabot[bot]
080ad6fe40 chore(deps-dev): bump @types/ws from 8.5.1 to 8.5.2
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.1 to 8.5.2.
- [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>
2022-03-02 00:07:40 +00:00
Jonah Snider
4e7dd9a19e style(common): format 2022-03-01 12:00:53 -08:00
Jonah Snider
3147279ceb fix(common): fix condition 2022-03-01 11:57:42 -08:00
Jonah Snider
ec9537b3f3 feat(common): do not use color in CLI if not supported 2022-03-01 11:54:14 -08:00
Kamil Myśliwiec
94c2aca452 chore(): update package.json and readmes 2022-03-01 14:48:16 +01:00
Kamil Myśliwiec
fb725658f1 chore(@nestjs) publish v8.4.0 release 2022-03-01 14:45:30 +01:00
Kamil Myśliwiec
4f33806c95 Merge branch 'master' of https://github.com/nestjs/nest 2022-03-01 14:33:32 +01:00
Kamil Myśliwiec
aeadc14dca fix(core): address compilation errors 2022-03-01 14:33:24 +01:00
Kamil Mysliwiec
0a90cbe45c Merge pull request #9059 from jeanbmar/raw-tcp
feat(microservices): add tcp raw data processing capabilities
2022-03-01 14:30:01 +01:00
Kamil Myśliwiec
61c5c0614f Merge branch 'tensoar-mqtt-shared-subscription-support' 2022-03-01 14:03:22 +01:00
Kamil Myśliwiec
43a4770b74 chore(): remove merge conflicts 2022-03-01 13:56:03 +01:00
Kamil Myśliwiec
8ce0cf1bc9 chore(): resolve conflicts, minor changes 2022-03-01 13:55:07 +01:00
Kamil Mysliwiec
16531d47d9 Merge pull request #9277 from nestjs/fix/remove-options-from-packets
fix(microservices): remove options object from packets (rmq and mqtt)
2022-03-01 13:52:11 +01:00
Kamil Myśliwiec
7155a18089 Merge branch 'adworacz-versionFunction' 2022-03-01 13:51:49 +01:00
Kamil Myśliwiec
2d3a3b4051 fix(microservices): remove options object from packets (rmq and mqtt) 2022-03-01 13:36:22 +01:00
Mario Rodrigo
852fc91865 fix(gateways): add the socket.io dependency 2022-02-24 12:25:43 +00:00
Mario Rodrigo
668ecd1cf8 fix(gateways): add the socket.io types dependency 2022-02-24 09:52:56 +00:00
Michał Dzik
91178c8a8a chore: apply more tests 2022-02-20 14:55:51 +01:00
Michał Dzik
4ae2ef54d4 feat(microservices): add support for multiple message pattern decorator 2022-02-19 22:16:49 +01:00
Kamil Myśliwiec
bac34473d0 feat(core): add configurable module builder, module utils 2022-02-10 11:02:38 +01:00
Jean-Baptiste
e8abf50812 feat(microservices): allow use of custom tcp sockets 2022-01-30 14:16:31 +01:00
Jean-Baptiste
5d146afa0b refactor(microservices): move tcp socket logic to an abstract class 2022-01-30 12:48:51 +01:00
zmj
ce96a0ed13 fix: fix factory provider definition 2022-01-25 12:02:46 +08:00
tensoar
111d84e25e fix(microservices): update mosquitto config
set allow_anonymous true
2022-01-03 10:21:02 +08:00
tensoar
033e1ffe2d test(microservices): Open websocket in mosquitto 2022-01-02 20:34:35 +08:00
tensoar
14a9ed0ea2 test(microservices): change mqtt docker image
Change the mqtt docker image from toke/mosquitto to eclipse-mosquitto
2022-01-02 19:56:09 +08:00
Tony133
c7d8935632 sample(05-sql-typeorm): update package.json 2022-01-02 12:37:39 +01:00
Tony133
75d4a9b6ee sample(05-sql-typeorm): added test e2e 2022-01-02 12:05:28 +01:00
titivuk
9c0cdd2950 fix(common): ParseUUIDPipe - use isString() util function 2021-12-29 17:35:27 +01:00
titivuk
7cc81067fe fix(common): ParseUUIDPipe - make uuid regexp dictionary protected static property 2021-12-29 17:32:04 +01:00
titivuk
d32e8dd582 fix(common): ParseUUIDPipe - throw exceptions with exceptionFactory only 2021-12-29 17:32:04 +01:00
wSedlacek
a03db87146 fix(core): end without message when a response has already sent a header 2021-12-17 00:36:36 -08:00
wSedlacek
fefa7528fa feat(core): header sent abstraction 2021-12-17 00:36:32 -08:00
wSedlacek
1b684bcc0a feat(core): end abstraction 2021-12-17 00:36:22 -08:00
wSedlacek
95bba80ecb feat(common): header sent abstraction 2021-12-06 22:32:29 -08:00
wSedlacek
26c21fb201 feat(common): end abstraction 2021-12-06 22:32:29 -08:00
wSedlacek
b8fb518e61 feat(platform-fastify): header sent abstraction 2021-12-06 22:32:28 -08:00
wSedlacek
24ee43b254 feat(platform-fastify): end abstraction 2021-12-06 22:32:28 -08:00
wSedlacek
0e05de58e4 feat(platform-express): header sent abstraction 2021-12-06 22:32:28 -08:00
wSedlacek
226f344f2c feat(platform-express): end abstraction 2021-12-06 22:32:28 -08:00
wt
472b545880 test(microservices): add e2e test for #8109
add e2e test for #8109

associate #8109
2021-09-29 13:42:09 +08:00
tensoar
1741f2106a fix(microservices): mqtt shared subscription support
fix the matching error between shared mqtt topic and handler

Closes #8063
2021-09-22 20:38:57 +08:00
Dylan Lundy
3827736d96 Improve ParseUUIDPipe error message 2021-09-10 00:04:37 +09:30
Lutz
a364ced0ac Merge pull request #1 from MyAeroCode/lutz-feat/route-injection
feat(core): support route injection
2021-03-05 17:55:03 +09:00
454 changed files with 416096 additions and 155134 deletions

View File

@@ -50,9 +50,19 @@ jobs:
command: npm run build
test_node_12:
working_directory: ~/nest
<<: *unit-tests-template
docker:
- image: circleci/node:12
test_node_14:
<<: *unit-tests-template
docker:
- image: circleci/node:14
test_node_16:
working_directory: ~/nest
docker:
- image: circleci/node:16
steps:
- checkout
- *restore-cache
@@ -65,25 +75,10 @@ jobs:
- store_artifacts:
path: coverage
test_node_10:
<<: *unit-tests-template
docker:
- image: circleci/node:10
test_node_14:
<<: *unit-tests-template
docker:
- image: circleci/node:14
test_node_16:
<<: *unit-tests-template
docker:
- image: circleci/node:16
lint:
working_directory: ~/nest
docker:
- image: circleci/node:12
- image: circleci/node:16
steps:
- checkout
- *restore-cache
@@ -133,7 +128,7 @@ jobs:
codechecks_benchmarks:
working_directory: ~/nest
docker:
- image: circleci/node:12
- image: circleci/node:16
steps:
- checkout
- *restore-cache
@@ -149,7 +144,7 @@ jobs:
samples:
working_directory: ~/nest
docker:
- image: circleci/node:12
- image: circleci/node:16
environment:
- DISABLE_OPENCOLLECTIVE: true
steps:
@@ -174,9 +169,6 @@ workflows:
- test_node_12:
requires:
- build
- test_node_10:
requires:
- build
- lint:
requires:
- build

View File

@@ -23,6 +23,22 @@
"test",
"sample"
]
],
"scope-enum": [
1,
"always",
[
"common",
"core",
"sample",
"microservices",
"express",
"fastify",
"socket.io",
"ws",
"testing",
"websockets"
]
]
}
}

View File

@@ -1,8 +1,7 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
root: true,
env: {
node: true,
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
@@ -10,16 +9,39 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'prettier',
],
root: true,
env: {
node: true,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-types': 'off',
},
overrides: [
{
files: ['**/*.ts'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-types': 'off',
},
},
{
files: ['**/*.spec.ts', 'integration/**/*.ts'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.spec.json',
sourceType: 'module',
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
},
}
]
};

View File

@@ -1,13 +0,0 @@
const baseConfig = require('./.eslintrc');
module.exports = {
...baseConfig,
parserOptions: {
project: 'tsconfig.spec.json',
sourceType: 'module',
},
rules: {
...baseConfig.rules,
'@typescript-eslint/no-empty-function': 'off',
},
};

View File

@@ -5,3 +5,8 @@ updates:
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

View File

@@ -29,7 +29,9 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
queries: +security-extended
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
@@ -37,7 +39,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -51,4 +53,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@ node_modules/
/.idea
/.awcache
/.vscode
/.devcontainer
*.code-workspace
# bundle

View File

@@ -1,7 +0,0 @@
module.exports = {
mochaHooks: {
beforeAll: function() {
require('reflect-metadata');
}
}
};

View File

@@ -1,2 +1,3 @@
packages/**/*.d.ts
packages/**/*.js
packages/**/*.js
.nyc_output

View File

@@ -19,7 +19,7 @@ Help us keep Nest open and inclusive. Please read and follow our [Code of Conduc
## <a name="question"></a> Got a Question or Problem?
**Do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests.** You've got much better chances of getting your question answered on [Stack Overflow](https://stackoverflow.com/questions/tagged/nestjs) where the questions should be tagged with tag `nestjs`.
**Do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests.** You've got much better chances of getting your question answered on [Stack Overflow][stackoverflow] where the questions should be tagged with tag `nestjs`.
Stack Overflow is a much better place to ask questions since:
@@ -71,7 +71,7 @@ A minimal reproduce scenario using a repository or Gist allows us to quickly con
Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that doesn't have enough info to be reproduced.
You can file new issues by filling out our [new issue form](https://github.com/nestjs/nest/issues/new).
You can file new issues by filling out our [new issue form][new_issue].
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
@@ -84,9 +84,9 @@ To the first point
We cannot accept code without this.
-->
1. Search [GitHub](https://github.com/nestjs/nest/pulls) for an open or closed PR
1. Search [GitHub Pull Requests][gh_prs] for an open or closed PR
that relates to your submission. You don't want to duplicate effort.
1. Fork the nestjs/nest repo.
1. Fork this repository.
1. Make your changes in a new git branch:
```shell
@@ -159,12 +159,12 @@ from the main (upstream) repository:
## <a name="development"></a> Development Setup
You will need Node.js version 8.9.0+.
You will need [Node.js](https://nodejs.org) version >= 10.13.0 (except for v13).
1. After cloning the repo, run:
```bash
$ npm i # (or yarn install)
$ npm ci # (or yarn install)
```
2. In order to prepare your environment run `prepare.sh` shell script:
@@ -233,7 +233,7 @@ to read on GitHub as well as in various git tools.
Footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.
Samples: (even more [samples](https://github.com/nestjs/nest/commits/master))
Samples: (even more [samples][commits_samples])
```
docs(changelog): update change log to beta.5
@@ -262,16 +262,22 @@ Must be one of the following:
### Scope
The scope should be the name of the npm package affected (as perceived by person reading changelog generated from commit messages.
The scope should have the name of the npm package affected (as perceived by person reading changelog generated from commit messages).
The following is the list of supported scopes:
- **common**
- **core**
- **sample**
- **microservices**
- **testing**
- **websockets**
- **common**: for changes made on `packages/common` directory
- **core**: for changes made on `packages/core` directory
- **sample**: for changes made on `packages/sample` directory
- **microservices**: for changes made on `packages/microservices` directory
- **express**: for changes made on `packages/platform-express` directory
- **fastify**: for changes made on `packages/platform-fastify` directory
- **socket.io**: for changes made on `packages/platform-socket.io` directory
- **ws**: for changes made on `packages/platform-ws` directory
- **testing**: for changes made on `packages/testing` directory
- **websockets**: for changes made on `packages/websockets` directory
If your change affect more than one package, separate the scopes with a comma (e.g. `common,core`).
There are currently a few exceptions to the "use package name" rule:
@@ -279,7 +285,6 @@ There are currently a few exceptions to the "use package name" rule:
- **changelog**: used for updating the release notes in CHANGELOG.md
- **sample/#**: for the example apps directory, replacing # with the example app number
- none/empty string: useful for `style`, `test` and `refactor` changes that are done across all packages (e.g. `style: add missing semicolons`)
<!-- * **aio**: used for docs-app (angular.io) related changes within the /aio directory of the repo -->
### Subject
@@ -317,14 +322,13 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
<!-- [coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md -->
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
[corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
<!-- [individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html -->
<!-- [corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html -->
[dev-doc]: https://github.com/nestjs/nest/blob/master/docs/DEVELOPER.md
[github]: https://github.com/nestjs/nest
[stackoverflow]: https://stackoverflow.com/questions/tagged/nestjs
[discord]: https://discordapp.com/invite/G7Qnnhy
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
[js-style-guide]: https://google.github.io/styleguide/jsguide.html
[jsfiddle]: http://jsfiddle.net
[plunker]: http://plnkr.co/edit
[runnable]: http://runnable.com
<!-- [stackoverflow]: http://stackoverflow.com/questions/tagged/angular -->
[new_issue]: https://github.com/nestjs/nest/issues/new
[gh_prs]: https://github.com/nestjs/nest/pulls
[commits_samples]: https://github.com/nestjs/nest/commits/master

View File

@@ -64,17 +64,21 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td><td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://careers.labster.com/departments/platform" target="_blank"><img src="https://nestjs.com/img/labster-logo.png" width="170" valign="middle" /></a></td><td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="150" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
<a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/intrinisic-logo.png" width="210" valign="middle" /></a></td></</tr></table>
<a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/intrinisic-logo.png" width="210" valign="middle" /></a></td>
<td>
<a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/jetbrains-logo.svg" width="110" valign="middle" /></a></td><td>
<a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/snyk-logo-black.png" width="185" valign="middle" /></a></td><td>
<a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td></</tr></table>
#### Silver Sponsors
@@ -124,6 +128,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<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://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://db.nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nord-logo.png" width="50" valign="middle" /></a></td>
</tr></table>
## Backers

View File

@@ -2,4 +2,6 @@
const fastify = require('fastify')();
fastify.get('/', async (req, reply) => reply.send('Hello world'));
fastify.listen(3000);
fastify.listen({
port: 3000
});

7
hooks/mocha-init-hook.ts Normal file
View File

@@ -0,0 +1,7 @@
export const mochaHooks = (): Mocha.RootHookObject => {
return {
async beforeAll(this: Mocha.Context) {
await import('reflect-metadata');
}
};
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist"
},
"include": [
"src/**/*",
"e2e/**/*"
],
"exclude": [
"node_modules",
]
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist"
},
"include": [
"src/**/*",
"e2e/**/*"
],
"exclude": [
"node_modules",
]
}

View File

@@ -1,10 +1,10 @@
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import { NestExpressApplication } from '@nestjs/platform-express';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
describe('Express Cors', () => {
let app: NestFastifyApplication;
let app: NestExpressApplication;
const configs = [
{
origin: 'example.com',
@@ -30,7 +30,7 @@ describe('Express Cors', () => {
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>();
app = module.createNestApplication<NestExpressApplication>();
let requestId = 0;
const configDelegation = function (req, cb) {
@@ -84,7 +84,7 @@ describe('Express Cors', () => {
cb(null, config);
};
app = module.createNestApplication<NestFastifyApplication>(null, {
app = module.createNestApplication<NestExpressApplication>({
cors: configDelegation,
});
@@ -126,7 +126,7 @@ describe('Express Cors', () => {
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>();
app = module.createNestApplication<NestExpressApplication>();
app.enableCors(configs[0]);
await app.init();
@@ -153,7 +153,7 @@ describe('Express Cors', () => {
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>(null, {
app = module.createNestApplication<NestExpressApplication>({
cors: configs[0],
});
await app.init();

View File

@@ -1,9 +1,12 @@
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
describe('Fastify Cors', () => {
describe.skip('Fastify Cors', () => {
let app: NestFastifyApplication;
const configs = [
{
@@ -30,7 +33,9 @@ describe('Fastify Cors', () => {
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>();
app = module.createNestApplication<NestFastifyApplication>(
new FastifyAdapter(),
);
let requestId = 0;
const configDelegation = function (req, cb) {
@@ -84,9 +89,12 @@ describe('Fastify Cors', () => {
cb(null, config);
};
app = module.createNestApplication<NestFastifyApplication>(null, {
cors: configDelegation,
});
app = module.createNestApplication<NestFastifyApplication>(
new FastifyAdapter(),
{
cors: configDelegation,
},
);
await app.init();
});
@@ -127,7 +135,9 @@ describe('Fastify Cors', () => {
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>();
app = module.createNestApplication<NestFastifyApplication>(
new FastifyAdapter(),
);
app.enableCors(configs[0]);
await app.init();
@@ -147,16 +157,19 @@ describe('Fastify Cors', () => {
after(async () => {
await app.close();
});
describe('Application Options', () => {
before(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>(null, {
cors: configs[0],
});
app = module.createNestApplication<NestFastifyApplication>(
new FastifyAdapter(),
{
cors: configs[0],
},
);
await app.init();
});

View File

@@ -17,13 +17,15 @@ services:
restart: always
mqtt:
container_name: test-mqtt
image: toke/mosquitto
image: eclipse-mosquitto
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
ports:
- "1883:1883"
- "9001:9001"
restart: always
mysql:
image: mysql:8.0.27
image: mysql:8.0.28
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test

View File

@@ -1,14 +1,14 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('GraphQL - Code-first', () => {
let app: INestApplication;
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication();

View File

@@ -1,14 +1,14 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('GraphQL - Guards', () => {
let app: INestApplication;
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication();

View File

@@ -1,14 +1,14 @@
import { INestApplication, ValidationPipe } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('GraphQL Pipes', () => {
let app: INestApplication;
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication();

View File

@@ -18,4 +18,4 @@ import { RecipesModule } from './recipes/recipes.module';
}),
],
})
export class ApplicationModule {}
export class AppModule {}

View File

@@ -1,14 +1,14 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('GraphQL', () => {
let app: INestApplication;
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication();

View File

@@ -13,4 +13,4 @@ import { CatsModule } from './cats/cats.module';
}),
],
})
export class ApplicationModule {}
export class AppModule {}

View File

@@ -13,7 +13,7 @@ import {
} from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
const RETURN_VALUE = 'test';
const MIDDLEWARE_VALUE = 'middleware';
@@ -57,7 +57,7 @@ class TestController {
}
@Module({
imports: [ApplicationModule],
imports: [AppModule],
controllers: [TestController],
})
class TestModule {

View File

@@ -9,7 +9,7 @@ import {
} from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
const RETURN_VALUE = 'test';
const MIDDLEWARE_VALUE = 'middleware';
@@ -48,7 +48,7 @@ class TestController {
}
@Module({
imports: [ApplicationModule],
imports: [AppModule],
controllers: [TestController],
})
class TestModule {

View File

@@ -3,7 +3,7 @@ import { ExpressAdapter } from '@nestjs/platform-express';
import { Test } from '@nestjs/testing';
import * as express from 'express';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('Hello world (express instance)', () => {
let server;
@@ -11,7 +11,7 @@ describe('Hello world (express instance)', () => {
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication(new ExpressAdapter(express()));

View File

@@ -3,7 +3,7 @@ import { ExpressAdapter } from '@nestjs/platform-express';
import { Test } from '@nestjs/testing';
import * as express from 'express';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('Hello world (express instance with multiple applications)', () => {
let server;
@@ -11,10 +11,10 @@ describe('Hello world (express instance with multiple applications)', () => {
beforeEach(async () => {
const module1 = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
const module2 = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
const adapter = new ExpressAdapter(express());

View File

@@ -4,14 +4,14 @@ import {
} from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('Hello world (fastify adapter)', () => {
let app: NestFastifyApplication;
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication<NestFastifyApplication>(

View File

@@ -6,7 +6,7 @@ import {
import { APP_GUARD } from '@nestjs/core';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
@Injectable()
export class AuthGuard {
@@ -20,7 +20,7 @@ export class AuthGuard {
function createTestModule(guard) {
return Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
providers: [
{
provide: APP_GUARD,

View File

@@ -1,7 +1,7 @@
import * as request from 'supertest';
import { Test } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('Hello world (default adapter)', () => {
let server;
@@ -9,7 +9,7 @@ describe('Hello world (default adapter)', () => {
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication();

View File

@@ -10,7 +10,7 @@ import { Test } from '@nestjs/testing';
import { of } from 'rxjs';
import { map } from 'rxjs/operators';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
const RETURN_VALUE = 'test';
@@ -58,7 +58,7 @@ export class HeaderInterceptor {
function createTestModule(interceptor) {
return Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
providers: [
{
provide: APP_INTERCEPTOR,

View File

@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('Hello world (default adapter)', () => {
let server;
@@ -9,7 +9,7 @@ describe('Hello world (default adapter)', () => {
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication();

View File

@@ -9,7 +9,7 @@ import {
} from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
import { Response } from 'express';
const INCLUDED_VALUE = 'test_included';
@@ -32,7 +32,7 @@ class TestController {
}
@Module({
imports: [ApplicationModule],
imports: [AppModule],
controllers: [TestController],
})
class TestModule {

View File

@@ -12,7 +12,7 @@ import {
} from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
const INCLUDED_VALUE = 'test_included';
const QUERY_VALUE = 'test_query';
@@ -58,7 +58,7 @@ class TestQueryController {
}
@Module({
imports: [ApplicationModule],
imports: [AppModule],
controllers: [TestController, TestQueryController],
})
class TestModule {

View File

@@ -7,7 +7,7 @@ import {
} from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
const RETURN_VALUE = 'test';
const SCOPED_VALUE = 'test_scoped';
@@ -27,7 +27,7 @@ class TestController {
}
@Module({
imports: [ApplicationModule],
imports: [AppModule],
controllers: [TestController],
})
class TestModule {

View File

@@ -8,7 +8,7 @@ import {
import { RouterModule } from '@nestjs/core';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
const RETURN_VALUE = 'test';
const SCOPED_VALUE = 'test_scoped';
@@ -27,7 +27,7 @@ class TestController {
}
@Module({
imports: [ApplicationModule],
imports: [AppModule],
controllers: [TestController],
})
class TestModule {

View File

@@ -6,4 +6,4 @@ import { HostModule } from './host/host.module';
@Module({
imports: [HelloModule, HostModule, HostArrayModule],
})
export class ApplicationModule {}
export class AppModule {}

View File

@@ -34,7 +34,7 @@ describe('Disconnected client', () => {
.send({
transport: Transport.REDIS,
options: {
url: 'redis://localhost:3333',
port: '3333',
},
})
.expect(408);

View File

@@ -124,6 +124,44 @@ describe('MQTT transport', () => {
.expect(201, '15');
});
it(`/POST (shared wildcard EVENT #)`, done => {
request(server)
.post('/shared-wildcard-event')
.send([1, 2, 3, 4, 5])
.end(() => {
setTimeout(() => {
expect(MqttController.IS_SHARED_WILDCARD_EVENT_RECEIVED).to.be.true;
done();
}, 1000);
});
});
it(`/POST (shared wildcard MESSAGE #)`, () => {
return request(server)
.post('/shared-wildcard-message')
.send([1, 2, 3, 4, 5])
.expect(201, '15');
});
it(`/POST (shared wildcard EVENT +)`, done => {
request(server)
.post('/shared-wildcard-event2')
.send([1, 2, 3, 4, 5])
.end(() => {
setTimeout(() => {
expect(MqttController.IS_SHARED_WILDCARD2_EVENT_RECEIVED).to.be.true;
done();
}, 1000);
});
});
it(`/POST (shared wildcard MESSAGE +)`, () => {
return request(server)
.post('/shared-wildcard-message2')
.send([1, 2, 3, 4, 5])
.expect(201, '15');
});
afterEach(async () => {
await app.close();
});

View File

@@ -77,6 +77,13 @@ describe('RabbitMQ transport', () => {
.expect(200, '15');
});
it(`/POST (multiple-urls)`, () => {
return request(server)
.post('/multiple-urls')
.send([1, 2, 3, 4, 5])
.expect(200, '15');
}).timeout(10000);
it(`/POST (event notification)`, done => {
request(server)
.post('/notify')

View File

@@ -4,7 +4,7 @@ import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import * as request from 'supertest';
import { AppController } from '../src/app.controller';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('RPC transport', () => {
let server;
@@ -12,7 +12,7 @@ describe('RPC transport', () => {
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication();

View File

@@ -72,4 +72,4 @@ class ClientOptionService implements ClientsModuleOptionsFactory {
],
controllers: [AppController],
})
export class ApplicationModule {}
export class AppModule {}

View File

@@ -3,7 +3,7 @@ import {
Controller,
InternalServerErrorException,
Post,
RequestTimeoutException,
RequestTimeoutException
} from '@nestjs/common';
import { ClientProxyFactory } from '@nestjs/microservices';
import { Observable, throwError } from 'rxjs';
@@ -24,7 +24,8 @@ export class DisconnectedClientController {
return throwError(() =>
code === 'ECONNREFUSED' ||
code === 'CONN_ERR' ||
code === 'CONNECTION_REFUSED'
code === 'CONNECTION_REFUSED' ||
error.message === 'Connection is closed.'
? new RequestTimeoutException('ECONNREFUSED')
: new InternalServerErrorException(),
);

View File

@@ -18,6 +18,8 @@ export class MqttController {
static IS_NOTIFIED = false;
static IS_WILDCARD_EVENT_RECEIVED = false;
static IS_WILDCARD2_EVENT_RECEIVED = false;
static IS_SHARED_WILDCARD_EVENT_RECEIVED = false;
static IS_SHARED_WILDCARD2_EVENT_RECEIVED = false;
@Client({ transport: Transport.MQTT })
client: ClientProxy;
@@ -109,6 +111,32 @@ export class MqttController {
};
}
@Post('shared-wildcard-event')
async sendSharedWildcardEvent(): Promise<any> {
return this.client.emit<number>('shared-wildcard-event/test', true);
}
@Post('shared-wildcard-message')
async sendSharedWildcardMessage(
@Body() data: number[],
): Promise<Observable<number>> {
await this.client.connect();
return this.client.send<number>('shared-wildcard-message/test', data);
}
@Post('shared-wildcard-event2')
async sendSharedWildcardEvent2(): Promise<any> {
return this.client.emit<number>('shared-wildcard-event2/test/test', true);
}
@Post('shared-wildcard-message2')
async sendSharedWildcardMessage2(
@Body() data: number[],
): Promise<Observable<number>> {
await this.client.connect();
return this.client.send<number>('shared-wildcard-message2/test/test', data);
}
@MessagePattern('wildcard-message/#')
wildcardMessageHandler(data: number[]): number {
if ((data as any).response) {
@@ -156,4 +184,27 @@ export class MqttController {
streaming(data: number[]): Observable<number> {
return from(data);
}
@MessagePattern('$share/test-group/shared-wildcard-message/#')
sharedWildcardMessageHandler(data: number[]): number {
if ((data as any).response) {
return;
}
return (data || []).reduce((a, b) => a + b);
}
@EventPattern('$share/test-group/shared-wildcard-event/#')
sharedWildcardEventHandler(data: boolean) {
MqttController.IS_SHARED_WILDCARD_EVENT_RECEIVED = data;
}
@MessagePattern('$share/test-group/shared-wildcard-message2/+/test')
sharedWildcardMessageHandler2(data: number[]): number {
return (data || []).reduce((a, b) => a + b);
}
@EventPattern('$share/test-group/shared-wildcard-event2/+/test')
sharedWildcardEventHandler2(data: boolean) {
MqttController.IS_SHARED_WILDCARD2_EVENT_RECEIVED = data;
}
}

View File

@@ -61,6 +61,21 @@ export class RMQController {
.reduce(async (a, b) => (await a) && b);
}
@Post('multiple-urls')
@HttpCode(200)
multipleUrls(@Body() data: number[]) {
const clientWithMultipleUrls = ClientProxyFactory.create({
transport: Transport.RMQ,
options: {
urls: [`amqp://localhost:5671`, `amqp://localhost:5672`],
queue: 'test',
queueOptions: { durable: false },
socketOptions: { noDelay: true },
},
});
return clientWithMultipleUrls.send<number>({ cmd: 'multiple-urls' }, data);
}
@Post('record-builder-duplex')
@HttpCode(200)
useRecordBuilderDuplex(@Body() data: Record<string, any>) {
@@ -109,6 +124,11 @@ export class RMQController {
return from(data);
}
@MessagePattern({ cmd: 'multiple-urls' })
handleMultipleUrls(data: number[]): number {
return (data || []).reduce((a, b) => a + b);
}
@Post('notify')
async sendNotification(): Promise<any> {
return this.client.emit<number>('notification', true);

View File

@@ -0,0 +1,17 @@
import { ConfigurableModuleBuilder } from '@nestjs/common';
import { IntegrationModuleOptions } from './interfaces/integration-module-options.interface';
export const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN } =
new ConfigurableModuleBuilder<IntegrationModuleOptions>()
.setClassMethodName('forRoot')
.setFactoryMethodName('construct')
.setExtras(
{
isGlobal: true,
},
(definition, extras) => ({
...definition,
global: extras.isGlobal,
}),
)
.build();

View File

@@ -0,0 +1,16 @@
import { Inject, Module } from '@nestjs/common';
import {
ConfigurableModuleClass,
MODULE_OPTIONS_TOKEN,
} from './integration.module-definition';
import { IntegrationModuleOptions } from './interfaces/integration-module-options.interface';
@Module({})
export class IntegrationModule extends ConfigurableModuleClass {
constructor(
@Inject(MODULE_OPTIONS_TOKEN)
public readonly options: IntegrationModuleOptions,
) {
super();
}
}

View File

@@ -0,0 +1,4 @@
export interface IntegrationModuleOptions {
url: string;
secure?: boolean;
}

View File

@@ -0,0 +1,47 @@
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import { IntegrationModule } from '../src/integration.module';
describe('Module utils (ConfigurableModuleBuilder)', () => {
it('should auto-generate "forRoot" method', async () => {
const moduleRef = await Test.createTestingModule({
imports: [
IntegrationModule.forRoot({
isGlobal: true,
url: 'test_url',
secure: false,
}),
],
}).compile();
const integrationModule = moduleRef.get(IntegrationModule);
expect(integrationModule.options).to.deep.equal({
url: 'test_url',
secure: false,
});
});
it('should auto-generate "forRootAsync" method', async () => {
const moduleRef = await Test.createTestingModule({
imports: [
IntegrationModule.forRootAsync({
isGlobal: true,
useFactory: () => {
return {
url: 'test_url',
secure: false,
};
},
}),
],
}).compile();
const integrationModule = moduleRef.get(IntegrationModule);
expect(integrationModule.options).to.deep.equal({
url: 'test_url',
secure: false,
});
});
});

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist"
},
"include": [
"src/**/*",
"e2e/**/*"
],
"exclude": [
"node_modules",
]
}

906
integration/mosquitto.conf Normal file
View File

@@ -0,0 +1,906 @@
# Config file for mosquitto
#
# See mosquitto.conf(5) for more information.
#
# Default values are shown, uncomment to change.
#
# Use the # character to indicate a comment, but only if it is the
# very first character on the line.
# =================================================================
# General configuration
# =================================================================
# Use per listener security settings.
#
# It is recommended this option be set before any other options.
#
# If this option is set to true, then all authentication and access control
# options are controlled on a per listener basis. The following options are
# affected:
#
# acl_file
# allow_anonymous
# allow_zero_length_clientid
# auto_id_prefix
# password_file
# plugin
# plugin_opt_*
# psk_file
#
# Note that if set to true, then a durable client (i.e. with clean session set
# to false) that has disconnected will use the ACL settings defined for the
# listener that it was most recently connected to.
#
# The default behaviour is for this to be set to false, which maintains the
# setting behaviour from previous versions of mosquitto.
#per_listener_settings false
# This option controls whether a client is allowed to connect with a zero
# length client id or not. This option only affects clients using MQTT v3.1.1
# and later. If set to false, clients connecting with a zero length client id
# are disconnected. If set to true, clients will be allocated a client id by
# the broker. This means it is only useful for clients with clean session set
# to true.
#allow_zero_length_clientid true
# If allow_zero_length_clientid is true, this option allows you to set a prefix
# to automatically generated client ids to aid visibility in logs.
# Defaults to 'auto-'
#auto_id_prefix auto-
# This option affects the scenario when a client subscribes to a topic that has
# retained messages. It is possible that the client that published the retained
# message to the topic had access at the time they published, but that access
# has been subsequently removed. If check_retain_source is set to true, the
# default, the source of a retained message will be checked for access rights
# before it is republished. When set to false, no check will be made and the
# retained message will always be published. This affects all listeners.
#check_retain_source true
# QoS 1 and 2 messages will be allowed inflight per client until this limit
# is exceeded. Defaults to 0. (No maximum)
# See also max_inflight_messages
#max_inflight_bytes 0
# The maximum number of QoS 1 and 2 messages currently inflight per
# client.
# This includes messages that are partway through handshakes and
# those that are being retried. Defaults to 20. Set to 0 for no
# maximum. Setting to 1 will guarantee in-order delivery of QoS 1
# and 2 messages.
#max_inflight_messages 20
# For MQTT v5 clients, it is possible to have the server send a "server
# keepalive" value that will override the keepalive value set by the client.
# This is intended to be used as a mechanism to say that the server will
# disconnect the client earlier than it anticipated, and that the client should
# use the new keepalive value. The max_keepalive option allows you to specify
# that clients may only connect with keepalive less than or equal to this
# value, otherwise they will be sent a server keepalive telling them to use
# max_keepalive. This only applies to MQTT v5 clients. The default, and maximum
# value allowable, is 65535.
#
# Set to 0 to allow clients to set keepalive = 0, which means no keepalive
# checks are made and the client will never be disconnected by the broker if no
# messages are received. You should be very sure this is the behaviour that you
# want.
#
# For MQTT v3.1.1 and v3.1 clients, there is no mechanism to tell the client
# what keepalive value they should use. If an MQTT v3.1.1 or v3.1 client
# specifies a keepalive time greater than max_keepalive they will be sent a
# CONNACK message with the "identifier rejected" reason code, and disconnected.
#
#max_keepalive 65535
# For MQTT v5 clients, it is possible to have the server send a "maximum packet
# size" value that will instruct the client it will not accept MQTT packets
# with size greater than max_packet_size bytes. This applies to the full MQTT
# packet, not just the payload. Setting this option to a positive value will
# set the maximum packet size to that number of bytes. If a client sends a
# packet which is larger than this value, it will be disconnected. This applies
# to all clients regardless of the protocol version they are using, but v3.1.1
# and earlier clients will of course not have received the maximum packet size
# information. Defaults to no limit. Setting below 20 bytes is forbidden
# because it is likely to interfere with ordinary client operation, even with
# very small payloads.
#max_packet_size 0
# QoS 1 and 2 messages above those currently in-flight will be queued per
# client until this limit is exceeded. Defaults to 0. (No maximum)
# See also max_queued_messages.
# If both max_queued_messages and max_queued_bytes are specified, packets will
# be queued until the first limit is reached.
#max_queued_bytes 0
# Set the maximum QoS supported. Clients publishing at a QoS higher than
# specified here will be disconnected.
#max_qos 2
# The maximum number of QoS 1 and 2 messages to hold in a queue per client
# above those that are currently in-flight. Defaults to 1000. Set
# to 0 for no maximum (not recommended).
# See also queue_qos0_messages.
# See also max_queued_bytes.
#max_queued_messages 1000
#
# This option sets the maximum number of heap memory bytes that the broker will
# allocate, and hence sets a hard limit on memory use by the broker. Memory
# requests that exceed this value will be denied. The effect will vary
# depending on what has been denied. If an incoming message is being processed,
# then the message will be dropped and the publishing client will be
# disconnected. If an outgoing message is being sent, then the individual
# message will be dropped and the receiving client will be disconnected.
# Defaults to no limit.
#memory_limit 0
# This option sets the maximum publish payload size that the broker will allow.
# Received messages that exceed this size will not be accepted by the broker.
# The default value is 0, which means that all valid MQTT messages are
# accepted. MQTT imposes a maximum payload size of 268435455 bytes.
#message_size_limit 0
# This option allows persistent clients (those with clean session set to false)
# to be removed if they do not reconnect within a certain time frame.
#
# This is a non-standard option in MQTT V3.1 but allowed in MQTT v3.1.1.
#
# Badly designed clients may set clean session to false whilst using a randomly
# generated client id. This leads to persistent clients that will never
# reconnect. This option allows these clients to be removed.
#
# The expiration period should be an integer followed by one of h d w m y for
# hour, day, week, month and year respectively. For example
#
# persistent_client_expiration 2m
# persistent_client_expiration 14d
# persistent_client_expiration 1y
#
# The default if not set is to never expire persistent clients.
#persistent_client_expiration
# Write process id to a file. Default is a blank string which means
# a pid file shouldn't be written.
# This should be set to /var/run/mosquitto/mosquitto.pid if mosquitto is
# being run automatically on boot with an init script and
# start-stop-daemon or similar.
#pid_file
# Set to true to queue messages with QoS 0 when a persistent client is
# disconnected. These messages are included in the limit imposed by
# max_queued_messages and max_queued_bytes
# Defaults to false.
# This is a non-standard option for the MQTT v3.1 spec but is allowed in
# v3.1.1.
#queue_qos0_messages false
# Set to false to disable retained message support. If a client publishes a
# message with the retain bit set, it will be disconnected if this is set to
# false.
#retain_available true
# Disable Nagle's algorithm on client sockets. This has the effect of reducing
# latency of individual messages at the potential cost of increasing the number
# of packets being sent.
#set_tcp_nodelay false
# Time in seconds between updates of the $SYS tree.
# Set to 0 to disable the publishing of the $SYS tree.
#sys_interval 10
# The MQTT specification requires that the QoS of a message delivered to a
# subscriber is never upgraded to match the QoS of the subscription. Enabling
# this option changes this behaviour. If upgrade_outgoing_qos is set true,
# messages sent to a subscriber will always match the QoS of its subscription.
# This is a non-standard option explicitly disallowed by the spec.
#upgrade_outgoing_qos false
# When run as root, drop privileges to this user and its primary
# group.
# Set to root to stay as root, but this is not recommended.
# If set to "mosquitto", or left unset, and the "mosquitto" user does not exist
# then it will drop privileges to the "nobody" user instead.
# If run as a non-root user, this setting has no effect.
# Note that on Windows this has no effect and so mosquitto should be started by
# the user you wish it to run as.
#user mosquitto
# =================================================================
# Listeners
# =================================================================
# Listen on a port/ip address combination. By using this variable
# multiple times, mosquitto can listen on more than one port. If
# this variable is used and neither bind_address nor port given,
# then the default listener will not be started.
# The port number to listen on must be given. Optionally, an ip
# address or host name may be supplied as a second argument. In
# this case, mosquitto will attempt to bind the listener to that
# address and so restrict access to the associated network and
# interface. By default, mosquitto will listen on all interfaces.
# Note that for a websockets listener it is not possible to bind to a host
# name.
#
# On systems that support Unix Domain Sockets, it is also possible
# to create a # Unix socket rather than opening a TCP socket. In
# this case, the port number should be set to 0 and a unix socket
# path must be provided, e.g.
# listener 0 /tmp/mosquitto.sock
#
# listener port-number [ip address/host name/unix socket path]
#listener
# By default, a listener will attempt to listen on all supported IP protocol
# versions. If you do not have an IPv4 or IPv6 interface you may wish to
# disable support for either of those protocol versions. In particular, note
# that due to the limitations of the websockets library, it will only ever
# attempt to open IPv6 sockets if IPv6 support is compiled in, and so will fail
# if IPv6 is not available.
#
# Set to `ipv4` to force the listener to only use IPv4, or set to `ipv6` to
# force the listener to only use IPv6. If you want support for both IPv4 and
# IPv6, then do not use the socket_domain option.
#
#socket_domain
# Bind the listener to a specific interface. This is similar to
# the [ip address/host name] part of the listener definition, but is useful
# when an interface has multiple addresses or the address may change. If used
# with the [ip address/host name] part of the listener definition, then the
# bind_interface option will take priority.
# Not available on Windows.
#
# Example: bind_interface eth0
#bind_interface
# When a listener is using the websockets protocol, it is possible to serve
# http data as well. Set http_dir to a directory which contains the files you
# wish to serve. If this option is not specified, then no normal http
# connections will be possible.
#http_dir
# The maximum number of client connections to allow. This is
# a per listener setting.
# Default is -1, which means unlimited connections.
# Note that other process limits mean that unlimited connections
# are not really possible. Typically the default maximum number of
# connections possible is around 1024.
#max_connections -1
# The listener can be restricted to operating within a topic hierarchy using
# the mount_point option. This is achieved be prefixing the mount_point string
# to all topics for any clients connected to this listener. This prefixing only
# happens internally to the broker; the client will not see the prefix.
#mount_point
# Choose the protocol to use when listening.
# This can be either mqtt or websockets.
# Certificate based TLS may be used with websockets, except that only the
# cafile, certfile, keyfile, ciphers, and ciphers_tls13 options are supported.
#protocol mqtt
listener 1883
protocol mqtt
listener 9001
protocol websockets
# Set use_username_as_clientid to true to replace the clientid that a client
# connected with with its username. This allows authentication to be tied to
# the clientid, which means that it is possible to prevent one client
# disconnecting another by using the same clientid.
# If a client connects with no username it will be disconnected as not
# authorised when this option is set to true.
# Do not use in conjunction with clientid_prefixes.
# See also use_identity_as_username.
#use_username_as_clientid
# Change the websockets headers size. This is a global option, it is not
# possible to set per listener. This option sets the size of the buffer used in
# the libwebsockets library when reading HTTP headers. If you are passing large
# header data such as cookies then you may need to increase this value. If left
# unset, or set to 0, then the default of 1024 bytes will be used.
#websockets_headers_size
# -----------------------------------------------------------------
# Certificate based SSL/TLS support
# -----------------------------------------------------------------
# The following options can be used to enable certificate based SSL/TLS support
# for this listener. Note that the recommended port for MQTT over TLS is 8883,
# but this must be set manually.
#
# See also the mosquitto-tls man page and the "Pre-shared-key based SSL/TLS
# support" section. Only one of certificate or PSK encryption support can be
# enabled for any listener.
# Both of certfile and keyfile must be defined to enable certificate based
# TLS encryption.
# Path to the PEM encoded server certificate.
#certfile
# Path to the PEM encoded keyfile.
#keyfile
# If you wish to control which encryption ciphers are used, use the ciphers
# option. The list of available ciphers can be optained using the "openssl
# ciphers" command and should be provided in the same format as the output of
# that command. This applies to TLS 1.2 and earlier versions only. Use
# ciphers_tls1.3 for TLS v1.3.
#ciphers
# Choose which TLS v1.3 ciphersuites are used for this listener.
# Defaults to "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256"
#ciphers_tls1.3
# If you have require_certificate set to true, you can create a certificate
# revocation list file to revoke access to particular client certificates. If
# you have done this, use crlfile to point to the PEM encoded revocation file.
#crlfile
# To allow the use of ephemeral DH key exchange, which provides forward
# security, the listener must load DH parameters. This can be specified with
# the dhparamfile option. The dhparamfile can be generated with the command
# e.g. "openssl dhparam -out dhparam.pem 2048"
#dhparamfile
# By default an TLS enabled listener will operate in a similar fashion to a
# https enabled web server, in that the server has a certificate signed by a CA
# and the client will verify that it is a trusted certificate. The overall aim
# is encryption of the network traffic. By setting require_certificate to true,
# the client must provide a valid certificate in order for the network
# connection to proceed. This allows access to the broker to be controlled
# outside of the mechanisms provided by MQTT.
#require_certificate false
# cafile and capath define methods of accessing the PEM encoded
# Certificate Authority certificates that will be considered trusted when
# checking incoming client certificates.
# cafile defines the path to a file containing the CA certificates.
# capath defines a directory that will be searched for files
# containing the CA certificates. For capath to work correctly, the
# certificate files must have ".crt" as the file ending and you must run
# "openssl rehash <path to capath>" each time you add/remove a certificate.
#cafile
#capath
# If require_certificate is true, you may set use_identity_as_username to true
# to use the CN value from the client certificate as a username. If this is
# true, the password_file option will not be used for this listener.
#use_identity_as_username false
# -----------------------------------------------------------------
# Pre-shared-key based SSL/TLS support
# -----------------------------------------------------------------
# The following options can be used to enable PSK based SSL/TLS support for
# this listener. Note that the recommended port for MQTT over TLS is 8883, but
# this must be set manually.
#
# See also the mosquitto-tls man page and the "Certificate based SSL/TLS
# support" section. Only one of certificate or PSK encryption support can be
# enabled for any listener.
# The psk_hint option enables pre-shared-key support for this listener and also
# acts as an identifier for this listener. The hint is sent to clients and may
# be used locally to aid authentication. The hint is a free form string that
# doesn't have much meaning in itself, so feel free to be creative.
# If this option is provided, see psk_file to define the pre-shared keys to be
# used or create a security plugin to handle them.
#psk_hint
# When using PSK, the encryption ciphers used will be chosen from the list of
# available PSK ciphers. If you want to control which ciphers are available,
# use the "ciphers" option. The list of available ciphers can be optained
# using the "openssl ciphers" command and should be provided in the same format
# as the output of that command.
#ciphers
# Set use_identity_as_username to have the psk identity sent by the client used
# as its username. Authentication will be carried out using the PSK rather than
# the MQTT username/password and so password_file will not be used for this
# listener.
#use_identity_as_username false
# =================================================================
# Persistence
# =================================================================
# If persistence is enabled, save the in-memory database to disk
# every autosave_interval seconds. If set to 0, the persistence
# database will only be written when mosquitto exits. See also
# autosave_on_changes.
# Note that writing of the persistence database can be forced by
# sending mosquitto a SIGUSR1 signal.
#autosave_interval 1800
# If true, mosquitto will count the number of subscription changes, retained
# messages received and queued messages and if the total exceeds
# autosave_interval then the in-memory database will be saved to disk.
# If false, mosquitto will save the in-memory database to disk by treating
# autosave_interval as a time in seconds.
#autosave_on_changes false
# Save persistent message data to disk (true/false).
# This saves information about all messages, including
# subscriptions, currently in-flight messages and retained
# messages.
# retained_persistence is a synonym for this option.
#persistence false
# The filename to use for the persistent database, not including
# the path.
#persistence_file mosquitto.db
# Location for persistent database.
# Default is an empty string (current directory).
# Set to e.g. /var/lib/mosquitto if running as a proper service on Linux or
# similar.
#persistence_location
# =================================================================
# Logging
# =================================================================
# Places to log to. Use multiple log_dest lines for multiple
# logging destinations.
# Possible destinations are: stdout stderr syslog topic file dlt
#
# stdout and stderr log to the console on the named output.
#
# syslog uses the userspace syslog facility which usually ends up
# in /var/log/messages or similar.
#
# topic logs to the broker topic '$SYS/broker/log/<severity>',
# where severity is one of D, E, W, N, I, M which are debug, error,
# warning, notice, information and message. Message type severity is used by
# the subscribe/unsubscribe log_types and publishes log messages to
# $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe.
#
# The file destination requires an additional parameter which is the file to be
# logged to, e.g. "log_dest file /var/log/mosquitto.log". The file will be
# closed and reopened when the broker receives a HUP signal. Only a single file
# destination may be configured.
#
# The dlt destination is for the automotive `Diagnostic Log and Trace` tool.
# This requires that Mosquitto has been compiled with DLT support.
#
# Note that if the broker is running as a Windows service it will default to
# "log_dest none" and neither stdout nor stderr logging is available.
# Use "log_dest none" if you wish to disable logging.
#log_dest stderr
# Types of messages to log. Use multiple log_type lines for logging
# multiple types of messages.
# Possible types are: debug, error, warning, notice, information,
# none, subscribe, unsubscribe, websockets, all.
# Note that debug type messages are for decoding the incoming/outgoing
# network packets. They are not logged in "topics".
#log_type error
#log_type warning
#log_type notice
#log_type information
# If set to true, client connection and disconnection messages will be included
# in the log.
#connection_messages true
# If using syslog logging (not on Windows), messages will be logged to the
# "daemon" facility by default. Use the log_facility option to choose which of
# local0 to local7 to log to instead. The option value should be an integer
# value, e.g. "log_facility 5" to use local5.
#log_facility
# If set to true, add a timestamp value to each log message.
#log_timestamp true
# Set the format of the log timestamp. If left unset, this is the number of
# seconds since the Unix epoch.
# This is a free text string which will be passed to the strftime function. To
# get an ISO 8601 datetime, for example:
# log_timestamp_format %Y-%m-%dT%H:%M:%S
#log_timestamp_format
# Change the websockets logging level. This is a global option, it is not
# possible to set per listener. This is an integer that is interpreted by
# libwebsockets as a bit mask for its lws_log_levels enum. See the
# libwebsockets documentation for more details. "log_type websockets" must also
# be enabled.
#websockets_log_level 0
# =================================================================
# Security
# =================================================================
# If set, only clients that have a matching prefix on their
# clientid will be allowed to connect to the broker. By default,
# all clients may connect.
# For example, setting "secure-" here would mean a client "secure-
# client" could connect but another with clientid "mqtt" couldn't.
#clientid_prefixes
# Boolean value that determines whether clients that connect
# without providing a username are allowed to connect. If set to
# false then a password file should be created (see the
# password_file option) to control authenticated client access.
#
# Defaults to false, unless there are no listeners defined in the configuration
# file, in which case it is set to true, but connections are only allowed from
# the local machine.
allow_anonymous true
# -----------------------------------------------------------------
# Default authentication and topic access control
# -----------------------------------------------------------------
# Control access to the broker using a password file. This file can be
# generated using the mosquitto_passwd utility. If TLS support is not compiled
# into mosquitto (it is recommended that TLS support should be included) then
# plain text passwords are used, in which case the file should be a text file
# with lines in the format:
# username:password
# The password (and colon) may be omitted if desired, although this
# offers very little in the way of security.
#
# See the TLS client require_certificate and use_identity_as_username options
# for alternative authentication options. If a plugin is used as well as
# password_file, the plugin check will be made first.
#password_file
# Access may also be controlled using a pre-shared-key file. This requires
# TLS-PSK support and a listener configured to use it. The file should be text
# lines in the format:
# identity:key
# The key should be in hexadecimal format without a leading "0x".
# If an plugin is used as well, the plugin check will be made first.
#psk_file
# Control access to topics on the broker using an access control list
# file. If this parameter is defined then only the topics listed will
# have access.
# If the first character of a line of the ACL file is a # it is treated as a
# comment.
# Topic access is added with lines of the format:
#
# topic [read|write|readwrite|deny] <topic>
#
# The access type is controlled using "read", "write", "readwrite" or "deny".
# This parameter is optional (unless <topic> contains a space character) - if
# not given then the access is read/write. <topic> can contain the + or #
# wildcards as in subscriptions.
#
# The "deny" option can used to explicity deny access to a topic that would
# otherwise be granted by a broader read/write/readwrite statement. Any "deny"
# topics are handled before topics that grant read/write access.
#
# The first set of topics are applied to anonymous clients, assuming
# allow_anonymous is true. User specific topic ACLs are added after a
# user line as follows:
#
# user <username>
#
# The username referred to here is the same as in password_file. It is
# not the clientid.
#
#
# If is also possible to define ACLs based on pattern substitution within the
# topic. The patterns available for substition are:
#
# %c to match the client id of the client
# %u to match the username of the client
#
# The substitution pattern must be the only text for that level of hierarchy.
#
# The form is the same as for the topic keyword, but using pattern as the
# keyword.
# Pattern ACLs apply to all users even if the "user" keyword has previously
# been given.
#
# If using bridges with usernames and ACLs, connection messages can be allowed
# with the following pattern:
# pattern write $SYS/broker/connection/%c/state
#
# pattern [read|write|readwrite] <topic>
#
# Example:
#
# pattern write sensor/%u/data
#
# If an plugin is used as well as acl_file, the plugin check will be
# made first.
#acl_file
# -----------------------------------------------------------------
# External authentication and topic access plugin options
# -----------------------------------------------------------------
# External authentication and access control can be supported with the
# plugin option. This is a path to a loadable plugin. See also the
# plugin_opt_* options described below.
#
# The plugin option can be specified multiple times to load multiple
# plugins. The plugins will be processed in the order that they are specified
# here. If the plugin option is specified alongside either of
# password_file or acl_file then the plugin checks will be made first.
#
# If the per_listener_settings option is false, the plugin will be apply to all
# listeners. If per_listener_settings is true, then the plugin will apply to
# the current listener being defined only.
#
# This option is also available as `auth_plugin`, but this use is deprecated
# and will be removed in the future.
#
#plugin
# If the plugin option above is used, define options to pass to the
# plugin here as described by the plugin instructions. All options named
# using the format plugin_opt_* will be passed to the plugin, for example:
#
# This option is also available as `auth_opt_*`, but this use is deprecated
# and will be removed in the future.
#
# plugin_opt_db_host
# plugin_opt_db_port
# plugin_opt_db_username
# plugin_opt_db_password
# =================================================================
# Bridges
# =================================================================
# A bridge is a way of connecting multiple MQTT brokers together.
# Create a new bridge using the "connection" option as described below. Set
# options for the bridges using the remaining parameters. You must specify the
# address and at least one topic to subscribe to.
#
# Each connection must have a unique name.
#
# The address line may have multiple host address and ports specified. See
# below in the round_robin description for more details on bridge behaviour if
# multiple addresses are used. Note that if you use an IPv6 address, then you
# are required to specify a port.
#
# The direction that the topic will be shared can be chosen by
# specifying out, in or both, where the default value is out.
# The QoS level of the bridged communication can be specified with the next
# topic option. The default QoS level is 0, to change the QoS the topic
# direction must also be given.
#
# The local and remote prefix options allow a topic to be remapped when it is
# bridged to/from the remote broker. This provides the ability to place a topic
# tree in an appropriate location.
#
# For more details see the mosquitto.conf man page.
#
# Multiple topics can be specified per connection, but be careful
# not to create any loops.
#
# If you are using bridges with cleansession set to false (the default), then
# you may get unexpected behaviour from incoming topics if you change what
# topics you are subscribing to. This is because the remote broker keeps the
# subscription for the old topic. If you have this problem, connect your bridge
# with cleansession set to true, then reconnect with cleansession set to false
# as normal.
#connection <name>
#address <host>[:<port>] [<host>[:<port>]]
#topic <topic> [[[out | in | both] qos-level] local-prefix remote-prefix]
# If you need to have the bridge connect over a particular network interface,
# use bridge_bind_address to tell the bridge which local IP address the socket
# should bind to, e.g. `bridge_bind_address 192.168.1.10`
#bridge_bind_address
# If a bridge has topics that have "out" direction, the default behaviour is to
# send an unsubscribe request to the remote broker on that topic. This means
# that changing a topic direction from "in" to "out" will not keep receiving
# incoming messages. Sending these unsubscribe requests is not always
# desirable, setting bridge_attempt_unsubscribe to false will disable sending
# the unsubscribe request.
#bridge_attempt_unsubscribe true
# Set the version of the MQTT protocol to use with for this bridge. Can be one
# of mqttv50, mqttv311 or mqttv31. Defaults to mqttv311.
#bridge_protocol_version mqttv311
# Set the clean session variable for this bridge.
# When set to true, when the bridge disconnects for any reason, all
# messages and subscriptions will be cleaned up on the remote
# broker. Note that with cleansession set to true, there may be a
# significant amount of retained messages sent when the bridge
# reconnects after losing its connection.
# When set to false, the subscriptions and messages are kept on the
# remote broker, and delivered when the bridge reconnects.
#cleansession false
# Set the amount of time a bridge using the lazy start type must be idle before
# it will be stopped. Defaults to 60 seconds.
#idle_timeout 60
# Set the keepalive interval for this bridge connection, in
# seconds.
#keepalive_interval 60
# Set the clientid to use on the local broker. If not defined, this defaults to
# 'local.<clientid>'. If you are bridging a broker to itself, it is important
# that local_clientid and clientid do not match.
#local_clientid
# If set to true, publish notification messages to the local and remote brokers
# giving information about the state of the bridge connection. Retained
# messages are published to the topic $SYS/broker/connection/<clientid>/state
# unless the notification_topic option is used.
# If the message is 1 then the connection is active, or 0 if the connection has
# failed.
# This uses the last will and testament feature.
#notifications true
# Choose the topic on which notification messages for this bridge are
# published. If not set, messages are published on the topic
# $SYS/broker/connection/<clientid>/state
#notification_topic
# Set the client id to use on the remote end of this bridge connection. If not
# defined, this defaults to 'name.hostname' where name is the connection name
# and hostname is the hostname of this computer.
# This replaces the old "clientid" option to avoid confusion. "clientid"
# remains valid for the time being.
#remote_clientid
# Set the password to use when connecting to a broker that requires
# authentication. This option is only used if remote_username is also set.
# This replaces the old "password" option to avoid confusion. "password"
# remains valid for the time being.
#remote_password
# Set the username to use when connecting to a broker that requires
# authentication.
# This replaces the old "username" option to avoid confusion. "username"
# remains valid for the time being.
#remote_username
# Set the amount of time a bridge using the automatic start type will wait
# until attempting to reconnect.
# This option can be configured to use a constant delay time in seconds, or to
# use a backoff mechanism based on "Decorrelated Jitter", which adds a degree
# of randomness to when the restart occurs.
#
# Set a constant timeout of 20 seconds:
# restart_timeout 20
#
# Set backoff with a base (start value) of 10 seconds and a cap (upper limit) of
# 60 seconds:
# restart_timeout 10 30
#
# Defaults to jitter with a base of 5 and cap of 30
#restart_timeout 5 30
# If the bridge has more than one address given in the address/addresses
# configuration, the round_robin option defines the behaviour of the bridge on
# a failure of the bridge connection. If round_robin is false, the default
# value, then the first address is treated as the main bridge connection. If
# the connection fails, the other secondary addresses will be attempted in
# turn. Whilst connected to a secondary bridge, the bridge will periodically
# attempt to reconnect to the main bridge until successful.
# If round_robin is true, then all addresses are treated as equals. If a
# connection fails, the next address will be tried and if successful will
# remain connected until it fails
#round_robin false
# Set the start type of the bridge. This controls how the bridge starts and
# can be one of three types: automatic, lazy and once. Note that RSMB provides
# a fourth start type "manual" which isn't currently supported by mosquitto.
#
# "automatic" is the default start type and means that the bridge connection
# will be started automatically when the broker starts and also restarted
# after a short delay (30 seconds) if the connection fails.
#
# Bridges using the "lazy" start type will be started automatically when the
# number of queued messages exceeds the number set with the "threshold"
# parameter. It will be stopped automatically after the time set by the
# "idle_timeout" parameter. Use this start type if you wish the connection to
# only be active when it is needed.
#
# A bridge using the "once" start type will be started automatically when the
# broker starts but will not be restarted if the connection fails.
#start_type automatic
# Set the number of messages that need to be queued for a bridge with lazy
# start type to be restarted. Defaults to 10 messages.
# Must be less than max_queued_messages.
#threshold 10
# If try_private is set to true, the bridge will attempt to indicate to the
# remote broker that it is a bridge not an ordinary client. If successful, this
# means that loop detection will be more effective and that retained messages
# will be propagated correctly. Not all brokers support this feature so it may
# be necessary to set try_private to false if your bridge does not connect
# properly.
#try_private true
# Some MQTT brokers do not allow retained messages. MQTT v5 gives a mechanism
# for brokers to tell clients that they do not support retained messages, but
# this is not possible for MQTT v3.1.1 or v3.1. If you need to bridge to a
# v3.1.1 or v3.1 broker that does not support retained messages, set the
# bridge_outgoing_retain option to false. This will remove the retain bit on
# all outgoing messages to that bridge, regardless of any other setting.
#bridge_outgoing_retain true
# If you wish to restrict the size of messages sent to a remote bridge, use the
# bridge_max_packet_size option. This sets the maximum number of bytes for
# the total message, including headers and payload.
# Note that MQTT v5 brokers may provide their own maximum-packet-size property.
# In this case, the smaller of the two limits will be used.
# Set to 0 for "unlimited".
#bridge_max_packet_size 0
# -----------------------------------------------------------------
# Certificate based SSL/TLS support
# -----------------------------------------------------------------
# Either bridge_cafile or bridge_capath must be defined to enable TLS support
# for this bridge.
# bridge_cafile defines the path to a file containing the
# Certificate Authority certificates that have signed the remote broker
# certificate.
# bridge_capath defines a directory that will be searched for files containing
# the CA certificates. For bridge_capath to work correctly, the certificate
# files must have ".crt" as the file ending and you must run "openssl rehash
# <path to capath>" each time you add/remove a certificate.
#bridge_cafile
#bridge_capath
# If the remote broker has more than one protocol available on its port, e.g.
# MQTT and WebSockets, then use bridge_alpn to configure which protocol is
# requested. Note that WebSockets support for bridges is not yet available.
#bridge_alpn
# When using certificate based encryption, bridge_insecure disables
# verification of the server hostname in the server certificate. This can be
# useful when testing initial server configurations, but makes it possible for
# a malicious third party to impersonate your server through DNS spoofing, for
# example. Use this option in testing only. If you need to resort to using this
# option in a production environment, your setup is at fault and there is no
# point using encryption.
#bridge_insecure false
# Path to the PEM encoded client certificate, if required by the remote broker.
#bridge_certfile
# Path to the PEM encoded client private key, if required by the remote broker.
#bridge_keyfile
# -----------------------------------------------------------------
# PSK based SSL/TLS support
# -----------------------------------------------------------------
# Pre-shared-key encryption provides an alternative to certificate based
# encryption. A bridge can be configured to use PSK with the bridge_identity
# and bridge_psk options. These are the client PSK identity, and pre-shared-key
# in hexadecimal format with no "0x". Only one of certificate and PSK based
# encryption can be used on one
# bridge at once.
#bridge_identity
#bridge_psk
# =================================================================
# External config files
# =================================================================
# External configuration files may be included by using the
# include_dir option. This defines a directory that will be searched
# for config files. All files that end in '.conf' will be loaded as
# a configuration file. It is best to have this as the last option
# in the main file. This option will only be processed from the main
# configuration file. The directory specified must not contain the
# main configuration file.
# Files within include_dir will be loaded sorted in case-sensitive
# alphabetical order, with capital letters ordered first. If this option is
# given multiple times, all of the files from the first instance will be
# processed before the next instance. See the man page for examples.
#include_dir

View File

@@ -108,15 +108,15 @@ describe('Global prefix', () => {
server = app.getHttpServer();
await app.init();
await request(server).get('/hello/foo').expect(200);
await request(server)
.get('/hello/foo')
.expect(200, 'Hello: Data attached in middleware');
await request(server)
.get('/middleware/foo')
.expect(200, MIDDLEWARE_PARAM_VALUE);
await request(server)
.get('/api/v1/middleware/foo')
.expect(404);
await request(server).get('/api/v1/middleware/foo').expect(404);
});
afterEach(async () => {

View File

@@ -1,10 +1,10 @@
import { Controller, Get, Post } from '@nestjs/common';
import { Controller, Get, Post, Req } from '@nestjs/common';
@Controller()
export class AppController {
@Get('hello/:name')
getHello(): string {
return 'hello';
getHello(@Req() req): string {
return 'Hello: ' + req.extras?.data;
}
@Get('health')

View File

@@ -17,6 +17,11 @@ export class AppModule {
.apply((req, res, next) => res.end(MIDDLEWARE_PARAM_VALUE))
.forRoutes({ path: MIDDLEWARE_VALUE + '/*', method: RequestMethod.GET })
.apply((req, res, next) => res.status(201).end(MIDDLEWARE_PARAM_VALUE))
.forRoutes({ path: MIDDLEWARE_VALUE + '/*', method: RequestMethod.POST });
.forRoutes({ path: MIDDLEWARE_VALUE + '/*', method: RequestMethod.POST })
.apply((req, res, next) => {
req.extras = { data: 'Data attached in middleware' };
next();
})
.forRoutes({ path: '*', method: RequestMethod.GET });
}
}

View File

@@ -0,0 +1,48 @@
import { NestExpressApplication } from '@nestjs/platform-express';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import * as request from 'supertest';
import { ExpressModule } from '../src/express.module';
describe('Raw body (Express Application)', () => {
let app: NestExpressApplication;
const body = '{ "amount":0.0 }';
beforeEach(async () => {
const moduleFixture = await Test.createTestingModule({
imports: [ExpressModule],
}).compile();
app = moduleFixture.createNestApplication<NestExpressApplication>({
rawBody: true,
});
});
it('should return exact post body', async () => {
await app.init();
const response = await request(app.getHttpServer())
.post('/')
.set('Content-Type', 'application/json')
.send(body)
.expect(201);
expect(response.body).to.eql({
parsed: {
amount: 0,
},
raw: '{ "amount":0.0 }',
});
});
it('should work if post body is empty', async () => {
await app.init();
await request(app.getHttpServer())
.post('/')
.set('Content-Type', 'application/json')
.expect(201);
});
afterEach(async () => {
await app.close();
});
});

View File

@@ -0,0 +1,63 @@
import {
NestFastifyApplication,
FastifyAdapter,
} from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import { FastifyModule } from '../src/fastify.module';
describe('Raw body (Fastify Application)', () => {
let app: NestFastifyApplication;
const body = '{ "amount":0.0 }';
beforeEach(async () => {
const moduleFixture = await Test.createTestingModule({
imports: [FastifyModule],
}).compile();
app = moduleFixture.createNestApplication<NestFastifyApplication>(
new FastifyAdapter(),
{
rawBody: true,
},
);
});
it('should return exact post body', async () => {
await app.init();
const response = await app.inject({
method: 'POST',
url: '/',
headers: { 'content-type': 'application/json' },
payload: body,
});
expect(JSON.parse(response.body)).to.eql({
parsed: {
amount: 0,
},
raw: '{ "amount":0.0 }',
});
});
it('should fail if post body is empty', async () => {
await app.init();
const response = await app.inject({
method: 'POST',
url: '/',
headers: {
'content-type': 'application/json',
accept: 'application/json',
},
});
// Unlike Express, when you send a POST request without a body
// with Fastify, Fastify will throw an error because it isn't valid
// JSON. See fastify/fastify#297.
expect(response.statusCode).to.equal(400);
});
afterEach(async () => {
await app.close();
});
});

View File

@@ -0,0 +1,13 @@
import { Controller, Post, RawBodyRequest, Req } from '@nestjs/common';
import { Request } from 'express';
@Controller()
export class ExpressController {
@Post()
getRawBody(@Req() req: RawBodyRequest<Request>) {
return {
parsed: req.body,
raw: req.rawBody.toString(),
};
}
}

View File

@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { ExpressController } from './express.controller';
@Module({
controllers: [ExpressController],
})
export class ExpressModule {}

View File

@@ -0,0 +1,13 @@
import { Controller, Post, RawBodyRequest, Req } from '@nestjs/common';
import type { FastifyRequest } from 'fastify';
@Controller()
export class FastifyController {
@Post()
getRawBody(@Req() req: RawBodyRequest<FastifyRequest>) {
return {
parsed: req.body,
raw: req.rawBody.toString(),
};
}
}

View File

@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { FastifyController } from './fastify.controller';
@Module({
controllers: [FastifyController],
})
export class FastifyModule {}

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist"
},
"include": [
"src/**/*",
"e2e/**/*"
],
"exclude": [
"node_modules"
]
}

View File

@@ -0,0 +1,262 @@
import { clc } from '@nestjs/common/utils/cli-colors.util';
import { repl } from '@nestjs/core';
import { ReplContext } from '@nestjs/core/repl/repl-context';
import {
HelpReplFn,
GetReplFn,
ResolveReplFn,
SelectReplFn,
DebugReplFn,
MethodsReplFn,
} from '@nestjs/core/repl/native-functions';
import { expect } from 'chai';
import * as sinon from 'sinon';
import { AppModule } from '../src/app.module';
const PROMPT = '\u001b[1G\u001b[0J> \u001b[3G';
describe('REPL', () => {
beforeEach(() => {
// To avoid coloring the output:
sinon.stub(clc, 'bold').callsFake(text => text);
sinon.stub(clc, 'green').callsFake(text => text);
sinon.stub(clc, 'yellow').callsFake(text => text);
sinon.stub(clc, 'red').callsFake(text => text);
sinon.stub(clc, 'magentaBright').callsFake(text => text);
sinon.stub(clc, 'cyanBright').callsFake(text => text);
});
afterEach(() => {
sinon.restore();
});
it('get()', async () => {
const server = await repl(AppModule);
server.context;
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
server.emit('line', 'get(UsersService)');
expect(outputText).to.equal(
`UsersService { usersRepository: UsersRepository {} }
${PROMPT}`,
);
outputText = '';
server.emit('line', 'get(UsersService).findAll()');
expect(outputText).to
.equal(`\u001b[32m'This action returns all users'\u001b[39m
${PROMPT}`);
outputText = '';
server.emit('line', 'get(UsersRepository)');
expect(outputText).to.equal(`UsersRepository {}
${PROMPT}`);
});
it('$()', async () => {
const server = await repl(AppModule);
server.context;
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
server.emit('line', '$(UsersService)');
expect(outputText).to.equal(
`UsersService { usersRepository: UsersRepository {} }
${PROMPT}`,
);
outputText = '';
server.emit('line', '$(UsersService).findAll()');
expect(outputText).to
.equal(`\u001b[32m'This action returns all users'\u001b[39m
${PROMPT}`);
outputText = '';
server.emit('line', '$(UsersRepository)');
expect(outputText).to.equal(`UsersRepository {}
${PROMPT}`);
});
it('debug()', async () => {
const server = await repl(AppModule);
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
server.emit('line', 'debug(UsersModule)');
expect(outputText).to.equal(
`
UsersModule:
- controllers:
◻ UsersController
- providers:
◻ UsersService
◻ UsersRepository
${PROMPT}`,
);
});
it('methods()', async () => {
const server = await repl(AppModule);
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
server.emit('line', 'methods(UsersRepository)');
expect(outputText).to.equal(
`
Methods:
◻ find
${PROMPT}`,
);
outputText = '';
server.emit('line', 'methods(UsersService)');
expect(outputText).to.equal(
`
Methods:
◻ create
◻ findAll
◻ findOne
◻ update
◻ remove
${PROMPT}`,
);
});
describe('<native_function>.help', () => {
it(`Typing "help.help" should print function's description and interface`, async () => {
const replServer = await repl(AppModule);
const { description, signature } = new HelpReplFn(
sinon.stub() as unknown as ReplContext,
).fnDefinition;
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
replServer.emit('line', 'help.help');
expect(outputText).to.equal(`${description}
Interface: help${signature}
${PROMPT}`);
});
it(`Typing "get.help" should print function's description and interface`, async () => {
const replServer = await repl(AppModule);
const { description, signature } = new GetReplFn(
sinon.stub() as unknown as ReplContext,
).fnDefinition;
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
replServer.emit('line', 'get.help');
expect(outputText).to.equal(`${description}
Interface: get${signature}
${PROMPT}`);
});
it(`Typing "resolve.help" should print function's description and interface`, async () => {
const replServer = await repl(AppModule);
const { description, signature } = new ResolveReplFn(
sinon.stub() as unknown as ReplContext,
).fnDefinition;
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
replServer.emit('line', 'resolve.help');
expect(outputText).to.equal(`${description}
Interface: resolve${signature}
${PROMPT}`);
});
it(`Typing "select.help" should print function's description and interface`, async () => {
const replServer = await repl(AppModule);
const { description, signature } = new SelectReplFn(
sinon.stub() as unknown as ReplContext,
).fnDefinition;
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
replServer.emit('line', 'select.help');
expect(outputText).to.equal(`${description}
Interface: select${signature}
${PROMPT}`);
});
it(`Typing "debug.help" should print function's description and interface`, async () => {
const replServer = await repl(AppModule);
const { description, signature } = new DebugReplFn(
sinon.stub() as unknown as ReplContext,
).fnDefinition;
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
replServer.emit('line', 'debug.help');
expect(outputText).to.equal(`${description}
Interface: debug${signature}
${PROMPT}`);
});
it(`Typing "methods.help" should print function's description and interface`, async () => {
const replServer = await repl(AppModule);
const { description, signature } = new MethodsReplFn(
sinon.stub() as unknown as ReplContext,
).fnDefinition;
let outputText = '';
sinon.stub(process.stdout, 'write').callsFake(text => {
outputText += text;
return true;
});
replServer.emit('line', 'methods.help');
expect(outputText).to.equal(`${description}
Interface: methods${signature}
${PROMPT}`);
});
});
});

View File

@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { UsersModule } from './users/users.module';
@Module({
imports: [UsersModule],
})
export class AppModule {}

View File

@@ -0,0 +1 @@
export class CreateUserDto {}

View File

@@ -0,0 +1,4 @@
import { PartialType } from '@nestjs/mapped-types';
import { CreateUserDto } from './create-user.dto';
export class UpdateUserDto extends PartialType(CreateUserDto) {}

View File

@@ -0,0 +1 @@
export class User {}

View File

@@ -0,0 +1,34 @@
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { UsersService } from './users.service';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
@Controller('users')
export class UsersController {
constructor(private readonly usersService: UsersService) {}
@Post()
create(@Body() createUserDto: CreateUserDto) {
return this.usersService.create(createUserDto);
}
@Get()
findAll() {
return this.usersService.findAll();
}
@Get(':id')
findOne(@Param('id') id: string) {
return this.usersService.findOne(+id);
}
@Patch(':id')
update(@Param('id') id: string, @Body() updateUserDto: UpdateUserDto) {
return this.usersService.update(+id, updateUserDto);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.usersService.remove(+id);
}
}

View File

@@ -0,0 +1,16 @@
import { Module } from '@nestjs/common';
import { UsersController } from './users.controller';
import { UsersRepository } from './users.repository';
import { UsersService } from './users.service';
@Module({
controllers: [UsersController],
providers: [
UsersService,
{
provide: UsersRepository.name,
useValue: new UsersRepository(),
},
],
})
export class UsersModule {}

View File

@@ -0,0 +1,8 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class UsersRepository {
async find() {
return [{ id: 1, email: 'test@nestjs.com' }];
}
}

View File

@@ -0,0 +1,32 @@
import { Inject, Injectable } from '@nestjs/common';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
import { UsersRepository } from './users.repository';
@Injectable()
export class UsersService {
constructor(
@Inject('UsersRepository')
private readonly usersRepository: UsersRepository,
) {}
create(createUserDto: CreateUserDto) {
return 'This action adds a new user';
}
findAll() {
return `This action returns all users`;
}
findOne(id: number) {
return `This action returns a #${id} user`;
}
update(id: number, updateUserDto: UpdateUserDto) {
return `This action updates a #${id} user`;
}
remove(id: number) {
return `This action removes a #${id} user`;
}
}

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}

View File

@@ -0,0 +1,76 @@
import { INestApplication } from '@nestjs/common';
import { ContextIdFactory } from '@nestjs/core';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import * as request from 'supertest';
import { DurableContextIdStrategy } from '../src/durable/durable-context-id.strategy';
import { DurableModule } from '../src/durable/durable.module';
describe('Durable providers', () => {
let server: any;
let app: INestApplication;
before(async () => {
const moduleRef = await Test.createTestingModule({
imports: [DurableModule],
}).compile();
app = moduleRef.createNestApplication();
server = app.getHttpServer();
await app.init();
ContextIdFactory.apply(new DurableContextIdStrategy());
});
describe('when service is durable', () => {
const performHttpCall = (tenantId: number, end: (err?: any) => void) =>
request(server)
.get('/durable')
.set({ ['x-tenant-id']: tenantId })
.end((err, res) => {
if (err) return end(err);
end(res);
});
it(`should share durable providers per tenant`, async () => {
let result: request.Response;
result = await new Promise<request.Response>(resolve =>
performHttpCall(1, resolve),
);
expect(result.text).equal('Hello world! Counter: 1');
result = await new Promise<request.Response>(resolve =>
performHttpCall(1, resolve),
);
expect(result.text).equal('Hello world! Counter: 2');
result = await new Promise<request.Response>(resolve =>
performHttpCall(1, resolve),
);
expect(result.text).equal('Hello world! Counter: 3');
});
it(`should create per-tenant DI sub-tree`, async () => {
let result: request.Response;
result = await new Promise<request.Response>(resolve =>
performHttpCall(4, resolve),
);
expect(result.text).equal('Hello world! Counter: 1');
result = await new Promise<request.Response>(resolve =>
performHttpCall(5, resolve),
);
expect(result.text).equal('Hello world! Counter: 1');
result = await new Promise<request.Response>(resolve =>
performHttpCall(6, resolve),
);
expect(result.text).equal('Hello world! Counter: 1');
});
});
after(async () => {
ContextIdFactory['strategy'] = undefined;
await app.close();
});
});

View File

@@ -0,0 +1,21 @@
import { ContextId, ContextIdStrategy, HostComponentInfo } from '@nestjs/core';
import { Request } from 'express';
const tenants = new Map<string, ContextId>();
export class DurableContextIdStrategy implements ContextIdStrategy {
attach(contextId: ContextId, request: Request) {
const tenantId = request.headers['x-tenant-id'] as string;
let tenantSubTreeId: ContextId;
if (tenants.has(tenantId)) {
tenantSubTreeId = tenants.get(tenantId);
} else {
tenantSubTreeId = { id: +tenantId } as ContextId;
tenants.set(tenantId, tenantSubTreeId);
}
return (info: HostComponentInfo) =>
info.isTreeDurable ? tenantSubTreeId : contextId;
}
}

View File

@@ -0,0 +1,12 @@
import { Controller, Get } from '@nestjs/common';
import { DurableService } from './durable.service';
@Controller('durable')
export class DurableController {
constructor(private readonly durableService: DurableService) {}
@Get()
greeting(): string {
return this.durableService.greeting();
}
}

View File

@@ -0,0 +1,9 @@
import { Module } from '@nestjs/common';
import { DurableController } from './durable.controller';
import { DurableService } from './durable.service';
@Module({
controllers: [DurableController],
providers: [DurableService],
})
export class DurableModule {}

View File

@@ -0,0 +1,11 @@
import { Injectable, Scope } from '@nestjs/common';
@Injectable({ scope: Scope.REQUEST, durable: true })
export class DurableService {
public instanceCounter = 0;
greeting() {
++this.instanceCounter;
return `Hello world! Counter: ${this.instanceCounter}`;
}
}

View File

@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from '../src/app.module';
import { AppModule } from '../src/app.module';
describe('TypeOrm', () => {
let server;
@@ -9,7 +9,7 @@ describe('TypeOrm', () => {
beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [ApplicationModule],
imports: [AppModule],
}).compile();
app = module.createNestApplication();

View File

@@ -21,4 +21,4 @@ import { PhotoModule } from './photo/photo.module';
PhotoModule,
],
})
export class ApplicationModule {}
export class AppModule {}

View File

@@ -14,7 +14,7 @@ async function createNestApp(...gateways): Promise<INestApplication> {
const testingModule = await Test.createTestingModule({
providers: gateways,
}).compile();
const app = await testingModule.createNestApplication();
const app = testingModule.createNestApplication();
app.useWebSocketAdapter(new WsAdapter(app) as any);
return app;
}
@@ -40,6 +40,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
await new Promise<void>(resolve =>
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
ws.close();
resolve();
}),
);
@@ -63,6 +64,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
await new Promise<void>(resolve =>
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
ws.close();
resolve();
}),
);
@@ -70,7 +72,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
it(`should handle message on a different path`, async () => {
app = await createNestApp(WsPathGateway);
await app.listenAsync(3000);
await app.listen(3000);
try {
ws = new WebSocket('ws://localhost:3000/ws-path');
await new Promise((resolve, reject) => {
@@ -89,6 +91,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
await new Promise<void>(resolve =>
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
ws.close();
resolve();
}),
);
@@ -101,7 +104,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
this.retries(10);
app = await createNestApp(ExamplePathGateway, WsPathGateway2);
await app.listenAsync(3000);
await app.listen(3000);
// open websockets delay
await new Promise(resolve => setTimeout(resolve, 1000));
@@ -113,6 +116,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
ws.on('open', () => {
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
ws.close();
resolve();
});
ws.send(
@@ -129,6 +133,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
await new Promise<void>(resolve => {
ws2.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
ws2.close();
resolve();
});
ws2.send(
@@ -158,6 +163,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
ws.on('open', () => {
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
ws.close();
resolve();
});
ws.send(
@@ -174,6 +180,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
await new Promise<void>(resolve => {
ws2.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
ws2.close();
resolve();
});
ws2.send(
@@ -187,5 +194,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
});
});
afterEach(() => app.close());
afterEach(async function () {
await app.close();
});
});

View File

@@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "8.3.1"
"version": "9.0.2"
}

7045
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "8.3.1",
"version": "9.0.0",
"description": "Modern, fast, powerful node.js web framework",
"homepage": "https://nestjs.com",
"repository": {
@@ -23,19 +23,20 @@
"clean": "gulp clean:bundle",
"codechecks:benchmarks": "codechecks ./tools/benchmarks/check-benchmarks.ts",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"format": "prettier \"**/*.ts\" --ignore-path ./.prettierignore --write && git status",
"format": "prettier \"**/*.ts\" \"packages/**/*.json\" --ignore-path ./.prettierignore --write && git status",
"postinstall": "opencollective",
"test": "nyc --require ts-node/register mocha packages/**/*.spec.ts --reporter spec --require 'node_modules/reflect-metadata/Reflect.js' --exit",
"test:integration": "mocha \"integration/*/{,!(node_modules)/**/}/*.spec.ts\" --reporter spec --require ts-node/register --require 'node_modules/reflect-metadata/Reflect.js' --exit",
"test": "nyc mocha packages/**/*.spec.ts --reporter spec",
"test:integration": "mocha \"integration/*/{,!(node_modules)/**/}/*.spec.ts\" --reporter spec",
"test:docker:up": "docker-compose -f integration/docker-compose.yml up -d",
"test:docker:down": "docker-compose -f integration/docker-compose.yml down",
"lint": "concurrently 'npm run lint:packages' 'npm run lint:integration' 'npm run lint:spec'",
"lint:fix": "concurrently 'npm run lint:packages -- --fix' 'npm run lint:integration -- --fix' 'npm run lint:spec -- --fix'",
"lint:integration": "eslint 'integration/*/{,!(node_modules)/**/}/*.ts' -c '.eslintrc.spec.js'",
"lint:integration": "eslint 'integration/*/{,!(node_modules)/**/}/*.ts'",
"lint:packages": "eslint 'packages/**/**.ts' --ignore-pattern 'packages/**/*.spec.ts'",
"lint:spec": "eslint 'packages/**/**.spec.ts' -c '.eslintrc.spec.js'",
"prerelease": "gulp copy-misc && gulp build --dist node_modules/@nestjs && npm run changelog | pbcopy",
"lint:spec": "eslint 'packages/**/**.spec.ts'",
"prerelease": "gulp copy-misc && gulp build --dist node_modules/@nestjs",
"publish": "npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --force-publish --access public --exact -m \"chore(@nestjs) publish %s release\"",
"prepublishOnly": "npm run changelog | pbcopy",
"publish:beta": "npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --npm-tag=beta --access public -m \"chore(@nestjs) publish %s release\"",
"publish:next": "npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --npm-tag=next --access public --skip-git -m \"chore(@nestjs) publish %s release\"",
"publish:rc": "npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --npm-tag=rc --access public -m \"chore(@nestjs) publish %s release\"",
@@ -43,89 +44,93 @@
"prepare": "husky install"
},
"lint-staged": {
"packages/**/*.{ts,json}": [
"**/*.ts": [
"prettier --ignore-path ./.prettierignore --write"
],
"packages/**/*.json": [
"prettier --ignore-path ./.prettierignore --write"
]
},
"dependencies": {
"@nuxtjs/opencollective": "0.3.2",
"axios": "0.26.0",
"class-transformer": "0.5.1",
"class-validator": "0.13.2",
"cli-color": "2.0.1",
"cli-color": "2.0.3",
"cors": "2.8.5",
"express": "4.17.3",
"fast-json-stringify": "3.0.3",
"express": "4.18.1",
"fast-json-stringify": "5.0.6",
"fast-safe-stringify": "2.1.1",
"graphql-subscriptions": "2.0.0",
"iterare": "1.2.1",
"object-hash": "3.0.0",
"path-to-regexp": "3.2.0",
"reflect-metadata": "0.1.13",
"rxjs": "7.5.4",
"socket.io": "4.4.1",
"tslib": "2.3.1",
"rxjs": "7.5.5",
"socket.io": "4.5.1",
"tslib": "2.4.0",
"uuid": "8.3.2"
},
"devDependencies": {
"@codechecks/client": "0.1.12",
"@commitlint/cli": "16.2.1",
"@commitlint/config-angular": "16.2.1",
"@grpc/grpc-js": "1.5.7",
"@grpc/proto-loader": "0.6.9",
"@nestjs/apollo": "10.0.5",
"@nestjs/graphql": "10.0.5",
"@nestjs/mongoose": "9.0.2",
"@nestjs/typeorm": "8.0.3",
"@commitlint/cli": "17.0.3",
"@commitlint/config-angular": "17.0.3",
"@fastify/cors": "^8.0.0",
"@fastify/formbody": "7.0.1",
"@fastify/middie": "8.0.0",
"@fastify/multipart": "7.1.0",
"@fastify/static": "6.4.0",
"@fastify/view": "7.0.0",
"@grpc/grpc-js": "1.6.7",
"@grpc/proto-loader": "0.6.13",
"@nestjs/apollo": "10.0.16",
"@nestjs/graphql": "10.0.18",
"@nestjs/mongoose": "9.1.1",
"@nestjs/typeorm": "9.0.0",
"@types/amqplib": "0.8.2",
"@types/bytes": "3.1.1",
"@types/cache-manager": "3.4.3",
"@types/chai": "4.3.0",
"@types/cache-manager": "4.0.1",
"@types/chai": "4.3.1",
"@types/chai-as-promised": "7.1.5",
"@types/cors": "2.8.12",
"@types/express": "4.17.13",
"@types/gulp": "4.0.9",
"@types/http-errors": "1.8.2",
"@types/mocha": "9.1.0",
"@types/node": "17.0.21",
"@types/mocha": "9.1.1",
"@types/node": "18.0.3",
"@types/redis": "4.0.11",
"@types/reflect-metadata": "0.1.0",
"@types/sinon": "10.0.11",
"@types/socket.io": "3.0.2",
"@types/ws": "8.5.1",
"@types/sinon": "10.0.12",
"@types/supertest": "2.0.12",
"@types/ws": "8.5.3",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"amqp-connection-manager": "4.1.1",
"amqplib": "0.8.0",
"apollo-server-core": "3.6.3",
"apollo-server-express": "3.6.3",
"amqp-connection-manager": "4.1.3",
"amqplib": "0.10.0",
"apollo-server-core": "3.9.0",
"apollo-server-express": "3.9.0",
"artillery": "1.7.9",
"body-parser": "1.19.2",
"body-parser": "1.20.0",
"bytes": "3.1.2",
"cache-manager": "3.6.0",
"cache-manager": "4.1.0",
"cache-manager-redis-store": "2.0.0",
"chai": "4.3.6",
"chai-as-promised": "7.1.1",
"clang-format": "1.6.0",
"clang-format": "1.8.0",
"commitlint-circle": "1.0.0",
"concurrently": "7.0.0",
"concurrently": "7.2.2",
"conventional-changelog": "3.1.25",
"core-js": "3.21.1",
"core-js": "3.23.4",
"coveralls": "3.1.1",
"delete-empty": "3.0.0",
"engine.io-client": "6.1.1",
"engine.io-client": "6.2.2",
"eslint": "7.32.0",
"eslint-config-prettier": "8.4.0",
"eslint-plugin-import": "2.25.4",
"eventsource": "1.1.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eventsource": "2.0.2",
"fancy-log": "2.0.0",
"fastify": "3.27.2",
"fastify-cors": "6.0.3",
"fastify-formbody": "5.2.0",
"fastify-multipart": "5.3.1",
"fastify-static": "4.5.0",
"graphql": "15.7.2",
"graphql-tools": "7.0.5",
"fastify": "4.2.0",
"graphql": "15.8.0",
"graphql-tools": "8.3.0",
"gulp": "4.0.2",
"gulp-clang-format": "1.0.27",
"gulp-clean": "0.4.0",
@@ -133,43 +138,42 @@
"gulp-typescript": "5.0.1",
"gulp-watch": "5.0.1",
"http-errors": "2.0.0",
"husky": "7.0.4",
"imports-loader": "3.1.1",
"husky": "8.0.1",
"imports-loader": "4.0.0",
"ioredis": "5.1.0",
"json-loader": "0.5.7",
"kafkajs": "1.16.0",
"kafkajs": "2.1.0",
"lerna": "2.11.0",
"lerna-changelog": "2.2.0",
"light-my-request": "4.8.0",
"lint-staged": "12.3.4",
"light-my-request": "5.0.0",
"lint-staged": "13.0.3",
"markdown-table": "2.0.0",
"merge-graphql-schemas": "1.7.8",
"middie": "6.0.0",
"mocha": "9.2.1",
"mongoose": "6.2.4",
"mqtt": "4.3.6",
"mocha": "10.0.0",
"mongoose": "6.4.4",
"mqtt": "4.3.7",
"multer": "1.4.4",
"mysql2": "2.3.3",
"nats": "2.6.1",
"nodemon": "2.0.15",
"nats": "2.7.1",
"nodemon": "2.0.19",
"nyc": "15.1.0",
"point-of-view": "5.1.0",
"prettier": "2.5.1",
"redis": "3.1.2",
"prettier": "2.7.1",
"redis": "4.2.0",
"rxjs-compat": "6.6.7",
"sinon": "13.0.1",
"sinon": "14.0.0",
"sinon-chai": "3.7.0",
"socket.io-client": "4.4.1",
"socket.io-client": "4.5.1",
"subscriptions-transport-ws": "0.11.0",
"supertest": "6.2.2",
"ts-morph": "13.0.3",
"ts-node": "10.5.0",
"typeorm": "0.2.44",
"typescript": "4.3.5",
"supertest": "6.2.4",
"ts-morph": "15.1.0",
"ts-node": "10.8.2",
"typeorm": "0.3.7",
"typescript": "4.7.4",
"wrk": "1.2.1",
"ws": "7.5.6"
"ws": "8.8.0"
},
"engines": {
"node": ">= 10.13.0"
"node": ">= 12.9.0"
},
"collective": {
"type": "opencollective",
@@ -223,5 +227,13 @@
],
"sourceMap": true,
"instrument": true
},
"mocha": {
"require": [
"ts-node/register",
"node_modules/reflect-metadata/Reflect.js",
"hooks/mocha-init-hook.ts"
],
"exit": true
}
}

View File

@@ -54,7 +54,7 @@ With official support, you can get expert help straight from Nest core team. We
## Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
#### Principal Sponsors
<table style="text-align:center;"><tr>
@@ -64,17 +64,21 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td><td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
#### Gold Sponsors
<table style="text-align:center;"><tr><td>
<a href="https://careers.labster.com/departments/platform" target="_blank"><img src="https://nestjs.com/img/labster-logo.png" width="170" valign="middle" /></a></td><td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="150" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
<a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/intrinisic-logo.png" width="210" valign="middle" /></a></td></</tr></table>
<a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/intrinisic-logo.png" width="210" valign="middle" /></a></td>
<td>
<a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/jetbrains-logo.svg" width="110" valign="middle" /></a></td><td>
<a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/snyk-logo-black.png" width="185" valign="middle" /></a></td><td>
<a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td></</tr></table>
#### Silver Sponsors
@@ -124,6 +128,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<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://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://db.nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nord-logo.png" width="50" valign="middle" /></a></td>
</tr></table>
## Backers

View File

@@ -1,4 +1,3 @@
export const CACHE_MANAGER = 'CACHE_MANAGER';
export const CACHE_MODULE_OPTIONS = 'CACHE_MODULE_OPTIONS';
export const CACHE_KEY_METADATA = 'cache_module:cache_key';
export const CACHE_TTL_METADATA = 'cache_module:cache_ttl';

View File

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

View File

@@ -1,11 +1,11 @@
import { Module } from '../decorators';
import { DynamicModule, Provider } from '../interfaces';
import { CACHE_MANAGER, CACHE_MODULE_OPTIONS } from './cache.constants';
import { DynamicModule } from '../interfaces';
import { CACHE_MANAGER } from './cache.constants';
import { ConfigurableModuleClass } from './cache.module-definition';
import { createCacheManager } from './cache.providers';
import {
CacheModuleAsyncOptions,
CacheModuleOptions,
CacheOptionsFactory,
} from './interfaces/cache-module.interface';
/**
@@ -19,7 +19,7 @@ import {
providers: [createCacheManager()],
exports: [CACHE_MANAGER],
})
export class CacheModule {
export class CacheModule extends ConfigurableModuleClass {
/**
* Configure the cache manager statically.
*
@@ -31,9 +31,8 @@ export class CacheModule {
options: CacheModuleOptions<StoreConfig> = {} as any,
): DynamicModule {
return {
module: CacheModule,
global: options.isGlobal,
providers: [{ provide: CACHE_MODULE_OPTIONS, useValue: options }],
...super.register(options),
};
}
@@ -48,47 +47,14 @@ export class CacheModule {
static registerAsync<
StoreConfig extends Record<any, any> = Record<string, any>,
>(options: CacheModuleAsyncOptions<StoreConfig>): DynamicModule {
const moduleDefinition = super.registerAsync(options);
return {
module: CacheModule,
global: options.isGlobal,
imports: options.imports,
providers: [
...this.createAsyncProviders<StoreConfig>(options),
...(options.extraProviders || []),
],
};
}
private static createAsyncProviders<StoreConfig extends Record<any, any>>(
options: CacheModuleAsyncOptions<StoreConfig>,
): Provider[] {
if (options.useExisting || options.useFactory) {
return [this.createAsyncOptionsProvider(options)];
}
return [
this.createAsyncOptionsProvider(options),
{
provide: options.useClass,
useClass: options.useClass,
},
];
}
private static createAsyncOptionsProvider<
StoreConfig extends Record<any, any>,
>(options: CacheModuleAsyncOptions<StoreConfig>): Provider {
if (options.useFactory) {
return {
provide: CACHE_MODULE_OPTIONS,
useFactory: options.useFactory,
inject: options.inject || [],
};
}
return {
provide: CACHE_MODULE_OPTIONS,
useFactory: async (optionsFactory: CacheOptionsFactory<StoreConfig>) =>
optionsFactory.createCacheOptions(),
inject: [options.useExisting || options.useClass],
...moduleDefinition,
providers: options.extraProviders
? moduleDefinition.providers.concat(options.extraProviders)
: moduleDefinition.providers,
};
}
}

View File

@@ -1,6 +1,7 @@
import { Provider } from '../interfaces';
import { loadPackage } from '../utils/load-package.util';
import { CACHE_MANAGER, CACHE_MODULE_OPTIONS } from './cache.constants';
import { CACHE_MANAGER } from './cache.constants';
import { MODULE_OPTIONS_TOKEN } from './cache.module-definition';
import { defaultCacheOptions } from './default-options';
import { CacheManagerOptions } from './interfaces/cache-manager.interface';
@@ -31,6 +32,6 @@ export function createCacheManager(): Provider {
...(options || {}),
});
},
inject: [CACHE_MODULE_OPTIONS],
inject: [MODULE_OPTIONS_TOKEN],
};
}

View File

@@ -1,10 +1,11 @@
import { ModuleMetadata, Provider, Type } from '../../interfaces';
import { Provider, Type } from '../../interfaces';
import { ConfigurableModuleAsyncOptions } from '../../module-utils';
import { CacheManagerOptions } from './cache-manager.interface';
export type CacheModuleOptions<
StoreConfig extends Record<any, any> = Record<string, any>,
> =
// Store-specfic configuration takes precedence over cache module options due
// Store-specific configuration takes precedence over cache module options due
// to how `createCacheManager` is implemented.
CacheManagerOptions &
StoreConfig & {
@@ -39,7 +40,10 @@ export interface CacheOptionsFactory<
*/
export interface CacheModuleAsyncOptions<
StoreConfig extends Record<any, any> = Record<string, any>,
> extends Pick<ModuleMetadata, 'imports'> {
> extends ConfigurableModuleAsyncOptions<
CacheModuleOptions<StoreConfig>,
keyof CacheOptionsFactory
> {
/**
* Injection token resolving to an existing provider. The provider must implement
* the `CacheOptionsFactory` interface.
@@ -63,6 +67,9 @@ export interface CacheModuleAsyncOptions<
* Dependencies that a Factory may inject.
*/
inject?: any[];
/**
* Extra providers to be registered within a scope of this module.
*/
extraProviders?: Provider[];
/**
* If "true', register `CacheModule` as a global module.

View File

@@ -163,7 +163,7 @@ export function Controller(
: [
prefixOrOptions.path || defaultPath,
prefixOrOptions.host,
{ scope: prefixOrOptions.scope },
{ scope: prefixOrOptions.scope, durable: prefixOrOptions.durable },
Array.isArray(prefixOrOptions.version)
? Array.from(new Set(prefixOrOptions.version))
: prefixOrOptions.version,

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