Compare commits

...

964 Commits

Author SHA1 Message Date
Kamil Myśliwiec
39ec4cda73 chore(@nestjs) publish v9.1.1 release 2022-09-19 16:00:06 +02:00
Kamil Myśliwiec
b55a30d2c9 Merge branch 'master' of https://github.com/nestjs/nest 2022-09-19 15:52:17 +02:00
Kamil Myśliwiec
ed3b05f104 test: fix broken client-tcp unit test 2022-09-19 15:52:08 +02:00
Kamil Myśliwiec
469897ea36 chore(@nestjs) publish v9.1.0 release 2022-09-19 15:25:33 +02:00
Kamil Mysliwiec
a439cd9a41 Merge pull request #10299 from nestjs/feat/durable-providers-payload
feat(core): allow setting payload for durable trees
2022-09-19 15:20:56 +02:00
Kamil Myśliwiec
b9ea9a4e2e Merge branch 'regevbr-10286' 2022-09-19 15:20:00 +02:00
Kamil Myśliwiec
dc10e2485d style(microservices): add blank line, update error message 2022-09-19 15:19:40 +02:00
Kamil Myśliwiec
2dd59bb5c4 Merge branch '10286' of github.com:regevbr/nest into regevbr-10286 2022-09-19 15:09:22 +02:00
Kamil Myśliwiec
99f4ad2930 Merge branch 'thesoundfromthesky-euihyeok-common-cache-interceptor-error-handling' 2022-09-19 15:08:41 +02:00
Kamil Myśliwiec
fb7b70f2d2 style(common): remove console log, update error message 2022-09-19 15:08:26 +02:00
Kamil Myśliwiec
289c40f5e6 Merge branch 'euihyeok-common-cache-interceptor-error-handling' of github.com:thesoundfromthesky/nest into thesoundfromthesky-euihyeok-common-cache-interceptor-error-handling 2022-09-19 15:06:24 +02:00
Kamil Myśliwiec
28e72d7e3e Merge branch 'PhilipMantrov-master' 2022-09-19 15:05:38 +02:00
Kamil Myśliwiec
a0767491a1 style(microservices): wrap error message params in quotation marks 2022-09-19 15:00:53 +02:00
Kamil Myśliwiec
68e6d44fcd Merge branch 'master' of github.com:PhilipMantrov/nest into PhilipMantrov-master 2022-09-19 14:59:40 +02:00
Kamil Myśliwiec
4a43505d3e test: add integration test 2022-09-19 14:59:04 +02:00
Kamil Mysliwiec
cad561b5b4 Merge pull request #10285 from twchn/fix-configurable-module-interface
fix(common): make `ExtraModuleDefinitionOptions` partial in `OPTIONS_TYPE`
2022-09-19 14:45:24 +02:00
Kamil Myśliwiec
eb5c2d2a67 feat(core): allow setting payload for durable trees 2022-09-19 14:43:44 +02:00
Kamil Mysliwiec
a80df520bc Merge pull request #10112 from ZanMinKian/zmj-optimize_reflector
perf(core): optimize reflector
2022-09-19 14:39:35 +02:00
Kamil Mysliwiec
2fb0a1c0d3 Merge pull request #10087 from ZanMinKian/zmj-support_return_type
feat(common): allow to serialize plain object
2022-09-19 14:38:54 +02:00
Kamil Mysliwiec
447e8254bf Merge pull request #10143 from jmcdo29/fix/expose-cache-module-options-token
fix: export cache module options token under easy name
2022-09-19 14:37:46 +02:00
Kamil Mysliwiec
b4f002da55 Merge pull request #10209 from nestjs/fix/10184-multiple-scoped-event-handlers
fix(microservices): multiple scoped event handlers issue #10184
2022-09-19 14:37:30 +02:00
Kamil Mysliwiec
cbd43d7f9c Merge pull request #10272 from Papooch/feat/kafka-producer-in-context
feat(microservices): Add producer reference to KafkaContext
2022-09-19 14:36:59 +02:00
Kamil Mysliwiec
7d4f7e276e Merge pull request #10262 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.7.0
chore(deps-dev): bump @grpc/grpc-js from 1.6.12 to 1.7.0
2022-09-19 14:35:25 +02:00
Kamil Mysliwiec
94f8c7451b Merge pull request #10288 from szilveszterandras/unary-cleanup
fix(microservices): cleanup unary call on unsubscribe
2022-09-19 14:34:30 +02:00
Kamil Mysliwiec
3505a00a4a Merge pull request #10291 from yukukotani/console-logger-stringify-array
fix(common): stringify arrays on printing with console-logger
2022-09-19 14:34:00 +02:00
dependabot[bot]
566342c80a chore(deps-dev): bump @grpc/grpc-js from 1.6.12 to 1.7.0
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.6.12 to 1.7.0.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.6.12...@grpc/grpc-js@1.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 07:29:20 +00:00
Kamil Mysliwiec
41a4753eab Merge pull request #10278 from nestjs/dependabot/npm_and_yarn/types/express-4.17.14
chore(deps-dev): bump @types/express from 4.17.13 to 4.17.14
2022-09-19 09:27:50 +02:00
Kamil Mysliwiec
bd59564f16 Merge pull request #10284 from nestjs/dependabot/npm_and_yarn/fastify-4.6.0
chore(deps): bump fastify from 4.5.3 to 4.6.0
2022-09-19 09:27:26 +02:00
dependabot[bot]
418bf70346 chore(deps): bump fastify from 4.5.3 to 4.6.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.5.3 to 4.6.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.5.3...v4.6.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-09-19 07:27:11 +00:00
Kamil Mysliwiec
de98b3be78 Merge pull request #10279 from nestjs/dependabot/npm_and_yarn/types/node-18.7.18
chore(deps-dev): bump @types/node from 18.7.17 to 18.7.18
2022-09-19 09:25:07 +02:00
Kamil Mysliwiec
f142b52bc0 Merge pull request #10283 from nestjs/dependabot/npm_and_yarn/mongoose-6.6.1
chore(deps-dev): bump mongoose from 6.6.0 to 6.6.1
2022-09-19 09:25:02 +02:00
Kamil Mysliwiec
3675708685 Merge pull request #10290 from yukukotani/fix-mysql-version
chore(integration): update mysql image to 8.0.30
2022-09-19 09:24:53 +02:00
Kamil Mysliwiec
37e6e61fe6 Merge pull request #10294 from nestjs/dependabot/npm_and_yarn/light-my-request-5.6.1
chore(deps): bump light-my-request from 5.6.0 to 5.6.1
2022-09-19 09:24:39 +02:00
Kamil Mysliwiec
06afba2ee2 Merge pull request #10295 from nestjs/dependabot/npm_and_yarn/fastify/multipart-7.2.0
chore(deps-dev): bump @fastify/multipart from 7.1.2 to 7.2.0
2022-09-19 09:24:28 +02:00
Kamil Mysliwiec
ef13eab3b1 Merge pull request #10296 from nestjs/dependabot/npm_and_yarn/nodemon-2.0.20
chore(deps-dev): bump nodemon from 2.0.19 to 2.0.20
2022-09-19 09:24:18 +02:00
Kamil Mysliwiec
7709e66460 Merge pull request #10297 from nestjs/dependabot/npm_and_yarn/core-js-3.25.2
chore(deps-dev): bump core-js from 3.25.1 to 3.25.2
2022-09-19 09:23:39 +02:00
dependabot[bot]
081c512b13 chore(deps-dev): bump core-js from 3.25.1 to 3.25.2
Bumps [core-js](https://github.com/zloirock/core-js) from 3.25.1 to 3.25.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.25.1...v3.25.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-09-19 00:16:44 +00:00
dependabot[bot]
761cac2a6b chore(deps-dev): bump nodemon from 2.0.19 to 2.0.20
Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.19 to 2.0.20.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.19...v2.0.20)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 00:13:07 +00:00
dependabot[bot]
567808f063 chore(deps-dev): bump @fastify/multipart from 7.1.2 to 7.2.0
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 7.1.2 to 7.2.0.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v7.1.2...v7.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 00:07:44 +00:00
dependabot[bot]
17355d4a6f chore(deps): bump light-my-request from 5.6.0 to 5.6.1
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.6.0 to 5.6.1.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.6.0...v5.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 00:06:02 +00:00
Yuku Kotani
d8cd24861f fix(common): stringify arrays on printing with console-logger
stringify arrays as json to avoid [object Object]

Close #10280
2022-09-18 03:11:50 +09:00
Yuku Kotani
2890549fc4 test(common): add test for console logger stringify message 2022-09-18 03:10:13 +09:00
Yuku Kotani
a7310eea01 chore(integration): update mysql image to 8.0.30 2022-09-18 02:29:02 +09:00
szilveszterandras
269ffa3d62 fix(microservices): cleanup unary call on unsubscribe 2022-09-16 19:21:38 +03:00
regevbr
2fe80500dd fix: tcp client memory leaks #10286 2022-09-16 17:52:38 +03:00
regevbr
a439b14c4d fix: tcp client memory leaks #10286 2022-09-16 17:40:06 +03:00
Tao Wei
c36d6bac72 fix(common): make ExtraModuleDefinitionOptions partial in type 2022-09-16 09:27:11 +00:00
dependabot[bot]
53e4d226ad chore(deps-dev): bump mongoose from 6.6.0 to 6.6.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.6.0 to 6.6.1.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.6.0...6.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-15 00:04:38 +00:00
dependabot[bot]
91b24733b2 chore(deps-dev): bump @types/node from 18.7.17 to 18.7.18
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.17 to 18.7.18.
- [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-09-14 00:06:48 +00:00
dependabot[bot]
7959c0f61f chore(deps-dev): bump @types/express from 4.17.13 to 4.17.14
Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.13 to 4.17.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 00:05:10 +00:00
thesoundfromthesky
54bc3d3516 fix(common): apply try-catch block to cache-interceptor
when cache-manager is used with promise based store,
caching null or undefined will throw an unhandledPromise rejection.
apply try-catch block to handle errors.
2022-09-13 18:29:45 -05:00
Kamil Mysliwiec
7db5638d3f Merge pull request #10276 from nestjs/dependabot/npm_and_yarn/types/node-18.7.17
chore(deps-dev): bump @types/node from 18.7.16 to 18.7.17
2022-09-13 09:22:46 +02:00
dependabot[bot]
d910d3d60c chore(deps-dev): bump @types/node from 18.7.16 to 18.7.17
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.16 to 18.7.17.
- [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-09-13 00:05:24 +00:00
Ondřej Švanda
e98d3372be feat(microservices): Add producer reference to KafkaContext 2022-09-12 10:10:28 +02:00
Kamil Mysliwiec
ec197c96e2 Merge pull request #10269 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.3.6
chore(deps-dev): bump graphql-tools from 8.3.5 to 8.3.6
2022-09-12 08:40:53 +02:00
Kamil Mysliwiec
d05891ce36 Merge pull request #10268 from nestjs/dependabot/npm_and_yarn/light-my-request-5.6.0
chore(deps): bump light-my-request from 5.5.1 to 5.6.0
2022-09-12 08:40:47 +02:00
Kamil Mysliwiec
37621f2ea0 Merge pull request #10271 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.3.0
chore(deps): bump fast-json-stringify from 5.2.0 to 5.3.0
2022-09-12 08:39:33 +02:00
dependabot[bot]
f0e76b823f chore(deps): bump fast-json-stringify from 5.2.0 to 5.3.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.2.0...v5.3.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-09-12 00:16:16 +00:00
dependabot[bot]
846c9e142c chore(deps-dev): bump graphql-tools from 8.3.5 to 8.3.6
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.3.5 to 8.3.6.
- [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.6/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-09-12 00:10:58 +00:00
dependabot[bot]
2048cd3364 chore(deps): bump light-my-request from 5.5.1 to 5.6.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.5.1 to 5.6.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.5.1...v5.6.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-09-12 00:09:12 +00:00
Kamil Mysliwiec
8b16d33a0e Merge pull request #10245 from nestjs/dependabot/npm_and_yarn/uuid-9.0.0
chore(deps): bump uuid from 8.3.2 to 9.0.0
2022-09-09 08:26:36 +02:00
Kamil Mysliwiec
aecff66fc8 Merge pull request #10249 from nestjs/dependabot/npm_and_yarn/redis-4.3.1
chore(deps-dev): bump redis from 4.3.0 to 4.3.1
2022-09-09 08:26:27 +02:00
dependabot[bot]
31b1894616 chore(deps-dev): bump redis from 4.3.0 to 4.3.1
Bumps [redis](https://github.com/redis/node-redis) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/redis/node-redis/releases)
- [Changelog](https://github.com/redis/node-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/node-redis/compare/redis@4.3.0...redis@4.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-09 06:24:38 +00:00
Kamil Mysliwiec
697dc65573 Merge pull request #10253 from nestjs/dependabot/npm_and_yarn/core-js-3.25.1
chore(deps-dev): bump core-js from 3.25.0 to 3.25.1
2022-09-09 08:22:16 +02:00
Kamil Mysliwiec
91b4678894 Merge pull request #10254 from nestjs/dependabot/npm_and_yarn/types/node-18.7.16
chore(deps-dev): bump @types/node from 18.7.15 to 18.7.16
2022-09-09 08:22:04 +02:00
Kamil Mysliwiec
8d46653d51 Merge pull request #10256 from nestjs/dependabot/npm_and_yarn/fastify/formbody-7.2.0
chore(deps): bump @fastify/formbody from 7.1.0 to 7.2.0
2022-09-09 08:21:42 +02:00
Kamil Mysliwiec
760d896e0b Merge pull request #10257 from nestjs/dependabot/npm_and_yarn/concurrently-7.4.0
chore(deps-dev): bump concurrently from 7.3.0 to 7.4.0
2022-09-09 08:20:37 +02:00
Kamil Mysliwiec
e1ebeae17e Merge pull request #10261 from nestjs/dependabot/npm_and_yarn/mongoose-6.6.0
chore(deps-dev): bump mongoose from 6.5.4 to 6.6.0
2022-09-09 08:18:06 +02:00
dependabot[bot]
a602f36ddb chore(deps-dev): bump mongoose from 6.5.4 to 6.6.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.5.4 to 6.6.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.5.4...6.6.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-09-09 00:06:34 +00:00
dependabot[bot]
6c4c515799 chore(deps-dev): bump concurrently from 7.3.0 to 7.4.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.3.0 to 7.4.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.3.0...v7.4.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-09-08 00:11:27 +00:00
dependabot[bot]
3249a2edf0 chore(deps): bump @fastify/formbody from 7.1.0 to 7.2.0
Bumps [@fastify/formbody](https://github.com/fastify/fastify-formbody) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/fastify/fastify-formbody/releases)
- [Commits](https://github.com/fastify/fastify-formbody/compare/v7.1.0...v7.2.0)

---
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-09-08 00:08:02 +00:00
dependabot[bot]
1751a8da37 chore(deps-dev): bump @types/node from 18.7.15 to 18.7.16
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.15 to 18.7.16.
- [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-09-08 00:05:07 +00:00
dependabot[bot]
e61eb220b4 chore(deps-dev): bump core-js from 3.25.0 to 3.25.1
Bumps [core-js](https://github.com/zloirock/core-js) from 3.25.0 to 3.25.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.25.0...v3.25.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-09-08 00:04:07 +00:00
Kamil Mysliwiec
8d66cece79 Merge pull request #10219 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.1.0
chore(deps-dev): bump @nestjs/apollo from 10.0.22 to 10.1.0
2022-09-06 09:41:03 +02:00
dependabot[bot]
501c4f1f15 chore(deps): bump uuid from 8.3.2 to 9.0.0
Bumps [uuid](https://github.com/uuidjs/uuid) from 8.3.2 to 9.0.0.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v8.3.2...v9.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-06 07:39:41 +00:00
dependabot[bot]
46ca7a51d7 chore(deps-dev): bump @nestjs/apollo from 10.0.22 to 10.1.0
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.22 to 10.1.0.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.22...v10.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-06 07:39:13 +00:00
Kamil Mysliwiec
ac67b5e25c Merge pull request #10221 from nestjs/dependabot/npm_and_yarn/amqplib-0.10.3
chore(deps-dev): bump amqplib from 0.10.2 to 0.10.3
2022-09-06 09:37:21 +02:00
Kamil Mysliwiec
6a64e28d6a Merge pull request #10232 from nestjs/dependabot/npm_and_yarn/fastify/multipart-7.1.2
chore(deps-dev): bump @fastify/multipart from 7.1.1 to 7.1.2
2022-09-06 09:36:55 +02:00
Kamil Mysliwiec
423c0e4258 Merge pull request #10233 from nestjs/dependabot/npm_and_yarn/socket.io-4.5.2
chore(deps): bump socket.io from 4.5.1 to 4.5.2
2022-09-06 09:36:48 +02:00
Kamil Mysliwiec
767e94d343 Merge pull request #10234 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.1.1
chore(deps-dev): bump @nestjs/graphql from 10.0.22 to 10.1.1
2022-09-06 09:36:40 +02:00
Kamil Mysliwiec
45c562a51c Merge pull request #10235 from nestjs/dependabot/npm_and_yarn/types/cache-manager-4.0.2
chore(deps-dev): bump @types/cache-manager from 4.0.1 to 4.0.2
2022-09-06 09:36:33 +02:00
Kamil Mysliwiec
b6bed45ca2 Merge pull request #10236 from nestjs/dependabot/npm_and_yarn/socket.io-client-4.5.2
chore(deps-dev): bump socket.io-client from 4.5.1 to 4.5.2
2022-09-06 09:36:26 +02:00
Kamil Mysliwiec
13d21966c0 Merge pull request #10237 from nestjs/dependabot/npm_and_yarn/ts-morph-16.0.0
chore(deps-dev): bump ts-morph from 15.1.0 to 16.0.0
2022-09-06 09:36:17 +02:00
Kamil Mysliwiec
221d60e2ae Merge pull request #10238 from nestjs/dependabot/npm_and_yarn/types/node-18.7.15
chore(deps-dev): bump @types/node from 18.7.14 to 18.7.15
2022-09-06 09:36:12 +02:00
Kamil Mysliwiec
6457d58d41 Merge pull request #10242 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.3.5
chore(deps-dev): bump graphql-tools from 8.3.4 to 8.3.5
2022-09-06 09:35:54 +02:00
dependabot[bot]
dd8386123b chore(deps-dev): bump graphql-tools from 8.3.4 to 8.3.5
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.3.4 to 8.3.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.3.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-09-06 00:03:38 +00:00
dependabot[bot]
d97b3b3555 chore(deps-dev): bump @types/node from 18.7.14 to 18.7.15
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.14 to 18.7.15.
- [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-09-05 11:51:20 +00:00
dependabot[bot]
d5c43f1398 chore(deps-dev): bump ts-morph from 15.1.0 to 16.0.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 15.1.0 to 16.0.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/15.1.0...16.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-09-05 11:49:09 +00:00
dependabot[bot]
e9fe64ab80 chore(deps-dev): bump socket.io-client from 4.5.1 to 4.5.2
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.5.1...4.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 11:47:00 +00:00
dependabot[bot]
de4cdcc3e1 chore(deps-dev): bump @types/cache-manager from 4.0.1 to 4.0.2
Bumps [@types/cache-manager](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/cache-manager) from 4.0.1 to 4.0.2.
- [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-09-05 11:43:08 +00:00
dependabot[bot]
3a88a9af7a chore(deps-dev): bump @nestjs/graphql from 10.0.22 to 10.1.1
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.22 to 10.1.1.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.22...v10.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 11:39:38 +00:00
dependabot[bot]
26736e2329 chore(deps): bump socket.io from 4.5.1 to 4.5.2
Bumps [socket.io](https://github.com/socketio/socket.io) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/4.5.1...4.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 11:36:40 +00:00
dependabot[bot]
db35ba4418 chore(deps-dev): bump @fastify/multipart from 7.1.1 to 7.1.2
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 7.1.1 to 7.1.2.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v7.1.1...v7.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 11:34:43 +00:00
Kamil Mysliwiec
25cc573052 Merge pull request #10217 from sashashura/patch-1
GitHub Workflows security hardening
2022-09-05 09:56:35 +02:00
Philip Mantrov
6538324c0d feat(microservices): path, package and service names added to exceptions 2022-09-02 18:43:52 +03:00
dependabot[bot]
87dd4b252d chore(deps-dev): bump amqplib from 0.10.2 to 0.10.3
Bumps [amqplib](https://github.com/amqp-node/amqplib) from 0.10.2 to 0.10.3.
- [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/compare/v0.10.2...v0.10.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-02 00:15:03 +00:00
Alex
831da1c6bd Update codeql-analysis.yml
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
2022-09-01 16:15:48 +01:00
Kamil Mysliwiec
a448f53b77 Merge pull request #10212 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.2.0
chore(deps): bump fast-json-stringify from 5.1.0 to 5.2.0
2022-09-01 13:48:38 +02:00
Kamil Mysliwiec
bd68c66f4e Merge pull request #10213 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.6.12
chore(deps-dev): bump @grpc/grpc-js from 1.6.11 to 1.6.12
2022-09-01 13:48:30 +02:00
dependabot[bot]
5efb1ba84f chore(deps-dev): bump @grpc/grpc-js from 1.6.11 to 1.6.12
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.6.11 to 1.6.12.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.6.11...@grpc/grpc-js@1.6.12)

---
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-09-01 00:09:38 +00:00
dependabot[bot]
4e3a36d325 chore(deps): bump fast-json-stringify from 5.1.0 to 5.2.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.1.0...v5.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-09-01 00:04:50 +00:00
Kamil Mysliwiec
2276f61003 Merge pull request #10193 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-17.1.0
chore(deps-dev): bump @commitlint/config-angular from 17.0.3 to 17.1.0
2022-08-31 09:55:49 +02:00
Kamil Myśliwiec
a5be434f0c fix(microservices): multiple scoped event handlers issue #10184 2022-08-31 09:55:22 +02:00
Kamil Mysliwiec
35f2994fdb Merge pull request #10206 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/moment-timezone-0.5.37
chore(deps): bump moment-timezone from 0.5.34 to 0.5.37 in /sample/07-sequelize
2022-08-31 08:59:35 +02:00
Kamil Mysliwiec
20862e3cbb Merge pull request #10204 from nestjs/dependabot/npm_and_yarn/mongoose-6.5.4
chore(deps-dev): bump mongoose from 6.5.3 to 6.5.4
2022-08-31 08:59:24 +02:00
dependabot[bot]
febb83f1db chore(deps): bump moment-timezone in /sample/07-sequelize
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.5.34 to 0.5.37.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.5.34...0.5.37)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-31 04:52:18 +00:00
dependabot[bot]
6e813565b9 chore(deps-dev): bump mongoose from 6.5.3 to 6.5.4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.5.3...6.5.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-31 00:05:18 +00:00
dependabot[bot]
9231915e90 chore(deps-dev): bump @commitlint/config-angular from 17.0.3 to 17.1.0
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 17.0.3 to 17.1.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-angular/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.1.0/@commitlint/config-angular)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 06:23:35 +00:00
Kamil Mysliwiec
d6f6fda6f7 Merge pull request #10185 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.10.2
chore(deps-dev): bump apollo-server-core from 3.10.1 to 3.10.2
2022-08-30 08:21:13 +02:00
Kamil Mysliwiec
9cbec155bf Merge pull request #10194 from nestjs/dependabot/npm_and_yarn/commitlint/cli-17.1.2
chore(deps-dev): bump @commitlint/cli from 17.0.3 to 17.1.2
2022-08-30 08:21:03 +02:00
Kamil Mysliwiec
9379a96d5d Merge pull request #10196 from Tony133/chore/update-import-common-module-utils
chore(common): update import in module utils
2022-08-30 08:20:56 +02:00
Kamil Mysliwiec
daf8eb8fe6 Merge pull request #10197 from Tony133/chore/added-file-index
chore(microservices): added file index in deserializers and serializers
2022-08-30 08:20:35 +02:00
Kamil Mysliwiec
f4ed1a169c Merge pull request #10198 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.6.11
chore(deps-dev): bump @grpc/grpc-js from 1.6.10 to 1.6.11
2022-08-30 08:20:13 +02:00
Kamil Mysliwiec
6de779e55b Merge pull request #10199 from nestjs/dependabot/npm_and_yarn/types/node-18.7.14
chore(deps-dev): bump @types/node from 18.7.13 to 18.7.14
2022-08-30 08:20:05 +02:00
dependabot[bot]
5f83b041a9 chore(deps-dev): bump @types/node from 18.7.13 to 18.7.14
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.13 to 18.7.14.
- [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-08-30 00:07:50 +00:00
dependabot[bot]
8094e9fb28 chore(deps-dev): bump @grpc/grpc-js from 1.6.10 to 1.6.11
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.6.10 to 1.6.11.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.6.10...@grpc/grpc-js@1.6.11)

---
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-08-30 00:06:46 +00:00
Tony133
f41c87e897 chore(microservices): added file index in deserializers and serializers 2022-08-29 22:54:23 +02:00
Tony133
2a0dad322b chore(common): update import in module utils and added file index.ts 2022-08-29 22:27:17 +02:00
dependabot[bot]
fe68ad8fc6 chore(deps-dev): bump @commitlint/cli from 17.0.3 to 17.1.2
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.0.3 to 17.1.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.1.2/@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-08-29 08:57:13 +00:00
Kamil Mysliwiec
af96a14ddf Merge pull request #10180 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/mongoose-6.4.6
chore(deps): bump mongoose from 6.4.4 to 6.4.6 in /sample/14-mongoose-base
2022-08-29 10:54:39 +02:00
Kamil Mysliwiec
6457d3a1ff Merge pull request #10177 from nestjs/dependabot/npm_and_yarn/typescript-4.8.2
chore(deps-dev): bump typescript from 4.7.4 to 4.8.2
2022-08-29 10:54:32 +02:00
Kamil Mysliwiec
79b0bbd179 Merge pull request #10192 from nestjs/dependabot/npm_and_yarn/fastify/formbody-7.1.0
chore(deps): bump @fastify/formbody from 7.0.1 to 7.1.0
2022-08-29 10:54:25 +02:00
Kamil Mysliwiec
cc28981746 Merge pull request #10190 from nestjs/dependabot/npm_and_yarn/fastify-4.5.3
chore(deps): bump fastify from 4.5.2 to 4.5.3
2022-08-29 10:54:17 +02:00
Kamil Mysliwiec
de6169e330 Merge pull request #10182 from Tony133/chore/update-abstract-method-on-http-adpater
chore(core): added types on the  methods abstract in http-adapter
2022-08-29 10:36:15 +02:00
Kamil Mysliwiec
6389a74605 Merge pull request #10171 from nestjs/dependabot/npm_and_yarn/core-js-3.25.0
chore(deps-dev): bump core-js from 3.24.1 to 3.25.0
2022-08-29 10:35:39 +02:00
dependabot[bot]
29c6147308 chore(deps-dev): bump apollo-server-core from 3.10.1 to 3.10.2
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.10.1 to 3.10.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.10.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-08-29 08:33:36 +00:00
dependabot[bot]
9ea0a5fba3 chore(deps): bump mongoose in /sample/14-mongoose-base
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.4.4 to 6.4.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.4.4...6.4.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 08:33:03 +00:00
Kamil Mysliwiec
68cae0e856 Merge pull request #10176 from nestjs/dependabot/npm_and_yarn/mongoose-6.5.3
chore(deps-dev): bump mongoose from 6.5.2 to 6.5.3
2022-08-29 10:31:53 +02:00
dependabot[bot]
9ecc8c130c chore(deps-dev): bump typescript from 4.7.4 to 4.8.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.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-08-29 08:31:45 +00:00
dependabot[bot]
d2ae9bb12e chore(deps): bump fastify from 4.5.2 to 4.5.3
Bumps [fastify](https://github.com/fastify/fastify) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.5.2...v4.5.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-08-29 08:31:43 +00:00
dependabot[bot]
1a13a87b02 chore(deps-dev): bump mongoose from 6.5.2 to 6.5.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.5.2 to 6.5.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.5.2...6.5.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-08-29 08:31:35 +00:00
Kamil Mysliwiec
73ef660839 Merge pull request #10172 from nestjs/dependabot/npm_and_yarn/types/node-18.7.13
chore(deps-dev): bump @types/node from 18.7.11 to 18.7.13
2022-08-29 10:29:58 +02:00
dependabot[bot]
0f0f971869 chore(deps): bump @fastify/formbody from 7.0.1 to 7.1.0
Bumps [@fastify/formbody](https://github.com/fastify/fastify-formbody) from 7.0.1 to 7.1.0.
- [Release notes](https://github.com/fastify/fastify-formbody/releases)
- [Commits](https://github.com/fastify/fastify-formbody/compare/v7.0.1...v7.1.0)

---
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-08-29 08:29:51 +00:00
Kamil Mysliwiec
3396b5eaaf Merge pull request #10181 from nestjs/dependabot/npm_and_yarn/sample/06-mongoose/mongoose-6.4.6
chore(deps): bump mongoose from 6.4.4 to 6.4.6 in /sample/06-mongoose
2022-08-29 10:28:56 +02:00
Kamil Mysliwiec
1be37c2234 Merge pull request #10186 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.10.2
chore(deps-dev): bump apollo-server-express from 3.10.1 to 3.10.2
2022-08-29 10:28:48 +02:00
Kamil Mysliwiec
be15712b0a Merge pull request #10187 from nestjs/dependabot/npm_and_yarn/fastify/multipart-7.1.1
chore(deps-dev): bump @fastify/multipart from 7.1.0 to 7.1.1
2022-08-29 10:26:53 +02:00
Kamil Mysliwiec
4398352ba1 Merge pull request #10188 from nestjs/dependabot/npm_and_yarn/typeorm-0.3.9
chore(deps-dev): bump typeorm from 0.3.7 to 0.3.9
2022-08-29 10:26:46 +02:00
Kamil Mysliwiec
76911d26d6 Merge pull request #10189 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.3.4
chore(deps-dev): bump graphql-tools from 8.3.3 to 8.3.4
2022-08-29 10:26:39 +02:00
Kamil Mysliwiec
99697a28a1 Merge pull request #10183 from Tony133/chore/update-import-mqtt-record-serializer
chore(microservice): update import in mqtt record serializer
2022-08-29 10:25:49 +02:00
dependabot[bot]
160f812652 chore(deps-dev): bump graphql-tools from 8.3.3 to 8.3.4
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.3.3 to 8.3.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.3.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-08-29 00:19:39 +00:00
dependabot[bot]
aa606aeae4 chore(deps-dev): bump typeorm from 0.3.7 to 0.3.9
Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.3.7 to 0.3.9.
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/0.3.9/CHANGELOG.md)
- [Commits](https://github.com/typeorm/typeorm/compare/0.3.7...0.3.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 00:15:15 +00:00
dependabot[bot]
facf27bd07 chore(deps-dev): bump @fastify/multipart from 7.1.0 to 7.1.1
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v7.1.0...v7.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 00:12:49 +00:00
dependabot[bot]
b8863dc64e chore(deps-dev): bump apollo-server-express from 3.10.1 to 3.10.2
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.10.1 to 3.10.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.10.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-08-29 00:08:59 +00:00
Tony133
74db4aa8cb chore(microservice): update import in mqtt record serializer 2022-08-27 12:38:09 +02:00
Tony133
3083c8f2b8 chore(core): added types on the methods abstract in http-adapter 2022-08-27 10:54:51 +02:00
dependabot[bot]
b91b14d0e5 chore(deps-dev): bump @types/node from 18.7.11 to 18.7.13
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.11 to 18.7.13.
- [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-08-26 08:17:12 +00:00
dependabot[bot]
01608f63c2 chore(deps): bump mongoose from 6.4.4 to 6.4.6 in /sample/06-mongoose
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.4.4 to 6.4.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.4.4...6.4.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 08:14:53 +00:00
Kamil Mysliwiec
0a4a040153 Merge pull request #10179 from ZungTa/sample(20-cache-manager)/add-dependency
fix(sample): add cache-manager dependency
2022-08-26 10:14:00 +02:00
ZungTa
619c9357c1 fix(sample): add cache-manager dependency 2022-08-26 14:05:22 +09:00
dependabot[bot]
8f8883b6eb chore(deps-dev): bump core-js from 3.24.1 to 3.25.0
Bumps [core-js](https://github.com/zloirock/core-js) from 3.24.1 to 3.25.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.24.1...v3.25.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-08-25 00:03:45 +00:00
Kamil Mysliwiec
78a8096187 Merge pull request #10170 from quangtran88/fix/10129-cannot-start-sample-31-users-application
fix: upgrade @nestjs/graphql to 10.0.19
2022-08-24 17:58:34 +02:00
Tran Quang
fcb499923d fix: upgrade @nestjs/graphql to 10.0.19 2022-08-24 20:56:52 +07:00
Kamil Mysliwiec
e9e573c07c Merge pull request #10138 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/apollo-server-core-3.10.1
chore(deps): bump apollo-server-core from 3.9.0 to 3.10.1 in /sample/31-graphql-federation-code-first/users-application
2022-08-24 13:03:56 +02:00
Kamil Mysliwiec
8c7037efb8 Merge pull request #10137 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/users-application/apollo-server-core-3.10.1
chore(deps): bump apollo-server-core from 3.9.0 to 3.10.1 in /sample/32-graphql-federation-schema-first/users-application
2022-08-24 13:03:34 +02:00
Kamil Mysliwiec
71b6d8c6df Merge pull request #10146 from nestjs/dependabot/npm_and_yarn/fastify-4.5.2
chore(deps): bump fastify from 4.4.0 to 4.5.2
2022-08-24 13:03:25 +02:00
Kamil Mysliwiec
cb1a41f49b Merge pull request #10141 from nestjs/dependabot/npm_and_yarn/sample/23-graphql-code-first/apollo-server-core-3.10.1
chore(deps): bump apollo-server-core from 3.9.0 to 3.10.1 in /sample/23-graphql-code-first
2022-08-24 13:03:19 +02:00
Kamil Mysliwiec
e65961b194 Merge pull request #10147 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.7.2
chore(deps-dev): bump @grpc/proto-loader from 0.7.0 to 0.7.2
2022-08-24 13:03:10 +02:00
Kamil Mysliwiec
bec2a5538c Merge pull request #10155 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.0.22
chore(deps-dev): bump @nestjs/graphql from 10.0.21 to 10.0.22
2022-08-24 13:03:03 +02:00
Kamil Mysliwiec
7dc6dd260a Merge pull request #10167 from nestjs/dependabot/npm_and_yarn/ioredis-5.2.3
chore(deps-dev): bump ioredis from 5.2.2 to 5.2.3
2022-08-24 13:02:51 +02:00
Kamil Mysliwiec
dfe2a8aa66 Merge pull request #10168 from nestjs/dependabot/npm_and_yarn/types/node-18.7.11
chore(deps-dev): bump @types/node from 18.7.10 to 18.7.11
2022-08-24 13:02:41 +02:00
dependabot[bot]
d1100b7a3b chore(deps-dev): bump @types/node from 18.7.10 to 18.7.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.10 to 18.7.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-24 00:06:25 +00:00
dependabot[bot]
4dbf939f7c chore(deps-dev): bump ioredis from 5.2.2 to 5.2.3
Bumps [ioredis](https://github.com/luin/ioredis) from 5.2.2 to 5.2.3.
- [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.2.2...v5.2.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-24 00:05:16 +00:00
dependabot[bot]
71271798f4 chore(deps-dev): bump @nestjs/graphql from 10.0.21 to 10.0.22
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.21 to 10.0.22.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.21...v10.0.22)

---
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-08-23 12:11:07 +00:00
dependabot[bot]
07e5d70239 chore(deps): bump fastify from 4.4.0 to 4.5.2
Bumps [fastify](https://github.com/fastify/fastify) from 4.4.0 to 4.5.2.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.4.0...v4.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 12:10:42 +00:00
dependabot[bot]
dba5f6be39 chore(deps-dev): bump @grpc/proto-loader from 0.7.0 to 0.7.2
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.7.0 to 0.7.2.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@0.7.0...@grpc/proto-loader@0.7.2)

---
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-08-23 12:10:36 +00:00
dependabot[bot]
b8b4288b7d chore(deps): bump apollo-server-core
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.1/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 12:07:23 +00:00
dependabot[bot]
6b10b25e45 chore(deps): bump apollo-server-core in /sample/23-graphql-code-first
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.1/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 12:07:18 +00:00
dependabot[bot]
5b839c239b chore(deps): bump apollo-server-core
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.1/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 12:07:13 +00:00
Kamil Mysliwiec
004c6742fd Merge pull request #10136 from nestjs/dependabot/npm_and_yarn/sample/12-graphql-schema-first/apollo-server-core-3.10.1
chore(deps): bump apollo-server-core from 3.9.0 to 3.10.1 in /sample/12-graphql-schema-first
2022-08-23 14:06:52 +02:00
dependabot[bot]
9dcdfeca59 chore(deps): bump apollo-server-core in /sample/12-graphql-schema-first
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.1/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 12:06:48 +00:00
Kamil Mysliwiec
00ced049d2 Merge pull request #10134 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/apollo-server-core-3.10.1
chore(deps): bump apollo-server-core from 3.9.0 to 3.10.1 in /sample/32-graphql-federation-schema-first/posts-application
2022-08-23 14:06:47 +02:00
Kamil Mysliwiec
1d74b1c09f Merge pull request #10135 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/apollo-server-core-3.10.1
chore(deps): bump apollo-server-core from 3.9.0 to 3.10.1 in /sample/31-graphql-federation-code-first/gateway
2022-08-23 14:06:37 +02:00
Kamil Mysliwiec
952286a8ce Merge pull request #10139 from nestjs/dependabot/npm_and_yarn/sample/22-graphql-prisma/apollo-server-core-3.10.1
chore(deps): bump apollo-server-core from 3.9.0 to 3.10.1 in /sample/22-graphql-prisma
2022-08-23 14:06:29 +02:00
Kamil Mysliwiec
d089a76b0b Merge pull request #10140 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/apollo-server-core-3.10.1
chore(deps): bump apollo-server-core from 3.9.0 to 3.10.1 in /sample/31-graphql-federation-code-first/posts-application
2022-08-23 14:06:25 +02:00
Kamil Mysliwiec
66572beb73 Merge pull request #10142 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/gateway/apollo-server-core-3.10.1
chore(deps): bump apollo-server-core from 3.9.0 to 3.10.1 in /sample/32-graphql-federation-schema-first/gateway
2022-08-23 14:06:15 +02:00
Kamil Mysliwiec
1121712da0 Merge pull request #10144 from nestjs/dependabot/npm_and_yarn/sample/33-graphql-mercurius/undici-5.9.1
chore(deps): bump undici from 5.8.0 to 5.9.1 in /sample/33-graphql-mercurius
2022-08-23 14:06:11 +02:00
Kamil Mysliwiec
09dcb6134e Merge pull request #10153 from micalevisk/style/fix-formatting
style: fix formatting
2022-08-23 14:05:55 +02:00
Kamil Mysliwiec
6b43e375e8 Merge pull request #10156 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.22
chore(deps-dev): bump @nestjs/apollo from 10.0.19 to 10.0.22
2022-08-23 14:05:38 +02:00
Kamil Mysliwiec
55e2ec77b8 Merge pull request #10160 from nestjs/dependabot/npm_and_yarn/types/node-18.7.10
chore(deps-dev): bump @types/node from 18.7.6 to 18.7.10
2022-08-23 14:05:34 +02:00
Kamil Mysliwiec
1d8d1ebe88 Merge pull request #10161 from nestjs/dependabot/npm_and_yarn/redis-4.3.0
chore(deps-dev): bump redis from 4.2.0 to 4.3.0
2022-08-23 14:05:27 +02:00
Kamil Mysliwiec
b9726385f6 Merge pull request #10162 from nestjs/dependabot/npm_and_yarn/light-my-request-5.5.1
chore(deps): bump light-my-request from 5.4.0 to 5.5.1
2022-08-23 14:05:13 +02:00
dependabot[bot]
bae8ac8544 chore(deps): bump light-my-request from 5.4.0 to 5.5.1
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.4.0 to 5.5.1.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.4.0...v5.5.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-08-23 00:09:17 +00:00
dependabot[bot]
d8d95e7887 chore(deps-dev): bump redis from 4.2.0 to 4.3.0
Bumps [redis](https://github.com/redis/node-redis) from 4.2.0 to 4.3.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/redis@4.2.0...redis@4.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 00:08:08 +00:00
dependabot[bot]
1cc8b907f7 chore(deps-dev): bump @types/node from 18.7.6 to 18.7.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.6 to 18.7.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 00:04:02 +00:00
dependabot[bot]
07ff4315a8 chore(deps-dev): bump @nestjs/apollo from 10.0.19 to 10.0.22
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.19 to 10.0.22.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.19...v10.0.22)

---
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-08-22 00:18:15 +00:00
Micael Levi L. Cavalcante
bc80ef6055 style: fix formatting on everything 2022-08-21 14:23:19 -04:00
Kamil Mysliwiec
985d794447 Merge pull request #10132 from TheKhanj/master
test(core): fix unresolved import
2022-08-19 10:14:00 +02:00
dependabot[bot]
7275ac62f5 chore(deps): bump undici in /sample/33-graphql-mercurius
Bumps [undici](https://github.com/nodejs/undici) from 5.8.0 to 5.9.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.8.0...v5.9.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 20:03:11 +00:00
Jay McDoniel
3cd1b1d95b fix: export cache module options token under easy name 2022-08-18 12:49:36 -07:00
dependabot[bot]
a8583a69e8 chore(deps): bump apollo-server-core
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.1/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 19:48:11 +00:00
dependabot[bot]
2d37cc52b7 chore(deps): bump apollo-server-core
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.1/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 19:47:51 +00:00
dependabot[bot]
3af26d95a5 chore(deps): bump apollo-server-core in /sample/22-graphql-prisma
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.1/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 19:47:42 +00:00
dependabot[bot]
c3a1bb914e chore(deps): bump apollo-server-core
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.1/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 19:47:27 +00:00
dependabot[bot]
ad33d12905 chore(deps): bump apollo-server-core
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.1/packages/apollo-server-core)

---
updated-dependencies:
- dependency-name: apollo-server-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 19:47:09 +00:00
Pooyan Khanjankhani
56e1ba528f test(core): fix unresolved import 2022-08-18 22:35:31 +04:30
Kamil Mysliwiec
ed45fac894 Merge pull request #10049 from nestjs/dependabot/npm_and_yarn/core-js-3.24.1
chore(deps-dev): bump core-js from 3.24.0 to 3.24.1
2022-08-18 09:32:43 +02:00
Kamil Mysliwiec
9c1fbbcd3f Merge pull request #10096 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.10.1
chore(deps-dev): bump apollo-server-core from 3.10.0 to 3.10.1
2022-08-18 09:32:15 +02:00
Kamil Mysliwiec
34624d2af4 Merge pull request #10125 from nestjs/dependabot/npm_and_yarn/types/node-18.7.6
chore(deps-dev): bump @types/node from 18.7.5 to 18.7.6
2022-08-18 09:32:11 +02:00
Kamil Mysliwiec
2f7f4a6c41 Merge pull request #10126 from nestjs/dependabot/npm_and_yarn/kafkajs-2.2.0
chore(deps-dev): bump kafkajs from 2.1.0 to 2.2.0
2022-08-18 09:31:54 +02:00
dependabot[bot]
1468ec3901 chore(deps-dev): bump kafkajs from 2.1.0 to 2.2.0
Bumps [kafkajs](https://github.com/tulios/kafkajs) from 2.1.0 to 2.2.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.1.0...v2.2.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-08-17 00:04:35 +00:00
dependabot[bot]
6d10be90cd chore(deps-dev): bump @types/node from 18.7.5 to 18.7.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.5 to 18.7.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-17 00:03:40 +00:00
Kamil Myśliwiec
697041fdfa chore(@nestjs) publish v9.0.11 release 2022-08-16 11:30:52 +02:00
Kamil Myśliwiec
1104b52047 Merge branch 'master' of https://github.com/nestjs/nest 2022-08-16 11:29:44 +02:00
Kamil Myśliwiec
a8fd7cdf03 chore(@nestjs) publish v9.0.10 release 2022-08-16 11:29:16 +02:00
Kamil Mysliwiec
e7efd1eb70 Merge pull request #10122 from nestjs/fix/10120-multiple-close-calls
fix(microservices): close underlying server once if already terminated
2022-08-16 11:19:44 +02:00
dependabot[bot]
2cd4212707 chore(deps-dev): bump core-js from 3.24.0 to 3.24.1
Bumps [core-js](https://github.com/zloirock/core-js) from 3.24.0 to 3.24.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.24.0...v3.24.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-08-16 09:14:55 +00:00
dependabot[bot]
5213506260 chore(deps-dev): bump apollo-server-core from 3.10.0 to 3.10.1
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.10.0 to 3.10.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.10.1/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-08-16 09:14:39 +00:00
Kamil Myśliwiec
692f399959 chore(): revert lerna version bump 2022-08-16 11:10:23 +02:00
Kamil Myśliwiec
394de8949c fix(microservices): close underlying server once if already terminated 2022-08-16 11:06:31 +02:00
Kamil Mysliwiec
3fa86001f3 Merge pull request #10097 from nestjs/dependabot/npm_and_yarn/mongoose-6.5.2
chore(deps-dev): bump mongoose from 6.5.1 to 6.5.2
2022-08-16 10:50:36 +02:00
Kamil Mysliwiec
2ba2519252 Merge pull request #10099 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.10.1
chore(deps-dev): bump apollo-server-express from 3.10.0 to 3.10.1
2022-08-16 10:50:31 +02:00
Kamil Mysliwiec
64f8ae2ec2 Merge pull request #10102 from nestjs/dependabot/npm_and_yarn/amqp-connection-manager-4.1.6
chore(deps-dev): bump amqp-connection-manager from 4.1.5 to 4.1.6
2022-08-16 10:50:27 +02:00
Kamil Mysliwiec
b91a373fcc Merge pull request #10103 from nestjs/dependabot/npm_and_yarn/nestjs/typeorm-9.0.1
chore(deps-dev): bump @nestjs/typeorm from 9.0.0 to 9.0.1
2022-08-16 10:50:23 +02:00
Kamil Mysliwiec
b8cd4574d9 Merge pull request #10116 from nestjs/dependabot/npm_and_yarn/imports-loader-4.0.1
chore(deps-dev): bump imports-loader from 4.0.0 to 4.0.1
2022-08-16 10:50:15 +02:00
Kamil Mysliwiec
b3165eb5f4 Merge pull request #10118 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.6.10
chore(deps-dev): bump @grpc/grpc-js from 1.6.8 to 1.6.10
2022-08-16 10:49:44 +02:00
Kamil Mysliwiec
fbf24a6ffe Merge pull request #10119 from nestjs/dependabot/npm_and_yarn/types/node-18.7.5
chore(deps-dev): bump @types/node from 18.7.1 to 18.7.5
2022-08-16 10:49:40 +02:00
Kamil Mysliwiec
ceec5f0ba1 Merge pull request #10106 from jmcdo29/fix/continue-on-stream-cancel
fix: add a check if the res is destroyed before sending response
2022-08-16 10:26:56 +02:00
Kamil Mysliwiec
c84ea3e11d Merge pull request #10110 from gilre/gilre-fix/grpc-client-serialize-error
fix(microservice): grpc-client serialize error
2022-08-16 10:25:58 +02:00
Kamil Mysliwiec
a1829bc3c4 Merge pull request #10108 from TheKhanj/master
chore(): fix typo in docs
2022-08-16 10:08:42 +02:00
dependabot[bot]
da2059c7ef chore(deps-dev): bump @types/node from 18.7.1 to 18.7.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.1 to 18.7.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-16 00:09:28 +00:00
dependabot[bot]
fe1abd2d6b chore(deps-dev): bump @grpc/grpc-js from 1.6.8 to 1.6.10
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.6.8 to 1.6.10.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/commits/@grpc/grpc-js@1.6.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-08-16 00:05:14 +00:00
dependabot[bot]
8824de4d2a chore(deps-dev): bump imports-loader from 4.0.0 to 4.0.1
Bumps [imports-loader](https://github.com/webpack-contrib/imports-loader) from 4.0.0 to 4.0.1.
- [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/v4.0.0...v4.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 00:14:46 +00:00
ZanMinKian
930161e83e feat(common): allow to serialize plain object 2022-08-14 20:47:18 +00:00
ZanMinKian
a3b8256d60 perf(core): optimize reflector 2022-08-14 19:21:29 +00:00
Jay McDoniel
6d0595ba83 chore: change block comment to inline 2022-08-14 08:44:40 -07:00
Jay McDoniel
78fc6bebc0 test: use url class instead of request options 2022-08-13 19:15:39 -07:00
gil
1cebb6dbb5 fix(microservice): grpc-client serialize error
closes #10104
2022-08-14 00:05:37 +03:00
Pooyan Khanjankhani
f0ebeeb7bc chore(): fix typo in docs 2022-08-13 13:41:00 +04:30
Jay McDoniel
e66423b983 test: split abrupt stop test into a utils file
As we make use of the `http` module instead of axios or supertest
we have tomake use of some rather low level code. Using this utils
file we can have clearer names of what is happening in each request
to make it easier to follow what's happening. I've also added in some
comments about why each part is the way it is for clarity.
2022-08-12 15:02:40 -07:00
Jay McDoniel
e82bdd4dd4 test: add test for res.destroyed handler
I had to use node's `http` module for this because
I could not get `supertest`s `abort` method to
work properly. With the raw `http` module I was able
to use `req.destroy()` to cancel the request early.
We now see the error from a premature closure, but are
still able to make extra requests afterwards
2022-08-12 13:41:34 -07:00
Jay McDoniel
3fb6771ea6 fix: add a check if the res is destroyed before sending response
In the case of using `curl` or a similar tool on the command line,
or if the client decides to end the request for a streamed file early
without the check we would end up causing a server crash. Now, we will
just not send the response as the client has already decided how to
move on.

fix: #10105
2022-08-12 09:25:17 -07:00
dependabot[bot]
74b198c94f chore(deps-dev): bump @nestjs/typeorm from 9.0.0 to 9.0.1
Bumps [@nestjs/typeorm](https://github.com/nestjs/typeorm) from 9.0.0 to 9.0.1.
- [Release notes](https://github.com/nestjs/typeorm/releases)
- [Changelog](https://github.com/nestjs/typeorm/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/typeorm/compare/9.0.0...9.0.1)

---
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-08-12 00:09:15 +00:00
dependabot[bot]
f50740e1cb chore(deps-dev): bump amqp-connection-manager from 4.1.5 to 4.1.6
Bumps [amqp-connection-manager](https://github.com/jwalton/node-amqp-connection-manager) from 4.1.5 to 4.1.6.
- [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.5...v4.1.6)

---
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-08-12 00:04:29 +00:00
Kamil Myśliwiec
7389070b86 chore(@nestjs) publish v9.0.9 release 2022-08-11 15:28:35 +02:00
dependabot[bot]
8db9807bec chore(deps-dev): bump mongoose from 6.5.1 to 6.5.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.5.1 to 6.5.2.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.5.1...6.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-11 13:19:56 +00:00
dependabot[bot]
0572bb965c chore(deps-dev): bump apollo-server-express from 3.10.0 to 3.10.1
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.10.0 to 3.10.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.10.1/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-08-11 13:19:23 +00:00
Kamil Myśliwiec
0c7b5c58ad chore(): update package specific readmes 2022-08-11 15:14:42 +02:00
Kamil Mysliwiec
47fa91e619 Merge pull request #10082 from nestjs/dependabot/npm_and_yarn/types/chai-4.3.3
chore(deps-dev): bump @types/chai from 4.3.1 to 4.3.3
2022-08-11 15:13:07 +02:00
Kamil Mysliwiec
4564abd8d5 Merge pull request #10077 from nestjs/dependabot/npm_and_yarn/amqplib-0.10.2
chore(deps-dev): bump amqplib from 0.10.1 to 0.10.2
2022-08-11 15:13:02 +02:00
Kamil Mysliwiec
70603209aa Merge pull request #10076 from nestjs/dependabot/npm_and_yarn/light-my-request-5.4.0
chore(deps): bump light-my-request from 5.3.0 to 5.4.0
2022-08-11 15:12:57 +02:00
Kamil Mysliwiec
583e52b124 Merge pull request #10072 from micalevisk/fix/issue-9893
fix(core): when debug-repl has duplicated providers
2022-08-11 15:11:38 +02:00
dependabot[bot]
e6ad76f09d chore(deps): bump light-my-request from 5.3.0 to 5.4.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.3.0...v5.4.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-08-11 07:30:34 +00:00
dependabot[bot]
31d8b24f36 chore(deps-dev): bump amqplib from 0.10.1 to 0.10.2
Bumps [amqplib](https://github.com/amqp-node/amqplib) from 0.10.1 to 0.10.2.
- [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/compare/v0.10.1...v0.10.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-11 07:30:07 +00:00
Kamil Mysliwiec
d8b1a3a8af Merge pull request #10085 from ZanMinKian/zmj-optimize_class_serializer_interceptor
refactor(common): optimize `ClassSerializerInterceptor`
2022-08-11 09:25:47 +02:00
Kamil Mysliwiec
3f7a7402f3 Merge pull request #10074 from nestjs/dependabot/npm_and_yarn/fastify/view-7.1.0
chore(deps-dev): bump @fastify/view from 7.0.0 to 7.1.0
2022-08-11 09:25:25 +02:00
Kamil Mysliwiec
0bb57b1d17 Merge pull request #10080 from nestjs/dependabot/npm_and_yarn/fastify-4.4.0
chore(deps): bump fastify from 4.3.0 to 4.4.0
2022-08-11 09:25:14 +02:00
Kamil Mysliwiec
f98e6b5c84 Merge pull request #10083 from nestjs/dependabot/npm_and_yarn/lerna-5.4.0
chore(deps-dev): bump lerna from 5.3.0 to 5.4.0
2022-08-11 09:25:02 +02:00
Kamil Mysliwiec
23e78afd5e Merge pull request #10089 from nestjs/dependabot/npm_and_yarn/amqp-connection-manager-4.1.5
chore(deps-dev): bump amqp-connection-manager from 4.1.3 to 4.1.5
2022-08-11 09:24:57 +02:00
Kamil Mysliwiec
6c26203bfb Merge pull request #10093 from nestjs/dependabot/npm_and_yarn/types/node-18.7.1
chore(deps-dev): bump @types/node from 18.6.4 to 18.7.1
2022-08-11 09:24:51 +02:00
Kamil Mysliwiec
9fc154d157 Merge pull request #10094 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.3.3
chore(deps-dev): bump graphql-tools from 8.3.1 to 8.3.3
2022-08-11 09:24:39 +02:00
dependabot[bot]
69f456347f chore(deps-dev): bump graphql-tools from 8.3.1 to 8.3.3
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.3.1 to 8.3.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.3.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-08-11 00:16:11 +00:00
dependabot[bot]
1e3bebe8cf chore(deps-dev): bump @types/node from 18.6.4 to 18.7.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.6.4 to 18.7.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-11 00:12:03 +00:00
dependabot[bot]
5ed7de137a chore(deps-dev): bump amqp-connection-manager from 4.1.3 to 4.1.5
Bumps [amqp-connection-manager](https://github.com/jwalton/node-amqp-connection-manager) from 4.1.3 to 4.1.5.
- [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.3...v4.1.5)

---
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-08-10 00:07:15 +00:00
Micael Levi (@micalevisk)
4261a20076 fix(core): allow registering providers with same name 2022-08-09 11:19:06 -04:00
ZanMinKian
164ed6f859 refactor(common): optimize ClassSerializerInterceptor 2022-08-09 10:33:51 +00:00
dependabot[bot]
62cefffc95 chore(deps-dev): bump lerna from 5.3.0 to 5.4.0
Bumps [lerna](https://github.com/lerna/lerna/tree/HEAD/core/lerna) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/lerna/lerna/releases)
- [Changelog](https://github.com/lerna/lerna/blob/main/core/lerna/CHANGELOG.md)
- [Commits](https://github.com/lerna/lerna/commits/v5.4.0/core/lerna)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-09 00:11:58 +00:00
dependabot[bot]
889ac96b9d chore(deps-dev): bump @types/chai from 4.3.1 to 4.3.3
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.1 to 4.3.3.
- [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-08-09 00:09:16 +00:00
dependabot[bot]
8d78aea1c8 chore(deps): bump fastify from 4.3.0 to 4.4.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.3.0...v4.4.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-08-09 00:03:55 +00:00
dependabot[bot]
1dbd0bf230 chore(deps-dev): bump @fastify/view from 7.0.0 to 7.1.0
Bumps [@fastify/view](https://github.com/fastify/point-of-view) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/compare/v7.0.0...v7.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 00:06:51 +00:00
Micael Levi (@micalevisk)
dff6b0f591 feat(core): display string tokens with double quotes on repl 2022-08-06 11:22:20 -04:00
Kamil Mysliwiec
6363cbe29d Merge pull request #10063 from nestjs/dependabot/npm_and_yarn/mongoose-6.5.1
chore(deps-dev): bump mongoose from 6.5.0 to 6.5.1
2022-08-05 08:41:49 +02:00
Kamil Mysliwiec
2bc08badfa Merge pull request #10062 from nestjs/dependabot/npm_and_yarn/fastify/cors-8.1.0
chore(deps): bump @fastify/cors from 8.0.0 to 8.1.0
2022-08-05 08:41:39 +02:00
Kamil Mysliwiec
68b561182c Merge pull request #10071 from nestjs/dependabot/npm_and_yarn/types/node-18.6.4
chore(deps-dev): bump @types/node from 18.6.3 to 18.6.4
2022-08-05 08:38:28 +02:00
dependabot[bot]
79db520960 chore(deps-dev): bump @types/node from 18.6.3 to 18.6.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.6.3 to 18.6.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-05 00:04:39 +00:00
dependabot[bot]
5b9dd57697 chore(deps-dev): bump mongoose from 6.5.0 to 6.5.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.5.0 to 6.5.1.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.5.0...6.5.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-04 00:11:45 +00:00
dependabot[bot]
cbf7194a43 chore(deps): bump @fastify/cors from 8.0.0 to 8.1.0
Bumps [@fastify/cors](https://github.com/fastify/fastify-cors) from 8.0.0 to 8.1.0.
- [Release notes](https://github.com/fastify/fastify-cors/releases)
- [Commits](https://github.com/fastify/fastify-cors/compare/v8.0.0...v8.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-04 00:06:18 +00:00
Kamil Myśliwiec
721372f0c6 chore(@nestjs) publish v9.0.8 release 2022-08-03 09:25:52 +02:00
Kamil Myśliwiec
f9a4c646ac chore(): update readme 2022-08-03 09:24:05 +02:00
Kamil Mysliwiec
b05115d57b Merge pull request #10053 from wodCZ/fix/repl-fastify
refactor(repl): use INestApplicationContext instead of full INestApplication
2022-08-03 09:23:21 +02:00
Kamil Mysliwiec
31139dba9c Merge pull request #10048 from nestjs/dependabot/npm_and_yarn/fastify/static-6.5.0
chore(deps-dev): bump @fastify/static from 6.4.1 to 6.5.0
2022-08-03 09:22:54 +02:00
Kamil Mysliwiec
2511e12487 Merge pull request #10050 from nestjs/dependabot/npm_and_yarn/types/node-18.6.3
chore(deps-dev): bump @types/node from 18.6.2 to 18.6.3
2022-08-03 09:22:36 +02:00
Martin Janeček
b23af7a873 fix(repl): use ApplicationContext for repl 2022-08-01 14:31:35 +02:00
Martin Janeček
adff37962b fix(repl): add optional httpAdapter argument
ref #10052
2022-08-01 14:01:21 +02:00
dependabot[bot]
bacea71c58 chore(deps-dev): bump @types/node from 18.6.2 to 18.6.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.6.2 to 18.6.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-08-01 00:32:56 +00:00
dependabot[bot]
456b837840 chore(deps-dev): bump @fastify/static from 6.4.1 to 6.5.0
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 6.4.1 to 6.5.0.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v6.4.1...v6.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 00:25:08 +00:00
Kamil Mysliwiec
81df0dde08 Update Readme.md 2022-07-29 10:07:47 +02:00
Kamil Mysliwiec
69d856cc47 Merge pull request #10044 from nestjs/dependabot/npm_and_yarn/types/node-18.6.2
chore(deps-dev): bump @types/node from 18.6.1 to 18.6.2
2022-07-29 09:03:08 +02:00
Kamil Mysliwiec
889eca1e4c Merge pull request #10043 from Tony133/chore/update-tools-gulp-tasks
chore(tools-gulp-task): remove unused declarations
2022-07-29 09:03:01 +02:00
dependabot[bot]
09d643370b chore(deps-dev): bump @types/node from 18.6.1 to 18.6.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.6.1 to 18.6.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-29 00:06:50 +00:00
Tony133
4a7f2215d4 chore(): remove unused declarations 2022-07-28 23:02:41 +02:00
Kamil Myśliwiec
0ca63a9052 chore(@nestjs) publish v9.0.7 release 2022-07-28 16:05:17 +02:00
Kamil Mysliwiec
14473cc20f Merge pull request #10042 from nestjs/feat/rmq-max-connection-attempts
feat(microservices): add "maxConnectionAttempts" option to RMQ, hide urls log
2022-07-28 16:02:20 +02:00
Kamil Mysliwiec
a93f57a3c0 Merge pull request #8952 from rikapo/fix-readme-jp-kr
chore: fix Readme.md translation
2022-07-28 15:50:46 +02:00
Kamil Myśliwiec
ddbba920cd feat(microservices): add max connections attempts to rmq, hide urls 2022-07-28 14:34:02 +02:00
Kamil Mysliwiec
9682ffd367 Merge pull request #10028 from nestjs/dependabot/npm_and_yarn/mongoose-6.5.0
chore(deps-dev): bump mongoose from 6.4.7 to 6.5.0
2022-07-28 13:55:48 +02:00
Kamil Mysliwiec
62c69cbbf4 Merge pull request #10027 from nestjs/dependabot/npm_and_yarn/amqplib-0.10.1
chore(deps-dev): bump amqplib from 0.10.0 to 0.10.1
2022-07-28 13:55:35 +02:00
Kamil Myśliwiec
7edb26e429 chore(@nestjs) publish v9.0.6 release 2022-07-28 11:23:11 +02:00
Kamil Mysliwiec
e20f9f5c34 Merge pull request #10033 from nestjs/dependabot/npm_and_yarn/graphql-tools-8.3.1
chore(deps-dev): bump graphql-tools from 8.3.0 to 8.3.1
2022-07-28 11:20:52 +02:00
Kamil Mysliwiec
9516eb8cd2 Merge pull request #10035 from nestjs/dependabot/npm_and_yarn/sample/05-sql-typeorm/terser-5.14.2
chore(deps): bump terser from 5.14.0 to 5.14.2 in /sample/05-sql-typeorm
2022-07-28 11:15:01 +02:00
Kamil Mysliwiec
f738f5a4b1 Merge pull request #10036 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/07-sequelize
2022-07-28 11:14:54 +02:00
Kamil Mysliwiec
98931d1407 Merge pull request #10037 from nestjs/dependabot/npm_and_yarn/sample/04-grpc/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/04-grpc
2022-07-28 11:14:49 +02:00
Kamil Mysliwiec
fab19b55a6 Merge pull request #10038 from nestjs/dependabot/npm_and_yarn/sample/06-mongoose/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/06-mongoose
2022-07-28 11:14:45 +02:00
Kamil Mysliwiec
4eb76dc59d Merge pull request #10039 from nestjs/dependabot/npm_and_yarn/sample/02-gateways/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/02-gateways
2022-07-28 11:14:40 +02:00
Kamil Mysliwiec
eadd7810a5 Merge pull request #10040 from nestjs/dependabot/npm_and_yarn/sample/03-microservices/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/03-microservices
2022-07-28 11:14:35 +02:00
Kamil Mysliwiec
0f3f974ed5 Merge pull request #10041 from nestjs/dependabot/npm_and_yarn/sample/01-cats-app/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/01-cats-app
2022-07-28 11:14:31 +02:00
Kamil Mysliwiec
2979ea1993 Merge pull request #10025 from thiagomini/fix/10017-parse-file-pipe-builder
Fix/10017 parse file pipe builder
2022-07-28 11:14:08 +02:00
dependabot[bot]
5602a12b78 chore(deps-dev): bump amqplib from 0.10.0 to 0.10.1
Bumps [amqplib](https://github.com/amqp-node/amqplib) from 0.10.0 to 0.10.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/compare/v0.10.0...v0.10.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 09:13:32 +00:00
Kamil Mysliwiec
7c40213f4a Merge pull request #10022 from bangbang93/pass-options-to-rmq-deserialize
fix(microservices): pass options to rmq deserialize
2022-07-28 11:13:25 +02:00
dependabot[bot]
710f0908e1 chore(deps-dev): bump mongoose from 6.4.7 to 6.5.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.4.7 to 6.5.0.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.4.7...6.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 09:13:02 +00:00
Kamil Mysliwiec
a1aeba68db Merge pull request #9996 from jDzames/fix/kafka-parser-retries
fix(microservices): prevent kafka parser from modifying received message
2022-07-28 11:12:25 +02:00
dependabot[bot]
72a2805f5f chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/01-cats-app
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/compare/v5.14.1...v5.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 09:12:19 +00:00
dependabot[bot]
c56cf83205 chore(deps): bump terser in /sample/03-microservices
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/compare/v5.14.1...v5.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 09:12:13 +00:00
Kamil Mysliwiec
efc48edd11 Update packages/microservices/helpers/kafka-parser.ts 2022-07-28 11:12:08 +02:00
dependabot[bot]
b0b7a9cce5 chore(deps-dev): bump graphql-tools from 8.3.0 to 8.3.1
Bumps [graphql-tools](https://github.com/ardatan/graphql-tools/tree/HEAD/packages/graphql-tools) from 8.3.0 to 8.3.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.3.1/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-07-28 09:12:01 +00:00
dependabot[bot]
c78a556f51 chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/02-gateways
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/compare/v5.14.1...v5.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 09:11:58 +00:00
dependabot[bot]
982c37c1f6 chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/06-mongoose
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/compare/v5.10.0...v5.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 09:11:55 +00:00
dependabot[bot]
2e137cc8e0 chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/04-grpc
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/compare/v5.10.0...v5.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 09:11:46 +00:00
dependabot[bot]
3338ff21e5 chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/07-sequelize
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/compare/v5.14.1...v5.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 09:11:43 +00:00
dependabot[bot]
44e1610791 chore(deps): bump terser from 5.14.0 to 5.14.2 in /sample/05-sql-typeorm
Bumps [terser](https://github.com/terser/terser) from 5.14.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/compare/v5.14.0...v5.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 09:11:41 +00:00
Kamil Mysliwiec
5332fb2fad Merge pull request #9977 from nestjs/dependabot/npm_and_yarn/sample/18-context/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/18-context
2022-07-28 11:11:36 +02:00
Kamil Mysliwiec
516a929a2f Merge pull request #9978 from nestjs/dependabot/npm_and_yarn/sample/16-gateways-ws/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/16-gateways-ws
2022-07-28 11:11:31 +02:00
Kamil Mysliwiec
f432ae6b0b Merge pull request #9979 from nestjs/dependabot/npm_and_yarn/sample/17-mvc-fastify/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/17-mvc-fastify
2022-07-28 11:11:26 +02:00
Kamil Mysliwiec
da3ef72948 Merge pull request #9980 from nestjs/dependabot/npm_and_yarn/sample/13-mongo-typeorm/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/13-mongo-typeorm
2022-07-28 11:11:19 +02:00
Kamil Mysliwiec
f8055dff1d Merge pull request #9981 from nestjs/dependabot/npm_and_yarn/sample/15-mvc/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/15-mvc
2022-07-28 11:11:12 +02:00
Kamil Mysliwiec
3bc292a77a Merge pull request #9982 from nestjs/dependabot/npm_and_yarn/sample/11-swagger/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/11-swagger
2022-07-28 11:11:05 +02:00
Kamil Mysliwiec
ca106e7d19 Merge pull request #9983 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/14-mongoose-base
2022-07-28 11:10:55 +02:00
Kamil Mysliwiec
9aa011f216 Merge pull request #9984 from nestjs/dependabot/npm_and_yarn/sample/12-graphql-schema-first/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/12-graphql-schema-first
2022-07-28 11:10:49 +02:00
Kamil Mysliwiec
e4083483dc Merge pull request #9985 from nestjs/dependabot/npm_and_yarn/sample/08-webpack/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/08-webpack
2022-07-28 11:10:43 +02:00
Kamil Mysliwiec
0c7dffab7e Merge pull request #9986 from nestjs/dependabot/npm_and_yarn/sample/10-fastify/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/10-fastify
2022-07-28 11:10:39 +02:00
Kamil Mysliwiec
23fa0f9859 Merge pull request #9935 from random42/feature/configurable-module-inject-providers
feat(common): pass options to nested async modules
2022-07-28 11:09:53 +02:00
Kamil Mysliwiec
7222cd1a42 Merge pull request #9836 from micalevisk/feat/issue-9107
feat(core): add option to disable logs on `LazyModuleLoader#load`
2022-07-28 11:08:54 +02:00
Kamil Mysliwiec
bc1f8b7683 Merge pull request #10034 from nestjs/dependabot/npm_and_yarn/lerna-5.3.0
chore(deps-dev): bump lerna from 2.11.0 to 5.3.0
2022-07-28 11:04:42 +02:00
dependabot[bot]
2c76b20a87 chore(deps-dev): bump lerna from 2.11.0 to 5.3.0
Bumps [lerna](https://github.com/lerna/lerna/tree/HEAD/core/lerna) from 2.11.0 to 5.3.0.
- [Release notes](https://github.com/lerna/lerna/releases)
- [Changelog](https://github.com/lerna/lerna/blob/main/core/lerna/CHANGELOG.md)
- [Commits](https://github.com/lerna/lerna/commits/v5.3.0/core/lerna)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 00:06:20 +00:00
Thiago Martins
79041c11c6 refactor(common): change parse file pipe options
change ParseFilePipe option to use fileIsRequired instead of fileIsOptional
2022-07-27 11:34:29 -03:00
Kamil Mysliwiec
08877a33ac Merge pull request #10026 from Tony133/chore/update-router-explorer
chore(router-explorer): remove unused declarations
2022-07-27 08:39:21 +02:00
bangbang93
0ec9cb7261 test(microservice): revert change on tests 2022-07-27 11:54:48 +08:00
bangbang93
b29299bc16 fix(microservice): pass options to rmq deserialize 2022-07-27 11:41:25 +08:00
Tony133
b424b37db7 chore(): remove unused declarations 2022-07-26 22:46:06 +02:00
Thiago Martins
72bb251465 test(common): reword test blocks 2022-07-26 16:50:58 -03:00
Thiago Martins
a436faa97f refactor(sample/29): remove send method 2022-07-26 16:50:22 -03:00
Thiago Martins
f45599d64c test(sample): add required file test
ensure sample 29 controller throws an error when a file is required but none is given
2022-07-26 16:26:09 -03:00
Thiago Martins
e9aa1ca639 test(common): add test for implicit values
ensure ParseFilePipe throws an error if isFileOptional was not explicitly provided and there is no file
2022-07-26 16:20:01 -03:00
Thiago Martins
091252807c feat(common): add required file validation
ensure ParseFilePipe throws an error when a file is required but was not passed
2022-07-26 16:13:58 -03:00
Thiago Martins
657428e9f3 test(sample): add optional file test
ensure a route with ParseFilePipe and fileIsOptional set to true does not throw when no file is provided
2022-07-26 15:50:49 -03:00
Thiago Martins
d309fd85d9 feat(common): optional parse file pipe
ensure ParseFilePipe returns undefined when file is optional
2022-07-26 15:39:47 -03:00
Kamil Mysliwiec
8df17bb97d Merge pull request #10023 from nestjs/dependabot/npm_and_yarn/light-my-request-5.3.0
chore(deps): bump light-my-request from 5.2.0 to 5.3.0
2022-07-26 13:29:26 +02:00
dependabot[bot]
590f276dd4 chore(deps): bump light-my-request from 5.2.0 to 5.3.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.2.0...v5.3.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-07-26 10:56:07 +00:00
Kamil Mysliwiec
dd85cd8cd5 Merge pull request #10024 from nestjs/dependabot/npm_and_yarn/core-js-3.24.0
chore(deps-dev): bump core-js from 3.23.5 to 3.24.0
2022-07-26 12:51:22 +02:00
Kamil Mysliwiec
de916589be Merge pull request #9993 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.19
chore(deps-dev): bump @nestjs/apollo from 10.0.17 to 10.0.19
2022-07-26 12:51:17 +02:00
Kamil Mysliwiec
0799bf3262 Merge pull request #9994 from nestjs/dependabot/npm_and_yarn/types/sinon-10.0.13
chore(deps-dev): bump @types/sinon from 10.0.12 to 10.0.13
2022-07-26 12:45:33 +02:00
dependabot[bot]
ba3bb10756 chore(deps-dev): bump core-js from 3.23.5 to 3.24.0
Bumps [core-js](https://github.com/zloirock/core-js) from 3.23.5 to 3.24.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.23.5...v3.24.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-07-26 09:22:51 +00:00
dependabot[bot]
cfcbaa0304 chore(deps-dev): bump @nestjs/apollo from 10.0.17 to 10.0.19
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.17 to 10.0.19.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.17...v10.0.19)

---
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-07-26 09:20:43 +00:00
dependabot[bot]
2211fe07e2 chore(deps-dev): bump @types/sinon from 10.0.12 to 10.0.13
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.12 to 10.0.13.
- [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-26 09:20:30 +00:00
Kamil Mysliwiec
e502306587 Merge pull request #9997 from nestjs/dependabot/npm_and_yarn/sample/33-graphql-mercurius/undici-5.8.0
chore(deps): bump undici from 5.6.1 to 5.8.0 in /sample/33-graphql-mercurius
2022-07-26 11:17:22 +02:00
Kamil Mysliwiec
e78ee369ac Merge pull request #10000 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.6.8
chore(deps-dev): bump @grpc/grpc-js from 1.6.7 to 1.6.8
2022-07-26 11:17:18 +02:00
Kamil Mysliwiec
07968a2b92 Merge pull request #10001 from nestjs/dependabot/npm_and_yarn/fastify-4.3.0
chore(deps): bump fastify from 4.2.1 to 4.3.0
2022-07-26 11:17:13 +02:00
Kamil Mysliwiec
f00ca25d1a Merge pull request #10011 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-10.0.21
chore(deps-dev): bump @nestjs/graphql from 10.0.18 to 10.0.21
2022-07-26 11:15:33 +02:00
Kamil Mysliwiec
93d10b0e63 Merge pull request #10012 from nestjs/dependabot/npm_and_yarn/ioredis-5.2.2
chore(deps-dev): bump ioredis from 5.2.1 to 5.2.2
2022-07-26 11:15:29 +02:00
Kamil Mysliwiec
27d66e485d Merge pull request #10013 from nestjs/dependabot/npm_and_yarn/fastify/static-6.4.1
chore(deps-dev): bump @fastify/static from 6.4.0 to 6.4.1
2022-07-26 11:15:25 +02:00
Kamil Mysliwiec
8db8c3bacf Merge pull request #10020 from nestjs/dependabot/npm_and_yarn/types/node-18.6.1
chore(deps-dev): bump @types/node from 18.0.6 to 18.6.1
2022-07-26 11:15:13 +02:00
Kamil Mysliwiec
e93becc6b8 Merge pull request #10021 from nestjs/dependabot/npm_and_yarn/mongoose-6.4.7
chore(deps-dev): bump mongoose from 6.4.5 to 6.4.7
2022-07-26 11:14:55 +02:00
Kamil Mysliwiec
7033c009f9 Merge pull request #10019 from Tony133/chore/update-express-adapter
chore(express-adapter): remove unused declarations
2022-07-26 11:14:20 +02:00
Kamil Mysliwiec
f6f8934713 Merge pull request #10007 from TheKhanj/master
chore(common): remove unused import statement
2022-07-26 11:03:19 +02:00
bangbang93
bfbcd7bb80 fix(microservices): pass options to rmq deserialize 2022-07-26 15:46:18 +08:00
dependabot[bot]
a3ac8f6c09 chore(deps-dev): bump mongoose from 6.4.5 to 6.4.7
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.4.5 to 6.4.7.
- [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.5...6.4.7)

---
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-26 00:09:21 +00:00
dependabot[bot]
f9dcaec1e0 chore(deps-dev): bump @types/node from 18.0.6 to 18.6.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.0.6 to 18.6.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-26 00:07:22 +00:00
Tony133
ca72d2eb7a chore(): remove unused declarations 2022-07-25 23:15:44 +02:00
dependabot[bot]
8fd3f5fe01 chore(deps-dev): bump @fastify/static from 6.4.0 to 6.4.1
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v6.4.0...v6.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 00:28:37 +00:00
dependabot[bot]
09e2ca22b1 chore(deps-dev): bump ioredis from 5.2.1 to 5.2.2
Bumps [ioredis](https://github.com/luin/ioredis) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/luin/ioredis/releases)
- [Changelog](https://github.com/luin/ioredis/blob/main/CHANGELOG.md)
- [Commits](https://github.com/luin/ioredis/compare/v5.2.1...v5.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 00:26:19 +00:00
dependabot[bot]
473542a193 chore(deps-dev): bump @nestjs/graphql from 10.0.18 to 10.0.21
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 10.0.18 to 10.0.21.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.18...v10.0.21)

---
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-25 00:23:30 +00:00
Pooyan Khanjankhani
f09c92c939 chore(common): bring back CUSTOM_ROUTE_AGRS_METADATA and mark it as deprecated 2022-07-24 23:29:13 +04:30
Pooyan Khanjankhani
607654509b chore(): fix constant variable name typo
Variable `ROUTE_ARGS_METADATA` was misspelled as `ROUTE_AGRS_METADATA`.
2022-07-24 18:59:46 +04:30
Pooyan Khanjankhani
712deba638 chore(common): remove unused commit statement 2022-07-24 18:27:00 +04:30
Pooyan Khanjankhani
0962b5afc9 chore(common): remove unused import statement 2022-07-24 18:14:48 +04:30
dependabot[bot]
cc4a7e775f chore(deps): bump fastify from 4.2.1 to 4.3.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.2.1...v4.3.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-07-22 00:08:14 +00:00
dependabot[bot]
7f001e9fd0 chore(deps-dev): bump @grpc/grpc-js from 1.6.7 to 1.6.8
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.6.7 to 1.6.8.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/commits)

---
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-07-22 00:05:22 +00:00
dependabot[bot]
16ca8434d7 chore(deps): bump undici in /sample/33-graphql-mercurius
Bumps [undici](https://github.com/nodejs/undici) from 5.6.1 to 5.8.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.6.1...v5.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-21 21:07:01 +00:00
Jozef Dzama
f83e830a4b fix(microservices): kafka parser stops modifying received message 2022-07-21 13:05:55 +02:00
Kamil Mysliwiec
b98e4d2b1f Merge pull request #9991 from Tony133/chore/update-kafka-interface
chore(): improvement on kafka interface
2022-07-21 09:52:57 +02:00
Micael Levi (@micalevisk)
16a121cdd7 refactor(core): rename disableLogs to logger 2022-07-20 19:01:22 -04:00
Tony133
1dab85172d chore(): improvement 2022-07-20 21:55:41 +02:00
dependabot[bot]
772ae768a4 chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/10-fastify
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:01:38 +00:00
dependabot[bot]
a8e9a804bb chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/08-webpack
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:01:22 +00:00
dependabot[bot]
8b080d05a2 chore(deps): bump terser in /sample/12-graphql-schema-first
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:01:10 +00:00
dependabot[bot]
c6de789af2 chore(deps): bump terser in /sample/14-mongoose-base
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:01:06 +00:00
dependabot[bot]
bfff9bf7ad chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/11-swagger
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:01:02 +00:00
dependabot[bot]
13f457eee7 chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/15-mvc
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:00:46 +00:00
dependabot[bot]
5c3c88bb2d chore(deps): bump terser in /sample/13-mongo-typeorm
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:00:42 +00:00
dependabot[bot]
07d35fcb52 chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/18-context
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:00:36 +00:00
dependabot[bot]
a5f3af7582 chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/17-mvc-fastify
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:00:30 +00:00
dependabot[bot]
8e210b3320 chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/16-gateways-ws
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 09:00:27 +00:00
Kamil Mysliwiec
88a944885a Merge pull request #9958 from nestjs/dependabot/npm_and_yarn/sample/33-graphql-mercurius/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/33-graphql-mercurius
2022-07-20 11:00:16 +02:00
Kamil Mysliwiec
6afb6f1f72 Merge pull request #9968 from nestjs/dependabot/npm_and_yarn/sample/26-queues/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/26-queues
2022-07-20 11:00:11 +02:00
Kamil Mysliwiec
53affb29a2 Merge pull request #9969 from nestjs/dependabot/npm_and_yarn/sample/22-graphql-prisma/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/22-graphql-prisma
2022-07-20 11:00:06 +02:00
Kamil Mysliwiec
373c202aba Merge pull request #9970 from nestjs/dependabot/npm_and_yarn/sample/27-scheduling/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/27-scheduling
2022-07-20 11:00:02 +02:00
Kamil Mysliwiec
609cb12a36 Merge pull request #9971 from nestjs/dependabot/npm_and_yarn/sample/23-graphql-code-first/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/23-graphql-code-first
2022-07-20 10:59:57 +02:00
Kamil Mysliwiec
7ed0f3b149 Merge pull request #9972 from nestjs/dependabot/npm_and_yarn/sample/25-dynamic-modules/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/25-dynamic-modules
2022-07-20 10:59:53 +02:00
Kamil Mysliwiec
ca677ca703 Merge pull request #9973 from nestjs/dependabot/npm_and_yarn/sample/24-serve-static/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/24-serve-static
2022-07-20 10:59:44 +02:00
Kamil Mysliwiec
b69990d911 Merge pull request #9974 from nestjs/dependabot/npm_and_yarn/sample/21-serializer/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/21-serializer
2022-07-20 10:59:39 +02:00
Kamil Mysliwiec
d5bceb7a8f Merge pull request #9975 from nestjs/dependabot/npm_and_yarn/sample/19-auth-jwt/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/19-auth-jwt
2022-07-20 10:59:35 +02:00
Kamil Mysliwiec
189e27f23c Merge pull request #9976 from nestjs/dependabot/npm_and_yarn/sample/20-cache/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/20-cache
2022-07-20 10:59:28 +02:00
Kamil Myśliwiec
ad08626ea7 chore(@nestjs) publish v9.0.5 release 2022-07-20 10:57:56 +02:00
Kamil Myśliwiec
d893469018 fix(microservices): updated outdated redis options interface 2022-07-20 10:46:29 +02:00
Kamil Myśliwiec
c09337ded2 fix(microservices): update kafka interfaces to match v2 2022-07-20 10:45:07 +02:00
Kamil Mysliwiec
566301232b Merge pull request #9798 from frankmangone/frankmangone/feature/avoid-queue-declaration-rmq
feat(microservices): add noAssert option for RMQ connection
2022-07-20 10:40:26 +02:00
dependabot[bot]
d4780cd28b chore(deps): bump terser in /sample/33-graphql-mercurius
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:40:01 +00:00
dependabot[bot]
ba8450065c chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/20-cache
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:39:49 +00:00
dependabot[bot]
dbc6989b89 chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/19-auth-jwt
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:39:39 +00:00
Kamil Mysliwiec
429dfa1382 Merge pull request #9819 from jmcdo29/fix/pipeline-over-pipe
fix: use pipeline over stream.pipe
2022-07-20 10:39:36 +02:00
dependabot[bot]
23415b2bfd chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/21-serializer
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:39:31 +00:00
dependabot[bot]
24585f0f76 chore(deps): bump terser in /sample/24-serve-static
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:39:30 +00:00
dependabot[bot]
210201bb46 chore(deps): bump terser in /sample/25-dynamic-modules
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:39:19 +00:00
Kamil Mysliwiec
4eacd875c1 Merge pull request #9926 from tolgap/fix/9901-urlencoded-raw-body
fix(express,fastify): raw body for urlencoded requests
2022-07-20 10:39:18 +02:00
dependabot[bot]
728234a945 chore(deps): bump terser in /sample/23-graphql-code-first
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:39:04 +00:00
dependabot[bot]
077e689d19 chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/27-scheduling
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:39:00 +00:00
dependabot[bot]
d942210a60 chore(deps): bump terser in /sample/22-graphql-prisma
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:38:57 +00:00
dependabot[bot]
eb7505e245 chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/26-queues
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:38:45 +00:00
Kamil Mysliwiec
0b24affe6e Merge pull request #9959 from nestjs/dependabot/npm_and_yarn/sample/30-event-emitter/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/30-event-emitter
2022-07-20 10:38:21 +02:00
Kamil Mysliwiec
d478feb65f Merge pull request #9960 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/users-application/terser-5.14.2
chore(deps): bump terser from 5.14.1 to 5.14.2 in /sample/32-graphql-federation-schema-first/users-application
2022-07-20 10:38:15 +02:00
Kamil Mysliwiec
27efd41459 Merge pull request #9961 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/31-graphql-federation-code-first/gateway
2022-07-20 10:38:11 +02:00
Kamil Mysliwiec
1ccaeab23c Merge pull request #9962 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/31-graphql-federation-code-first/users-application
2022-07-20 10:38:06 +02:00
Kamil Mysliwiec
efcfd0261f Merge pull request #9963 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/32-graphql-federation-schema-first/posts-application
2022-07-20 10:38:03 +02:00
Kamil Mysliwiec
3b0c968ee5 Merge pull request #9964 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/gateway/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/32-graphql-federation-schema-first/gateway
2022-07-20 10:37:58 +02:00
Kamil Mysliwiec
8a9310909b Merge pull request #9965 from nestjs/dependabot/npm_and_yarn/sample/29-file-upload/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/29-file-upload
2022-07-20 10:37:52 +02:00
Kamil Mysliwiec
3f3a3c2d8b Merge pull request #9966 from nestjs/dependabot/npm_and_yarn/sample/28-sse/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/28-sse
2022-07-20 10:37:48 +02:00
Kamil Mysliwiec
bdba706ed5 Merge pull request #9967 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/terser-5.14.2
chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/31-graphql-federation-code-first/posts-application
2022-07-20 10:37:39 +02:00
dependabot[bot]
9e22b7a470 chore(deps): bump terser
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:36:33 +00:00
dependabot[bot]
95a6defd32 chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/29-file-upload
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:36:26 +00:00
dependabot[bot]
f7715defaf chore(deps): bump terser from 5.10.0 to 5.14.2 in /sample/28-sse
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:36:26 +00:00
dependabot[bot]
2b70d17062 chore(deps): bump terser
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:36:24 +00:00
dependabot[bot]
9e9b11b23f chore(deps): bump terser
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:36:15 +00:00
dependabot[bot]
b6ba905768 chore(deps): bump terser
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:36:06 +00:00
dependabot[bot]
25806abac0 chore(deps): bump terser
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:36:04 +00:00
dependabot[bot]
cd6d5cbe4a chore(deps): bump terser
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:36:01 +00:00
dependabot[bot]
dad922ae2e chore(deps): bump terser in /sample/30-event-emitter
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 08:35:57 +00:00
Kamil Mysliwiec
89e5b74a06 Merge pull request #9950 from nestjs/dependabot/npm_and_yarn/light-my-request-5.2.0
chore(deps): bump light-my-request from 5.1.0 to 5.2.0
2022-07-20 10:35:12 +02:00
Kamil Mysliwiec
5b39d537de Merge pull request #9951 from nestjs/dependabot/npm_and_yarn/mongoose-6.4.5
chore(deps-dev): bump mongoose from 6.4.4 to 6.4.5
2022-07-20 10:35:08 +02:00
Kamil Mysliwiec
8fcd80b32b Merge pull request #9952 from nestjs/dependabot/npm_and_yarn/concurrently-7.3.0
chore(deps-dev): bump concurrently from 7.2.2 to 7.3.0
2022-07-20 10:35:03 +02:00
Kamil Mysliwiec
816bc91be0 Merge pull request #9954 from kosh-b/feature/kafka-heartbeat-passed-to-endpoint
feat(microservices): add Kafka heartbeat callback to KafkaContext
2022-07-20 10:34:37 +02:00
kosh-b
380d230716 Add Kafka heartbeat callback to KafkaContext arguments and pass it to the endpoint 2022-07-19 11:53:37 +03:00
dependabot[bot]
e8f188e78b chore(deps-dev): bump concurrently from 7.2.2 to 7.3.0
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.2.2 to 7.3.0.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.2.2...v7.3.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-07-19 00:09:25 +00:00
dependabot[bot]
d22f7496e0 chore(deps-dev): bump mongoose from 6.4.4 to 6.4.5
Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.4.4 to 6.4.5.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/6.4.4...6.4.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-19 00:07:52 +00:00
dependabot[bot]
ac3c8c78c4 chore(deps): bump light-my-request from 5.1.0 to 5.2.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.1.0...v5.2.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-07-19 00:05:29 +00:00
Jay McDoniel
9739aa6a1a fix: move logger to class member 2022-07-18 07:56:45 -07:00
Kamil Myśliwiec
df4d99d92e chore(@nestjs) publish v9.0.4 release 2022-07-18 10:23:53 +02:00
Kamil Myśliwiec
03e1a91b85 fix(common): auto-constructed configurable async options should use any 2022-07-18 10:22:52 +02:00
Kamil Mysliwiec
a4de5f93e8 Merge pull request #9940 from nestjs/dependabot/npm_and_yarn/ws-8.8.1
chore(deps): bump ws from 8.8.0 to 8.8.1
2022-07-18 09:23:49 +02:00
Kamil Mysliwiec
839acdf232 Merge pull request #9939 from nestjs/dependabot/npm_and_yarn/types/node-18.0.6
chore(deps-dev): bump @types/node from 18.0.4 to 18.0.6
2022-07-18 09:23:45 +02:00
Kamil Mysliwiec
ab8ec345d4 Merge pull request #9932 from nestjs/dependabot/npm_and_yarn/ts-node-10.9.1
chore(deps-dev): bump ts-node from 10.9.0 to 10.9.1
2022-07-18 09:23:33 +02:00
Kamil Mysliwiec
fd859f4ac7 Merge pull request #9931 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.7.0
chore(deps-dev): bump @grpc/proto-loader from 0.6.13 to 0.7.0
2022-07-18 09:23:14 +02:00
dependabot[bot]
bf41df7da3 chore(deps): bump ws from 8.8.0 to 8.8.1
Bumps [ws](https://github.com/websockets/ws) from 8.8.0 to 8.8.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.8.0...8.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 07:10:39 +00:00
Kamil Mysliwiec
bd494201d6 Merge pull request #9941 from nestjs/dependabot/npm_and_yarn/ioredis-5.2.1
chore(deps-dev): bump ioredis from 5.2.0 to 5.2.1
2022-07-18 09:07:56 +02:00
Kamil Mysliwiec
6cb41a5e00 Merge pull request #9942 from nestjs/dependabot/npm_and_yarn/core-js-3.23.5
chore(deps-dev): bump core-js from 3.23.4 to 3.23.5
2022-07-18 09:07:51 +02:00
Kamil Mysliwiec
eb2c6df9ba Merge pull request #9943 from nestjs/dependabot/npm_and_yarn/light-my-request-5.1.0
chore(deps): bump light-my-request from 5.0.0 to 5.1.0
2022-07-18 08:51:52 +02:00
Jay McDoniel
248596ba59 fix: rename handler to to better represent what it is handling 2022-07-17 23:09:30 -07:00
dependabot[bot]
8172c09435 chore(deps): bump light-my-request from 5.0.0 to 5.1.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.0.0...v5.1.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-07-18 00:20:21 +00:00
dependabot[bot]
d68bead326 chore(deps-dev): bump core-js from 3.23.4 to 3.23.5
Bumps [core-js](https://github.com/zloirock/core-js) from 3.23.4 to 3.23.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.23.4...v3.23.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-07-18 00:18:06 +00:00
dependabot[bot]
fd310916c6 chore(deps-dev): bump ioredis from 5.2.0 to 5.2.1
Bumps [ioredis](https://github.com/luin/ioredis) from 5.2.0 to 5.2.1.
- [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.2.0...v5.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 00:15:48 +00:00
dependabot[bot]
840071dbdb chore(deps-dev): bump @types/node from 18.0.4 to 18.0.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.0.4 to 18.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 00:09:07 +00:00
Jay McDoniel
f59cf5e81c feat: update handler to be protected and only handle errors once 2022-07-17 14:56:45 -07:00
Roberto Sero
b0e813ace4 feat(common): pass options to nested async modules
Pass parent module providers to 'provideInjectionTokensFrom' in
ConfigurableModuleAsyncOptions in order
to pass options down in nested async modules.
Only necessary providers are taken
by recursively looking on the 'inject' array.
2022-07-16 17:18:11 +02:00
dependabot[bot]
b1b024e7c7 chore(deps-dev): bump ts-node from 10.9.0 to 10.9.1
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.9.0 to 10.9.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.9.0...v10.9.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-07-15 00:08:31 +00:00
dependabot[bot]
44a655d820 chore(deps-dev): bump @grpc/proto-loader from 0.6.13 to 0.7.0
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.6.13 to 0.7.0.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/proto-loader@0.6.13...@grpc/grpc-js@0.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-15 00:07:00 +00:00
Kamil Mysliwiec
009f6d2fc3 Merge pull request #9928 from nestjs/dependabot/npm_and_yarn/types/node-18.0.4
chore(deps-dev): bump @types/node from 18.0.3 to 18.0.4
2022-07-14 08:45:32 +02:00
Kamil Mysliwiec
e682c4c1cf Merge pull request #9929 from nestjs/dependabot/npm_and_yarn/ts-node-10.9.0
chore(deps-dev): bump ts-node from 10.8.2 to 10.9.0
2022-07-14 08:44:09 +02:00
dependabot[bot]
2e3b51ba06 chore(deps-dev): bump ts-node from 10.8.2 to 10.9.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.8.2 to 10.9.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.8.2...v10.9.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-07-14 00:09:12 +00:00
dependabot[bot]
db3d442d19 chore(deps-dev): bump @types/node from 18.0.3 to 18.0.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.0.3 to 18.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-14 00:04:00 +00:00
Tolga Paksoy
50716eb0cd fix(express,fastify): raw body for urlencoded requests 2022-07-13 18:47:03 +02:00
Kamil Mysliwiec
8cd150d55c Merge pull request #9915 from thiagomini/refactor/instance-wrapper
refactor(core): extract instance wrapper merge logic
2022-07-13 08:39:23 +02:00
Kamil Mysliwiec
dd23098856 Merge pull request #9924 from nestjs/dependabot/npm_and_yarn/fastify-4.2.1
chore(deps): bump fastify from 4.2.0 to 4.2.1
2022-07-13 08:31:07 +02:00
dependabot[bot]
e500beaaf1 chore(deps): bump fastify from 4.2.0 to 4.2.1
Bumps [fastify](https://github.com/fastify/fastify) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.2.0...v4.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-13 00:04:33 +00:00
Thiago Martins
4c16d2010c refactor(core): remove providers type assertions
change provider classifier functions to work as type guards
2022-07-12 10:03:40 -03:00
Kamil Myśliwiec
39c3dfe3c6 test(injector): update optional factory provider integration tests 2022-07-12 11:08:03 +02:00
Kamil Myśliwiec
f4b3c7fd04 chore(@nestjs) publish v9.0.3 release 2022-07-12 10:33:48 +02:00
Kamil Mysliwiec
76923e7849 Merge pull request #9922 from nestjs/fix/scoped-factories-optional-deps
fix(core): scoped factories should not fail with optional deps
2022-07-12 10:27:18 +02:00
Kamil Myśliwiec
ced2acff61 test(): hotfix - use deep equal instead 2022-07-12 10:07:16 +02:00
Kamil Myśliwiec
8e5b1f426c test(): add test case for optional deps in scoped providers 2022-07-12 09:58:45 +02:00
Kamil Myśliwiec
1ff1389c9c fix(core): scoped factories should not fail with optional deps 2022-07-12 09:55:08 +02:00
Kamil Mysliwiec
976cdf3d59 Merge pull request #9920 from nestjs/dependabot/npm_and_yarn/apollo-server-express-3.10.0
chore(deps-dev): bump apollo-server-express from 3.9.0 to 3.10.0
2022-07-12 09:00:19 +02:00
Kamil Mysliwiec
c488f2552b Merge pull request #9917 from nestjs/dependabot/npm_and_yarn/ioredis-5.2.0
chore(deps-dev): bump ioredis from 5.1.0 to 5.2.0
2022-07-12 08:54:21 +02:00
Kamil Mysliwiec
14b728c57b Merge pull request #9918 from nestjs/dependabot/npm_and_yarn/rxjs-7.5.6
chore(deps): bump rxjs from 7.5.5 to 7.5.6
2022-07-12 08:52:37 +02:00
Kamil Mysliwiec
75a4e1a52d Merge pull request #9919 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.1.0
chore(deps): bump fast-json-stringify from 5.0.6 to 5.1.0
2022-07-12 08:52:32 +02:00
dependabot[bot]
40233bf0c4 chore(deps-dev): bump apollo-server-express from 3.9.0 to 3.10.0
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 3.9.0 to 3.10.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.10.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-07-12 06:50:32 +00:00
Kamil Mysliwiec
d531742278 Merge pull request #9921 from nestjs/dependabot/npm_and_yarn/apollo-server-core-3.10.0
chore(deps-dev): bump apollo-server-core from 3.9.0 to 3.10.0
2022-07-12 08:44:49 +02:00
dependabot[bot]
bb8a650154 chore(deps-dev): bump apollo-server-core from 3.9.0 to 3.10.0
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.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.10.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-07-12 00:10:08 +00:00
dependabot[bot]
22048db7b7 chore(deps): bump fast-json-stringify from 5.0.6 to 5.1.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.0.6 to 5.1.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.0.6...v5.1.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-07-12 00:05:44 +00:00
dependabot[bot]
e950798ea9 chore(deps): bump rxjs from 7.5.5 to 7.5.6
Bumps [rxjs](https://github.com/reactivex/rxjs) from 7.5.5 to 7.5.6.
- [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.5...7.5.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-12 00:04:46 +00:00
dependabot[bot]
3f68733084 chore(deps-dev): bump ioredis from 5.1.0 to 5.2.0
Bumps [ioredis](https://github.com/luin/ioredis) from 5.1.0 to 5.2.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.1.0...v5.2.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-12 00:03:48 +00:00
Thiago Martins
a2f4b342e2 test(core): add instance wrapper test
ensure mergeWith handles FactoryProviders with no depencies
2022-07-11 17:02:48 -03:00
Thiago Martins
b0d735d90b test(core): add instance wrapper test
ensure mergeWith handles FactoryProviders with injected dependencies
2022-07-11 17:01:02 -03:00
Thiago Martins
7696f43a07 test(core): add instance wrapper test
ensure mergeWith handles ClassProviders
2022-07-11 16:56:33 -03:00
Thiago Martins
2a7fc84470 test(core): add instance wrapper test
ensure mergeWith handles ValueProviders
2022-07-11 16:54:21 -03:00
Thiago Martins
62f1fa3a79 refactor(core): use provider classifier
refactor instance-wrapper to use provider classifier methods
2022-07-11 16:42:35 -03:00
Thiago Martins
aa2ee95f54 feat(core): add falsy values handling
ensure isValueProvider returns true for falsy values
2022-07-11 16:39:05 -03:00
Thiago Martins
75b45775bf test(core): add provider classifier test case
ensure isFactoryProvider returns false when useFactory is undefined
2022-07-11 16:33:31 -03:00
Thiago Martins
a052e0cac2 test(core): add provider classifier test case
ensure isFactoryProvider returns false when useFactory is not present
2022-07-11 16:32:46 -03:00
Thiago Martins
d1ec1e2640 feat(core): add method to verify factory provider
ensure isFactoryProvider returns true when useFactory is present
2022-07-11 16:29:16 -03:00
Thiago Martins
57cd765bb1 feat(core): finish is value provider
ensure isValueProvider returns false when given provider is undefined
2022-07-11 16:22:58 -03:00
Thiago Martins
7b759d52e6 test(core): add provider classifier test
ensure isValueProvider returns false when useValue is not present
2022-07-11 16:21:06 -03:00
Thiago Martins
6b9ed77cda test(core): add provider classifier test
ensure useValue returns false for undefined values
2022-07-11 16:19:59 -03:00
Thiago Martins
ad154067e0 feat(core): add provider classifier method
ensure isValueProvider returns true when useValue is defined
2022-07-11 16:18:55 -03:00
Thiago Martins
1da899f2c0 feat(core): add provider-classifier
ensure isClassProvider works as expected
2022-07-11 16:15:09 -03:00
Kamil Mysliwiec
1d9930eb3c Merge pull request #9907 from nestjs/dependabot/npm_and_yarn/nestjs/mongoose-9.2.0
chore(deps-dev): bump @nestjs/mongoose from 9.1.1 to 9.2.0
2022-07-11 15:06:32 +02:00
Kamil Myśliwiec
c1d006dbbc Merge branch 'master' of https://github.com/nestjs/nest 2022-07-11 09:42:42 +02:00
Kamil Myśliwiec
61ebc12521 chore(@nestjs) publish v9.0.2 release 2022-07-11 09:39:36 +02:00
dependabot[bot]
bf8791f20c chore(deps-dev): bump @nestjs/mongoose from 9.1.1 to 9.2.0
Bumps [@nestjs/mongoose](https://github.com/nestjs/mongoose) from 9.1.1 to 9.2.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.1.1...9.2.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-07-11 07:34:35 +00:00
Kamil Mysliwiec
14fc05f7ff Merge pull request #9909 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-10.0.17
chore(deps-dev): bump @nestjs/apollo from 10.0.16 to 10.0.17
2022-07-11 09:31:30 +02:00
dependabot[bot]
29ab36bfe8 chore(deps-dev): bump @nestjs/apollo from 10.0.16 to 10.0.17
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 10.0.16 to 10.0.17.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v10.0.16...v10.0.17)

---
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-07-11 07:16:39 +00: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
Micael Levi (@micalevisk)
c04a7f975f feat(core): add option to disable logs on LazyModuleLoader 2022-06-26 17:17:32 -04:00
Micael Levi (@micalevisk)
617c6bb656 feat(core): add setLogger to InstanceLoader 2022-06-26 13:57:50 -04: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
Jay McDoniel
18c27cd790 fix: use pipeline over stream.pipe
`pipeline` ends up destroying streams used if there is an error in one of
the streams. Due to this, there's no chance of a memory leak from errored out
streams. There's also now an addition of adding an error handler to the
`StreamableFile` so that stream errors by default return a 400 and can be
customized to return an error message however a developer would like. These
only effect the express adapter because of how Fastify already internally
handles streams.

fix: #9759
2022-06-23 08:49:57 -07: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
Franco Mangone
bb7e9d7837 feat(microservices): add noAssert option for RMQ connection
Rabbit MQ brokers may not allow for queue declaration, so a check is needed to avoid 403 errors in that scenario
2022-06-17 23:56:32 -03: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
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
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
rikapo
735102a0e9 chore: fix Readme.md translation
fix Korean, Japanese translation for readability
2022-01-19 00:01:02 +09: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
384 changed files with 408723 additions and 149007 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,20 +75,10 @@ jobs:
- store_artifacts:
path: coverage
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
@@ -128,7 +128,7 @@ jobs:
codechecks_benchmarks:
working_directory: ~/nest
docker:
- image: circleci/node:12
- image: circleci/node:16
steps:
- checkout
- *restore-cache
@@ -144,7 +144,7 @@ jobs:
samples:
working_directory: ~/nest
docker:
- image: circleci/node:12
- image: circleci/node:16
environment:
- DISABLE_OPENCOLLECTIVE: true
steps:

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

@@ -9,8 +9,13 @@ on:
schedule:
- cron: '0 17 * * 4'
permissions:
contents: read
jobs:
analyse:
permissions:
security-events: write
name: Analyse
runs-on: ubuntu-latest

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

@@ -37,8 +37,8 @@ Nest is a framework for building efficient, scalable <a href="http://nodejs.org"
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
* [가이드](readme_kr.md)를 확인하려면, [docs.nestjs.com](https://docs.nestjs.com)를 방문하세요.:books:
* チェックするには [ガイド](readme_jp.md), 詳しくは [docs.nestjs.com](https://docs.nestjs.com). :books:
* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
* [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
## Questions
@@ -65,19 +65,20 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<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>
<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="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>
<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></</tr></table>
<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
@@ -88,7 +89,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<a href="https://careers.meetdandy.com/?gh_src=063ba61e3us" target="_blank"><img src="https://nestjs.com/img/dandy-roles-logo.svg" width="150" valign="middle" /></td><td>
<a href="https://www.castlecraft.in" target="_blank"><img src="https://nestjs.com/img/castlecraft-logo.png" width="150" valign="middle" /></td>
<td><a href="https://www.tinystacks.com" target="_blank"><img src="https://nestjs.com/img/tinystacks-logo.png#1" width="140" valign="middle" /></td>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr></table>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr><tr>
<td><a href="https://bilberrry.com/" target="_blank"><img src="https://nestjs.com/img/bilberrry-logo.svg" width="180" valign="middle" /></td></tr></table>
#### Sponsors
@@ -96,7 +98,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<a href="https://www.swingdev.io" target="_blank"><img src="https://nestjs.com/img/swingdev-logo.svg#1" width="110" valign="middle" /> </a></td><td align="center" valign="middle">
<a href="https://www.novologic.com/" target="_blank"><img src="https://nestjs.com/img/novologic.png" width="110" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://ever.co/" target="_blank"><img src="https://nestjs.com/img/ever-logo.png" width="72" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://blokt.com" target="_blank"><img src="https://nestjs.com/img/blokt-logo.png" width="120" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://blokt.com" target="_blank"><img src="https://nestjs.com/img/blokt-logo.png" width="120" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="http://architectnow.net/" target="_blank"><img src="https://nestjs.com/img/architectnow.png" width="125" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://quander.io/" target="_blank"><img src="https://nestjs.com/img/quander.png" width="100" valign="middle" /></a> </td></tr><tr><td align="center" valign="middle">
<a href="https://mantro.net/" target="_blank"><img src="https://nestjs.com/img/mantro-logo.svg" width="95" valign="middle" /></a> </td><td align="center" valign="middle">
@@ -127,6 +129,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
});

View File

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

View File

@@ -3,10 +3,9 @@ import { FooService } from './foo.service';
@Injectable()
export class BarService {
constructor(private readonly foo: FooService) {}
bar() {
this.foo.foo();
}
}
}

View File

@@ -36,7 +36,7 @@ describe('Auto-Mocking with token in factory', () => {
const moduleRef = await Test.createTestingModule({
providers: [BarService],
})
.useMocker((token) => {
.useMocker(token => {
if (token === FooService) {
return { foo: sinon.stub };
}
@@ -48,16 +48,13 @@ describe('Auto-Mocking with token in factory', () => {
expect(fooServ.foo.called);
});
it('cannot mock the dependencies', async () => {
const moduleRef = Test.createTestingModule({
providers: [BarService],
})
.useMocker((token) => {
if (token === FooService.name + 'something that fails the token') {
return { foo: sinon.stub };
}
})
.compile;
expect(moduleRef()).to.eventually.throw()
}).useMocker(token => {
if (token === FooService.name + 'something that fails the token') {
return { foo: sinon.stub };
}
}).compile;
expect(moduleRef()).to.eventually.throw();
});
});

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

@@ -25,7 +25,7 @@ services:
- "9001:9001"
restart: always
mysql:
image: mysql:8.0.28
image: mysql:8.0.30
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

@@ -1,3 +1,4 @@
import { Scope } from '@nestjs/common';
import { UnknownDependenciesException } from '@nestjs/core/errors/exceptions/unknown-dependencies.exception';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
@@ -38,6 +39,42 @@ describe('Optional factory provider deps', () => {
const factoryProvider = moduleRef.get('FACTORY');
expect(factoryProvider).to.equal(defaultValue);
});
it('"undefined" should be injected into the factory function (scoped provider)', async () => {
const MY_PROVIDER = 'MY_PROVIDER';
const FIRST_OPTIONAL_DEPENDENCY = 'FIRST_OPTIONAL_DEPENDENCY';
const SECOND_OPTIONAL_DEPENDENCY = 'SECOND_OPTIONAL_DEPENDENCY';
const module = await Test.createTestingModule({
providers: [
{
provide: SECOND_OPTIONAL_DEPENDENCY,
useValue: 'second',
},
{
provide: MY_PROVIDER,
scope: Scope.REQUEST,
inject: [
{
token: FIRST_OPTIONAL_DEPENDENCY,
optional: true,
},
{
token: SECOND_OPTIONAL_DEPENDENCY,
optional: true,
},
],
useFactory: (first?: string, second?: string) => {
return { first, second };
},
},
],
}).compile();
expect(await module.resolve(MY_PROVIDER)).to.deep.equal({
first: undefined,
second: 'second',
});
});
});
});
describe('otherwise', () => {

View File

@@ -60,6 +60,18 @@ describe('GRPC transport', () => {
.expect(200, { result: 15 });
});
it(`GRPC Receiving serialized Error`, async () => {
await request(server)
.post('/error?client=standard')
.expect(200)
.expect('false');
await request(server)
.post('/error?client=custom')
.expect(200)
.expect('true');
});
it(`GRPC Sending and Receiving HTTP POST (multiple proto)`, async () => {
await request(server)
.post('/multi/sum')

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';

View File

@@ -1,4 +1,4 @@
import { Body, Controller, HttpCode, Post } from '@nestjs/common';
import { Body, Controller, HttpCode, Post, Query } from '@nestjs/common';
import {
Client,
ClientGrpc,
@@ -6,12 +6,28 @@ import {
GrpcStreamCall,
GrpcStreamMethod,
Transport,
ClientGrpcProxy,
RpcException,
} from '@nestjs/microservices';
import { join } from 'path';
import { Observable, of } from 'rxjs';
import { Observable, of, catchError } from 'rxjs';
class ErrorHandlingProxy extends ClientGrpcProxy {
serializeError(err) {
return new RpcException(err);
}
}
@Controller()
export class GrpcController {
private readonly customClient: ClientGrpc;
constructor() {
this.customClient = new ErrorHandlingProxy({
package: 'math',
protoPath: join(__dirname, 'math.proto'),
});
}
@Client({
transport: Transport.GRPC,
options: {
@@ -78,6 +94,19 @@ export class GrpcController {
});
}
@GrpcMethod('Math')
async divide(request: { dividend: number; divisor: number }): Promise<any> {
if (request.divisor === 0) {
throw new RpcException({
code: 3,
message: 'dividing by 0 is not possible',
});
}
return {
result: request.dividend / request.divisor,
};
}
@GrpcMethod('Math2')
async sum2({ data }: { data: number[] }): Promise<any> {
return of({
@@ -98,4 +127,24 @@ export class GrpcController {
const svc = this.clientMulti.getService<any>('Math2');
return svc.sum2({ data });
}
@Post('error')
@HttpCode(200)
serializeError(
@Query('client') query: 'custom' | 'standard' = 'standard',
@Body() body: Record<string, any>,
): Observable<boolean> {
const client = query === 'custom' ? this.customClient : this.client;
const svc = client.getService<any>('Math');
const errorDivideRequest = {
dividend: 1,
divisor: 0,
};
return svc.divide(errorDivideRequest).pipe(
catchError(err => {
return of(err instanceof RpcException);
}),
);
}
}

View File

@@ -6,6 +6,7 @@ service Math {
rpc Sum (RequestSum) returns (SumResult);
rpc SumStream(stream RequestSum) returns(stream SumResult);
rpc SumStreamPass(stream RequestSum) returns(stream SumResult);
rpc Divide (RequestDivide) returns (DivideResult);
}
message SumResult {
@@ -14,4 +15,13 @@ message SumResult {
message RequestSum {
repeated int32 data = 1;
}
}
message RequestDivide {
int32 dividend = 1;
int32 divisor = 2 ;
}
message DivideResult {
int32 result = 1;
}

View File

@@ -6,44 +6,72 @@ 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>(
undefined,
{ 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 }',
app = moduleFixture.createNestApplication<NestExpressApplication>({
rawBody: true,
});
});
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();
});
describe('application/json', () => {
const body = '{ "amount":0.0 }';
it('should return exact post body', async () => {
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: body,
});
});
it('should work if post body is empty', async () => {
await request(app.getHttpServer())
.post('/')
.set('Content-Type', 'application/json')
.expect(201);
});
});
describe('application/x-www-form-urlencoded', () => {
const body = 'content=this is a post\'s content by "Nest"';
it('should return exact post body', async () => {
const response = await request(app.getHttpServer())
.post('/')
.set('Content-Type', 'application/x-www-form-urlencoded')
.send(body)
.expect(201);
expect(response.body).to.eql({
parsed: {
content: 'this is a post\'s content by "Nest"',
},
raw: body,
});
});
it('should work if post body is empty', async () => {
await request(app.getHttpServer())
.post('/')
.set('Content-Type', 'application/x-www-form-urlencoded')
.expect(201);
});
});
});

View File

@@ -1,49 +1,98 @@
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import {
NestFastifyApplication,
FastifyAdapter,
} from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import * as request from 'supertest';
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>(null, {
rawBody: true,
});
});
it('should return exact post body', async () => {
await app.init();
const response = await request(app.getHttpServer())
.post('/')
.set('Content-Type', 'application/json')
.set('Accept', 'application/json')
.send(body)
.expect(201);
expect(response.body).to.eql({
parsed: {
amount: 0,
app = moduleFixture.createNestApplication<NestFastifyApplication>(
new FastifyAdapter(),
{
rawBody: true,
},
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();
});
describe('application/json', () => {
const body = '{ "amount":0.0 }';
it('should return exact post body', async () => {
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: body,
});
});
it('should fail if post body is empty', async () => {
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);
});
});
describe('application/x-www-form-urlencoded', () => {
const body = 'content=this is a post\'s content by "Nest"';
it('should return exact post body', async () => {
const response = await app.inject({
method: 'POST',
url: '/',
headers: { 'content-type': 'application/x-www-form-urlencoded' },
payload: body,
});
expect(JSON.parse(response.body)).to.eql({
parsed: {
content: 'this is a post\'s content by "Nest"',
},
raw: body,
});
});
it('should work if post body is empty', async () => {
const response = await app.inject({
method: 'POST',
url: '/',
headers: {
'content-type': 'application/x-www-form-urlencoded',
},
});
expect(response.statusCode).to.equal(201);
});
});
});

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,42 @@
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,93 @@
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,
endpoint = '/durable',
) =>
request(server)
.get(endpoint)
.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');
});
it(`should register a custom per-tenant request payload`, async () => {
let result: request.Response;
result = await new Promise<request.Response>(resolve =>
performHttpCall(1, resolve, '/durable/echo'),
);
expect(result.body).deep.equal({ tenantId: '1' });
result = await new Promise<request.Response>(resolve =>
performHttpCall(3, resolve, '/durable/echo'),
);
expect(result.body).deep.equal({ tenantId: '3' });
});
});
after(async () => {
ContextIdFactory['strategy'] = undefined;
await app.close();
});
});

View File

@@ -0,0 +1,23 @@
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 {
resolve: (info: HostComponentInfo) =>
info.isTreeDurable ? tenantSubTreeId : contextId,
payload: { tenantId },
};
}
}

View File

@@ -0,0 +1,17 @@
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();
}
@Get('echo')
echo() {
return this.durableService.requestPayload;
}
}

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,14 @@
import { Inject, Injectable, Scope } from '@nestjs/common';
import { REQUEST } from '@nestjs/core';
@Injectable({ scope: Scope.REQUEST, durable: true })
export class DurableService {
public instanceCounter = 0;
constructor(@Inject(REQUEST) public readonly requestPayload: unknown) {}
greeting() {
++this.instanceCounter;
return `Hello world! Counter: ${this.instanceCounter}`;
}
}

View File

@@ -8,6 +8,11 @@ import { readFileSync } from 'fs';
import { join } from 'path';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
import {
getHttpBaseOptions,
sendCanceledHttpRequest,
sendHttpRequest,
} from './utils';
const readme = readFileSync(join(process.cwd(), 'Readme.md'));
const readmeString = readme.toString();
@@ -65,4 +70,14 @@ describe('Express FileSend', () => {
expect(res.text).to.be.eq(readmeString);
});
});
it('should return an error if the file does not exist', async () => {
return request(app.getHttpServer()).get('/file/not/exist').expect(400);
});
it('should allow for the client to end the response and be able to make another', async () => {
await app.listen(0);
const url = await getHttpBaseOptions(app);
await sendCanceledHttpRequest(new URL('/file/slow', url));
const res = await sendHttpRequest(new URL('/file/stream', url));
expect(res.statusCode).to.be.eq(200);
}).timeout(5000);
});

View File

@@ -0,0 +1,47 @@
import { INestApplication } from '@nestjs/common';
import { IncomingMessage, request, RequestOptions } from 'http';
import { URL } from 'url';
export const getHttpBaseOptions = async (
app: INestApplication,
): Promise<URL> => {
const url = await app.getUrl();
return new URL(url);
};
export const sendCanceledHttpRequest = async (url: URL) => {
return new Promise((resolve, reject) => {
const req = request(url, res => {
// close the request once we get the first response of data
res.on('data', () => {
req.destroy();
});
// response is closed, move on to next request and verify it's doable
res.on('close', resolve);
});
// fire the request
req.end();
});
};
export const sendHttpRequest = async (url: URL) => {
return new Promise<IncomingMessage>((resolve, reject) => {
const req = request(url, res => {
// this makes sure that the response actually starts and is read. We could verify this value against the same
// that is in an earlier test, but all we care about in _this_ test is that the status code is 200
res.on('data', chunk => {
// no op
});
// fail the test if somethin goes wrong
res.on('error', err => {
reject(err);
});
// pass the response back so we can verify values in the test
res.on('end', () => {
resolve(res);
});
});
// fire the request
req.end();
});
};

View File

@@ -31,4 +31,14 @@ export class AppController {
getFileWithHeaders(): StreamableFile {
return this.appService.getFileWithHeaders();
}
@Get('file/not/exist')
getNonExistantFile(): StreamableFile {
return this.appService.getFileThatDoesNotExist();
}
@Get('/file/slow')
getSlowFile(): StreamableFile {
return this.appService.getSlowStream();
}
}

View File

@@ -1,11 +1,16 @@
import { Injectable, StreamableFile } from '@nestjs/common';
import { randomBytes } from 'crypto';
import { createReadStream, readFileSync } from 'fs';
import { join } from 'path';
import { Observable, of } from 'rxjs';
import { Readable } from 'stream';
import { NonFile } from './non-file';
@Injectable()
export class AppService {
// `randomBytes` has a max value of 2^31 -1. That's all this is
private readonly MAX_BITES = Math.pow(2, 31) - 1;
getReadStream(): StreamableFile {
return new StreamableFile(
createReadStream(join(process.cwd(), 'Readme.md')),
@@ -35,4 +40,16 @@ export class AppService {
},
);
}
getFileThatDoesNotExist(): StreamableFile {
return new StreamableFile(createReadStream('does-not-exist.txt'));
}
getSlowStream(): StreamableFile {
const stream = new Readable();
stream.push(Buffer.from(randomBytes(this.MAX_BITES)));
// necessary for a `new Readable()`. Doesn't do anything
stream._read = () => {};
return new StreamableFile(stream);
}
}

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

@@ -72,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) => {
@@ -104,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));

View File

@@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "8.4.5"
"version": "9.1.1"
}

5153
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.4.4",
"version": "9.0.0",
"description": "Modern, fast, powerful node.js web framework",
"homepage": "https://nestjs.com",
"repository": {
@@ -23,7 +23,7 @@
"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 mocha packages/**/*.spec.ts --reporter spec",
"test:integration": "mocha \"integration/*/{,!(node_modules)/**/}/*.spec.ts\" --reporter spec",
@@ -31,9 +31,9 @@
"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'",
"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",
@@ -44,78 +44,82 @@
"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.27.2",
"class-transformer": "0.5.1",
"class-validator": "0.13.2",
"cli-color": "2.0.2",
"cli-color": "2.0.3",
"cors": "2.8.5",
"express": "4.18.1",
"fast-json-stringify": "3.2.0",
"fast-json-stringify": "5.3.0",
"fast-safe-stringify": "2.1.1",
"graphql-subscriptions": "2.0.0",
"iterare": "1.2.1",
"object-hash": "3.0.0",
"path-to-regexp": "3.2.0",
"reflect-metadata": "0.1.13",
"rxjs": "7.5.5",
"socket.io": "4.5.0",
"rxjs": "7.5.6",
"socket.io": "4.5.2",
"tslib": "2.4.0",
"uuid": "8.3.2"
"uuid": "9.0.0"
},
"devDependencies": {
"@codechecks/client": "0.1.12",
"@commitlint/cli": "17.0.0",
"@commitlint/config-angular": "17.0.0",
"@fastify/cors": "7.0.0",
"@fastify/formbody": "6.0.0",
"@fastify/multipart": "6.0.0",
"@fastify/static": "5.0.0",
"@grpc/grpc-js": "1.6.7",
"@grpc/proto-loader": "0.6.12",
"@nestjs/apollo": "10.0.11",
"@nestjs/graphql": "10.0.8",
"@nestjs/mongoose": "9.0.3",
"@nestjs/typeorm": "8.0.3",
"@commitlint/cli": "17.1.2",
"@commitlint/config-angular": "17.1.0",
"@fastify/cors": "^8.0.0",
"@fastify/formbody": "7.2.0",
"@fastify/middie": "8.0.0",
"@fastify/multipart": "7.2.0",
"@fastify/static": "6.5.0",
"@fastify/view": "7.1.0",
"@grpc/grpc-js": "1.7.0",
"@grpc/proto-loader": "0.7.2",
"@nestjs/apollo": "10.1.0",
"@nestjs/graphql": "10.1.1",
"@nestjs/mongoose": "9.2.0",
"@nestjs/typeorm": "9.0.1",
"@types/amqplib": "0.8.2",
"@types/bytes": "3.1.1",
"@types/cache-manager": "3.4.3",
"@types/chai": "4.3.1",
"@types/cache-manager": "4.0.2",
"@types/chai": "4.3.3",
"@types/chai-as-promised": "7.1.5",
"@types/cors": "2.8.12",
"@types/express": "4.17.13",
"@types/express": "4.17.14",
"@types/gulp": "4.0.9",
"@types/http-errors": "1.8.2",
"@types/mocha": "9.1.1",
"@types/node": "17.0.34",
"@types/node": "18.7.18",
"@types/redis": "4.0.11",
"@types/reflect-metadata": "0.1.0",
"@types/sinon": "10.0.11",
"@types/socket.io": "3.0.2",
"@types/sinon": "10.0.13",
"@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.3",
"amqplib": "0.9.0",
"apollo-server-core": "3.7.0",
"apollo-server-express": "3.7.0",
"amqp-connection-manager": "4.1.6",
"amqplib": "0.10.3",
"apollo-server-core": "3.10.2",
"apollo-server-express": "3.10.2",
"artillery": "1.7.9",
"body-parser": "1.20.0",
"bytes": "3.1.2",
"cache-manager": "3.6.1",
"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.8.0",
"commitlint-circle": "1.0.0",
"concurrently": "7.2.0",
"concurrently": "7.4.0",
"conventional-changelog": "3.1.25",
"core-js": "3.22.5",
"core-js": "3.25.2",
"coveralls": "3.1.1",
"delete-empty": "3.0.0",
"engine.io-client": "6.2.2",
@@ -124,9 +128,9 @@
"eslint-plugin-import": "2.26.0",
"eventsource": "2.0.2",
"fancy-log": "2.0.0",
"fastify": "3.29.0",
"fastify": "4.6.0",
"graphql": "15.8.0",
"graphql-tools": "8.2.9",
"graphql-tools": "8.3.6",
"gulp": "4.0.2",
"gulp-clang-format": "1.0.27",
"gulp-clean": "0.4.0",
@@ -135,39 +139,38 @@
"gulp-watch": "5.0.1",
"http-errors": "2.0.0",
"husky": "8.0.1",
"imports-loader": "3.1.1",
"ioredis": "5.0.4",
"imports-loader": "4.0.1",
"ioredis": "5.2.3",
"json-loader": "0.5.7",
"kafkajs": "2.0.0",
"lerna": "3.0.0",
"kafkajs": "2.2.0",
"lerna": "2.11.0",
"lerna-changelog": "2.2.0",
"light-my-request": "4.10.1",
"lint-staged": "12.4.1",
"light-my-request": "5.6.1",
"lint-staged": "13.0.3",
"markdown-table": "2.0.0",
"merge-graphql-schemas": "1.7.8",
"middie": "6.1.0",
"mocha": "10.0.0",
"mongoose": "6.3.3",
"mongoose": "6.6.1",
"mqtt": "4.3.7",
"multer": "1.4.4",
"mysql2": "2.3.3",
"nats": "2.6.1",
"nodemon": "2.0.16",
"nats": "2.7.1",
"nodemon": "2.0.20",
"nyc": "15.1.0",
"point-of-view": "5.3.0",
"prettier": "2.6.2",
"prettier": "2.7.1",
"redis": "4.3.1",
"rxjs-compat": "6.6.7",
"sinon": "14.0.0",
"sinon-chai": "3.7.0",
"socket.io-client": "4.5.0",
"socket.io-client": "4.5.2",
"subscriptions-transport-ws": "0.11.0",
"supertest": "6.2.3",
"ts-morph": "14.0.0",
"ts-node": "10.7.0",
"typeorm": "0.2.45",
"typescript": "4.6.4",
"supertest": "6.2.4",
"ts-morph": "16.0.0",
"ts-node": "10.9.1",
"typeorm": "0.3.9",
"typescript": "4.8.2",
"wrk": "1.2.1",
"ws": "8.6.0"
"ws": "8.8.1"
},
"engines": {
"node": ">= 12.9.0"

View File

@@ -37,8 +37,8 @@ Nest is a framework for building efficient, scalable <a href="http://nodejs.org"
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
* [가이드](readme_kr.md)를 확인하려면, [docs.nestjs.com](https://docs.nestjs.com)를 방문하세요.:books:
* チェックするには [ガイド](readme_jp.md), 詳しくは [docs.nestjs.com](https://docs.nestjs.com). :books:
* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
* [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
## Questions
@@ -65,19 +65,20 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<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>
<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="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>
<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></</tr></table>
<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
@@ -88,7 +89,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<a href="https://careers.meetdandy.com/?gh_src=063ba61e3us" target="_blank"><img src="https://nestjs.com/img/dandy-roles-logo.svg" width="150" valign="middle" /></td><td>
<a href="https://www.castlecraft.in" target="_blank"><img src="https://nestjs.com/img/castlecraft-logo.png" width="150" valign="middle" /></td>
<td><a href="https://www.tinystacks.com" target="_blank"><img src="https://nestjs.com/img/tinystacks-logo.png#1" width="140" valign="middle" /></td>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr></table>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr><tr>
<td><a href="https://bilberrry.com/" target="_blank"><img src="https://nestjs.com/img/bilberrry-logo.svg" width="180" valign="middle" /></td></tr></table>
#### Sponsors
@@ -96,7 +98,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<a href="https://www.swingdev.io" target="_blank"><img src="https://nestjs.com/img/swingdev-logo.svg#1" width="110" valign="middle" /> </a></td><td align="center" valign="middle">
<a href="https://www.novologic.com/" target="_blank"><img src="https://nestjs.com/img/novologic.png" width="110" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://ever.co/" target="_blank"><img src="https://nestjs.com/img/ever-logo.png" width="72" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://blokt.com" target="_blank"><img src="https://nestjs.com/img/blokt-logo.png" width="120" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://blokt.com" target="_blank"><img src="https://nestjs.com/img/blokt-logo.png" width="120" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="http://architectnow.net/" target="_blank"><img src="https://nestjs.com/img/architectnow.png" width="125" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://quander.io/" target="_blank"><img src="https://nestjs.com/img/quander.png" width="100" valign="middle" /></a> </td></tr><tr><td align="center" valign="middle">
<a href="https://mantro.net/" target="_blank"><img src="https://nestjs.com/img/mantro-logo.svg" width="95" valign="middle" /></a> </td><td align="center" valign="middle">
@@ -127,6 +129,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,3 +1,6 @@
import { MODULE_OPTIONS_TOKEN } from './cache.module-definition';
export const CACHE_MANAGER = 'CACHE_MANAGER';
export const CACHE_KEY_METADATA = 'cache_module:cache_key';
export const CACHE_TTL_METADATA = 'cache_module:cache_ttl';
export const CACHE_MODULE_OPTIONS = MODULE_OPTIONS_TOKEN;

View File

@@ -48,10 +48,13 @@ export class CacheModule extends ConfigurableModuleClass {
StoreConfig extends Record<any, any> = Record<string, any>,
>(options: CacheModuleAsyncOptions<StoreConfig>): DynamicModule {
const moduleDefinition = super.registerAsync(options);
return {
global: options.isGlobal,
...moduleDefinition,
providers: moduleDefinition.providers.concat(options.extraProviders),
providers: options.extraProviders
? moduleDefinition.providers.concat(options.extraProviders)
: moduleDefinition.providers,
};
}
}

View File

@@ -7,6 +7,7 @@ import {
HttpServer,
NestInterceptor,
} from '../../interfaces';
import { Logger } from '../../services/logger.service';
import { isFunction, isNil } from '../../utils/shared.utils';
import {
CACHE_KEY_METADATA,
@@ -53,9 +54,17 @@ export class CacheInterceptor implements NestInterceptor {
? await ttlValueOrFactory(context)
: ttlValueOrFactory;
return next.handle().pipe(
tap(response => {
tap(async response => {
const args = isNil(ttl) ? [key, response] : [key, response, { ttl }];
this.cacheManager.set(...args);
try {
await this.cacheManager.set(...args);
} catch (err) {
Logger.error(
`An error has occured when inserting "key: ${key}", "value: ${response}"`,
'CacheInterceptor',
);
}
}),
);
} catch {

View File

@@ -5,7 +5,7 @@ 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 & {

View File

@@ -15,7 +15,11 @@ export const OPTIONAL_PROPERTY_DEPS_METADATA = 'optional:properties_metadata';
export const SCOPE_OPTIONS_METADATA = 'scope:options';
export const METHOD_METADATA = 'method';
export const ROUTE_ARGS_METADATA = '__routeArguments__';
export const CUSTOM_ROUTE_AGRS_METADATA = '__customRouteArgs__';
export const CUSTOM_ROUTE_ARGS_METADATA = '__customRouteArgs__';
/**
* @deprecated Use `CUSTOM_ROUTE_ARGS_METADATA` instead
*/
export const CUSTOM_ROUTE_AGRS_METADATA = CUSTOM_ROUTE_ARGS_METADATA;
export const EXCEPTION_FILTERS_METADATA = '__exceptionFilters__';
export const FILTER_CATCH_EXCEPTIONS = '__filterCatchExceptions__';
export const PIPES_METADATA = '__pipes__';

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,

View File

@@ -41,6 +41,22 @@ export class HttpException extends Error {
super();
this.initMessage();
this.initName();
this.initCause();
}
public cause: Error | undefined;
/**
* Configures error chaining support
*
* See:
* - https://nodejs.org/en/blog/release/v16.9.0/#error-cause
* - https://github.com/microsoft/TypeScript/issues/45167
*/
public initCause() {
if (this.response instanceof Error) {
this.cause = this.response;
}
}
public initMessage() {

View File

@@ -3,9 +3,25 @@ import { types } from 'util';
import { isFunction } from '../utils/shared.utils';
import { StreamableFileOptions } from './streamable-options.interface';
export interface StreamableHandlerResponse {
destroyed: boolean;
statusCode: number;
send: (msg: string) => void;
}
export class StreamableFile {
private readonly stream: Readable;
protected handleError: (
err: Error,
response: StreamableHandlerResponse,
) => void = (err: Error, res) => {
if (!res.destroyed) {
res.statusCode = 400;
res.send(err.message);
}
};
constructor(buffer: Uint8Array, options?: StreamableFileOptions);
constructor(readable: Readable, options?: StreamableFileOptions);
constructor(
@@ -38,4 +54,18 @@ export class StreamableFile {
length,
};
}
get errorHandler(): (
err: Error,
response: StreamableHandlerResponse,
) => void {
return this.handleError;
}
setErrorHandler(
handler: (err: Error, response: StreamableHandlerResponse) => void,
) {
this.handleError = handler;
return this;
}
}

View File

@@ -50,8 +50,10 @@ export interface HttpServer<TRequest = any, TResponse = any> {
listen(port: number | string, hostname: string, callback?: () => void): any;
reply(response: any, body: any, statusCode?: number): any;
status(response: any, statusCode: number): any;
end(response: any, message?: string): any;
render(response: any, view: string, options: any): any;
redirect(response: any, statusCode: number, url: string): any;
isHeadersSent(response: any): boolean;
setHeader(response: any, name: string, value: string): any;
setErrorHandler?(handler: Function, prefix?: string): any;
setNotFoundHandler?(handler: Function, prefix?: string): any;
@@ -74,13 +76,9 @@ export interface HttpServer<TRequest = any, TResponse = any> {
close(): any;
getType(): string;
init?(): Promise<void>;
applyVersionFilter?(
applyVersionFilter(
handler: Function,
version: VersionValue,
versioningOptions: VersioningOptions,
): <TRequest extends Record<string, any> = any, TResponse = any>(
req: TRequest,
res: TResponse,
next: () => void,
) => any;
): (req: TRequest, res: TResponse, next: () => void) => Function;
}

View File

@@ -52,6 +52,13 @@ export interface ClassProvider<T = any> {
* @see [Use factory](https://docs.nestjs.com/fundamentals/custom-providers#factory-providers-usefactory)
*/
inject?: never;
/**
* Flags provider as durable. This flag can be used in combination with custom context id
* factory strategy to construct lazy DI subtrees.
*
* This flag can be used only in conjunction with scope = Scope.REQUEST.
*/
durable?: boolean;
}
/**
@@ -123,6 +130,13 @@ export interface FactoryProvider<T = any> {
* Optional enum defining lifetime of the provider that is returned by the Factory function.
*/
scope?: Scope;
/**
* Flags provider as durable. This flag can be used in combination with custom context id
* factory strategy to construct lazy DI subtrees.
*
* This flag can be used only in conjunction with scope = Scope.REQUEST.
*/
durable?: boolean;
}
/**

View File

@@ -25,7 +25,7 @@ export class NestApplicationContextOptions {
/**
* If enabled, logs will be automatically flushed and buffer detached when
* application initialisation process either completes or fails.
* application initialization process either completes or fails.
* @default true
*/
autoFlushLogs?: boolean;

View File

@@ -72,7 +72,7 @@ export interface INestApplicationContext {
enableShutdownHooks(signals?: ShutdownSignal[] | string[]): this;
/**
* Initalizes the Nest application.
* Initializes the Nest application.
* Calls the Nest lifecycle events.
* It isn't mandatory to call this method directly.
*

View File

@@ -61,16 +61,6 @@ export interface INestApplication extends INestApplicationContext {
callback?: () => void,
): Promise<any>;
/**
* Starts the application (can be awaited).
* @deprecated use "listen" instead.
*
* @param {number|string} port
* @param {string} [hostname]
* @returns {Promise}
*/
listenAsync(port: number | string, hostname?: string): Promise<any>;
/**
* Returns the url the application is listening at, based on OS and IP version. Returns as an IP value either in IPv6 or IPv4
*
@@ -138,14 +128,6 @@ export interface INestApplication extends INestApplicationContext {
*/
startAllMicroservices(): Promise<this>;
/**
* Starts all connected microservices and can be awaited.
* @deprecated use "startAllMicroservices" instead.
*
* @returns {Promise}
*/
startAllMicroservicesAsync(): Promise<this>;
/**
* Registers exception filters as global filters (will be used within
* every HTTP route handler)

View File

@@ -18,14 +18,6 @@ export interface INestMicroservice extends INestApplicationContext {
*/
listen(): Promise<any>;
/**
* Starts the microservice (can be awaited).
* @deprecated use "listen" instead.
*
* @returns {Promise}
*/
listenAsync(): Promise<any>;
/**
* Register Ws Adapter which will be used inside Gateways.
* Use when you want to override default `socket.io` library.

View File

@@ -28,4 +28,11 @@ export interface ScopeOptions {
* Specifies the lifetime of an injected Provider or Controller.
*/
scope?: Scope;
/**
* Flags provider as durable. This flag can be used in combination with custom context id
* factory strategy to construct lazy DI subtrees.
*
* This flag can be used only in conjunction with scope = Scope.REQUEST.
*/
durable?: boolean;
}

View File

@@ -18,7 +18,7 @@ export type VersionValue =
export interface VersionOptions {
/**
* Specifies an optional API Version. When configured, methods
* withing the controller will only be routed if the request version
* within the controller will only be routed if the request version
* matches the specified value.
*
* Supported only by HTTP-based applications (does not apply to non-HTTP microservices).

View File

@@ -11,9 +11,9 @@ import {
ConfigurableModuleAsyncOptions,
ConfigurableModuleCls,
ConfigurableModuleOptionsFactory,
ConfigurableModuleHost,
} from './interfaces';
import { ConfigurableModuleHost } from './interfaces/configurable-module-host.interface';
import { generateOptionsInjectionToken } from './utils/generate-options-injection-token.util';
import { generateOptionsInjectionToken, getInjectionProviders } from './utils';
/**
* @publicApi
@@ -269,6 +269,15 @@ export class ConfigurableModuleBuilder<
options: ConfigurableModuleAsyncOptions<ModuleOptions>,
): Provider[] {
if (options.useExisting || options.useFactory) {
if (options.inject && options.provideInjectionTokensFrom) {
return [
this.createAsyncOptionsProvider(options),
...getInjectionProviders(
options.provideInjectionTokensFrom,
options.inject,
),
];
}
return [this.createAsyncOptionsProvider(options)];
}
return [

View File

@@ -1,4 +1,9 @@
import { FactoryProvider, ModuleMetadata, Type } from '../../interfaces';
import {
FactoryProvider,
ModuleMetadata,
Provider,
Type,
} from '../../interfaces';
import { DEFAULT_FACTORY_CLASS_METHOD_KEY } from '../constants';
/**
@@ -43,9 +48,15 @@ export interface ConfigurableModuleAsyncOptions<
* Function returning options (or a Promise resolving to options) to configure the
* cache module.
*/
useFactory?: (...args: unknown[]) => Promise<ModuleOptions> | ModuleOptions;
useFactory?: (...args: any[]) => Promise<ModuleOptions> | ModuleOptions;
/**
* Dependencies that a Factory may inject.
*/
inject?: FactoryProvider['inject'];
/**
* List of parent module's providers that will be filtered to only provide necessary
* providers for the 'inject' array
* useful to pass options to nested async modules
*/
provideInjectionTokensFrom?: Provider[];
}

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