Compare commits

...

892 Commits

Author SHA1 Message Date
Kamil Myśliwiec
ab660c7edd test: add unit test 2024-11-25 13:48:54 +01:00
Kamil Myśliwiec
21279a9c49 feat(microservices): support nats queue per handler 2024-11-25 13:42:24 +01:00
Kamil Myśliwiec
03a61e9728 chore: revert apply decorators signature (regression) 2024-11-21 10:41:37 +01:00
Kamil Myśliwiec
212d07fcbf refactor(common): improve apply decorators types 2024-11-20 12:45:29 +01:00
Kamil Mysliwiec
bdc9b4409a Merge pull request #14142 from nestjs/feat/microservice-client-server-additions
feat(microservices): add status, unwrap, on, and other features
2024-11-20 11:04:50 +01:00
Kamil Myśliwiec
c66d1fb5f7 fix: add type constraints and assertions 2024-11-20 10:41:37 +01:00
Kamil Mysliwiec
9356509274 Update packages/microservices/server/server-nats.ts
Co-authored-by: Rick Dutour Geerling <rick@trilon.io>
2024-11-20 10:22:02 +01:00
Kamil Mysliwiec
129fe79f6b Update packages/microservices/server/server-rmq.ts
Co-authored-by: Rick Dutour Geerling <rick@trilon.io>
2024-11-18 15:26:15 +01:00
Kamil Mysliwiec
4f55f88bff Update packages/microservices/server/server-nats.ts
Co-authored-by: Rick Dutour Geerling <rick@trilon.io>
2024-11-18 15:26:07 +01:00
Kamil Mysliwiec
397390083f Merge pull request #13278 from johaven/feat-webdav-methods
feat(core,common,platform-fastify): add webdav http methods support
2024-11-18 13:16:35 +01:00
Kamil Myśliwiec
bc31b5cff5 test: update tcp config opts type 2024-11-18 13:14:59 +01:00
Kamil Mysliwiec
fb6025eb76 Merge pull request #13990 from Tony133/feat/upgrade-fastify-v5
feat(platform-fastify): added support for Fastify v5
2024-11-18 12:46:08 +01:00
Kamil Myśliwiec
3267135f2d chore: resolve merge conflicts 2024-11-18 12:45:34 +01:00
Kamil Mysliwiec
234d8d5600 Merge pull request #13924 from alinowrouzii/feat-microservices/nats-gracefull-shutdown
feat(microservices): add gracefull shutdown option for nats server
2024-11-18 12:33:48 +01:00
Kamil Mysliwiec
774ccbe1b2 Merge pull request #12622 from jmcdo29/feat/async-microservce-config
feat: allow for microservice options to come from the di container
2024-11-18 12:18:57 +01:00
Kamil Mysliwiec
ad97a73ab2 Merge branch '11.0.0' into feat-microservices/nats-gracefull-shutdown 2024-11-18 12:18:16 +01:00
Kamil Mysliwiec
00bb6309c1 Merge pull request #13407 from MegaSpaceHamlet/multer-error-fieldname
Multer error fieldname
2024-11-18 12:09:40 +01:00
Kamil Myśliwiec
c239f9a037 refactor: replace inline as any calls with untyped vars 2024-11-18 10:33:51 +01:00
Kamil Mysliwiec
a669981c81 Merge pull request #14121 from nestjs/feat/logger-additions
feat(common): json logger and a few other improvements
2024-11-18 10:09:57 +01:00
Kamil Myśliwiec
47941ba4d9 test: update outdated unit test 2024-11-18 09:56:13 +01:00
Kamil Mysliwiec
e89bb8e4a2 Merge pull request #14127 from CodyTseng/feat-ws-message-preprocessor
feat(ws): introduce message parser for ws adapter
2024-11-18 09:52:52 +01:00
Kamil Mysliwiec
ca86bf6374 Merge pull request #14129 from EeeasyCode/fix/issue-#13931
fix: rabbitmq bindings and auto-generated queues
2024-11-18 09:52:00 +01:00
Kamil Myśliwiec
09a193337a Merge branch 'ReneZeidler-fix-get-all-and-merge' into 11.0.0 2024-11-18 09:51:35 +01:00
Kamil Myśliwiec
33ef121d6b chore: a few improvements 2024-11-18 09:49:48 +01:00
Kamil Mysliwiec
d2ac397115 Merge pull request #13388 from AlexRMU/master
Сorrection of `Reflector` types
2024-11-18 09:14:09 +01:00
Kamil Myśliwiec
9129e4f858 refactor: remove redundant conditions 2024-11-18 09:10:34 +01:00
Kamil Myśliwiec
f37dafc132 chore: pass error instance to logger error method 2024-11-18 09:08:47 +01:00
Kamil Mysliwiec
3ad835c05d Merge pull request #14110 from wenlong-chen/fix-global-module-distance
fix(core): calculate module distance after bindGlobalScope
2024-11-18 08:18:34 +01:00
Kamil Mysliwiec
e965b4a141 Merge pull request #14111 from wenlong-chen/fix-module-destroy-order
fix(core): Order of module destroy should be the reverse of module init
2024-11-18 08:18:16 +01:00
Kamil Mysliwiec
feb2135373 Merge pull request #14123 from micalevisk/feat/narrow-nest-factories-methods
feat(core)!: type narrowing valid entry module for nestjs factories
2024-11-15 13:29:54 +01:00
Kamil Mysliwiec
9ea618e0a8 Update packages/core/nest-factory.ts 2024-11-15 13:29:35 +01:00
Kamil Myśliwiec
259b5dd828 fix: remove duplicated client redis message handler 2024-11-15 13:27:04 +01:00
Kamil Myśliwiec
66c3ab23ee sample: update grpc client options type 2024-11-15 12:48:22 +01:00
Kamil Myśliwiec
f2b6cc0e93 fix: fix minor type issues, broken imports 2024-11-15 11:50:09 +01:00
Kamil Myśliwiec
f983f03665 fix: update broken import paths 2024-11-15 10:19:26 +01:00
Kamil Mysliwiec
9a48dc123e Merge pull request #14131 from nestjs/feat/number-exception-create-body
feat(common): allow passing number to http error createBody
2024-11-15 10:18:14 +01:00
Kamil Mysliwiec
07adf37156 Merge pull request #14122 from nestjs/feat/parse-date-pipe
feat(common): add ParseDatePipe, add tsdoc to other pipes
2024-11-15 10:17:52 +01:00
Kamil Mysliwiec
ea92f5fb3a Merge pull request #14134 from nestjs/feat/add-max-tcp-message-length
feat(microservices): add max tcp packet buffer length
2024-11-15 10:17:28 +01:00
Kamil Myśliwiec
3dfc7fc68e feat(microservices): add status, unwrap, on, and other features 2024-11-15 10:03:05 +01:00
codytseng
33e32d9d5d feat(ws): allow setting message parser in constructor 2024-11-13 09:58:32 +08:00
codytseng
2ab99739cd refactor(ws): rename to message parser and move json parse logic inside 2024-11-13 09:57:29 +08:00
Kamil Myśliwiec
9ae6a4c19f feat(microservices): add max tcp packet buffer length 2024-11-12 13:37:14 +01:00
Kamil Myśliwiec
35846843e1 feat(common): allow passing number to http error create body #12787 2024-11-12 11:12:41 +01:00
Kamil Mysliwiec
945d134b66 Merge pull request #14126 from EeeasyCode/issue-#14093
fix(common): type narrowing context parameter on createParamDecorator's callback
2024-11-12 09:36:52 +01:00
Khan / 이창민
e231f9887e fix: rabbitmq bindings and auto-generated queues 2024-11-11 15:31:19 +09:00
Khan / 이창민
2874478b95 fix: import to use direct file path 2024-11-11 00:05:24 +09:00
codytseng
de13eec632 feat: introduce message preprocessor for ws adapter 2024-11-10 16:14:07 +08:00
Khan / 이창민
e9d57dd795 fix: type narrowing ctx 2024-11-10 16:31:29 +09:00
Micael Levi L. Cavalcante
3cdaaf0bed feat(core): type narrowing valid entry module for nestjs factories 2024-11-09 06:50:47 -04:00
Kamil Myśliwiec
676461ff4e test: add unit tests, minor updates 2024-11-08 15:49:24 +01:00
Kamil Myśliwiec
cd7079bcc0 feat(common): add parse date pipe, add tsdoc to other pipes 2024-11-08 15:28:13 +01:00
Kamil Myśliwiec
66c4810b0f style: fix linter issues 2024-11-08 14:29:42 +01:00
Kamil Myśliwiec
23e602b712 style: fix linter issues 2024-11-08 14:09:58 +01:00
Kamil Myśliwiec
e767bd364e feat: produce a parseable json when colors off and compact on 2024-11-08 13:49:42 +01:00
Kamil Mysliwiec
bcda8fd791 Merge pull request #14115 from Tony133/chore/update-fastify-view-options-interface
chore(fastify): update fastify view options interface
2024-11-08 12:26:59 +01:00
Kamil Mysliwiec
fb32ef6d46 Merge pull request #14116 from Tony133/chore/update-fastify-static-options-interface
refactor(fastify): update fastify static options interface
2024-11-08 12:26:29 +01:00
Kamil Mysliwiec
51a03bbcf2 Merge pull request #14113 from nestjs/feat/context-select-options
feat(core): allow overriding abortOnError for the select method
2024-11-08 11:44:11 +01:00
Kamil Mysliwiec
f191f0f1fd Merge pull request #14112 from nestjs/fix/instance-method-call
fix(microservices): use instance refs for target handler callbacks
2024-11-08 11:43:06 +01:00
Kamil Mysliwiec
84bf5706e2 Merge pull request #14097 from clkamp/wip-distance-order
fix(core): revisit dependencies w/ possibly higher distance
2024-11-08 11:42:49 +01:00
Kamil Myśliwiec
03d8bcc21c feat: add pid to log object 2024-11-08 11:32:08 +01:00
Kamil Myśliwiec
e75eb1d14a feat(common): json logger and a few other improvements 2024-11-08 11:21:37 +01:00
Tony133
790bafa46e refactor(): update fastify static options interface 2024-11-07 21:15:39 +01:00
Tony133
f13e32ad33 chore: update fastify view options interface 2024-11-07 21:12:38 +01:00
Antonio Tripodi
1ed97489e3 Merge branch 'master' into feat/upgrade-fastify-v5 2024-11-07 18:39:10 +01:00
Tony133
7de7320550 chore: upgrade dependencies for nest v11.x 2024-11-07 18:37:41 +01:00
Kamil Mysliwiec
3081f544f4 Merge pull request #14114 from micalevisk/fix-issue-13733
fix(common)!: drop broken support for promises on `exports` of modules
2024-11-07 14:10:35 +01:00
Micael Levi L. Cavalcante
5bc7f91d90 fix(common): drop broken support for promises on exports of modules 2024-11-07 08:49:14 -04:00
Kamil Mysliwiec
6ea78d52fb Merge pull request #13628 from tomflorentin/master
chore(class-transformer): plainToClass is deprectated and replaced with plainToInstance
2024-11-07 12:38:37 +01:00
Kamil Myśliwiec
38bfa9a13a feat(core): allow overriding abort on error for select method 2024-11-07 12:18:12 +01:00
Kamil Myśliwiec
f273041594 test: update unit tests 2024-11-07 12:07:59 +01:00
Kamil Myśliwiec
da8ebded25 fix(microservices): use instance ref to call handler #13473 2024-11-07 12:01:18 +01:00
Wenlong Chen
34c2ccabe8 fix(core): Order of module destroy should be the reverse of module init 2024-11-06 21:08:35 +08:00
Kamil Mysliwiec
0f38439aa6 Merge pull request #12761 from PieterScheffers/tcp-use-random-port
Be able to use a random port for the TCP server
2024-11-06 13:22:30 +01:00
Kamil Mysliwiec
5cdea22c39 Merge pull request #13468 from nestjs/revert-13467-revert-13283-fix/unnecessary-call
fix(microservices): delete unnecessary call of grpcClient.start
2024-11-06 12:54:35 +01:00
Kamil Mysliwiec
fd563c0ae9 Merge pull request #12735 from micalevisk/feat/narrow-inject
feat(common)!: type narrowing allowed injection tokens for `@Inject()`
2024-11-06 12:53:08 +01:00
Kamil Mysliwiec
9b690d95a2 Merge branch '11.0.0' into master 2024-11-06 12:51:14 +01:00
Kamil Mysliwiec
6228af1444 Merge pull request #13336 from nestjs/feat/module-opaque-keys
feat(core): introduce different module opaque key factories
2024-11-06 12:49:55 +01:00
Kamil Mysliwiec
8d0a3cd457 Merge pull request #12893 from Hareloo/12864-default-number-query-param-bug
fix(common): when transforming undefined numeric values
2024-11-06 12:49:48 +01:00
Kamil Mysliwiec
c63717db9d Merge pull request #12764 from kmw14641/kmw14641-bugfix/class-serializer-interceptor
fix(common): apply options to plaintoclass in classserializerinterceptor
2024-11-06 12:48:37 +01:00
Kamil Mysliwiec
9cb84e78f8 Update packages/microservices/server/server-tcp.ts
Co-authored-by: Gil Tichon <gil.tichon@lemonade.com>
2024-11-06 12:47:19 +01:00
Wenlong Chen
5ccc88fe8a fix(core): Calculate module distance after bindGlobalScope 2024-11-06 19:02:17 +08:00
Kamil Mysliwiec
bc4667c15a Update Readme.md 2024-11-05 14:19:52 +01:00
Kamil Myśliwiec
a544552f72 chore(@nestjs) publish v10.4.7 release 2024-11-05 09:57:20 +01:00
Kamil Mysliwiec
954616da7d Merge pull request #14108 from nestjs/chore/undeprecate-listen-fastify
chore(fastify): undeprecate listen method
2024-11-05 09:49:24 +01:00
Kamil Myśliwiec
c6b95f54a7 chore(fastify): undeprecate listen method 2024-11-05 09:37:22 +01:00
Johaven
af4e1d0a33 Merge branch 'nestjs:master' into feat-webdav-methods 2024-11-02 00:22:06 +01:00
Christian Lütke Stetzkamp
2c8982a2c7 fix(core): revisit dependencies w/ possibly higher distance 2024-10-29 15:33:44 +01:00
Kamil Myśliwiec
7843db3984 chore(@nestjs) publish v10.4.6 release 2024-10-23 10:21:04 +02:00
Kamil Mysliwiec
42e0798d8c Merge pull request #14085 from nestjs/fix/internal-core-module-on-preview
fix(core): initialize internal core module on preview
2024-10-23 10:20:07 +02:00
Kamil Myśliwiec
d9c8df7d40 fix(core): initialize internal core module on preview 2024-10-23 09:59:47 +02:00
Kamil Myśliwiec
025b32f342 Merge branch 'master' of https://github.com/nestjs/nest 2024-10-21 09:41:11 +02:00
Kamil Myśliwiec
c28f92e0c3 sample: simulate timeout to demonstrate caching 2024-10-21 09:40:57 +02:00
Kamil Mysliwiec
bc3ba4861d Merge pull request #14069 from pabloaguilarmartinez/engineio-cookie-vulnerability-update
build(socket.io): update engine.io dependencies for cookie vulnerability
2024-10-19 12:13:58 +02:00
Kamil Mysliwiec
8996a10235 Merge pull request #14076 from nestjs/renovate/npm-apollo-gateway-vulnerability
fix(deps): update dependency @apollo/gateway to v2.8.5 [security]
2024-10-19 12:13:46 +02:00
renovate[bot]
2c6eea08a9 fix(deps): update dependency @apollo/gateway to v2.8.5 [security] 2024-10-18 17:25:50 +00:00
Kamil Mysliwiec
f63e7adc80 Merge pull request #14067 from nestjs/renovate/npm-apollo-gateway-vulnerability
fix(deps): update dependency @apollo/gateway to v2.8.5 [security]
2024-10-18 15:02:29 +02:00
pabloaguilarm
4d3d39158a build(socket.io): update engine.io dependencies for cookie vulnerability 2024-10-16 19:59:59 +02:00
Kamil Myśliwiec
198eaf7e5c chore: update package.json 2024-10-16 12:40:57 +02:00
Kamil Myśliwiec
94a1ca14a9 chore: update readme and package.json 2024-10-16 12:40:33 +02:00
Kamil Myśliwiec
ed644e9877 chore(@nestjs) publish v10.4.5 release 2024-10-16 12:40:09 +02:00
renovate[bot]
bb2f2c4bb5 fix(deps): update dependency @apollo/gateway to v2.8.5 [security] 2024-10-16 10:39:50 +00:00
Kamil Mysliwiec
0ea48d2d7a Merge pull request #13879 from frndvrgs/feat-opts-listen-method
feat(fastify): adding opts to the listen method interface and deprecating variadic JSDocs warnings
2024-10-16 12:37:51 +02:00
Kamil Mysliwiec
508d2f3428 Merge pull request #14060 from ezintz/fix-express-vulnerabilities
build(express): upgrade to express 4.2.1
2024-10-16 12:36:34 +02:00
Kamil Mysliwiec
7cf4708a05 Merge pull request #13903 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/multi-dabac980bd
chore(deps): bump ws and @nestjs/graphql in /sample/31-graphql-federation-code-first/posts-application
2024-10-16 12:36:13 +02:00
Kamil Mysliwiec
8c2e03dcc9 Merge pull request #13917 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/micromatch-4.0.8
chore(deps): bump micromatch from 4.0.4 to 4.0.8 in /sample/32-graphql-federation-schema-first/posts-application
2024-10-16 12:36:01 +02:00
Kamil Mysliwiec
6ada824161 Merge pull request #14064 from PattyTrish/cookie-vulnerability-update
build(fastify): upgrade light-my-request to 6.1.0
2024-10-16 12:35:38 +02:00
Kamil Mysliwiec
d2ca9ec757 Merge pull request #14066 from micalevisk/test/cover-validation-pipe-options
test(common): add tests for validation pipe on 'custom' types
2024-10-16 12:35:09 +02:00
Micael Levi L. Cavalcante
78b3f0c912 test(common): add tests for validation pipe on 'custom' types 2024-10-12 17:50:14 -04:00
Patricia Ahern
980eb5bb0a build(fastify): upgrade light-my-request to 6.1.0 2024-10-10 19:14:57 -05:00
Eduard Zintz
160c3b37d8 build(express): upgrade to express 4.2.1
fixes vulnerabilites with cookie and path-to-regexp, see
https://github.com/jshttp/cookie/security/advisories/GHSA-pxg6-pf52-xh8x
https://github.com/advisories/GHSA-9wv6-86v2-598j
2024-10-10 09:31:46 +02:00
Kamil Mysliwiec
d0f401ab6e Merge pull request #14015 from nestjs/dependabot/npm_and_yarn/sample/10-fastify/find-my-way-8.2.2
chore(deps): bump find-my-way from 8.1.0 to 8.2.2 in /sample/10-fastify
2024-10-09 09:08:13 +02:00
Kamil Mysliwiec
89840cee57 Merge pull request #14039 from nestjs/dependabot/npm_and_yarn/sample/23-graphql-code-first/multi-1f9ae28231
chore(deps): bump serve-static, express and @nestjs/platform-express in /sample/23-graphql-code-first
2024-10-09 09:08:05 +02:00
Kamil Mysliwiec
94237439c4 Merge pull request #14040 from nestjs/dependabot/npm_and_yarn/sample/24-serve-static/multi-0b8bbc7c9e
chore(deps): bump send, @nestjs/platform-express and express in /sample/24-serve-static
2024-10-09 09:07:57 +02:00
Kamil Mysliwiec
9ee022495a Update Readme.md 2024-10-09 09:06:40 +02:00
Johaven
e1c1945a45 fix(platform-fastify): uppercase methods 2024-10-08 13:49:56 +02:00
Johaven
0d5ad26268 Merge branch 'nestjs:master' into feat-webdav-methods 2024-10-08 13:42:54 +02:00
dependabot[bot]
93514fdc70 chore(deps): bump send, @nestjs/platform-express and express
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependencies [send](https://github.com/pillarjs/send), [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express) and [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.4
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.4/packages/platform-express)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 08:10:45 +00:00
dependabot[bot]
a46a7dbe12 chore(deps): bump serve-static, express and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependencies [serve-static](https://github.com/expressjs/serve-static), [express](https://github.com/expressjs/express) and [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.10 to 10.4.4
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.4/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 08:10:28 +00:00
Kamil Mysliwiec
9825529f40 Merge pull request #14034 from nestjs/dependabot/npm_and_yarn/sample/28-sse/multi-5eb378ec3a
chore(deps): bump serve-static and @nestjs/platform-express in /sample/28-sse
2024-09-26 10:09:15 +02:00
Kamil Mysliwiec
826ff4b426 Merge pull request #14035 from nestjs/dependabot/npm_and_yarn/sample/28-sse/multi-6ddc2c7951
chore(deps): bump send and @nestjs/platform-express in /sample/28-sse
2024-09-26 10:09:09 +02:00
dependabot[bot]
fd740b61a6 chore(deps): bump send and @nestjs/platform-express in /sample/28-sse
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.4
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.4/packages/platform-express)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-25 06:24:39 +00:00
dependabot[bot]
c936deccad chore(deps): bump serve-static and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.4
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.4/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-25 06:24:32 +00:00
Kamil Mysliwiec
47cda92922 Merge pull request #14030 from nestjs/dependabot/npm_and_yarn/sample/25-dynamic-modules/multi-6ddc2c7951
chore(deps): bump send and @nestjs/platform-express in /sample/25-dynamic-modules
2024-09-25 08:23:29 +02:00
Kamil Mysliwiec
d70d0ba209 Merge pull request #14031 from nestjs/dependabot/npm_and_yarn/sample/25-dynamic-modules/multi-5eb378ec3a
chore(deps): bump serve-static and @nestjs/platform-express in /sample/25-dynamic-modules
2024-09-25 08:23:18 +02:00
dependabot[bot]
0fbc2a65d1 chore(deps): bump serve-static and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.4
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.4/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-24 06:53:07 +00:00
dependabot[bot]
fa56e58847 chore(deps): bump send and @nestjs/platform-express
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.4
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.4/packages/platform-express)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-24 06:53:02 +00:00
Kamil Mysliwiec
44c4f8fa8d Merge pull request #14026 from nestjs/dependabot/npm_and_yarn/sample/26-queues/multi-791e36bb45
chore(deps): bump serve-static and @nestjs/platform-express in /sample/26-queues
2024-09-24 08:51:57 +02:00
Kamil Mysliwiec
1460c6b468 Merge pull request #14025 from nestjs/dependabot/npm_and_yarn/sample/26-queues/multi-6828042f11
chore(deps): bump send and @nestjs/platform-express in /sample/26-queues
2024-09-24 08:51:52 +02:00
Kamil Mysliwiec
a1336bf60c Merge pull request #14028 from tuxmachine/test/14016-fastify-head
test: add coverage for Fastify HEAD regression
2024-09-24 08:51:14 +02:00
Rick Dutour Geerling
4d46bd8f75 test: GET endpoints should respond to HEAD reqs 2024-09-23 10:12:19 +02:00
Kamil Myśliwiec
5ae7e0f214 chore(@nestjs) publish v10.4.4 release 2024-09-23 08:47:40 +02:00
dependabot[bot]
166d5840c1 chore(deps): bump serve-static and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-23 06:47:29 +00:00
dependabot[bot]
03e122a273 chore(deps): bump send and @nestjs/platform-express in /sample/26-queues
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-23 06:47:15 +00:00
Kamil Myśliwiec
0682d390cb Merge branch 'master' of https://github.com/nestjs/nest 2024-09-23 08:46:34 +02:00
Kamil Myśliwiec
3c24de6e1f chore: update readmes 2024-09-23 08:46:26 +02:00
Kamil Mysliwiec
091722e179 Merge pull request #14013 from nestjs/dependabot/npm_and_yarn/sample/27-scheduling/multi-6828042f11
chore(deps): bump send and @nestjs/platform-express in /sample/27-scheduling
2024-09-23 08:45:51 +02:00
Kamil Mysliwiec
7dca5bdf42 Merge pull request #14014 from nestjs/dependabot/npm_and_yarn/sample/27-scheduling/multi-791e36bb45
chore(deps): bump serve-static and @nestjs/platform-express in /sample/27-scheduling
2024-09-23 08:45:45 +02:00
Kamil Mysliwiec
f9c5140a47 Merge pull request #14017 from tuxmachine/fix/14016-fastify-head
fix(fastify): uppercase http method names
2024-09-23 08:45:19 +02:00
Rick Dutour Geerling
29fca46d55 fix(fastify): uppercase http method names
Fastify expects uppercase and won't auto-add the HEAD method otherwise

Closes #13016
2024-09-20 14:01:31 +02:00
dependabot[bot]
d378fff036 chore(deps): bump find-my-way from 8.1.0 to 8.2.2 in /sample/10-fastify
Bumps [find-my-way](https://github.com/delvedor/find-my-way) from 8.1.0 to 8.2.2.
- [Release notes](https://github.com/delvedor/find-my-way/releases)
- [Commits](https://github.com/delvedor/find-my-way/compare/v8.1.0...v8.2.2)

---
updated-dependencies:
- dependency-name: find-my-way
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-20 10:20:38 +00:00
dependabot[bot]
b389a536fb chore(deps): bump ws and @nestjs/graphql
Bumps [ws](https://github.com/websockets/ws) to 8.17.1 and updates ancestor dependency [@nestjs/graphql](https://github.com/nestjs/graphql). These dependencies need to be updated together.


Updates `ws` from 7.5.9 to 8.17.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...8.17.1)

Updates `@nestjs/graphql` from 12.0.11 to 12.2.0
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.11...v12.2.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
- dependency-name: "@nestjs/graphql"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-20 10:20:35 +00:00
dependabot[bot]
6ca325476a chore(deps): bump serve-static and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-20 10:20:32 +00:00
dependabot[bot]
2409e3c48b chore(deps): bump send and @nestjs/platform-express
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-20 10:20:31 +00:00
Kamil Mysliwiec
43e374c07b Merge pull request #14011 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/multi-1f3c83078e
chore(deps): bump send, express and @nestjs/platform-express in /sample/31-graphql-federation-code-first/gateway
2024-09-20 12:19:30 +02:00
Kamil Mysliwiec
fd3dddf57a Merge pull request #14012 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/multi-987c7c1031
chore(deps): bump serve-static, express and @nestjs/platform-express in /sample/31-graphql-federation-code-first/gateway
2024-09-20 12:19:24 +02:00
dependabot[bot]
a6e9c9306f chore(deps): bump serve-static, express and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependencies [serve-static](https://github.com/expressjs/serve-static), [express](https://github.com/expressjs/express) and [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-19 13:44:24 +00:00
dependabot[bot]
50ad923137 chore(deps): bump send, express and @nestjs/platform-express
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependencies [send](https://github.com/pillarjs/send), [express](https://github.com/expressjs/express) and [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-19 13:44:22 +00:00
Kamil Mysliwiec
725e958e5d Merge pull request #14008 from nestjs/dependabot/npm_and_yarn/sample/29-file-upload/multi-6828042f11
chore(deps): bump send and @nestjs/platform-express in /sample/29-file-upload
2024-09-19 15:43:19 +02:00
Kamil Mysliwiec
a26fca197d Merge pull request #14009 from nestjs/dependabot/npm_and_yarn/sample/29-file-upload/multi-791e36bb45
chore(deps): bump serve-static and @nestjs/platform-express in /sample/29-file-upload
2024-09-19 15:43:12 +02:00
Johaven
bc36e3c32a Merge branch 'nestjs:master' into feat-webdav-methods 2024-09-19 10:12:45 +02:00
dependabot[bot]
fd5697dd79 chore(deps): bump serve-static and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-19 06:46:19 +00:00
dependabot[bot]
bd71e16a84 chore(deps): bump send and @nestjs/platform-express
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-19 06:46:05 +00:00
Kamil Mysliwiec
203395ce73 Merge pull request #14001 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/multi-987c7c1031
chore(deps): bump serve-static, express and @nestjs/platform-express in /sample/31-graphql-federation-code-first/posts-application
2024-09-19 08:44:27 +02:00
Kamil Mysliwiec
093860ad2b Merge pull request #14002 from nestjs/dependabot/npm_and_yarn/sample/30-event-emitter/multi-6828042f11
chore(deps): bump send and @nestjs/platform-express in /sample/30-event-emitter
2024-09-19 08:44:23 +02:00
Kamil Mysliwiec
2b3cfb6d22 Merge pull request #14003 from nestjs/dependabot/npm_and_yarn/sample/17-mvc-fastify/find-my-way-8.2.2
chore(deps): bump find-my-way from 8.1.0 to 8.2.2 in /sample/17-mvc-fastify
2024-09-19 08:44:15 +02:00
dependabot[bot]
3e00cc01e3 chore(deps): bump find-my-way in /sample/17-mvc-fastify
Bumps [find-my-way](https://github.com/delvedor/find-my-way) from 8.1.0 to 8.2.2.
- [Release notes](https://github.com/delvedor/find-my-way/releases)
- [Commits](https://github.com/delvedor/find-my-way/compare/v8.1.0...v8.2.2)

---
updated-dependencies:
- dependency-name: find-my-way
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 16:19:31 +00:00
dependabot[bot]
508619c391 chore(deps): bump send and @nestjs/platform-express
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 12:27:55 +00:00
dependabot[bot]
fefb01ec8e chore(deps): bump serve-static, express and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependencies [serve-static](https://github.com/expressjs/serve-static), [express](https://github.com/expressjs/express) and [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 12:27:27 +00:00
Kamil Mysliwiec
325be0a257 Merge pull request #13999 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/users-application/multi-7bd2632303
chore(deps): bump body-parser, express and @nestjs/platform-express in /sample/32-graphql-federation-schema-first/users-application
2024-09-18 14:26:40 +02:00
Kamil Mysliwiec
74e81c0b3b Merge pull request #14000 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/multi-1f3c83078e
chore(deps): bump send, express and @nestjs/platform-express in /sample/31-graphql-federation-code-first/users-application
2024-09-18 14:26:33 +02:00
Kamil Mysliwiec
6d0ff386e3 Merge pull request #13998 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/multi-987c7c1031
chore(deps): bump serve-static, express and @nestjs/platform-express in /sample/31-graphql-federation-code-first/users-application
2024-09-18 14:26:17 +02:00
dependabot[bot]
1b40f2c90e chore(deps): bump send, express and @nestjs/platform-express
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependencies [send](https://github.com/pillarjs/send), [express](https://github.com/expressjs/express) and [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 09:18:51 +00:00
dependabot[bot]
c27b43a992 chore(deps): bump body-parser, express and @nestjs/platform-express
Bumps [body-parser](https://github.com/expressjs/body-parser) to 1.20.3 and updates ancestor dependencies [body-parser](https://github.com/expressjs/body-parser), [express](https://github.com/expressjs/express) and [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `body-parser` from 1.20.2 to 1.20.3
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.2...1.20.3)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: body-parser
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 09:17:56 +00:00
dependabot[bot]
9690825f97 chore(deps): bump serve-static, express and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependencies [serve-static](https://github.com/expressjs/serve-static), [express](https://github.com/expressjs/express) and [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.3
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.3/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 09:17:27 +00:00
Kamil Mysliwiec
e7282af96d Merge pull request #13986 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/multi-b2795b2894
chore(deps): bump send, express and @nestjs/platform-express in /sample/32-graphql-federation-schema-first/posts-application
2024-09-18 11:16:43 +02:00
Kamil Mysliwiec
f23184d0cd Merge pull request #13987 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/multi-243e45365f
chore(deps): bump express and @nestjs/platform-express in /sample/32-graphql-federation-schema-first/posts-application
2024-09-18 11:16:22 +02:00
Kamil Mysliwiec
f9c2a11a39 Merge pull request #13988 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/gateway/multi-e959e9dd69
chore(deps): bump serve-static, express and @nestjs/platform-express in /sample/32-graphql-federation-schema-first/gateway
2024-09-18 11:16:14 +02:00
Kamil Mysliwiec
9d9b03366f Merge pull request #13992 from nestjs/dependabot/npm_and_yarn/concurrently-9.0.1
chore(deps-dev): bump concurrently from 8.2.2 to 9.0.1
2024-09-18 09:44:53 +02:00
Kamil Mysliwiec
51ba90249d Merge pull request #13995 from nestjs/dependabot/npm_and_yarn/nodemon-3.1.5
chore(deps-dev): bump nodemon from 3.1.4 to 3.1.5
2024-09-18 09:43:29 +02:00
Kamil Mysliwiec
545061c0b2 Merge pull request #13996 from nestjs/dependabot/npm_and_yarn/sinon-19.0.2
chore(deps-dev): bump sinon from 18.0.0 to 19.0.2
2024-09-18 09:43:13 +02:00
Kamil Mysliwiec
336815dfea Merge pull request #13997 from nestjs/dependabot/npm_and_yarn/types/mocha-10.0.8
chore(deps-dev): bump @types/mocha from 10.0.7 to 10.0.8
2024-09-18 09:43:09 +02:00
Kamil Mysliwiec
6581bcf6c2 Merge pull request #13989 from TaxBusby/fix-circleci
chore: Fix CircleCI Badge URLs in README
2024-09-18 09:42:54 +02:00
dependabot[bot]
3149bbca59 chore(deps-dev): bump @types/mocha from 10.0.7 to 10.0.8
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 10.0.7 to 10.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 01:00:54 +00:00
dependabot[bot]
a77a55291d chore(deps-dev): bump sinon from 18.0.0 to 19.0.2
Bumps [sinon](https://github.com/sinonjs/sinon) from 18.0.0 to 19.0.2.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v18.0.0...v19.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 01:00:04 +00:00
dependabot[bot]
d68a7c1e55 chore(deps-dev): bump nodemon from 3.1.4 to 3.1.5
Bumps [nodemon](https://github.com/remy/nodemon) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v3.1.4...v3.1.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 00:59:33 +00:00
dependabot[bot]
b5e34f4cfc chore(deps-dev): bump concurrently from 8.2.2 to 9.0.1
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 8.2.2 to 9.0.1.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v8.2.2...v9.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-18 00:57:49 +00:00
Tony133
5f45310ab6 feat(platform-fastify): added compatibility for fastify version 5.x 2024-09-17 22:58:29 +02:00
Michael Busby
3c162055e0 chore: Fix CircleCI Badge URLS in README 2024-09-17 06:12:24 -07:00
Kamil Myśliwiec
2fb629ec33 chore(@nestjs) publish v10.4.3 release 2024-09-17 12:07:19 +02:00
Kamil Myśliwiec
3014240ff5 Merge branch 'master' of https://github.com/nestjs/nest 2024-09-17 12:06:20 +02:00
Kamil Myśliwiec
d3dd896181 chore: update readme 2024-09-17 12:06:08 +02:00
dependabot[bot]
53c15f8ecd chore(deps): bump serve-static, express and @nestjs/platform-express
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependencies [serve-static](https://github.com/expressjs/serve-static), [express](https://github.com/expressjs/express) and [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.2
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.2/packages/platform-express)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 10:04:15 +00:00
dependabot[bot]
8a55668746 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.21.0 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.2
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.2/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 10:04:09 +00:00
dependabot[bot]
02a6e98108 chore(deps): bump send, express and @nestjs/platform-express
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependencies [send](https://github.com/pillarjs/send), [express](https://github.com/expressjs/express) and [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Updates `@nestjs/platform-express` from 10.3.8 to 10.4.2
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.4.2/packages/platform-express)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 10:04:08 +00:00
Kamil Mysliwiec
f0f156821b Merge pull request #13974 from micalevisk/patch-1
chore(fastify): upgrade `@fastify/middie` to address security vulnerability
2024-09-17 12:02:24 +02:00
Kamil Mysliwiec
1c8e510335 Merge pull request #13952 from micalevisk/style/fix-formatting
style(core): fix formatting
2024-09-17 12:02:16 +02:00
dependabot[bot]
834a49ddf1 chore(deps): bump micromatch
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.4 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.4...4.0.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 08:34:36 +00:00
Kamil Mysliwiec
bf629e60cd Merge pull request #13984 from nestjs/revert-13982-dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-8.6.0
Revert "chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.18.0 to 8.6.0"
2024-09-17 09:35:21 +02:00
Kamil Mysliwiec
2009e9b6af Revert "chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.18.0 to 8.6.0" 2024-09-17 09:35:13 +02:00
Kamil Mysliwiec
00ae6c523a Merge pull request #13976 from nestjs/dependabot/npm_and_yarn/typescript-5.6.2
chore(deps-dev): bump typescript from 5.5.4 to 5.6.2
2024-09-17 09:19:55 +02:00
Kamil Mysliwiec
b287aff5ba Merge pull request #13977 from nestjs/dependabot/npm_and_yarn/express-4.21.0
chore(deps): bump express from 4.19.2 to 4.21.0
2024-09-17 09:19:49 +02:00
Kamil Mysliwiec
ac99d20955 Merge pull request #13978 from nestjs/dependabot/npm_and_yarn/eslint-8.57.1
chore(deps-dev): bump eslint from 8.57.0 to 8.57.1
2024-09-17 09:19:42 +02:00
dependabot[bot]
508da6ee29 chore(deps-dev): bump eslint from 8.57.0 to 8.57.1
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 8.57.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.57.0...v8.57.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 07:16:31 +00:00
dependabot[bot]
91c6f3dc03 chore(deps-dev): bump typescript from 5.5.4 to 5.6.2
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.5.4 to 5.6.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.5.4...v5.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 07:16:15 +00:00
dependabot[bot]
fa9c0178cd chore(deps): bump express from 4.19.2 to 4.21.0
Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.21.0.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 07:15:35 +00:00
Kamil Mysliwiec
e9235c02f9 Merge pull request #13979 from nestjs/dependabot/npm_and_yarn/mysql2-3.11.3
chore(deps-dev): bump mysql2 from 3.11.0 to 3.11.3
2024-09-17 09:14:34 +02:00
Kamil Mysliwiec
8aecc3705e Merge pull request #13980 from nestjs/dependabot/npm_and_yarn/body-parser-1.20.3
chore(deps): bump body-parser from 1.20.2 to 1.20.3
2024-09-17 09:14:27 +02:00
Kamil Mysliwiec
5ec4606bf8 Merge pull request #13981 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-19.5.0
chore(deps-dev): bump @commitlint/config-angular from 19.4.1 to 19.5.0
2024-09-17 09:14:15 +02:00
Kamil Mysliwiec
3aa2b18f44 Merge pull request #13982 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-8.6.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.18.0 to 8.6.0
2024-09-17 09:14:07 +02:00
dependabot[bot]
1010513535 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.18.0 to 8.6.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.6.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 00:33:02 +00:00
dependabot[bot]
923246a362 chore(deps-dev): bump @commitlint/config-angular from 19.4.1 to 19.5.0
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 19.4.1 to 19.5.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/v19.5.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>
2024-09-17 00:29:24 +00:00
dependabot[bot]
94069796f7 chore(deps): bump body-parser from 1.20.2 to 1.20.3
Bumps [body-parser](https://github.com/expressjs/body-parser) from 1.20.2 to 1.20.3.
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.2...1.20.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 00:28:57 +00:00
dependabot[bot]
82c262e938 chore(deps-dev): bump mysql2 from 3.11.0 to 3.11.3
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.11.0 to 3.11.3.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.11.0...v3.11.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 00:28:17 +00:00
Micael Levi L. Cavalcante
05b77911cd chore(fastify): upgrade @fastify/middie to address security vulnerability
See https://github.com/fastify/middie/pull/215/
2024-09-16 08:42:55 -04:00
Johaven
96bf1d9bb7 Merge branch 'nestjs:master' into feat-webdav-methods 2024-09-16 14:39:48 +02:00
Kamil Mysliwiec
93caaacc7d Merge pull request #13958 from k725/chore/fix-readme-typo
docs(): fix CircleCI badge url typo
2024-09-16 12:19:19 +02:00
Kamil Myśliwiec
696b4410a3 chore(@nestjs) publish v10.4.2 release 2024-09-16 12:15:52 +02:00
Kamil Mysliwiec
cfc2217a48 Merge pull request #13911 from nestjs/dependabot/npm_and_yarn/tslib-2.7.0
chore(deps): bump tslib from 2.6.3 to 2.7.0
2024-09-16 11:48:26 +02:00
Kamil Mysliwiec
102577adb3 Merge pull request #13938 from nestjs/dependabot/npm_and_yarn/light-my-request-6.0.0
chore(deps): bump light-my-request from 5.13.0 to 6.0.0
2024-09-16 11:48:15 +02:00
dependabot[bot]
fff4b96de8 chore(deps): bump tslib from 2.6.3 to 2.7.0
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.6.3 to 2.7.0.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/v2.6.3...v2.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-16 08:19:08 +00:00
dependabot[bot]
f593343a45 chore(deps): bump light-my-request from 5.13.0 to 6.0.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.13.0 to 6.0.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.13.0...v6.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>
2024-09-16 08:17:56 +00:00
Kamil Mysliwiec
71c1a73120 Merge pull request #13936 from nestjs/dependabot/npm_and_yarn/lint-staged-15.2.10
chore(deps-dev): bump lint-staged from 15.2.9 to 15.2.10
2024-09-16 10:17:08 +02:00
Kamil Mysliwiec
6aa0f7d041 Merge pull request #13946 from nestjs/dependabot/npm_and_yarn/sample/02-gateways/multi-24bbd5359e
chore(deps): bump webpack and @nestjs/cli in /sample/02-gateways
2024-09-16 10:16:58 +02:00
dependabot[bot]
291cf96d41 chore(deps-dev): bump lint-staged from 15.2.9 to 15.2.10
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.2.9 to 15.2.10.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lint-staged/lint-staged/compare/v15.2.9...v15.2.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-16 08:16:45 +00:00
Kamil Mysliwiec
484a956e89 Merge pull request #13947 from nestjs/dependabot/npm_and_yarn/webpack-5.94.0
chore(deps-dev): bump webpack from 5.91.0 to 5.94.0
2024-09-16 10:16:43 +02:00
Kamil Mysliwiec
54f0126440 Merge pull request #13971 from micalevisk/chore/upgrade-deps-security-issues
chore(core,express,fastify): fix hard dependencies with security issues
2024-09-16 10:16:31 +02:00
Kamil Mysliwiec
fad1b1f57b Merge pull request #13966 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/gateway/dset-3.1.4
chore(deps): bump dset from 3.1.2 to 3.1.4 in /sample/32-graphql-federation-schema-first/gateway
2024-09-16 10:15:58 +02:00
Kamil Mysliwiec
b0d0ab8ac3 Merge pull request #13967 from nestjs/dependabot/npm_and_yarn/dset-3.1.4
chore(deps): bump dset from 3.1.3 to 3.1.4
2024-09-16 10:15:51 +02:00
Kamil Mysliwiec
daaba39520 Merge pull request #13968 from nestjs/dependabot/npm_and_yarn/commitlint/cli-19.5.0
chore(deps-dev): bump @commitlint/cli from 19.4.0 to 19.5.0
2024-09-16 10:15:43 +02:00
Kamil Mysliwiec
679812a1c7 Merge pull request #13969 from nestjs/dependabot/npm_and_yarn/mongoose-8.6.2
chore(deps-dev): bump mongoose from 8.6.0 to 8.6.2
2024-09-16 10:15:39 +02:00
Kamil Mysliwiec
918c0c1a43 Merge pull request #13973 from nestjs/dependabot/npm_and_yarn/types/node-22.5.5
chore(deps-dev): bump @types/node from 22.5.1 to 22.5.5
2024-09-16 10:15:32 +02:00
dependabot[bot]
1b3af389ea chore(deps-dev): bump @types/node from 22.5.1 to 22.5.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.5.1 to 22.5.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>
2024-09-16 00:41:33 +00:00
Micael Levi L. Cavalcante
b8d9a7b573 chore: ignore package lock file from packages/* dir 2024-09-13 11:20:51 -04:00
Micael Levi L. Cavalcante
e0d2ba6c98 chore(core,express,fastify): fix deps with security issues
- `path-to-regexp`
- `body-parser`
- `express` v4
2024-09-13 11:15:35 -04:00
dependabot[bot]
874e33d2d1 chore(deps-dev): bump mongoose from 8.6.0 to 8.6.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.6.0 to 8.6.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/8.6.0...8.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-12 00:58:17 +00:00
dependabot[bot]
4746fd053d chore(deps-dev): bump @commitlint/cli from 19.4.0 to 19.5.0
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 19.4.0 to 19.5.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v19.5.0/@commitlint/cli)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-12 00:53:38 +00:00
dependabot[bot]
a80f8a4ee7 chore(deps): bump dset from 3.1.3 to 3.1.4
Bumps [dset](https://github.com/lukeed/dset) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/lukeed/dset/releases)
- [Commits](https://github.com/lukeed/dset/compare/v3.1.3...v3.1.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-11 23:48:53 +00:00
dependabot[bot]
de966024dc chore(deps): bump dset
Bumps [dset](https://github.com/lukeed/dset) from 3.1.2 to 3.1.4.
- [Release notes](https://github.com/lukeed/dset/releases)
- [Commits](https://github.com/lukeed/dset/compare/v3.1.2...v3.1.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-11 23:18:55 +00:00
k725
a1231aac6b docs(): fix CircleCI badge url typo 2024-09-11 09:41:33 +09:00
Micael Levi L. Cavalcante
409e71898d style(core): fix formatting 2024-09-07 18:36:12 -04:00
dependabot[bot]
6864375fd5 chore(deps-dev): bump webpack from 5.91.0 to 5.94.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.91.0 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.91.0...v5.94.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-05 11:19:00 +00:00
dependabot[bot]
6bc77cdd31 chore(deps): bump webpack and @nestjs/cli in /sample/02-gateways
Bumps [webpack](https://github.com/webpack/webpack) to 5.94.0 and updates ancestor dependency [@nestjs/cli](https://github.com/nestjs/nest-cli). These dependencies need to be updated together.


Updates `webpack` from 5.90.1 to 5.94.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.90.1...v5.94.0)

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

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-05 08:36:23 +00:00
Kamil Mysliwiec
78408352d5 Merge pull request #13922 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/apollo/gateway-2.9.0
chore(deps): bump @apollo/gateway from 2.2.3 to 2.9.0 in /sample/31-graphql-federation-code-first/users-application
2024-08-30 09:03:38 +02:00
Kamil Mysliwiec
5fd8e42083 Merge pull request #13921 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/apollo/query-planner-2.9.0
chore(deps): bump @apollo/query-planner from 2.4.8 to 2.9.0 in /sample/31-graphql-federation-code-first/posts-application
2024-08-30 09:03:32 +02:00
Kamil Mysliwiec
742536834b Merge pull request #13926 from nestjs/dependabot/npm_and_yarn/mongoose-8.6.0
chore(deps-dev): bump mongoose from 8.5.3 to 8.6.0
2024-08-30 09:02:44 +02:00
Kamil Mysliwiec
656f7ee23c Merge pull request #13928 from nestjs/dependabot/npm_and_yarn/types/node-22.5.1
chore(deps-dev): bump @types/node from 22.5.0 to 22.5.1
2024-08-30 09:02:29 +02:00
Kamil Mysliwiec
412c180259 Merge pull request #13929 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-19.4.1
chore(deps-dev): bump @commitlint/config-angular from 19.3.0 to 19.4.1
2024-08-30 09:02:23 +02:00
dependabot[bot]
80baf9d16a chore(deps-dev): bump @commitlint/config-angular from 19.3.0 to 19.4.1
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 19.3.0 to 19.4.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-angular/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v19.4.1/@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>
2024-08-29 00:50:37 +00:00
dependabot[bot]
a8ff9a820b chore(deps-dev): bump @types/node from 22.5.0 to 22.5.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.5.0 to 22.5.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-29 00:48:44 +00:00
dependabot[bot]
e4b2624c55 chore(deps-dev): bump mongoose from 8.5.3 to 8.6.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.5.3 to 8.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/8.5.3...8.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>
2024-08-29 00:47:19 +00:00
Ali Nowrouzi
d20a1e580f feat(microservices): add gracefull shutdown option for nats server 2024-08-28 22:30:10 +03:30
Kamil Mysliwiec
731e8069a4 Merge pull request #13919 from haouvw/master
chore: fix some comments
2024-08-28 12:30:07 +02:00
dependabot[bot]
f02791a672 chore(deps): bump @apollo/gateway
Bumps [@apollo/gateway](https://github.com/apollographql/federation/tree/HEAD/gateway-js) from 2.2.3 to 2.9.0.
- [Release notes](https://github.com/apollographql/federation/releases)
- [Changelog](https://github.com/apollographql/federation/blob/main/gateway-js/CHANGELOG.md)
- [Commits](https://github.com/apollographql/federation/commits/@apollo/gateway@2.9.0/gateway-js)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-27 18:15:57 +00:00
dependabot[bot]
bc55d1442e chore(deps): bump @apollo/query-planner
Bumps [@apollo/query-planner](https://github.com/apollographql/federation/tree/HEAD/query-planner-js) from 2.4.8 to 2.9.0.
- [Release notes](https://github.com/apollographql/federation/releases)
- [Changelog](https://github.com/apollographql/federation/blob/main/query-planner-js/CHANGELOG.md)
- [Commits](https://github.com/apollographql/federation/commits/@apollo/query-planner@2.9.0/query-planner-js)

---
updated-dependencies:
- dependency-name: "@apollo/query-planner"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-27 18:15:45 +00:00
haouvw
8b4af57604 chore: fix some comments
Signed-off-by: haouvw <jchaodaohang@foxmail.com>
2024-08-27 19:08:27 +08:00
Kamil Mysliwiec
6e48bfdb9b Merge pull request #13916 from nestjs/revert-13893-dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-8.2.0
Revert "chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.18.0 to 8.2.0"
2024-08-27 09:00:57 +02:00
Kamil Mysliwiec
dda5940654 Revert "chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.18.0 to 8.2.0" 2024-08-27 09:00:49 +02:00
Kamil Mysliwiec
3d1d18ad79 Update Readme.md 2024-08-27 08:55:47 +02:00
Kamil Mysliwiec
e4b07eb06b Merge pull request #13893 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-8.2.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.18.0 to 8.2.0
2024-08-22 08:43:41 +02:00
dependabot[bot]
a822e1567a chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.18.0 to 8.2.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.2.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 06:42:50 +00:00
Kamil Mysliwiec
d51d2c26a6 Merge pull request #13896 from nestjs/dependabot/npm_and_yarn/husky-9.1.5
chore(deps-dev): bump husky from 9.1.4 to 9.1.5
2024-08-22 08:41:51 +02:00
Kamil Mysliwiec
250b3209d6 Merge pull request #13897 from nestjs/dependabot/npm_and_yarn/core-js-3.38.1
chore(deps-dev): bump core-js from 3.38.0 to 3.38.1
2024-08-22 08:41:00 +02:00
Kamil Mysliwiec
1e729166f4 Merge pull request #13901 from nestjs/dependabot/npm_and_yarn/types/node-22.5.0
chore(deps-dev): bump @types/node from 22.3.0 to 22.5.0
2024-08-22 08:40:53 +02:00
Kamil Mysliwiec
6a85b75ea8 Merge pull request #13902 from nestjs/dependabot/npm_and_yarn/artillery-2.0.20
chore(deps-dev): bump artillery from 2.0.19 to 2.0.20
2024-08-22 08:40:46 +02:00
dependabot[bot]
13151085f0 chore(deps-dev): bump artillery from 2.0.19 to 2.0.20
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.19 to 2.0.20.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 00:10:44 +00:00
dependabot[bot]
488792847a chore(deps-dev): bump @types/node from 22.3.0 to 22.5.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.3.0 to 22.5.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 00:08:22 +00:00
dependabot[bot]
eee1fcd042 chore(deps-dev): bump core-js from 3.38.0 to 3.38.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.38.0 to 3.38.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.38.1/packages/core-js)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 00:14:41 +00:00
dependabot[bot]
8bf32bb45d chore(deps-dev): bump husky from 9.1.4 to 9.1.5
Bumps [husky](https://github.com/typicode/husky) from 9.1.4 to 9.1.5.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v9.1.4...v9.1.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 00:14:08 +00:00
Johaven
09cfc8279f Merge branch 'nestjs:master' into feat-webdav-methods 2024-08-15 13:23:01 +02:00
Kamil Mysliwiec
e1fe32c0e9 Merge pull request #13884 from nestjs/dependabot/npm_and_yarn/mongoose-8.5.3
chore(deps-dev): bump mongoose from 8.5.2 to 8.5.3
2024-08-15 11:07:19 +02:00
Kamil Mysliwiec
e8152d1bbf Merge pull request #13885 from nestjs/dependabot/npm_and_yarn/lint-staged-15.2.9
chore(deps-dev): bump lint-staged from 15.2.8 to 15.2.9
2024-08-15 11:07:14 +02:00
Kamil Mysliwiec
296db1249b Merge pull request #13890 from nestjs/dependabot/npm_and_yarn/types/node-22.3.0
chore(deps-dev): bump @types/node from 22.2.0 to 22.3.0
2024-08-15 11:07:09 +02:00
dependabot[bot]
5fa9148c54 chore(deps-dev): bump @types/node from 22.2.0 to 22.3.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.2.0 to 22.3.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-15 00:44:30 +00:00
dependabot[bot]
b9562a8dc5 chore(deps-dev): bump lint-staged from 15.2.8 to 15.2.9
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.2.8 to 15.2.9.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lint-staged/lint-staged/compare/v15.2.8...v15.2.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-14 00:35:10 +00:00
dependabot[bot]
2d8e721791 chore(deps-dev): bump mongoose from 8.5.2 to 8.5.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.5.2 to 8.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/8.5.2...8.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>
2024-08-14 00:33:28 +00:00
Johaven
b90e19f15f Merge branch 'nestjs:master' into feat-webdav-methods 2024-08-13 15:05:28 +02:00
Kamil Myśliwiec
67f32e8d5f chore(@nestjs) publish v10.4.1 release 2024-08-13 10:46:16 +02:00
Kamil Myśliwiec
6f624d12d5 chore: update readme 2024-08-13 10:42:32 +02:00
Kamil Mysliwiec
7468810734 Merge pull request #13883 from nestjs/fix/nats-client-promise-13880
fix(microservices): hold nats client connection promise ref
2024-08-13 10:42:21 +02:00
Kamil Myśliwiec
0c84c7e1cc test: update client unit tests, add cleanup 2024-08-13 10:23:27 +02:00
Kamil Mysliwiec
e1f1aa901e Merge pull request #13878 from nestjs/dependabot/npm_and_yarn/sample/12-graphql-schema-first/multi-dabac980bd
chore(deps): bump ws and @nestjs/graphql in /sample/12-graphql-schema-first
2024-08-13 10:07:28 +02:00
Kamil Myśliwiec
1b8e3287d0 fix(microservices): hold nats client connection promise ref #13880 2024-08-13 10:07:03 +02:00
Fernando Vargas
aaebb6f278 feat(fastify): setting opts object optional variation 2024-08-12 08:43:07 -03:00
Fernando Vargas
fec6e82d52 feat(fastify): updates interface adding opts to the listen method 2024-08-12 08:12:24 -03:00
johaven
b62b9255cf feat(core,common,platform-fastify): add webdav http methods support 2024-08-12 11:18:40 +02:00
Kamil Myśliwiec
5bcd024798 chore(@nestjs) publish v10.4.0 release 2024-08-12 10:55:09 +02:00
dependabot[bot]
2e7c493a4f chore(deps): bump ws and @nestjs/graphql
Bumps [ws](https://github.com/websockets/ws) to 8.17.1 and updates ancestor dependency [@nestjs/graphql](https://github.com/nestjs/graphql). These dependencies need to be updated together.


Updates `ws` from 7.5.7 to 8.17.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.7...8.17.1)

Updates `@nestjs/graphql` from 12.0.11 to 12.2.0
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.11...v12.2.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
- dependency-name: "@nestjs/graphql"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 08:41:31 +00:00
Kamil Mysliwiec
7041fd03e4 Merge pull request #13877 from nestjs/dependabot/npm_and_yarn/sample/22-graphql-prisma/ws-8.17.1
chore(deps): bump ws from 7.5.8 to 8.17.1 in /sample/22-graphql-prisma
2024-08-12 10:40:27 +02:00
Kamil Mysliwiec
952bd3bf4e Merge pull request #13639 from Imran-Sarkar-Sabbir/master
feat(common): Added uuid v7 validation regex to ParseUUIDPipe
2024-08-12 10:39:01 +02:00
Kamil Mysliwiec
e5e65c26f9 Merge pull request #13762 from sheepster1/fix-promise-conversion-in-interceptor-consumer
fix(core): unhandled promise rejection in interceptors consumer
2024-08-12 10:38:37 +02:00
Kamil Mysliwiec
e5c439dd94 Merge pull request #13378 from CodyTseng/optimize-ws-adapter-handler-find
perf(ws): optimize message handler lookup
2024-08-12 10:38:20 +02:00
Kamil Mysliwiec
ccfa23ee69 Merge pull request #13731 from JadenKim-dev/grpc-package-name
feat(microservices): grpc package name can be specified with service name
2024-08-12 10:38:10 +02:00
dependabot[bot]
b18fd39013 chore(deps): bump ws from 7.5.8 to 8.17.1 in /sample/22-graphql-prisma
Bumps [ws](https://github.com/websockets/ws) from 7.5.8 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.8...8.17.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 08:35:38 +00:00
Kamil Mysliwiec
6e7216a7bc Merge pull request #13876 from nestjs/dependabot/npm_and_yarn/sample/22-graphql-prisma/multi-dabac980bd
chore(deps): bump ws and @nestjs/graphql in /sample/22-graphql-prisma
2024-08-12 10:34:52 +02:00
Kamil Mysliwiec
9ce4f892b8 Merge pull request #13867 from nestjs/dependabot/npm_and_yarn/commitlint/cli-19.4.0
chore(deps-dev): bump @commitlint/cli from 19.3.0 to 19.4.0
2024-08-12 10:34:14 +02:00
Kamil Mysliwiec
00483139cc Merge pull request #13807 from johaven/fix-search-method
fix(platform-fastify): search method not declared
2024-08-12 10:15:44 +02:00
Kamil Mysliwiec
dc9df54d29 Merge pull request #13869 from stefanvanderwolf/feature/add-http-type-support-fastify
feat(fastify): add type for http options
2024-08-12 10:15:17 +02:00
dependabot[bot]
9b077ad99f chore(deps): bump ws and @nestjs/graphql in /sample/22-graphql-prisma
Bumps [ws](https://github.com/websockets/ws) to 8.17.1 and updates ancestor dependency [@nestjs/graphql](https://github.com/nestjs/graphql). These dependencies need to be updated together.


Updates `ws` from 7.5.8 to 8.17.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.8...8.17.1)

Updates `@nestjs/graphql` from 12.0.11 to 12.2.0
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.11...v12.2.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
- dependency-name: "@nestjs/graphql"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 07:15:44 +00:00
dependabot[bot]
7fcf35b00d chore(deps-dev): bump @commitlint/cli from 19.3.0 to 19.4.0
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 19.3.0 to 19.4.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v19.4.0/@commitlint/cli)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 07:15:44 +00:00
Kamil Mysliwiec
f5f390ae52 Merge pull request #13862 from nestjs/dependabot/npm_and_yarn/sample/23-graphql-code-first/multi-dabac980bd
chore(deps): bump ws and @nestjs/graphql in /sample/23-graphql-code-first
2024-08-12 09:14:41 +02:00
Kamil Mysliwiec
7b360d9c66 Merge pull request #13864 from nestjs/dependabot/npm_and_yarn/cache-manager-5.7.6
chore(deps-dev): bump cache-manager from 5.7.5 to 5.7.6
2024-08-12 09:14:37 +02:00
Kamil Mysliwiec
9f77a75bb4 Merge pull request #13865 from nestjs/dependabot/npm_and_yarn/artillery-2.0.19
chore(deps-dev): bump artillery from 2.0.18 to 2.0.19
2024-08-12 09:14:31 +02:00
Kamil Mysliwiec
7ec89365a8 Merge pull request #13871 from nestjs/dependabot/npm_and_yarn/apollo/server-4.11.0
chore(deps-dev): bump @apollo/server from 4.10.5 to 4.11.0
2024-08-12 09:14:27 +02:00
Kamil Mysliwiec
cf42f23f10 Merge pull request #13873 from nestjs/dependabot/npm_and_yarn/mocha-10.7.3
chore(deps-dev): bump mocha from 10.7.0 to 10.7.3
2024-08-12 09:14:21 +02:00
Kamil Mysliwiec
e43b903b73 Merge pull request #13874 from nestjs/dependabot/npm_and_yarn/types/node-22.2.0
chore(deps-dev): bump @types/node from 22.1.0 to 22.2.0
2024-08-12 09:14:14 +02:00
dependabot[bot]
a602ab5ec5 chore(deps-dev): bump @types/node from 22.1.0 to 22.2.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.1.0 to 22.2.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 00:15:08 +00:00
dependabot[bot]
ae88fbd37b chore(deps-dev): bump mocha from 10.7.0 to 10.7.3
Bumps [mocha](https://github.com/mochajs/mocha) from 10.7.0 to 10.7.3.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.7.0...v10.7.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 00:14:08 +00:00
dependabot[bot]
7dbee9d0ac chore(deps-dev): bump @apollo/server from 4.10.5 to 4.11.0
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.10.5 to 4.11.0.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.11.0/packages/server)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-09 00:19:56 +00:00
Kamil Mysliwiec
38c05481e4 Update Readme.md 2024-08-08 11:12:30 +02:00
Kamil Mysliwiec
9e9095cfe9 Update Readme.md 2024-08-08 09:57:00 +02:00
Stefan van der Wolf
d0115e6cea feat(fastify): add type for http options
Fastify has support for http options through the fastify function call
which was not officially included in the nest adapter. Currently passing
an object with a http field works, but gives the developer no type
hinting about the `http` field.
2024-08-08 09:14:49 +02:00
dependabot[bot]
1e2343afed chore(deps-dev): bump artillery from 2.0.18 to 2.0.19
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.18 to 2.0.19.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/compare/artillery-2.0.18...artillery-2.0.19)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-07 00:35:05 +00:00
dependabot[bot]
07a6a3f105 chore(deps-dev): bump cache-manager from 5.7.5 to 5.7.6
Bumps [cache-manager](https://github.com/jaredwray/cacheable) from 5.7.5 to 5.7.6.
- [Release notes](https://github.com/jaredwray/cacheable/releases)
- [Commits](https://github.com/jaredwray/cacheable/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-07 00:33:18 +00:00
dependabot[bot]
a95ae2edb8 chore(deps): bump ws and @nestjs/graphql
Bumps [ws](https://github.com/websockets/ws) to 8.17.1 and updates ancestor dependency [@nestjs/graphql](https://github.com/nestjs/graphql). These dependencies need to be updated together.


Updates `ws` from 7.5.7 to 8.17.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.7...8.17.1)

Updates `@nestjs/graphql` from 12.0.11 to 12.2.0
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.11...v12.2.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
- dependency-name: "@nestjs/graphql"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-06 18:47:38 +00:00
Kamil Mysliwiec
af16406ed2 Merge pull request #13860 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/multi-dabac980bd
chore(deps): bump ws and @nestjs/graphql in /sample/31-graphql-federation-code-first/gateway
2024-08-06 20:46:27 +02:00
dependabot[bot]
39ec0e8835 chore(deps): bump ws and @nestjs/graphql
Bumps [ws](https://github.com/websockets/ws) to 8.17.1 and updates ancestor dependency [@nestjs/graphql](https://github.com/nestjs/graphql). These dependencies need to be updated together.


Updates `ws` from 7.5.9 to 8.17.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...8.17.1)

Updates `@nestjs/graphql` from 12.0.11 to 12.2.0
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.0.11...v12.2.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
- dependency-name: "@nestjs/graphql"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-06 06:53:12 +00:00
Kamil Mysliwiec
62cd4e1d9c Merge pull request #13846 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/users-application/ws-7.5.10
chore(deps): bump ws from 7.5.8 to 7.5.10 in /sample/32-graphql-federation-schema-first/users-application
2024-08-06 08:52:17 +02:00
Kamil Mysliwiec
418ffd92b8 Merge pull request #13853 from nestjs/dependabot/npm_and_yarn/lint-staged-15.2.8
chore(deps-dev): bump lint-staged from 15.2.7 to 15.2.8
2024-08-06 08:52:05 +02:00
Kamil Mysliwiec
c39d9032cd Merge pull request #13854 from nestjs/dependabot/npm_and_yarn/types/node-22.1.0
chore(deps-dev): bump @types/node from 22.0.2 to 22.1.0
2024-08-06 08:52:00 +02:00
Kamil Mysliwiec
859067d1fc Merge pull request #13855 from nestjs/dependabot/npm_and_yarn/core-js-3.38.0
chore(deps-dev): bump core-js from 3.37.1 to 3.38.0
2024-08-06 08:51:54 +02:00
Kamil Mysliwiec
6c369c6bff Merge pull request #13859 from nestjs/dependabot/npm_and_yarn/cache-manager-5.7.5
chore(deps-dev): bump cache-manager from 5.7.4 to 5.7.5
2024-08-06 08:51:48 +02:00
dependabot[bot]
b7065bc081 chore(deps-dev): bump cache-manager from 5.7.4 to 5.7.5
Bumps [cache-manager](https://github.com/jaredwray/cacheable) from 5.7.4 to 5.7.5.
- [Release notes](https://github.com/jaredwray/cacheable/releases)
- [Commits](https://github.com/jaredwray/cacheable/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-06 00:40:28 +00:00
dependabot[bot]
b2da62ad23 chore(deps-dev): bump core-js from 3.37.1 to 3.38.0
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.37.1 to 3.38.0.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.38.0/packages/core-js)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 00:34:21 +00:00
dependabot[bot]
42e20bffa5 chore(deps-dev): bump @types/node from 22.0.2 to 22.1.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.0.2 to 22.1.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 00:33:53 +00:00
dependabot[bot]
ce8eee1a60 chore(deps-dev): bump lint-staged from 15.2.7 to 15.2.8
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.2.7 to 15.2.8.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lint-staged/lint-staged/compare/v15.2.7...v15.2.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 00:33:08 +00:00
Kamil Mysliwiec
233a89ab3d Merge pull request #13848 from nestjs/dependabot/npm_and_yarn/types/node-22.0.2
chore(deps-dev): bump @types/node from 22.0.0 to 22.0.2
2024-08-01 08:59:21 +02:00
dependabot[bot]
110c186a51 chore(deps-dev): bump @types/node from 22.0.0 to 22.0.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.0.0 to 22.0.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>
2024-08-01 00:12:38 +00:00
dependabot[bot]
6737a0268f chore(deps): bump ws
Bumps [ws](https://github.com/websockets/ws) from 7.5.8 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.8...7.5.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-31 13:06:20 +00:00
Kamil Mysliwiec
cb11e2e2d9 Merge pull request #13837 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.18.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.17.0 to 7.18.0
2024-07-31 15:05:31 +02:00
dependabot[bot]
552e3a4583 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.17.0 to 7.18.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.18.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-31 06:29:21 +00:00
Kamil Mysliwiec
0e5efa575b Merge pull request #13836 from nestjs/dependabot/npm_and_yarn/types/ws-8.5.12
chore(deps-dev): bump @types/ws from 8.5.11 to 8.5.12
2024-07-31 08:28:33 +02:00
Kamil Mysliwiec
88edd7cc30 Merge pull request #13838 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.18.0
chore(deps-dev): bump @typescript-eslint/parser from 7.17.0 to 7.18.0
2024-07-31 08:28:27 +02:00
Kamil Mysliwiec
d463920b34 Merge pull request #13839 from nestjs/dependabot/npm_and_yarn/redis-4.7.0
chore(deps-dev): bump redis from 4.6.15 to 4.7.0
2024-07-31 08:28:23 +02:00
Kamil Mysliwiec
ca47f1848a Merge pull request #13840 from nestjs/dependabot/npm_and_yarn/husky-9.1.4
chore(deps-dev): bump husky from 9.1.3 to 9.1.4
2024-07-31 08:28:17 +02:00
Kamil Mysliwiec
3d26f3d74b Merge pull request #13843 from nestjs/dependabot/npm_and_yarn/mongoose-8.5.2
chore(deps-dev): bump mongoose from 8.5.1 to 8.5.2
2024-07-31 08:28:09 +02:00
Kamil Mysliwiec
4633476252 Merge pull request #13844 from nestjs/dependabot/npm_and_yarn/nats-2.28.2
chore(deps-dev): bump nats from 2.28.1 to 2.28.2
2024-07-31 08:28:02 +02:00
dependabot[bot]
e1023600e4 chore(deps-dev): bump nats from 2.28.1 to 2.28.2
Bumps [nats](https://github.com/nats-io/nats.js) from 2.28.1 to 2.28.2.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.28.1...v2.28.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-31 00:55:29 +00:00
dependabot[bot]
2195dcec38 chore(deps-dev): bump mongoose from 8.5.1 to 8.5.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.5.1 to 8.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/8.5.1...8.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>
2024-07-31 00:54:20 +00:00
dependabot[bot]
8234c7d034 chore(deps-dev): bump husky from 9.1.3 to 9.1.4
Bumps [husky](https://github.com/typicode/husky) from 9.1.3 to 9.1.4.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v9.1.3...v9.1.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 00:07:49 +00:00
dependabot[bot]
7c65ba96a9 chore(deps-dev): bump redis from 4.6.15 to 4.7.0
Bumps [redis](https://github.com/redis/node-redis) from 4.6.15 to 4.7.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.6.15...redis@4.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 00:06:44 +00:00
dependabot[bot]
74db21cd76 chore(deps-dev): bump @typescript-eslint/parser from 7.17.0 to 7.18.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.17.0 to 7.18.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.18.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 00:06:19 +00:00
dependabot[bot]
22d7a7b6af chore(deps-dev): bump @types/ws from 8.5.11 to 8.5.12
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.11 to 8.5.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 00:05:02 +00:00
Kamil Mysliwiec
705d2e00c4 Merge pull request #13831 from nestjs/dependabot/npm_and_yarn/types/node-22.0.0
chore(deps-dev): bump @types/node from 20.14.12 to 22.0.0
2024-07-29 13:28:37 +02:00
Kamil Mysliwiec
0eb51c9d7a Merge pull request #13833 from nestjs/dependabot/npm_and_yarn/mysql2-3.11.0
chore(deps-dev): bump mysql2 from 3.10.3 to 3.11.0
2024-07-29 13:28:30 +02:00
Kamil Mysliwiec
39ca180c0e Merge pull request #13834 from nestjs/dependabot/npm_and_yarn/cache-manager-5.7.4
chore(deps-dev): bump cache-manager from 5.7.3 to 5.7.4
2024-07-29 13:28:26 +02:00
Kamil Mysliwiec
424532e50f Merge pull request #13835 from nestjs/dependabot/npm_and_yarn/husky-9.1.3
chore(deps-dev): bump husky from 9.1.2 to 9.1.3
2024-07-29 13:28:20 +02:00
dependabot[bot]
4d45a41086 chore(deps-dev): bump husky from 9.1.2 to 9.1.3
Bumps [husky](https://github.com/typicode/husky) from 9.1.2 to 9.1.3.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v9.1.2...v9.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 00:28:19 +00:00
dependabot[bot]
ee89c849a6 chore(deps-dev): bump cache-manager from 5.7.3 to 5.7.4
Bumps [cache-manager](https://github.com/jaredwray/cache-manager) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/jaredwray/cache-manager/releases)
- [Commits](https://github.com/jaredwray/cache-manager/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 00:27:51 +00:00
dependabot[bot]
eb1e89e6c3 chore(deps-dev): bump mysql2 from 3.10.3 to 3.11.0
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.10.3 to 3.11.0.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.10.3...v3.11.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 00:27:25 +00:00
dependabot[bot]
4988e587af chore(deps-dev): bump @types/node from 20.14.12 to 22.0.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.12 to 22.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>
2024-07-29 00:25:17 +00:00
Kamil Mysliwiec
706af4cefb Merge pull request #13829 from nestjs/dependabot/npm_and_yarn/requirejs-2.3.7
chore(deps-dev): bump requirejs from 2.3.6 to 2.3.7
2024-07-26 09:11:33 +02:00
dependabot[bot]
f442d43636 chore(deps-dev): bump requirejs from 2.3.6 to 2.3.7
Bumps [requirejs](https://github.com/jrburke/r.js) from 2.3.6 to 2.3.7.
- [Commits](https://github.com/jrburke/r.js/compare/2.3.6...2.3.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-26 06:57:23 +00:00
Kamil Mysliwiec
6147a8215a Merge pull request #13827 from nestjs/dependabot/npm_and_yarn/multi-e86d5cf068
chore(deps-dev): bump chai and @types/chai
2024-07-26 08:56:15 +02:00
Kamil Mysliwiec
f765e5a05b Merge pull request #13828 from nestjs/dependabot/npm_and_yarn/husky-9.1.2
chore(deps-dev): bump husky from 9.1.1 to 9.1.2
2024-07-26 08:55:40 +02:00
dependabot[bot]
a9b2655b25 chore(deps-dev): bump husky from 9.1.1 to 9.1.2
Bumps [husky](https://github.com/typicode/husky) from 9.1.1 to 9.1.2.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v9.1.1...v9.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-26 01:00:06 +00:00
dependabot[bot]
01cd73e66f chore(deps-dev): bump chai and @types/chai
Bumps [chai](https://github.com/chaijs/chai) and [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai). These dependencies needed to be updated together.

Updates `chai` from 4.4.1 to 4.5.0
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.4.1...v4.5.0)

Updates `@types/chai` from 4.3.11 to 4.3.16
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-26 00:58:20 +00:00
Kamil Mysliwiec
7f7237004a Update Readme.md 2024-07-25 12:41:37 +02:00
Kamil Mysliwiec
1d095afca1 Merge pull request #13825 from nestjs/dependabot/npm_and_yarn/sample/33-graphql-mercurius/ws-7.5.10
chore(deps): bump ws from 7.5.7 to 7.5.10 in /sample/33-graphql-mercurius
2024-07-25 11:14:01 +02:00
Kamil Mysliwiec
aa4b4de2cf Merge pull request #13821 from nestjs/dependabot/npm_and_yarn/types/node-20.14.12
chore(deps-dev): bump @types/node from 20.14.11 to 20.14.12
2024-07-25 09:49:40 +02:00
dependabot[bot]
ad546f5509 chore(deps): bump ws in /sample/33-graphql-mercurius
Bumps [ws](https://github.com/websockets/ws) from 7.5.7 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.7...7.5.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 07:49:24 +00:00
Kamil Mysliwiec
094db3711e Merge pull request #13824 from nestjs/dependabot/npm_and_yarn/nats-2.28.1
chore(deps-dev): bump nats from 2.28.0 to 2.28.1
2024-07-25 09:48:17 +02:00
Kamil Myśliwiec
d8035d9ab6 chore: update sponsors 2024-07-25 09:36:59 +02:00
dependabot[bot]
10b8fd969a chore(deps-dev): bump nats from 2.28.0 to 2.28.1
Bumps [nats](https://github.com/nats-io/nats.js) from 2.28.0 to 2.28.1.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.28.0...v2.28.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 00:22:55 +00:00
dependabot[bot]
5c01248e87 chore(deps-dev): bump @types/node from 20.14.11 to 20.14.12
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.11 to 20.14.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-24 00:19:18 +00:00
Kamil Mysliwiec
b97eae547b Merge pull request #13811 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.17.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.16.1 to 7.17.0
2024-07-23 09:27:04 +02:00
dependabot[bot]
b0d93433b8 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.16.1 to 7.17.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.17.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-23 07:25:13 +00:00
Kamil Mysliwiec
895e51453f Merge pull request #13801 from nestjs/dependabot/npm_and_yarn/husky-9.1.1
chore(deps-dev): bump husky from 9.1.0 to 9.1.1
2024-07-23 09:23:28 +02:00
Kamil Mysliwiec
e8f4015580 Merge pull request #13810 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/ws-7.5.10
chore(deps): bump ws from 7.5.9 to 7.5.10 in /sample/32-graphql-federation-schema-first/posts-application
2024-07-23 09:23:24 +02:00
Kamil Mysliwiec
1bf28048d7 Merge pull request #13812 from nestjs/dependabot/npm_and_yarn/apollo/server-4.10.5
chore(deps-dev): bump @apollo/server from 4.10.4 to 4.10.5
2024-07-23 09:23:03 +02:00
Kamil Mysliwiec
be55c55db1 Merge pull request #13813 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.17.0
chore(deps-dev): bump @typescript-eslint/parser from 7.16.0 to 7.17.0
2024-07-23 09:22:55 +02:00
Kamil Mysliwiec
85e9a731da Merge pull request #13814 from nestjs/dependabot/npm_and_yarn/typescript-5.5.4
chore(deps-dev): bump typescript from 5.5.3 to 5.5.4
2024-07-23 09:22:46 +02:00
Kamil Mysliwiec
099025fa53 Merge pull request #13815 from nestjs/dependabot/npm_and_yarn/artillery-2.0.18
chore(deps-dev): bump artillery from 2.0.17 to 2.0.18
2024-07-23 09:22:29 +02:00
dependabot[bot]
cf89ecb78e chore(deps-dev): bump artillery from 2.0.17 to 2.0.18
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.17 to 2.0.18.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/compare/artillery-2.0.17...artillery-2.0.18)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-23 00:53:18 +00:00
dependabot[bot]
1c5db3e2fd chore(deps-dev): bump typescript from 5.5.3 to 5.5.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.3 to 5.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.3...v5.5.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-23 00:52:37 +00:00
dependabot[bot]
46d1e95b93 chore(deps-dev): bump @typescript-eslint/parser from 7.16.0 to 7.17.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.16.0 to 7.17.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.17.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-23 00:51:51 +00:00
dependabot[bot]
351173f152 chore(deps-dev): bump @apollo/server from 4.10.4 to 4.10.5
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.10.4 to 4.10.5.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.10.5/packages/server)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-23 00:51:00 +00:00
Kamil Mysliwiec
3f5f65450c Update Readme.md 2024-07-22 12:47:25 +02:00
dependabot[bot]
2be3d779d2 chore(deps): bump ws
Bumps [ws](https://github.com/websockets/ws) from 7.5.9 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 08:07:42 +00:00
Kamil Mysliwiec
5fea278f98 Merge pull request #13809 from nestjs/dependabot/npm_and_yarn/mocha-10.7.0
chore(deps-dev): bump mocha from 10.6.0 to 10.7.0
2024-07-22 10:06:35 +02:00
dependabot[bot]
7ea09b0516 chore(deps-dev): bump mocha from 10.6.0 to 10.7.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.6.0 to 10.7.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.6.0...v10.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 00:31:08 +00:00
Johaven
365fd1e5d8 fix: typing 2024-07-22 01:18:59 +02:00
Johaven
9f7c42744f fix(platform-fastify): search method not declared 2024-07-22 01:03:19 +02:00
dependabot[bot]
185bc5e17b chore(deps-dev): bump husky from 9.1.0 to 9.1.1
Bumps [husky](https://github.com/typicode/husky) from 9.1.0 to 9.1.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v9.1.0...v9.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-19 00:02:43 +00:00
Kamil Mysliwiec
aa10c8b8b6 Update Readme.md 2024-07-18 09:09:10 +02:00
Kamil Mysliwiec
6a60f3c785 Merge pull request #13791 from nestjs/dependabot/npm_and_yarn/types/node-20.14.11
chore(deps-dev): bump @types/node from 20.14.10 to 20.14.11
2024-07-18 09:08:00 +02:00
Kamil Mysliwiec
32e63b6d11 Merge pull request #13796 from nestjs/dependabot/npm_and_yarn/husky-9.1.0
chore(deps-dev): bump husky from 9.0.11 to 9.1.0
2024-07-18 08:54:32 +02:00
Kamil Mysliwiec
75b9f07a1a Merge pull request #13792 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.11.1
chore(deps-dev): bump @grpc/grpc-js from 1.10.11 to 1.11.1
2024-07-18 08:54:28 +02:00
Kamil Mysliwiec
a7f8dcd3e0 Merge pull request #13789 from nestjs/dependabot/npm_and_yarn/cache-manager-5.7.3
chore(deps-dev): bump cache-manager from 5.7.2 to 5.7.3
2024-07-18 08:54:25 +02:00
Kamil Mysliwiec
ccdb46b665 Merge pull request #13787 from nestjs/dependabot/npm_and_yarn/mysql2-3.10.3
chore(deps-dev): bump mysql2 from 3.10.2 to 3.10.3
2024-07-18 08:54:21 +02:00
Kamil Mysliwiec
51198a4850 Merge pull request #13786 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.16.1
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.16.0 to 7.16.1
2024-07-18 08:54:10 +02:00
dependabot[bot]
8cf92c0946 chore(deps-dev): bump husky from 9.0.11 to 9.1.0
Bumps [husky](https://github.com/typicode/husky) from 9.0.11 to 9.1.0.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v9.0.11...v9.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-18 00:05:09 +00:00
dependabot[bot]
9972ac6f27 chore(deps-dev): bump @grpc/grpc-js from 1.10.11 to 1.11.1
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.10.11 to 1.11.1.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.10.11...@grpc/grpc-js@1.11.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-17 00:07:15 +00:00
dependabot[bot]
8a9e3bf9f7 chore(deps-dev): bump @types/node from 20.14.10 to 20.14.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.10 to 20.14.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>
2024-07-17 00:05:50 +00:00
dependabot[bot]
2884c10451 chore(deps-dev): bump cache-manager from 5.7.2 to 5.7.3
Bumps [cache-manager](https://github.com/jaredwray/cache-manager) from 5.7.2 to 5.7.3.
- [Release notes](https://github.com/jaredwray/cache-manager/releases)
- [Commits](https://github.com/jaredwray/cache-manager/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-16 00:43:26 +00:00
dependabot[bot]
c7b9573244 chore(deps-dev): bump mysql2 from 3.10.2 to 3.10.3
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.10.2 to 3.10.3.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.10.2...v3.10.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-16 00:42:30 +00:00
dependabot[bot]
5c5558b3c0 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.16.0 to 7.16.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.16.1/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-16 00:42:06 +00:00
Kamil Mysliwiec
73ad7f2652 Merge pull request #13783 from nestjs/dependabot/npm_and_yarn/types/ws-8.5.11
chore(deps-dev): bump @types/ws from 8.5.10 to 8.5.11
2024-07-15 10:13:46 +02:00
Kamil Mysliwiec
3ab0da8c04 Merge pull request #13782 from nestjs/dependabot/npm_and_yarn/prettier-3.3.3
chore(deps-dev): bump prettier from 3.3.2 to 3.3.3
2024-07-15 10:10:34 +02:00
Kamil Mysliwiec
6732d9d731 Merge pull request #13784 from nestjs/dependabot/npm_and_yarn/mongoose-8.5.1
chore(deps-dev): bump mongoose from 8.5.0 to 8.5.1
2024-07-15 10:10:25 +02:00
dependabot[bot]
c9343596fc chore(deps-dev): bump mongoose from 8.5.0 to 8.5.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.5.0 to 8.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/8.5.0...8.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>
2024-07-15 01:01:43 +00:00
dependabot[bot]
ddb44b992d chore(deps-dev): bump @types/ws from 8.5.10 to 8.5.11
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.10 to 8.5.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-15 00:59:58 +00:00
dependabot[bot]
27a8a417a5 chore(deps-dev): bump prettier from 3.3.2 to 3.3.3
Bumps [prettier](https://github.com/prettier/prettier) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.3.2...3.3.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-15 00:58:30 +00:00
Kamil Mysliwiec
15f2f1ce70 Merge pull request #13780 from nestjs/dependabot/npm_and_yarn/cache-manager-5.7.2
chore(deps-dev): bump cache-manager from 5.7.1 to 5.7.2
2024-07-12 08:49:33 +02:00
dependabot[bot]
b6996baec0 chore(deps-dev): bump cache-manager from 5.7.1 to 5.7.2
Bumps [cache-manager](https://github.com/jaredwray/cache-manager) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/jaredwray/cache-manager/releases)
- [Commits](https://github.com/jaredwray/cache-manager/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-12 00:51:36 +00:00
Kamil Mysliwiec
72eedeb756 Merge pull request #13776 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.10.11
chore(deps-dev): bump @grpc/grpc-js from 1.10.10 to 1.10.11
2024-07-11 12:04:54 +02:00
dependabot[bot]
d49a8634f6 chore(deps-dev): bump @grpc/grpc-js from 1.10.10 to 1.10.11
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.10.10 to 1.10.11.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.10.10...@grpc/grpc-js@1.10.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>
2024-07-11 00:36:50 +00:00
Kamil Mysliwiec
4b8b971d58 Merge pull request #13774 from nestjs/dependabot/npm_and_yarn/artillery-2.0.17
chore(deps-dev): bump artillery from 2.0.16 to 2.0.17
2024-07-10 09:00:29 +02:00
dependabot[bot]
40f3975bc8 chore(deps-dev): bump artillery from 2.0.16 to 2.0.17
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.16 to 2.0.17.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/compare/artillery-2.0.16...artillery-2.0.17)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-10 00:58:10 +00:00
Kamil Mysliwiec
05966661fb Merge pull request #13771 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.16.0
chore(deps-dev): bump @typescript-eslint/parser from 7.13.1 to 7.16.0
2024-07-09 13:57:21 +02:00
dependabot[bot]
206128b805 chore(deps-dev): bump @typescript-eslint/parser from 7.13.1 to 7.16.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.13.1 to 7.16.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.16.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 06:49:49 +00:00
Kamil Mysliwiec
03d53a5995 Merge pull request #13765 from nestjs/dependabot/npm_and_yarn/types/node-20.14.10
chore(deps-dev): bump @types/node from 20.14.9 to 20.14.10
2024-07-09 08:48:25 +02:00
Kamil Mysliwiec
228d8c3c19 Merge pull request #13767 from nestjs/dependabot/npm_and_yarn/nestjs/mongoose-10.0.10
chore(deps-dev): bump @nestjs/mongoose from 10.0.6 to 10.0.10
2024-07-09 08:48:18 +02:00
Kamil Mysliwiec
b5376e45fc Merge pull request #13770 from nestjs/dependabot/npm_and_yarn/mongoose-8.5.0
chore(deps-dev): bump mongoose from 8.4.4 to 8.5.0
2024-07-09 08:48:12 +02:00
Kamil Mysliwiec
102e24a6c0 Merge pull request #13772 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.16.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.15.0 to 7.16.0
2024-07-09 08:48:01 +02:00
dependabot[bot]
5f01d8fcc0 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.15.0 to 7.16.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.16.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 01:00:03 +00:00
dependabot[bot]
05d0513a13 chore(deps-dev): bump mongoose from 8.4.4 to 8.5.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.4.4 to 8.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/8.4.4...8.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>
2024-07-09 00:58:28 +00:00
dependabot[bot]
1a0ad0a3b7 chore(deps-dev): bump @nestjs/mongoose from 10.0.6 to 10.0.10
Bumps [@nestjs/mongoose](https://github.com/nestjs/mongoose) from 10.0.6 to 10.0.10.
- [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/10.0.6...10.0.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-08 00:48:40 +00:00
dependabot[bot]
5047d8f210 chore(deps-dev): bump @types/node from 20.14.9 to 20.14.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.9 to 20.14.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>
2024-07-08 00:47:21 +00:00
sheepster1
821b080963 fix(core): unhandled promise rejection in interceptors consumer 2024-07-06 18:27:56 +03:00
Kamil Mysliwiec
6a791dcff4 Merge pull request #13747 from nestjs/dependabot/npm_and_yarn/nestjs/apollo-12.2.0
chore(deps-dev): bump @nestjs/apollo from 12.1.0 to 12.2.0
2024-07-04 12:23:20 +02:00
Kamil Mysliwiec
0e0f433f77 Merge pull request #13754 from nestjs/dependabot/npm_and_yarn/cache-manager-5.7.1
chore(deps-dev): bump cache-manager from 5.6.1 to 5.7.1
2024-07-04 12:23:07 +02:00
Kamil Mysliwiec
4b09876611 Merge pull request #13755 from nestjs/dependabot/npm_and_yarn/mocha-10.6.0
chore(deps-dev): bump mocha from 10.5.2 to 10.6.0
2024-07-04 12:22:57 +02:00
Kamil Mysliwiec
9ae655f695 Merge pull request #13756 from nestjs/dependabot/npm_and_yarn/ws-8.18.0
chore(deps): bump ws from 8.17.1 to 8.18.0
2024-07-04 12:22:49 +02:00
Kamil Mysliwiec
1860d58642 Merge pull request #13757 from nestjs/dependabot/npm_and_yarn/typescript-5.5.3
chore(deps-dev): bump typescript from 5.5.2 to 5.5.3
2024-07-04 12:22:32 +02:00
Kamil Mysliwiec
b384aad9dc Merge pull request #13753 from micalevisk/patch-1
feat(common): less verbose 'missing package' error message
2024-07-04 10:11:42 +02:00
dependabot[bot]
12d0e1ae33 chore(deps-dev): bump typescript from 5.5.2 to 5.5.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.2 to 5.5.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.2...v5.5.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-04 00:34:16 +00:00
dependabot[bot]
37a2360bc8 chore(deps): bump ws from 8.17.1 to 8.18.0
Bumps [ws](https://github.com/websockets/ws) from 8.17.1 to 8.18.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.17.1...8.18.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-04 00:33:34 +00:00
dependabot[bot]
324c6dba17 chore(deps-dev): bump mocha from 10.5.2 to 10.6.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.5.2 to 10.6.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.5.2...v10.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-04 00:32:52 +00:00
dependabot[bot]
c2593b15f2 chore(deps-dev): bump cache-manager from 5.6.1 to 5.7.1
Bumps [cache-manager](https://github.com/jaredwray/cache-manager) from 5.6.1 to 5.7.1.
- [Release notes](https://github.com/jaredwray/cache-manager/releases)
- [Commits](https://github.com/jaredwray/cache-manager/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-04 00:31:00 +00:00
Micael Levi L. Cavalcante
c5d08c81ef docs(common): add docs to StreamableFile options 2024-07-03 14:18:02 -04:00
dependabot[bot]
4df251b385 chore(deps-dev): bump @nestjs/apollo from 12.1.0 to 12.2.0
Bumps [@nestjs/apollo](https://github.com/nestjs/graphql) from 12.1.0 to 12.2.0.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.1.0...v12.2.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>
2024-07-03 07:22:47 +00:00
Kamil Mysliwiec
6afb66e539 Merge pull request #13748 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-6.0.0
chore(deps): bump fast-json-stringify from 5.16.1 to 6.0.0
2024-07-03 09:21:51 +02:00
Kamil Mysliwiec
184cbe3640 Merge pull request #13749 from nestjs/dependabot/npm_and_yarn/mysql2-3.10.2
chore(deps-dev): bump mysql2 from 3.10.1 to 3.10.2
2024-07-03 09:21:48 +02:00
Kamil Mysliwiec
99da89ba20 Merge pull request #13750 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.10.10
chore(deps-dev): bump @grpc/grpc-js from 1.10.9 to 1.10.10
2024-07-03 09:21:41 +02:00
Kamil Mysliwiec
96237c9192 Merge pull request #13751 from nestjs/dependabot/npm_and_yarn/nestjs/graphql-12.2.0
chore(deps-dev): bump @nestjs/graphql from 12.1.1 to 12.2.0
2024-07-03 09:21:30 +02:00
Kamil Mysliwiec
5b454cf853 Merge pull request #13752 from nestjs/dependabot/npm_and_yarn/redis-4.6.15
chore(deps-dev): bump redis from 4.6.14 to 4.6.15
2024-07-03 09:20:13 +02:00
dependabot[bot]
4995cedc28 chore(deps-dev): bump redis from 4.6.14 to 4.6.15
Bumps [redis](https://github.com/redis/node-redis) from 4.6.14 to 4.6.15.
- [Release notes](https://github.com/redis/node-redis/releases)
- [Changelog](https://github.com/redis/node-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/node-redis/compare/redis@4.6.14...redis@4.6.15)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-03 00:51:58 +00:00
dependabot[bot]
22af4c889e chore(deps-dev): bump @nestjs/graphql from 12.1.1 to 12.2.0
Bumps [@nestjs/graphql](https://github.com/nestjs/graphql) from 12.1.1 to 12.2.0.
- [Release notes](https://github.com/nestjs/graphql/releases)
- [Commits](https://github.com/nestjs/graphql/compare/v12.1.1...v12.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-03 00:51:14 +00:00
dependabot[bot]
e8a2ff0cc0 chore(deps-dev): bump @grpc/grpc-js from 1.10.9 to 1.10.10
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.10.9 to 1.10.10.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.10.9...@grpc/grpc-js@1.10.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>
2024-07-03 00:50:24 +00:00
dependabot[bot]
40e38322d2 chore(deps-dev): bump mysql2 from 3.10.1 to 3.10.2
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.10.1 to 3.10.2.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.10.1...v3.10.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-03 00:49:57 +00:00
dependabot[bot]
7b994bda72 chore(deps): bump fast-json-stringify from 5.16.1 to 6.0.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.16.1 to 6.0.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.16.1...v6.0.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>
2024-07-03 00:49:16 +00:00
Kamil Mysliwiec
f7201d9321 Merge pull request #13745 from nestjs/dependabot/npm_and_yarn/sample/23-graphql-code-first/multi-d6511ecd60
chore(deps): bump express and @nestjs/platform-express in /sample/23-graphql-code-first
2024-07-02 13:19:30 +02:00
dependabot[bot]
d0b9474319 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.10
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.10/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 07:36:53 +00:00
Kamil Mysliwiec
2434299a33 Merge pull request #13740 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.15.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.13.1 to 7.15.0
2024-07-02 09:17:11 +02:00
Kamil Mysliwiec
4467c5dc6d Merge pull request #13742 from nestjs/dependabot/npm_and_yarn/multi-351a35f700
chore(deps-dev): bump mocha and @types/mocha
2024-07-02 09:17:02 +02:00
dependabot[bot]
f7f32fc1b8 chore(deps-dev): bump mocha and @types/mocha
Bumps [mocha](https://github.com/mochajs/mocha) and [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha). These dependencies needed to be updated together.

Updates `mocha` from 10.4.0 to 10.5.2
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.4.0...v10.5.2)

Updates `@types/mocha` from 10.0.6 to 10.0.7
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 07:04:37 +00:00
Kamil Mysliwiec
f78380db06 Merge pull request #13738 from nestjs/dependabot/npm_and_yarn/artillery-2.0.16
chore(deps-dev): bump artillery from 2.0.15 to 2.0.16
2024-07-02 09:03:02 +02:00
Kamil Mysliwiec
d3ba05df84 Merge pull request #13739 from nestjs/dependabot/npm_and_yarn/fastify-4.28.1
chore(deps): bump fastify from 4.28.0 to 4.28.1
2024-07-02 09:02:55 +02:00
Kamil Mysliwiec
71996b63ac Merge pull request #13743 from nestjs/dependabot/npm_and_yarn/nats-2.28.0
chore(deps-dev): bump nats from 2.27.0 to 2.28.0
2024-07-02 09:02:48 +02:00
Kamil Mysliwiec
e6856af754 Merge pull request #13744 from nestjs/dependabot/npm_and_yarn/mongoose-8.4.4
chore(deps-dev): bump mongoose from 8.4.3 to 8.4.4
2024-07-02 09:02:42 +02:00
dependabot[bot]
55e98472fc chore(deps-dev): bump mongoose from 8.4.3 to 8.4.4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.4.3 to 8.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/8.4.3...8.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>
2024-07-02 00:46:17 +00:00
dependabot[bot]
671d979cf6 chore(deps-dev): bump nats from 2.27.0 to 2.28.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.27.0 to 2.28.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.27.0...v2.28.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 00:45:31 +00:00
dependabot[bot]
d6b9a9f56f chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.13.1 to 7.15.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.15.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 00:44:00 +00:00
dependabot[bot]
b1b66d2d6c chore(deps): bump fastify from 4.28.0 to 4.28.1
Bumps [fastify](https://github.com/fastify/fastify) from 4.28.0 to 4.28.1.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.28.0...v4.28.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 00:43:24 +00:00
dependabot[bot]
f850786af4 chore(deps-dev): bump artillery from 2.0.15 to 2.0.16
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.15 to 2.0.16.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/compare/artillery-2.0.15...artillery-2.0.16)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 00:43:16 +00:00
Kamil Myśliwiec
d22ffc1d0b chore: update package.json 2024-07-01 11:28:14 +02:00
Kamil Myśliwiec
b59d5acf47 chore(@nestjs) publish v10.3.10 release 2024-07-01 11:27:38 +02:00
Kamil Mysliwiec
68d91acd2a Merge pull request #13734 from ancyrweb/master
feat(fastify-adapter): support for skipping middie registration
2024-07-01 11:26:27 +02:00
Kamil Mysliwiec
783e833613 Merge pull request #13683 from ragavendra/ragavendra-chai-dependency
Update package.json
2024-07-01 11:24:55 +02:00
Kamil Myśliwiec
284f4373b8 docs: update readme 2024-07-01 11:23:59 +02:00
Kamil Mysliwiec
52291d10b1 Merge pull request #13706 from nestjs/dependabot/npm_and_yarn/nodemon-3.1.4
chore(deps-dev): bump nodemon from 3.1.3 to 3.1.4
2024-07-01 11:03:54 +02:00
Kamil Mysliwiec
3144fd294c Merge pull request #13716 from nestjs/dependabot/npm_and_yarn/ts-morph-23.0.0
chore(deps-dev): bump ts-morph from 22.0.0 to 23.0.0
2024-07-01 11:03:47 +02:00
Kamil Mysliwiec
e8d0405643 Merge pull request #13697 from nestjs/dependabot/npm_and_yarn/sample/16-gateways-ws/ws-8.17.1
chore(deps): bump ws from 8.13.0 to 8.17.1 in /sample/16-gateways-ws
2024-07-01 11:00:31 +02:00
Anthony Cyrille
c7d2978d31 feat(fastify-adapter): support for skipping middie registration 2024-07-01 10:20:45 +02:00
dependabot[bot]
d4386d6f1a chore(deps-dev): bump nodemon from 3.1.3 to 3.1.4
Bumps [nodemon](https://github.com/remy/nodemon) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v3.1.3...v3.1.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 08:16:04 +00:00
dependabot[bot]
b43e8b7b22 chore(deps-dev): bump ts-morph from 22.0.0 to 23.0.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 22.0.0 to 23.0.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/22.0.0...23.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>
2024-07-01 08:15:07 +00:00
Kamil Mysliwiec
970cb48012 Merge pull request #13712 from micalevisk/fix/forwardref-on-exports
fix(core): when using forward references on `exports` array
2024-07-01 10:14:02 +02:00
Kamil Mysliwiec
ad1e11b403 Merge pull request #13708 from nestjs/dependabot/npm_and_yarn/nats-2.27.0
chore(deps-dev): bump nats from 2.26.0 to 2.27.0
2024-07-01 10:12:21 +02:00
Kamil Mysliwiec
0de2a00ef4 Merge pull request #13709 from nestjs/dependabot/npm_and_yarn/typescript-5.5.2
chore(deps-dev): bump typescript from 5.4.5 to 5.5.2
2024-07-01 10:12:17 +02:00
Kamil Mysliwiec
3dd2811d18 Merge pull request #13715 from nestjs/dependabot/npm_and_yarn/graphql-16.9.0
chore(deps-dev): bump graphql from 16.8.2 to 16.9.0
2024-07-01 10:12:11 +02:00
Kamil Mysliwiec
ef0836caaa Merge pull request #13718 from nestjs/dependabot/npm_and_yarn/engine.io-client-6.6.0
chore(deps-dev): bump engine.io-client from 6.5.4 to 6.6.0
2024-07-01 10:12:04 +02:00
Kamil Mysliwiec
6d9d4ae4b2 Merge pull request #13724 from nestjs/dependabot/npm_and_yarn/types/node-20.14.9
chore(deps-dev): bump @types/node from 20.14.6 to 20.14.9
2024-07-01 10:11:57 +02:00
Kamil Mysliwiec
56aa326d6b Merge pull request #13714 from micalevisk/minor-improve-to-sample-18
chore: add use case for selecting dynamic modules to 18-context sample
2024-07-01 10:09:48 +02:00
JadenKim-dev
27d01d6ed2 feat: added optional chaining 2024-06-30 22:49:37 +09:00
JadenKim-dev
ce0b4fbd88 feat: grpc package name can be specified with service name 2024-06-30 22:31:11 +09:00
Micael Levi L. Cavalcante
9b4aa27ba6 feat(common): less verbose 'missing package' error message
The tip "npm install ..." is not that useful when one is using another package manager instead of NPM. And also can lead to confusion.
2024-06-28 13:28:06 -04:00
dependabot[bot]
04aaf1fd1e chore(deps-dev): bump @types/node from 20.14.6 to 20.14.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.6 to 20.14.9.
- [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>
2024-06-26 00:55:41 +00:00
dependabot[bot]
8dcdb97914 chore(deps-dev): bump engine.io-client from 6.5.4 to 6.6.0
Bumps [engine.io-client](https://github.com/socketio/engine.io-client) from 6.5.4 to 6.6.0.
- [Release notes](https://github.com/socketio/engine.io-client/releases)
- [Changelog](https://github.com/socketio/engine.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io-client/compare/6.5.4...6.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-24 01:01:08 +00:00
dependabot[bot]
1944a99533 chore(deps-dev): bump graphql from 16.8.2 to 16.9.0
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.8.2 to 16.9.0.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.8.2...v16.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-24 00:58:00 +00:00
Micael Levi L. Cavalcante
2997321810 chore: add use case for selecting dynamic modules to 18-context sample 2024-06-22 13:41:03 -04:00
Micael Levi L. Cavalcante
ee373079be chore: use markdown highlight on bug report issue template 2024-06-21 22:00:30 -04:00
Micael Levi L. Cavalcante
136f035d36 fix(core): when using forward references on exports array 2024-06-21 10:28:42 -04:00
dependabot[bot]
e4856a91ca chore(deps-dev): bump typescript from 5.4.5 to 5.5.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.4.5 to 5.5.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.4.5...v5.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 00:11:21 +00:00
dependabot[bot]
61cfece539 chore(deps-dev): bump nats from 2.26.0 to 2.27.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.26.0 to 2.27.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.26.0...v2.27.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 00:10:29 +00:00
Kamil Mysliwiec
15cb568e40 Merge pull request #13672 from nestjs/dependabot/npm_and_yarn/sample/26-queues/braces-3.0.3
chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /sample/26-queues
2024-06-20 09:49:26 +02:00
Kamil Mysliwiec
a6a074e574 Merge pull request #13693 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.13.1
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.13.0 to 7.13.1
2024-06-20 09:23:01 +02:00
Kamil Mysliwiec
3c772547c5 Merge pull request #13699 from nestjs/dependabot/npm_and_yarn/engine.io-client-6.5.4
chore(deps-dev): bump engine.io-client from 6.5.3 to 6.5.4
2024-06-20 09:22:54 +02:00
Kamil Mysliwiec
be01fcc28d Merge pull request #13702 from nestjs/dependabot/npm_and_yarn/types/node-20.14.6
chore(deps-dev): bump @types/node from 20.14.4 to 20.14.6
2024-06-20 09:22:48 +02:00
Kamil Mysliwiec
07fea55ace Merge pull request #13703 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.16.1
chore(deps): bump fast-json-stringify from 5.16.0 to 5.16.1
2024-06-20 09:22:36 +02:00
dependabot[bot]
c30bee33a8 chore(deps): bump fast-json-stringify from 5.16.0 to 5.16.1
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.16.0 to 5.16.1.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.16.0...v5.16.1)

---
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>
2024-06-20 00:22:24 +00:00
dependabot[bot]
4016d78e6d chore(deps-dev): bump @types/node from 20.14.4 to 20.14.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.4 to 20.14.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>
2024-06-20 00:21:24 +00:00
dependabot[bot]
f45418d824 chore(deps-dev): bump engine.io-client from 6.5.3 to 6.5.4
Bumps [engine.io-client](https://github.com/socketio/engine.io-client) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/socketio/engine.io-client/releases)
- [Changelog](https://github.com/socketio/engine.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io-client/compare/6.5.3...6.5.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-19 00:48:52 +00:00
dependabot[bot]
6dddd6183c chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.13.0 to 7.13.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.13.1/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 10:52:06 +00:00
Kamil Mysliwiec
dba631bef8 Merge pull request #13694 from nestjs/dependabot/npm_and_yarn/mongoose-8.4.3
chore(deps-dev): bump mongoose from 8.4.1 to 8.4.3
2024-06-18 12:51:06 +02:00
Kamil Mysliwiec
8425a4a6c7 Merge pull request #13695 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.13.1
chore(deps-dev): bump @typescript-eslint/parser from 7.13.0 to 7.13.1
2024-06-18 12:50:47 +02:00
Kamil Mysliwiec
2160440a0e Merge pull request #13696 from nestjs/dependabot/npm_and_yarn/types/node-20.14.4
chore(deps-dev): bump @types/node from 20.14.2 to 20.14.4
2024-06-18 12:49:27 +02:00
Kamil Mysliwiec
78e78cbba7 Update Readme.md 2024-06-18 12:49:09 +02:00
dependabot[bot]
044dd0ffc1 chore(deps): bump ws from 8.13.0 to 8.17.1 in /sample/16-gateways-ws
Bumps [ws](https://github.com/websockets/ws) from 8.13.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.17.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 06:24:43 +00:00
dependabot[bot]
ca1318cb7b chore(deps-dev): bump @types/node from 20.14.2 to 20.14.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.2 to 20.14.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>
2024-06-18 00:53:05 +00:00
dependabot[bot]
a2ed80ea2f chore(deps-dev): bump @typescript-eslint/parser from 7.13.0 to 7.13.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.13.0 to 7.13.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.13.1/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 00:52:36 +00:00
dependabot[bot]
f1bf4ef278 chore(deps-dev): bump mongoose from 8.4.1 to 8.4.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.4.1 to 8.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/8.4.1...8.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>
2024-06-18 00:51:43 +00:00
Kamil Mysliwiec
95b1632279 Merge pull request #13678 from nestjs/dependabot/npm_and_yarn/graphql-16.8.2
chore(deps-dev): bump graphql from 16.8.1 to 16.8.2
2024-06-17 10:49:09 +02:00
dependabot[bot]
021f97ff5c chore(deps-dev): bump graphql from 16.8.1 to 16.8.2
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.8.1 to 16.8.2.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.8.1...v16.8.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 08:48:19 +00:00
Kamil Mysliwiec
0e45af4c40 Merge pull request #13682 from nestjs/dependabot/npm_and_yarn/mysql2-3.10.1
chore(deps-dev): bump mysql2 from 3.10.0 to 3.10.1
2024-06-17 10:46:47 +02:00
Kamil Mysliwiec
fb6b4c7b1b Update Readme.md 2024-06-17 10:46:40 +02:00
Kamil Mysliwiec
4853dcca25 Merge pull request #13674 from nestjs/dependabot/npm_and_yarn/prettier-3.3.2
chore(deps-dev): bump prettier from 3.3.1 to 3.3.2
2024-06-17 10:44:52 +02:00
Kamil Mysliwiec
57770661a2 Merge pull request #13677 from nestjs/dependabot/npm_and_yarn/lint-staged-15.2.7
chore(deps-dev): bump lint-staged from 15.2.5 to 15.2.7
2024-06-17 10:44:46 +02:00
Kamil Mysliwiec
ec4a01264f Merge pull request #13690 from nestjs/dependabot/npm_and_yarn/ws-8.17.1
chore(deps): bump ws from 8.17.0 to 8.17.1
2024-06-17 10:44:34 +02:00
Kamil Mysliwiec
dd6a0a854f Merge pull request #13691 from nestjs/dependabot/npm_and_yarn/fastify-4.28.0
chore(deps): bump fastify from 4.27.0 to 4.28.0
2024-06-17 10:44:04 +02:00
dependabot[bot]
05980d1d9b chore(deps): bump fastify from 4.27.0 to 4.28.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.27.0 to 4.28.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.27.0...v4.28.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 00:46:58 +00:00
dependabot[bot]
48912f87ac chore(deps): bump ws from 8.17.0 to 8.17.1
Bumps [ws](https://github.com/websockets/ws) from 8.17.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.17.0...8.17.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 00:44:56 +00:00
Ragavendra
287007a79d Removing chai dependency and updating to use toEqual
No need for chai as assertions can be done without it.
2024-06-14 10:12:55 -07:00
ragavendra
74430ab4f6 Update package.json 2024-06-13 18:01:29 -07:00
dependabot[bot]
37439da880 chore(deps-dev): bump mysql2 from 3.10.0 to 3.10.1
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.10.0 to 3.10.1.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.10.0...v3.10.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-14 00:14:23 +00:00
Kamil Myśliwiec
851b51f4e5 chore: update sponsor link 2024-06-13 09:42:47 +02:00
dependabot[bot]
f5adb83dbb chore(deps-dev): bump lint-staged from 15.2.5 to 15.2.7
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 15.2.5 to 15.2.7.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/okonet/lint-staged/compare/v15.2.5...v15.2.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-13 00:40:55 +00:00
dependabot[bot]
0d1c01aac8 chore(deps-dev): bump prettier from 3.3.1 to 3.3.2
Bumps [prettier](https://github.com/prettier/prettier) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.3.1...3.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-12 00:34:08 +00:00
dependabot[bot]
5984057512 chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /sample/26-queues
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-11 10:52:16 +00:00
Kamil Mysliwiec
9b1efbc823 Merge pull request #13671 from nestjs/dependabot/npm_and_yarn/sample/27-scheduling/braces-3.0.3
chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /sample/27-scheduling
2024-06-11 12:51:32 +02:00
dependabot[bot]
7a3e856576 chore(deps-dev): bump braces in /sample/27-scheduling
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-11 10:22:32 +00:00
Kamil Mysliwiec
9f324936e6 Merge pull request #13670 from nestjs/dependabot/npm_and_yarn/sample/30-event-emitter/braces-3.0.3
chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /sample/30-event-emitter
2024-06-11 12:21:41 +02:00
Kamil Mysliwiec
87520b25f7 Merge pull request #13667 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.13.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.12.0 to 7.13.0
2024-06-11 12:21:30 +02:00
Kamil Mysliwiec
e45a9011d2 Merge pull request #13665 from nestjs/dependabot/npm_and_yarn/artillery-2.0.15
chore(deps-dev): bump artillery from 2.0.14 to 2.0.15
2024-06-11 08:28:03 +02:00
dependabot[bot]
5c7c94a361 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.12.0 to 7.13.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.13.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-11 06:25:05 +00:00
dependabot[bot]
c53fd68b95 chore(deps-dev): bump artillery from 2.0.14 to 2.0.15
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.14 to 2.0.15.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/compare/artillery-2.0.14...artillery-2.0.15)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-11 06:24:58 +00:00
Kamil Mysliwiec
2d6c943b90 Merge pull request #13660 from nestjs/dependabot/npm_and_yarn/sample/04-grpc/grpc/grpc-js-1.10.9
chore(deps): bump @grpc/grpc-js from 1.10.0 to 1.10.9 in /sample/04-grpc
2024-06-11 08:24:35 +02:00
Kamil Mysliwiec
ee63c51df0 Merge pull request #13662 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.10.9
chore(deps-dev): bump @grpc/grpc-js from 1.10.8 to 1.10.9
2024-06-11 08:24:23 +02:00
dependabot[bot]
bdb54c0cd4 chore(deps-dev): bump braces in /sample/30-event-emitter
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-11 06:23:55 +00:00
Kamil Mysliwiec
a4a17fd3d5 Merge pull request #13663 from nestjs/dependabot/npm_and_yarn/fastify/multipart-8.3.0
chore(deps-dev): bump @fastify/multipart from 8.2.0 to 8.3.0
2024-06-11 08:23:43 +02:00
Kamil Mysliwiec
4c7a7f8dd5 Merge pull request #13666 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.13.0
chore(deps-dev): bump @typescript-eslint/parser from 7.11.0 to 7.13.0
2024-06-11 08:23:13 +02:00
Kamil Mysliwiec
15bba4f51d Merge pull request #13669 from nestjs/dependabot/npm_and_yarn/uuid-10.0.0
chore(deps): bump uuid from 9.0.1 to 10.0.0
2024-06-11 08:22:59 +02:00
dependabot[bot]
6369809ab0 chore(deps): bump uuid from 9.0.1 to 10.0.0
Bumps [uuid](https://github.com/uuidjs/uuid) from 9.0.1 to 10.0.0.
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v9.0.1...v10.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>
2024-06-11 00:30:50 +00:00
dependabot[bot]
725df0122e chore(deps-dev): bump @typescript-eslint/parser from 7.11.0 to 7.13.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.11.0 to 7.13.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.13.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-11 00:29:05 +00:00
dependabot[bot]
549ee2e826 chore(deps-dev): bump @fastify/multipart from 8.2.0 to 8.3.0
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 8.2.0 to 8.3.0.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v8.2.0...v8.3.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>
2024-06-11 00:27:25 +00:00
dependabot[bot]
daeb3aec57 chore(deps-dev): bump @grpc/grpc-js from 1.10.8 to 1.10.9
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.10.8 to 1.10.9.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.10.8...@grpc/grpc-js@1.10.9)

---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 22:16:08 +00:00
dependabot[bot]
ea75a8ef29 chore(deps): bump @grpc/grpc-js from 1.10.0 to 1.10.9 in /sample/04-grpc
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.10.0 to 1.10.9.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.10.0...@grpc/grpc-js@1.10.9)

---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 21:38:39 +00:00
Kamil Mysliwiec
da34223a7c Update Readme.md 2024-06-10 14:46:44 +02:00
Kamil Mysliwiec
9b3971ef57 Merge pull request #13640 from nestjs/dependabot/npm_and_yarn/nodemon-3.1.3
chore(deps-dev): bump nodemon from 3.1.2 to 3.1.3
2024-06-10 10:43:34 +02:00
Kamil Mysliwiec
c721012df2 Merge pull request #13641 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.12.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.11.0 to 7.12.0
2024-06-10 10:43:27 +02:00
Kamil Mysliwiec
d088195b1a Merge pull request #13642 from nestjs/dependabot/npm_and_yarn/mongoose-8.4.1
chore(deps-dev): bump mongoose from 8.4.0 to 8.4.1
2024-06-10 10:43:22 +02:00
Kamil Mysliwiec
fb346bdb55 Merge pull request #13649 from nestjs/dependabot/npm_and_yarn/tslib-2.6.3
chore(deps): bump tslib from 2.6.2 to 2.6.3
2024-06-10 10:42:37 +02:00
Kamil Mysliwiec
77790f5e38 Merge pull request #13651 from nestjs/dependabot/npm_and_yarn/prettier-3.3.1
chore(deps-dev): bump prettier from 3.2.5 to 3.3.1
2024-06-10 10:42:30 +02:00
Kamil Mysliwiec
addead0c5f Merge pull request #13652 from nestjs/dependabot/npm_and_yarn/types/node-20.14.2
chore(deps-dev): bump @types/node from 20.12.12 to 20.14.2
2024-06-10 10:42:26 +02:00
Kamil Mysliwiec
5bfc0efa72 Merge pull request #13653 from nestjs/dependabot/npm_and_yarn/cache-manager-5.6.1
chore(deps-dev): bump cache-manager from 5.5.3 to 5.6.1
2024-06-10 10:39:20 +02:00
Kamil Mysliwiec
7db192b9a5 Merge pull request #13656 from L-Qun/patch-1
Update recipe.model.ts
2024-06-10 10:10:00 +02:00
Lincoln
cc4a377a80 Update recipe.model.ts 2024-06-07 11:42:47 +08:00
dependabot[bot]
88676ecea4 chore(deps-dev): bump cache-manager from 5.5.3 to 5.6.1
Bumps [cache-manager](https://github.com/jaredwray/cache-manager) from 5.5.3 to 5.6.1.
- [Release notes](https://github.com/jaredwray/cache-manager/releases)
- [Commits](https://github.com/jaredwray/cache-manager/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-06 00:28:24 +00:00
dependabot[bot]
bb9fad2caf chore(deps-dev): bump @types/node from 20.12.12 to 20.14.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.12.12 to 20.14.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-06 00:27:26 +00:00
dependabot[bot]
4935ec0544 chore(deps-dev): bump prettier from 3.2.5 to 3.3.1
Bumps [prettier](https://github.com/prettier/prettier) from 3.2.5 to 3.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.2.5...3.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-06 00:26:36 +00:00
dependabot[bot]
99d31e3de5 chore(deps): bump tslib from 2.6.2 to 2.6.3
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.6.2 to 2.6.3.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/v2.6.2...v2.6.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-05 00:07:08 +00:00
dependabot[bot]
223d7b51cf chore(deps-dev): bump mongoose from 8.4.0 to 8.4.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.4.0 to 8.4.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/8.4.0...8.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-04 00:51:26 +00:00
dependabot[bot]
2a90412fa0 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.11.0 to 7.12.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.12.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-04 00:51:03 +00:00
dependabot[bot]
ceb9ea5a06 chore(deps-dev): bump nodemon from 3.1.2 to 3.1.3
Bumps [nodemon](https://github.com/remy/nodemon) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v3.1.2...v3.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-04 00:50:29 +00:00
Imran Sarkar
333c8353f1 feat(common): Added uuid v7 validation to ParseUUIDPipe 2024-06-04 00:26:47 +06:00
Kamil Myśliwiec
013dbd356c chore: update readmes 2024-06-03 14:23:46 +02:00
Kamil Myśliwiec
fcd2c589a8 chore(@nestjs) publish v10.3.9 release 2024-06-03 14:20:44 +02:00
Kamil Mysliwiec
5d8d61e85a Merge pull request #13638 from nestjs/revert-13624-dependabot/npm_and_yarn/mqtt-5.7.0
Revert "chore(deps-dev): bump mqtt from 5.6.0 to 5.7.0"
2024-06-03 14:07:12 +02:00
Kamil Mysliwiec
a36645d7e2 Revert "chore(deps-dev): bump mqtt from 5.6.0 to 5.7.0" 2024-06-03 14:07:02 +02:00
Kamil Mysliwiec
a7e455751d Merge pull request #13493 from johaven/refactor-fastify-route-injection
refactor(platform-fastify): use the route method to inject routes
2024-06-03 13:50:26 +02:00
Kamil Mysliwiec
945f7a0653 Merge pull request #13453 from zhengjitf/fix-11601
fix(core): possible memory leak when using server side events
2024-06-03 13:50:08 +02:00
Kamil Mysliwiec
e3a47b6ebb Merge pull request #13619 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.11.0
chore(deps-dev): bump @typescript-eslint/parser from 7.9.0 to 7.11.0
2024-06-03 13:07:52 +02:00
Kamil Mysliwiec
a7c5cae33d Merge pull request #13531 from bettercalljason/fix-ws-shutdown
fix(ws): close existing connections
2024-06-03 13:07:43 +02:00
Kamil Mysliwiec
75fa678e8d Merge pull request #13368 from ssilve1989/refactor/cleanup-grpc-call-handling
refactor(microservices): prevent grpc write promise from throwing
2024-06-03 13:04:40 +02:00
Kamil Mysliwiec
24755d6d26 Merge pull request #13392 from yjiq150/grpc-refactor
refactor(microservices): improve speed of grpc server initialization
2024-06-03 13:04:23 +02:00
Kamil Mysliwiec
e93cf434bb Merge pull request #13405 from micalevisk/feat/issue-13400
fix(core): auto flush logs on synchronous internal errors
2024-06-03 13:03:51 +02:00
Kamil Mysliwiec
2e20dc416d Merge pull request #13631 from nestjs/dependabot/npm_and_yarn/sample/05-sql-typeorm/mysql2-3.9.8
chore(deps): bump mysql2 from 3.9.7 to 3.9.8 in /sample/05-sql-typeorm
2024-06-03 13:01:53 +02:00
Kamil Mysliwiec
b6d50ad47d Merge pull request #13624 from nestjs/dependabot/npm_and_yarn/mqtt-5.7.0
chore(deps-dev): bump mqtt from 5.6.0 to 5.7.0
2024-06-03 12:40:57 +02:00
Kamil Mysliwiec
4b07cb2629 Merge pull request #13428 from micalevisk/feat/issue-13426
feat(common): support empty `@Inject()` on constructor-based injection
2024-06-03 12:39:15 +02:00
dependabot[bot]
f63171dc25 chore(deps-dev): bump @typescript-eslint/parser from 7.9.0 to 7.11.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.9.0 to 7.11.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.11.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 10:38:25 +00:00
Kamil Mysliwiec
aca15c9db2 Merge pull request #13617 from nestjs/dependabot/npm_and_yarn/lint-staged-15.2.5
chore(deps-dev): bump lint-staged from 15.2.2 to 15.2.5
2024-06-03 12:37:46 +02:00
Kamil Mysliwiec
448b10f5f9 Merge pull request #13611 from nestjs/dependabot/npm_and_yarn/cache-manager-5.5.3
chore(deps-dev): bump cache-manager from 5.5.2 to 5.5.3
2024-06-03 12:37:35 +02:00
Kamil Mysliwiec
7001145c90 Merge pull request #13610 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.16.0
chore(deps): bump fast-json-stringify from 5.15.1 to 5.16.0
2024-06-03 12:37:30 +02:00
Kamil Mysliwiec
7619f9ea91 Merge pull request #13620 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.11.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.10.0 to 7.11.0
2024-06-03 12:37:20 +02:00
Kamil Mysliwiec
db523ec1e1 Merge pull request #13625 from nestjs/dependabot/npm_and_yarn/artillery-2.0.14
chore(deps-dev): bump artillery from 2.0.12 to 2.0.14
2024-06-03 12:37:12 +02:00
Kamil Mysliwiec
de86355bae Merge pull request #13614 from dragontaek-lee/fix/middleware-builder-exclude-overwrite
fix(core): prevent exclude method from overwriting previous calls
2024-06-03 12:37:04 +02:00
dependabot[bot]
818a696c1e chore(deps-dev): bump mqtt from 5.6.0 to 5.7.0
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.6.0 to 5.7.0.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.6.0...v5.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 10:36:01 +00:00
Kamil Mysliwiec
2d5a7b87e5 Merge pull request #13536 from Fcmam5/fix/do-not-crash-when_not_using-enabledVersioning
feat(fastify): Do not crash if enableVersioning is not used
2024-06-03 12:34:08 +02:00
Kamil Mysliwiec
4ff2d6ea95 Merge pull request #13629 from nestjs/dependabot/npm_and_yarn/nodemon-3.1.2
chore(deps-dev): bump nodemon from 3.1.0 to 3.1.2
2024-06-03 12:33:34 +02:00
Kamil Mysliwiec
3e118dfb16 Merge pull request #13633 from nestjs/dependabot/npm_and_yarn/mysql2-3.10.0
chore(deps-dev): bump mysql2 from 3.9.7 to 3.10.0
2024-06-03 12:33:26 +02:00
dependabot[bot]
8da1beb000 chore(deps): bump mysql2 from 3.9.7 to 3.9.8 in /sample/05-sql-typeorm
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.7 to 3.9.8.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.7...v3.9.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 10:32:42 +00:00
Kamil Mysliwiec
98c6a3b824 Merge pull request #13636 from techsolvers-skakauridze/patch-1
fix(sample) NestJS compatibility with nest/swagger 7.2.0
2024-06-03 12:32:02 +02:00
Kamil Mysliwiec
5bc1ee5dbe Merge pull request #13637 from techsolvers-skakauridze/patch-2
fix(sample) NestJS TypeOrm compatibility with reflect-metadata 0.2.1
2024-06-03 12:31:52 +02:00
Shalva Kakauridze
3054cf9565 fix(sample) NestJS TypeOrm compatibility with reflect-metadata 0.2.1
"@nestjs/typeorm": "10.0.1" is not compatible with "reflect-metadata": "0.2.1". We had to bump version to 0.2.2
2024-06-02 20:45:33 -07:00
Shalva Kakauridze
10a97c25e5 Fixing Samples - NestJS compatibility with nest/swagger 7.2.0
In this sample next/swagger 7.2.0 is used as a dependency, but its no more compatible with the latest version so bumping to 7.3.0
2024-06-02 20:28:02 -07:00
Kamil Mysliwiec
94e449a8d6 Update Readme.md 2024-06-02 13:32:41 +02:00
dependabot[bot]
b19aba9f74 chore(deps-dev): bump mysql2 from 3.9.7 to 3.10.0
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.7 to 3.10.0.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.7...v3.10.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-31 00:44:25 +00:00
dependabot[bot]
c4416fe512 chore(deps-dev): bump nodemon from 3.1.0 to 3.1.2
Bumps [nodemon](https://github.com/remy/nodemon) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v3.1.0...v3.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-30 00:22:33 +00:00
Tom Florentin
3fd4220052 plain to class deprectated 2024-05-29 11:09:42 +02:00
dependabot[bot]
759c24f24b chore(deps-dev): bump artillery from 2.0.12 to 2.0.14
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.12 to 2.0.14.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-29 00:20:00 +00:00
dependabot[bot]
d4511ac8f4 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.10.0 to 7.11.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.11.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-28 00:28:59 +00:00
dependabot[bot]
34f49296bf chore(deps-dev): bump lint-staged from 15.2.2 to 15.2.5
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 15.2.2 to 15.2.5.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/okonet/lint-staged/compare/v15.2.2...v15.2.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-27 00:36:04 +00:00
dragontaek-lee
4d88c79839 fix(core): prevent exclude method from overwriting previous calls 2024-05-25 23:07:44 +09:00
dependabot[bot]
b0ced99e92 chore(deps-dev): bump cache-manager from 5.5.2 to 5.5.3
Bumps [cache-manager](https://github.com/jaredwray/cache-manager) from 5.5.2 to 5.5.3.
- [Release notes](https://github.com/jaredwray/cache-manager/releases)
- [Commits](https://github.com/jaredwray/cache-manager/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 00:09:57 +00:00
dependabot[bot]
e0f400b376 chore(deps): bump fast-json-stringify from 5.15.1 to 5.16.0
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.15.1 to 5.16.0.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.15.1...v5.16.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>
2024-05-23 00:09:33 +00:00
Kamil Mysliwiec
aa7538ffbe Merge pull request #13588 from nestjs/dependabot/npm_and_yarn/sample/04-grpc/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/04-grpc
2024-05-21 08:12:45 +02:00
Kamil Mysliwiec
bb495515ea Merge pull request #13591 from nestjs/dependabot/npm_and_yarn/sample/02-gateways/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/02-gateways
2024-05-21 08:12:40 +02:00
Kamil Mysliwiec
e459fffd0e Merge pull request #13592 from nestjs/dependabot/npm_and_yarn/sample/01-cats-app/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/01-cats-app
2024-05-21 08:12:35 +02:00
Kamil Mysliwiec
56debd21ca Merge pull request #13594 from nestjs/dependabot/npm_and_yarn/core-js-3.37.1
chore(deps-dev): bump core-js from 3.37.0 to 3.37.1
2024-05-21 08:12:31 +02:00
Kamil Mysliwiec
d73a00a20d Merge pull request #13595 from nestjs/dependabot/npm_and_yarn/redis-4.6.14
chore(deps-dev): bump redis from 4.6.13 to 4.6.14
2024-05-21 08:12:27 +02:00
Kamil Mysliwiec
f7216c53cf Merge pull request #13596 from nestjs/dependabot/npm_and_yarn/sinon-18.0.0
chore(deps-dev): bump sinon from 17.0.1 to 18.0.0
2024-05-21 08:12:20 +02:00
Kamil Mysliwiec
8beb5452d7 Merge pull request #13597 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.10.8
chore(deps-dev): bump @grpc/grpc-js from 1.10.7 to 1.10.8
2024-05-21 08:12:15 +02:00
Kamil Mysliwiec
96b337f6ae Merge pull request #13602 from nestjs/dependabot/npm_and_yarn/mongoose-8.4.0
chore(deps-dev): bump mongoose from 8.3.4 to 8.4.0
2024-05-21 08:12:04 +02:00
Kamil Mysliwiec
b66031e381 Merge pull request #13605 from nestjs/dependabot/npm_and_yarn/nats-2.26.0
chore(deps-dev): bump nats from 2.25.0 to 2.26.0
2024-05-21 08:11:51 +02:00
Kamil Mysliwiec
094e5809ec Merge pull request #13606 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.10.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.9.0 to 7.10.0
2024-05-21 08:11:43 +02:00
dependabot[bot]
a54fbaac66 ---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 00:35:39 +00:00
dependabot[bot]
1979ae7938 ---
updated-dependencies:
- dependency-name: nats
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 00:34:27 +00:00
dependabot[bot]
66d10fe265 chore(deps-dev): bump mongoose from 8.3.4 to 8.4.0
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.3.4 to 8.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/8.3.4...8.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>
2024-05-20 00:06:25 +00:00
dependabot[bot]
cd19d183f8 chore(deps-dev): bump @grpc/grpc-js from 1.10.7 to 1.10.8
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.10.7 to 1.10.8.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.10.7...@grpc/grpc-js@1.10.8)

---
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>
2024-05-17 00:53:56 +00:00
dependabot[bot]
aac11a8642 chore(deps-dev): bump sinon from 17.0.1 to 18.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 17.0.1 to 18.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v17.0.1...v18.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-17 00:53:26 +00:00
dependabot[bot]
90118e99a7 chore(deps-dev): bump redis from 4.6.13 to 4.6.14
Bumps [redis](https://github.com/redis/node-redis) from 4.6.13 to 4.6.14.
- [Release notes](https://github.com/redis/node-redis/releases)
- [Changelog](https://github.com/redis/node-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/node-redis/compare/redis@4.6.13...redis@4.6.14)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-17 00:52:49 +00:00
dependabot[bot]
95bc87784c chore(deps-dev): bump core-js from 3.37.0 to 3.37.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.37.0 to 3.37.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.37.1/packages/core-js)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-17 00:51:58 +00:00
dependabot[bot]
85a73c7ef2 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 07:04:54 +00:00
Kamil Mysliwiec
3272606c70 Merge pull request #13590 from nestjs/dependabot/npm_and_yarn/sample/05-sql-typeorm/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/05-sql-typeorm
2024-05-16 09:04:40 +02:00
Kamil Mysliwiec
688a076223 Merge pull request #13589 from nestjs/dependabot/npm_and_yarn/sample/03-microservices/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/03-microservices
2024-05-16 09:04:35 +02:00
Kamil Mysliwiec
014c5801be Merge pull request #13587 from nestjs/dependabot/npm_and_yarn/sample/08-webpack/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/08-webpack
2024-05-16 09:04:30 +02:00
Kamil Mysliwiec
0f27086ffe Merge pull request #13586 from nestjs/dependabot/npm_and_yarn/sample/06-mongoose/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/06-mongoose
2024-05-16 09:04:23 +02:00
Kamil Mysliwiec
e163aa5977 Merge pull request #13585 from nestjs/dependabot/npm_and_yarn/sample/09-babel-example/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/09-babel-example
2024-05-16 09:04:14 +02:00
Kamil Mysliwiec
33fa3b141f Merge pull request #13584 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/07-sequelize
2024-05-16 09:04:08 +02:00
Kamil Mysliwiec
27d4cfbbc3 Merge pull request #13583 from nestjs/dependabot/npm_and_yarn/sample/11-swagger/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/11-swagger
2024-05-16 09:04:04 +02:00
dependabot[bot]
58599c2d14 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:46:49 +00:00
dependabot[bot]
b550668fda chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:46:39 +00:00
dependabot[bot]
64b07a675b chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:46:07 +00:00
dependabot[bot]
8722999811 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:46:06 +00:00
dependabot[bot]
daa927f4b2 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:46:06 +00:00
Kamil Mysliwiec
987b871415 Merge pull request #13576 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.9.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.8.0 to 7.9.0
2024-05-16 08:46:02 +02:00
dependabot[bot]
55cc5626c4 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:46:00 +00:00
dependabot[bot]
19f90dc6ab chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:45:41 +00:00
dependabot[bot]
b504bb3ea6 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:45:40 +00:00
Kamil Mysliwiec
c73a25e22f Merge pull request #13525 from nestjs/dependabot/npm_and_yarn/fastify/middie-8.3.1
chore(deps): bump @fastify/middie from 8.3.0 to 8.3.1
2024-05-16 08:45:36 +02:00
dependabot[bot]
5b62dc9175 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:45:33 +00:00
Kamil Mysliwiec
d757b89926 Merge pull request #13567 from nestjs/dependabot/npm_and_yarn/sample/15-mvc/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/15-mvc
2024-05-16 08:45:19 +02:00
Kamil Mysliwiec
a89ecbce46 Merge pull request #13570 from nestjs/dependabot/npm_and_yarn/sample/19-auth-jwt/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/19-auth-jwt
2024-05-16 08:45:14 +02:00
Kamil Mysliwiec
469aa282b5 Merge pull request #13563 from nestjs/dependabot/npm_and_yarn/sample/20-cache/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/20-cache
2024-05-16 08:45:07 +02:00
Kamil Mysliwiec
ebbbec0d96 Merge pull request #13564 from nestjs/dependabot/npm_and_yarn/sample/21-serializer/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/21-serializer
2024-05-16 08:45:01 +02:00
Kamil Mysliwiec
c921383626 Merge pull request #13565 from nestjs/dependabot/npm_and_yarn/sample/22-graphql-prisma/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/22-graphql-prisma
2024-05-16 08:44:56 +02:00
Kamil Mysliwiec
bc451efb0b Merge pull request #13568 from nestjs/dependabot/npm_and_yarn/sample/13-mongo-typeorm/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/13-mongo-typeorm
2024-05-16 08:44:46 +02:00
Kamil Mysliwiec
9b567799e2 Merge pull request #13569 from nestjs/dependabot/npm_and_yarn/sample/12-graphql-schema-first/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/12-graphql-schema-first
2024-05-16 08:44:42 +02:00
dependabot[bot]
843b0a2ba8 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.8.0 to 7.9.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.9.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 06:44:38 +00:00
Kamil Mysliwiec
8d791721e9 Merge pull request #13571 from nestjs/dependabot/npm_and_yarn/sample/14-mongoose-base/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/14-mongoose-base
2024-05-16 08:44:36 +02:00
Kamil Mysliwiec
d231f4cb70 Merge pull request #13572 from nestjs/dependabot/npm_and_yarn/sample/16-gateways-ws/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/16-gateways-ws
2024-05-16 08:44:32 +02:00
Kamil Mysliwiec
6f8301767d Merge pull request #13573 from nestjs/dependabot/npm_and_yarn/artillery-2.0.12
chore(deps-dev): bump artillery from 2.0.11 to 2.0.12
2024-05-16 08:44:28 +02:00
Kamil Mysliwiec
f9f6250ba1 Merge pull request #13575 from nestjs/dependabot/npm_and_yarn/chai-as-promised-7.1.2
chore(deps-dev): bump chai-as-promised from 7.1.1 to 7.1.2
2024-05-16 08:43:49 +02:00
Kamil Mysliwiec
5ee5deba91 Merge pull request #13577 from nestjs/dependabot/npm_and_yarn/nats-2.25.0
chore(deps-dev): bump nats from 2.24.0 to 2.25.0
2024-05-16 08:43:40 +02:00
Kamil Mysliwiec
ec7a26c237 Merge pull request #13578 from nestjs/dependabot/npm_and_yarn/types/node-20.12.12
chore(deps-dev): bump @types/node from 20.12.11 to 20.12.12
2024-05-16 08:43:35 +02:00
Kamil Mysliwiec
25f33e0e18 Merge pull request #13579 from nestjs/dependabot/npm_and_yarn/mqtt-5.6.0
chore(deps-dev): bump mqtt from 5.5.5 to 5.6.0
2024-05-16 08:43:27 +02:00
Kamil Mysliwiec
84a5437e4b Merge pull request #13580 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.9.0
chore(deps-dev): bump @typescript-eslint/parser from 7.8.0 to 7.9.0
2024-05-16 08:43:17 +02:00
dependabot[bot]
5c084fd7cf chore(deps-dev): bump @typescript-eslint/parser from 7.8.0 to 7.9.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.8.0 to 7.9.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.9.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 00:11:46 +00:00
dependabot[bot]
9b7d19a299 chore(deps-dev): bump mqtt from 5.5.5 to 5.6.0
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.5.5 to 5.6.0.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.5.5...v5.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 00:11:19 +00:00
dependabot[bot]
0e9f4e9d34 chore(deps-dev): bump @types/node from 20.12.11 to 20.12.12
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.12.11 to 20.12.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 00:10:58 +00:00
dependabot[bot]
ba8a0299b1 chore(deps-dev): bump nats from 2.24.0 to 2.25.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.24.0 to 2.25.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.24.0...v2.25.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 00:10:33 +00:00
dependabot[bot]
d8381709cd chore(deps-dev): bump chai-as-promised from 7.1.1 to 7.1.2
Bumps [chai-as-promised](https://github.com/domenic/chai-as-promised) from 7.1.1 to 7.1.2.
- [Release notes](https://github.com/domenic/chai-as-promised/releases)
- [Commits](https://github.com/domenic/chai-as-promised/compare/v7.1.1...v7.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 00:09:27 +00:00
dependabot[bot]
0f2980eb20 chore(deps-dev): bump artillery from 2.0.11 to 2.0.12
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.11 to 2.0.12.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/compare/artillery-2.0.11...artillery-2.0.12)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 00:08:37 +00:00
dependabot[bot]
bda1f5dc82 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 07:29:56 +00:00
dependabot[bot]
8da813b110 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 07:18:54 +00:00
dependabot[bot]
e54554d672 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 07:18:18 +00:00
dependabot[bot]
80f8f9d0ff chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.2.10 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 07:15:36 +00:00
dependabot[bot]
6bee1c05cc chore(deps): bump express and @nestjs/platform-express in /sample/15-mvc
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 07:09:37 +00:00
dependabot[bot]
03c29ae9f4 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 07:09:37 +00:00
dependabot[bot]
4f0f9ebbb4 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.2.10 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 07:04:37 +00:00
dependabot[bot]
965d565a86 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 07:04:27 +00:00
dependabot[bot]
686a2dfb9c chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 06:44:23 +00:00
dependabot[bot]
36d0503e4b chore(deps): bump @fastify/middie from 8.3.0 to 8.3.1
Bumps [@fastify/middie](https://github.com/fastify/middie) from 8.3.0 to 8.3.1.
- [Release notes](https://github.com/fastify/middie/releases)
- [Commits](https://github.com/fastify/middie/compare/v8.3.0...v8.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 06:44:11 +00:00
Kamil Mysliwiec
e488b39ebc Merge pull request #13518 from nestjs/dependabot/npm_and_yarn/sample/29-file-upload/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/29-file-upload
2024-05-14 08:44:06 +02:00
Kamil Mysliwiec
73654d7a22 Merge pull request #13519 from nestjs/dependabot/npm_and_yarn/sample/28-sse/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/28-sse
2024-05-14 08:44:01 +02:00
Kamil Mysliwiec
2405202ca2 Merge pull request #13520 from nestjs/dependabot/npm_and_yarn/sample/26-queues/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/26-queues
2024-05-14 08:43:53 +02:00
Kamil Mysliwiec
7a5b0d7e01 Merge pull request #13521 from nestjs/dependabot/npm_and_yarn/sample/25-dynamic-modules/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/25-dynamic-modules
2024-05-14 08:43:48 +02:00
Kamil Mysliwiec
47410d888e Merge pull request #13522 from nestjs/dependabot/npm_and_yarn/sample/30-event-emitter/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/30-event-emitter
2024-05-14 08:43:40 +02:00
Kamil Mysliwiec
8f72a83125 Merge pull request #13523 from nestjs/dependabot/npm_and_yarn/sample/24-serve-static/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/24-serve-static
2024-05-14 08:43:33 +02:00
Kamil Mysliwiec
4b83bb7e5f Merge pull request #13524 from nestjs/dependabot/npm_and_yarn/sample/27-scheduling/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/27-scheduling
2024-05-14 08:43:21 +02:00
Kamil Mysliwiec
dce0677a26 Merge pull request #13528 from nestjs/dependabot/npm_and_yarn/cache-manager-5.5.2
chore(deps-dev): bump cache-manager from 5.5.1 to 5.5.2
2024-05-14 08:43:04 +02:00
Kamil Mysliwiec
9e4fbeea1a Merge pull request #13529 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.10.7
chore(deps-dev): bump @grpc/grpc-js from 1.10.6 to 1.10.7
2024-05-14 08:42:56 +02:00
Kamil Mysliwiec
6aee2faf4a Merge pull request #13546 from nestjs/dependabot/npm_and_yarn/mongoose-8.3.4
chore(deps-dev): bump mongoose from 8.3.3 to 8.3.4
2024-05-14 08:42:45 +02:00
Kamil Mysliwiec
20549392d4 Merge pull request #13549 from nestjs/dependabot/npm_and_yarn/sample/33-graphql-mercurius/multi-e976a5c026
chore(deps): bump undici and mercurius in /sample/33-graphql-mercurius
2024-05-14 08:42:32 +02:00
Kamil Mysliwiec
f980fe8011 Merge pull request #13552 from nestjs/dependabot/npm_and_yarn/types/node-20.12.11
chore(deps-dev): bump @types/node from 20.12.10 to 20.12.11
2024-05-14 08:42:27 +02:00
Kamil Mysliwiec
d730fa6c18 Merge pull request #13553 from nestjs/dependabot/npm_and_yarn/fastify-4.27.0
chore(deps): bump fastify from 4.26.2 to 4.27.0
2024-05-14 08:42:19 +02:00
Kamil Mysliwiec
69fa25d18e Merge pull request #13554 from nestjs/dependabot/npm_and_yarn/fastify/static-7.0.4
chore(deps-dev): bump @fastify/static from 7.0.3 to 7.0.4
2024-05-14 08:42:14 +02:00
Kamil Mysliwiec
b0bc831e14 Merge pull request #13517 from nestjs/dependabot/npm_and_yarn/ejs-3.1.10
chore(deps-dev): bump ejs from 3.1.9 to 3.1.10
2024-05-14 08:42:08 +02:00
dependabot[bot]
0ba761c134 chore(deps-dev): bump @fastify/static from 7.0.3 to 7.0.4
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 7.0.3 to 7.0.4.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v7.0.3...v7.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-09 00:27:20 +00:00
dependabot[bot]
c18ae07656 chore(deps): bump fastify from 4.26.2 to 4.27.0
Bumps [fastify](https://github.com/fastify/fastify) from 4.26.2 to 4.27.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.26.2...v4.27.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-09 00:26:15 +00:00
dependabot[bot]
eb8d00fd78 chore(deps-dev): bump @types/node from 20.12.10 to 20.12.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.12.10 to 20.12.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>
2024-05-09 00:25:31 +00:00
Kamil Mysliwiec
6dc96d396b Merge pull request #13545 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.15.1
chore(deps): bump fast-json-stringify from 5.14.1 to 5.15.1
2024-05-08 10:34:55 +02:00
dependabot[bot]
eb126c746b chore(deps): bump undici and mercurius in /sample/33-graphql-mercurius
Bumps [undici](https://github.com/nodejs/undici) to 5.28.4 and updates ancestor dependency [mercurius](https://github.com/mercurius-js/mercurius). These dependencies need to be updated together.


Updates `undici` from 5.28.3 to 5.28.4
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.3...v5.28.4)

Updates `mercurius` from 13.4.0 to 14.1.0
- [Release notes](https://github.com/mercurius-js/mercurius/releases)
- [Commits](https://github.com/mercurius-js/mercurius/compare/v13.4.0...v14.1.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
- dependency-name: mercurius
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-08 08:34:43 +00:00
Kamil Mysliwiec
9310c4dd95 Merge pull request #13544 from nestjs/dependabot/npm_and_yarn/types/node-20.12.10
chore(deps-dev): bump @types/node from 20.12.7 to 20.12.10
2024-05-08 10:34:20 +02:00
Kamil Mysliwiec
46a61e4ed9 Merge pull request #13540 from nestjs/dependabot/npm_and_yarn/conventional-changelog-6.0.0
chore(deps-dev): bump conventional-changelog from 5.1.0 to 6.0.0
2024-05-08 10:34:14 +02:00
Kamil Mysliwiec
d6fd70add0 Merge pull request #13539 from nestjs/dependabot/npm_and_yarn/nats-2.24.0
chore(deps-dev): bump nats from 2.23.0 to 2.24.0
2024-05-08 10:33:26 +02:00
Kamil Mysliwiec
c750ec1889 Merge pull request #13537 from Tony133/chore/add-public-api-annotation-on-microservices
chore: add public api annotation on microservices
2024-05-08 10:33:13 +02:00
Kamil Mysliwiec
1368881fcc Merge pull request #13543 from AnaelsForks/master
chore(readme): update sponsor image sources
2024-05-08 10:29:03 +02:00
dependabot[bot]
724d0c866c chore(deps-dev): bump mongoose from 8.3.3 to 8.3.4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.3.3 to 8.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/8.3.3...8.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>
2024-05-07 00:28:57 +00:00
dependabot[bot]
d575745235 chore(deps): bump fast-json-stringify from 5.14.1 to 5.15.1
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.14.1 to 5.15.1.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.14.1...v5.15.1)

---
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>
2024-05-07 00:28:12 +00:00
dependabot[bot]
0c1eb6b3f4 chore(deps-dev): bump @types/node from 20.12.7 to 20.12.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.12.7 to 20.12.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>
2024-05-07 00:27:31 +00:00
Abdeldjalil Fortas
7a61ecc9d3 fix(fastify): Make versioningOptions field optional 2024-05-06 09:42:24 +02:00
dependabot[bot]
a99597af7b chore(deps-dev): bump conventional-changelog from 5.1.0 to 6.0.0
Bumps [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog/tree/HEAD/packages/conventional-changelog) from 5.1.0 to 6.0.0.
- [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases)
- [Changelog](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/conventional-changelog/commits/conventional-changelog-v6.0.0/packages/conventional-changelog)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 00:59:35 +00:00
dependabot[bot]
1bb805ac81 chore(deps-dev): bump nats from 2.23.0 to 2.24.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.23.0 to 2.24.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.23.0...v2.24.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 00:58:05 +00:00
Anaël Bonnafous
17a1d044f7 Merge branch 'nestjs:master' into master 2024-05-05 20:53:09 +02:00
Anaël Bonnafous
dd5a8422c0 chore(readme): remove some old sponsors and reorder others 2024-05-05 18:52:22 +00:00
Anaël Bonnafous
da0ae6882e chore(readme): update sponsor image sources 2024-05-05 18:05:57 +00:00
Tony133
151806b621 chore: add public api annotation on microservices 2024-05-05 15:18:04 +02:00
Abdeldjalil Fortas
c0af8af0cd feat(fastify): Do not crash if enableVersioning is not used (fixes #13496) 2024-05-05 09:25:58 +02:00
bettercalljason
6893058913 fix(ws): close existing connections
Existing connections must be closed manually. Otherwise, application shutdown hangs when shutdown hooks are enabled and there are existing connections.
2024-05-03 16:01:46 +00:00
dependabot[bot]
597f329551 chore(deps-dev): bump @grpc/grpc-js from 1.10.6 to 1.10.7
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.10.6 to 1.10.7.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.10.6...@grpc/grpc-js@1.10.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-03 00:06:48 +00:00
dependabot[bot]
0b205ae45e chore(deps-dev): bump cache-manager from 5.5.1 to 5.5.2
Bumps [cache-manager](https://github.com/jaredwray/cache-manager) from 5.5.1 to 5.5.2.
- [Release notes](https://github.com/jaredwray/cache-manager/releases)
- [Commits](https://github.com/jaredwray/cache-manager/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-03 00:06:25 +00:00
dependabot[bot]
67f2fd9bf4 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:59:22 +00:00
dependabot[bot]
ff306b47ce chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:59:17 +00:00
dependabot[bot]
ed60c7a870 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:59:09 +00:00
dependabot[bot]
84e8b5fd74 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:58:17 +00:00
dependabot[bot]
82872c5abd chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:58:03 +00:00
dependabot[bot]
3720412b86 chore(deps): bump express and @nestjs/platform-express in /sample/28-sse
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:57:59 +00:00
dependabot[bot]
49bb11e107 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:57:43 +00:00
Kamil Mysliwiec
1db72fd96a Merge pull request #13512 from nestjs/dependabot/npm_and_yarn/mongoose-8.3.3
chore(deps-dev): bump mongoose from 8.3.2 to 8.3.3
2024-05-02 10:57:10 +02:00
Kamil Mysliwiec
629af39710 Merge pull request #13474 from nestjs/dependabot/npm_and_yarn/mysql2-3.9.7
chore(deps-dev): bump mysql2 from 3.9.6 to 3.9.7
2024-05-02 10:56:41 +02:00
Kamil Mysliwiec
4d34f1d05b Merge pull request #13490 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-19.3.0
chore(deps-dev): bump @commitlint/config-angular from 19.2.2 to 19.3.0
2024-05-02 10:56:33 +02:00
Kamil Mysliwiec
5bc6461cc1 Merge pull request #13499 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.8.0
chore(deps-dev): bump @typescript-eslint/parser from 7.7.0 to 7.8.0
2024-05-02 10:56:27 +02:00
dependabot[bot]
4f2f4351e6 chore(deps-dev): bump mysql2 from 3.9.6 to 3.9.7
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.6 to 3.9.7.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.6...v3.9.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:56:23 +00:00
dependabot[bot]
a88fa13e58 chore(deps-dev): bump mongoose from 8.3.2 to 8.3.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.3.2 to 8.3.3.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/8.3.2...8.3.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:56:22 +00:00
Kamil Mysliwiec
1317ff7da5 Merge pull request #13502 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/32-graphql-federation-schema-first/posts-application
2024-05-02 10:56:22 +02:00
Kamil Mysliwiec
da1503469b Merge pull request #13503 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/gateway/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/32-graphql-federation-schema-first/gateway
2024-05-02 10:56:16 +02:00
Kamil Mysliwiec
87384029c4 Merge pull request #13504 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/31-graphql-federation-code-first/users-application
2024-05-02 10:56:10 +02:00
Kamil Mysliwiec
ff2402d708 Merge pull request #13505 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/31-graphql-federation-code-first/posts-application
2024-05-02 10:56:04 +02:00
Kamil Mysliwiec
0a267a35f1 Merge pull request #13506 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/users-application/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/32-graphql-federation-schema-first/users-application
2024-05-02 10:55:59 +02:00
Kamil Mysliwiec
6cc4dd0369 Merge pull request #13507 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/multi-fc98ce47f6
chore(deps): bump express and @nestjs/platform-express in /sample/31-graphql-federation-code-first/gateway
2024-05-02 10:55:53 +02:00
dependabot[bot]
9a4986f313 chore(deps-dev): bump ejs from 3.1.9 to 3.1.10
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:55:44 +00:00
Kamil Mysliwiec
ab9c4b3a0b Merge pull request #13509 from nestjs/dependabot/npm_and_yarn/ws-8.17.0
chore(deps): bump ws from 8.16.0 to 8.17.0
2024-05-02 10:55:25 +02:00
Kamil Mysliwiec
5dad4de1e7 Merge pull request #13510 from nestjs/dependabot/npm_and_yarn/artillery-2.0.11
chore(deps-dev): bump artillery from 2.0.10 to 2.0.11
2024-05-02 10:55:15 +02:00
Kamil Mysliwiec
17ab566f93 Merge pull request #13511 from nestjs/dependabot/npm_and_yarn/fastify/view-9.1.0
chore(deps-dev): bump @fastify/view from 9.0.0 to 9.1.0
2024-05-02 10:55:07 +02:00
Kamil Mysliwiec
0f7264fa75 Merge pull request #13513 from nestjs/dependabot/npm_and_yarn/mqtt-5.5.5
chore(deps-dev): bump mqtt from 5.5.4 to 5.5.5
2024-05-02 10:54:52 +02:00
Kamil Mysliwiec
409c057af3 Merge pull request #13515 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.7.13
chore(deps-dev): bump @grpc/proto-loader from 0.7.11 to 0.7.13
2024-05-02 10:54:42 +02:00
dependabot[bot]
aea21cd737 chore(deps-dev): bump @grpc/proto-loader from 0.7.11 to 0.7.13
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.7.11 to 0.7.13.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/proto-loader@0.7.11...@grpc/proto-loader@0.7.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>
2024-05-02 00:04:05 +00:00
dependabot[bot]
8542d1841a chore(deps-dev): bump mqtt from 5.5.4 to 5.5.5
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.5.4 to 5.5.5.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.5.4...v5.5.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 00:42:44 +00:00
dependabot[bot]
37a7d25b53 chore(deps-dev): bump @fastify/view from 9.0.0 to 9.1.0
Bumps [@fastify/view](https://github.com/fastify/point-of-view) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/fastify/point-of-view/releases)
- [Commits](https://github.com/fastify/point-of-view/compare/v9.0.0...v9.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>
2024-05-01 00:41:26 +00:00
dependabot[bot]
1afeeefd3d chore(deps-dev): bump artillery from 2.0.10 to 2.0.11
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.10 to 2.0.11.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/compare/artillery-2.0.10...artillery-2.0.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 00:41:00 +00:00
dependabot[bot]
dedba6973c chore(deps): bump ws from 8.16.0 to 8.17.0
Bumps [ws](https://github.com/websockets/ws) from 8.16.0 to 8.17.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.16.0...8.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 00:40:28 +00:00
dependabot[bot]
839fa1545a chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:45:09 +00:00
dependabot[bot]
91e30e15c9 chore(deps-dev): bump @commitlint/config-angular from 19.2.2 to 19.3.0
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 19.2.2 to 19.3.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-angular/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v19.3.0/@commitlint/config-angular)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:44:48 +00:00
dependabot[bot]
36b880fd07 chore(deps-dev): bump @typescript-eslint/parser from 7.7.0 to 7.8.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.7.0 to 7.8.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.8.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:44:21 +00:00
dependabot[bot]
2d0b9becc3 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:44:12 +00:00
dependabot[bot]
cf42ff7b11 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:44:03 +00:00
dependabot[bot]
d5090043f5 chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:43:39 +00:00
Kamil Mysliwiec
eb892cafe4 Merge pull request #13479 from nestjs/dependabot/npm_and_yarn/nats-2.23.0
chore(deps-dev): bump nats from 2.22.0 to 2.23.0
2024-04-30 12:43:39 +02:00
dependabot[bot]
afa4b2840c chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:43:31 +00:00
dependabot[bot]
c6fda13c6a chore(deps): bump express and @nestjs/platform-express
Bumps [express](https://github.com/expressjs/express) to 4.19.2 and updates ancestor dependency [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express). These dependencies need to be updated together.


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

Updates `@nestjs/platform-express` from 10.3.2 to 10.3.8
- [Release notes](https://github.com/nestjs/nest/releases)
- [Commits](https://github.com/nestjs/nest/commits/v10.3.8/packages/platform-express)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
- dependency-name: "@nestjs/platform-express"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:43:28 +00:00
Kamil Mysliwiec
a0f58ef9ed Merge pull request #13487 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/mysql2-3.9.7
chore(deps): bump mysql2 from 3.9.4 to 3.9.7 in /sample/07-sequelize
2024-04-30 12:43:12 +02:00
Kamil Mysliwiec
2b0ad15d2a Merge pull request #13488 from nestjs/dependabot/npm_and_yarn/sample/05-sql-typeorm/mysql2-3.9.7
chore(deps): bump mysql2 from 3.9.4 to 3.9.7 in /sample/05-sql-typeorm
2024-04-30 12:43:06 +02:00
Kamil Mysliwiec
f1aef5abb4 Merge pull request #13491 from nestjs/dependabot/npm_and_yarn/commitlint/cli-19.3.0
chore(deps-dev): bump @commitlint/cli from 19.2.2 to 19.3.0
2024-04-30 12:42:59 +02:00
Kamil Mysliwiec
b3b2863c4c Merge pull request #13495 from nestjs/dependabot/npm_and_yarn/supertest-7.0.0
chore(deps-dev): bump supertest from 6.3.3 to 7.0.0
2024-04-30 12:42:52 +02:00
Kamil Mysliwiec
24ffca6bc4 Merge pull request #13498 from nestjs/dependabot/npm_and_yarn/mqtt-5.5.4
chore(deps-dev): bump mqtt from 5.5.2 to 5.5.4
2024-04-30 12:42:45 +02:00
Kamil Mysliwiec
0600d910a1 Merge pull request #13500 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.8.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.7.0 to 7.8.0
2024-04-30 12:42:31 +02:00
Anaël Bonnafous
1a699adff9 chore(readme): format sponsors tables 2024-04-30 10:00:04 +00:00
dependabot[bot]
bdd3f6f68c chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.7.0 to 7.8.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.8.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 00:17:38 +00:00
dependabot[bot]
c8557ca80a chore(deps-dev): bump mqtt from 5.5.2 to 5.5.4
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.5.2 to 5.5.4.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.5.2...v5.5.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 00:32:33 +00:00
dependabot[bot]
22edf0280f chore(deps-dev): bump supertest from 6.3.3 to 7.0.0
Bumps [supertest](https://github.com/ladjs/supertest) from 6.3.3 to 7.0.0.
- [Release notes](https://github.com/ladjs/supertest/releases)
- [Commits](https://github.com/ladjs/supertest/compare/v6.3.3...v7.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-25 00:44:24 +00:00
Johaven
2e91c14ef1 refactor(platform-fastify): use the route method to inject routes 2024-04-25 01:04:59 +02:00
dependabot[bot]
b5d9ed6178 chore(deps-dev): bump @commitlint/cli from 19.2.2 to 19.3.0
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 19.2.2 to 19.3.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v19.3.0/@commitlint/cli)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-24 00:45:38 +00:00
dependabot[bot]
0937c857ae chore(deps): bump mysql2 from 3.9.4 to 3.9.7 in /sample/05-sql-typeorm
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.4 to 3.9.7.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.4...v3.9.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-23 23:11:38 +00:00
dependabot[bot]
a8edd95850 chore(deps): bump mysql2 from 3.9.4 to 3.9.7 in /sample/07-sequelize
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.4 to 3.9.7.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.4...v3.9.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-23 23:11:17 +00:00
dependabot[bot]
947709fe7a chore(deps-dev): bump nats from 2.22.0 to 2.23.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.22.0 to 2.23.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.22.0...v2.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-23 00:40:27 +00:00
Kamil Mysliwiec
727032e46e Merge pull request #13471 from le-harivansh/patch-2
doc: fix typos & clarify comments
2024-04-21 19:58:24 +02:00
Kamil Mysliwiec
685b5fd88f Merge pull request #13469 from welfuture/master
chore: fix some typos in comments
2024-04-21 19:57:46 +02:00
le-harivansh
025ed5365e doc: fix typos & clarify comments 2024-04-21 06:04:35 +04:00
welfuture
66b731d4db chore: fix some typos in comments
Signed-off-by: welfuture <wellfuture@qq.com>
2024-04-20 20:48:16 +08:00
Kamil Myśliwiec
6538ede9ef chore(@nestjs) publish v10.3.8 release 2024-04-19 09:17:44 +02:00
Kamil Mysliwiec
a0b5c26d39 Merge pull request #13430 from JonathanMbt/master
fix(microservices): pass rmq connection options correctly to amqp-con…
2024-04-19 09:15:43 +02:00
Kamil Mysliwiec
7d5adfcc1f Revert "Revert "fix(microservice) Delete unnecessary call of grpcClient.start"" 2024-04-19 09:14:09 +02:00
Kamil Mysliwiec
05a35b267f Merge pull request #13467 from nestjs/revert-13283-fix/unnecessary-call
Revert "fix(microservice) Delete unnecessary call of grpcClient.start"
2024-04-19 09:14:06 +02:00
Kamil Mysliwiec
044603ab7b Revert "fix(microservice) Delete unnecessary call of grpcClient.start" 2024-04-19 09:13:10 +02:00
Kamil Mysliwiec
6045d9e423 Merge pull request #13456 from nestjs/dependabot/npm_and_yarn/mongoose-8.3.2
chore(deps-dev): bump mongoose from 8.3.1 to 8.3.2
2024-04-19 09:05:51 +02:00
Kamil Mysliwiec
3c5f86cac7 Merge pull request #13457 from nestjs/dependabot/npm_and_yarn/core-js-3.37.0
chore(deps-dev): bump core-js from 3.36.1 to 3.37.0
2024-04-19 09:05:43 +02:00
dependabot[bot]
1c433b83d0 chore(deps-dev): bump core-js from 3.36.1 to 3.37.0
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.36.1 to 3.37.0.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.37.0/packages/core-js)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 07:05:18 +00:00
dependabot[bot]
805dd1269c chore(deps-dev): bump mongoose from 8.3.1 to 8.3.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.3.1 to 8.3.2.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/8.3.1...8.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 07:05:16 +00:00
Kamil Mysliwiec
64b2f4a36d Merge pull request #13460 from nestjs/dependabot/npm_and_yarn/ioredis-5.4.1
chore(deps-dev): bump ioredis from 5.3.2 to 5.4.1
2024-04-19 09:04:29 +02:00
Kamil Mysliwiec
37525a9c21 Merge pull request #13464 from nestjs/dependabot/npm_and_yarn/apollo/server-4.10.4
chore(deps-dev): bump @apollo/server from 4.10.3 to 4.10.4
2024-04-19 09:04:25 +02:00
Kamil Mysliwiec
d7a0a83c82 Merge pull request #13465 from nestjs/dependabot/npm_and_yarn/mysql2-3.9.6
chore(deps-dev): bump mysql2 from 3.9.4 to 3.9.6
2024-04-19 09:04:18 +02:00
dependabot[bot]
2b589c470f chore(deps-dev): bump mysql2 from 3.9.4 to 3.9.6
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.4 to 3.9.6.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.4...v3.9.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 00:23:17 +00:00
dependabot[bot]
b92fac2806 chore(deps-dev): bump @apollo/server from 4.10.3 to 4.10.4
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.10.3 to 4.10.4.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.10.4/packages/server)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 00:22:23 +00:00
Kamil Mysliwiec
87cf25a883 Merge pull request #13454 from micalevisk/chore/issue-13432
chore(deps): remove unused dev dependencies
2024-04-18 09:42:24 +02:00
dependabot[bot]
f092d3408f chore(deps-dev): bump ioredis from 5.3.2 to 5.4.1
Bumps [ioredis](https://github.com/luin/ioredis) from 5.3.2 to 5.4.1.
- [Release notes](https://github.com/luin/ioredis/releases)
- [Changelog](https://github.com/redis/ioredis/blob/main/CHANGELOG.md)
- [Commits](https://github.com/luin/ioredis/compare/v5.3.2...v5.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-18 00:58:13 +00:00
Micael Levi L. Cavalcante
00dba2bfd9 ci: drop lint commit on circle ci 2024-04-16 10:04:37 -04:00
Micael Levi L. Cavalcante
3765d7de2a chore(deps): remove unused dev dependencies 2024-04-16 09:22:58 -04:00
Ji Zheng
f797e16aa4 fix(core): possible memory leak when using server side events 2024-04-16 16:59:06 +08:00
Ji Zheng
af87b2a62f test(core): add a sse failed test to reproduce #11601 2024-04-16 16:22:24 +08:00
Kamil Mysliwiec
f5b53f1c1e Merge pull request #13445 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.7.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.6.0 to 7.7.0
2024-04-16 09:27:51 +02:00
Kamil Mysliwiec
722fc1c568 Merge pull request #13422 from nestjs/dependabot/npm_and_yarn/sample/07-sequelize/mysql2-3.9.4
chore(deps): bump mysql2 from 3.9.1 to 3.9.4 in /sample/07-sequelize
2024-04-16 09:27:37 +02:00
Kamil Mysliwiec
3bc4f7caa5 Merge pull request #13423 from nestjs/dependabot/npm_and_yarn/sample/05-sql-typeorm/mysql2-3.9.4
chore(deps): bump mysql2 from 3.9.1 to 3.9.4 in /sample/05-sql-typeorm
2024-04-16 09:27:31 +02:00
dependabot[bot]
bfa05965c5 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.6.0 to 7.7.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.7.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 07:27:28 +00:00
Kamil Mysliwiec
6d885fe52a Merge pull request #13443 from nestjs/dependabot/npm_and_yarn/commitlint/config-angular-19.2.2
chore(deps-dev): bump @commitlint/config-angular from 19.1.0 to 19.2.2
2024-04-16 09:27:25 +02:00
Kamil Mysliwiec
f67fa4cbf2 Merge pull request #13444 from nestjs/dependabot/npm_and_yarn/apollo/server-4.10.3
chore(deps-dev): bump @apollo/server from 4.10.2 to 4.10.3
2024-04-16 09:27:21 +02:00
Kamil Mysliwiec
a7a830718a Merge pull request #13446 from nestjs/dependabot/npm_and_yarn/light-my-request-5.13.0
chore(deps): bump light-my-request from 5.12.0 to 5.13.0
2024-04-16 09:26:52 +02:00
Kamil Mysliwiec
5001476a04 Merge pull request #13447 from nestjs/dependabot/npm_and_yarn/artillery-2.0.10
chore(deps-dev): bump artillery from 2.0.8 to 2.0.10
2024-04-16 09:26:46 +02:00
Kamil Mysliwiec
faabff8236 Merge pull request #13448 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.7.0
chore(deps-dev): bump @typescript-eslint/parser from 7.4.0 to 7.7.0
2024-04-16 09:26:34 +02:00
Kamil Mysliwiec
8b42341213 Merge pull request #13449 from nestjs/dependabot/npm_and_yarn/nestjs/mongoose-10.0.6
chore(deps-dev): bump @nestjs/mongoose from 10.0.4 to 10.0.6
2024-04-16 09:26:27 +02:00
Kamil Mysliwiec
624bd04763 Merge pull request #13450 from nestjs/dependabot/npm_and_yarn/fast-json-stringify-5.14.1
chore(deps): bump fast-json-stringify from 5.13.0 to 5.14.1
2024-04-16 09:26:19 +02:00
dependabot[bot]
3e1b31bb9e chore(deps): bump fast-json-stringify from 5.13.0 to 5.14.1
Bumps [fast-json-stringify](https://github.com/fastify/fast-json-stringify) from 5.13.0 to 5.14.1.
- [Release notes](https://github.com/fastify/fast-json-stringify/releases)
- [Commits](https://github.com/fastify/fast-json-stringify/compare/v5.13.0...v5.14.1)

---
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>
2024-04-16 01:03:42 +00:00
dependabot[bot]
b1420af67d chore(deps-dev): bump @nestjs/mongoose from 10.0.4 to 10.0.6
Bumps [@nestjs/mongoose](https://github.com/nestjs/mongoose) from 10.0.4 to 10.0.6.
- [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/10.0.4...10.0.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 01:03:07 +00:00
dependabot[bot]
9d152226fe chore(deps-dev): bump @typescript-eslint/parser from 7.4.0 to 7.7.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.4.0 to 7.7.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.7.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 01:02:42 +00:00
dependabot[bot]
66ee8f2a17 chore(deps-dev): bump artillery from 2.0.8 to 2.0.10
Bumps [artillery](https://github.com/artilleryio/artillery) from 2.0.8 to 2.0.10.
- [Release notes](https://github.com/artilleryio/artillery/releases)
- [Commits](https://github.com/artilleryio/artillery/compare/artillery-2.0.8...artillery-2.0.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 01:02:12 +00:00
dependabot[bot]
ad0d21a535 chore(deps): bump light-my-request from 5.12.0 to 5.13.0
Bumps [light-my-request](https://github.com/fastify/light-my-request) from 5.12.0 to 5.13.0.
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.12.0...v5.13.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>
2024-04-16 01:00:58 +00:00
dependabot[bot]
15d387d1e7 chore(deps-dev): bump @apollo/server from 4.10.2 to 4.10.3
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.10.2 to 4.10.3.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.10.3/packages/server)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 00:59:48 +00:00
dependabot[bot]
d4e93aeeaf chore(deps-dev): bump @commitlint/config-angular from 19.1.0 to 19.2.2
Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-angular) from 19.1.0 to 19.2.2.
- [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/v19.2.2/@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>
2024-04-16 00:59:15 +00:00
Kamil Mysliwiec
b483f87c11 Merge pull request #13425 from nestjs/dependabot/npm_and_yarn/mysql2-3.9.4
chore(deps-dev): bump mysql2 from 3.9.3 to 3.9.4
2024-04-15 09:09:34 +02:00
Kamil Mysliwiec
a4268434b8 Merge pull request #13435 from nestjs/dependabot/npm_and_yarn/amqplib-0.10.4
chore(deps-dev): bump amqplib from 0.10.3 to 0.10.4
2024-04-15 09:08:42 +02:00
dependabot[bot]
e39cdcc341 chore(deps-dev): bump mysql2 from 3.9.3 to 3.9.4
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.3 to 3.9.4.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.3...v3.9.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 07:07:44 +00:00
Kamil Mysliwiec
a7436406db Merge pull request #13436 from nestjs/dependabot/npm_and_yarn/cache-manager-5.5.1
chore(deps-dev): bump cache-manager from 5.4.0 to 5.5.1
2024-04-15 09:07:09 +02:00
Kamil Mysliwiec
82d9c1f600 Merge pull request #13437 from nestjs/dependabot/npm_and_yarn/mqtt-5.5.2
chore(deps-dev): bump mqtt from 5.5.0 to 5.5.2
2024-04-15 09:05:57 +02:00
Kamil Mysliwiec
536e9a992b Merge pull request #13438 from nestjs/dependabot/npm_and_yarn/commitlint/cli-19.2.2
chore(deps-dev): bump @commitlint/cli from 19.2.1 to 19.2.2
2024-04-15 09:03:01 +02:00
Kamil Mysliwiec
562a17efab Merge pull request #13439 from nestjs/dependabot/npm_and_yarn/typescript-5.4.5
chore(deps-dev): bump typescript from 5.4.3 to 5.4.5
2024-04-15 09:02:31 +02:00
dependabot[bot]
c71fe9f136 chore(deps-dev): bump typescript from 5.4.3 to 5.4.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.4.3 to 5.4.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.4.3...v5.4.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 00:11:28 +00:00
dependabot[bot]
a124d63111 chore(deps-dev): bump @commitlint/cli from 19.2.1 to 19.2.2
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 19.2.1 to 19.2.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/v19.2.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>
2024-04-15 00:10:45 +00:00
dependabot[bot]
9d9cfec66c chore(deps-dev): bump mqtt from 5.5.0 to 5.5.2
Bumps [mqtt](https://github.com/mqttjs/MQTT.js) from 5.5.0 to 5.5.2.
- [Release notes](https://github.com/mqttjs/MQTT.js/releases)
- [Changelog](https://github.com/mqttjs/MQTT.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mqttjs/MQTT.js/compare/v5.5.0...v5.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 00:10:03 +00:00
dependabot[bot]
77475abc48 chore(deps-dev): bump cache-manager from 5.4.0 to 5.5.1
Bumps [cache-manager](https://github.com/jaredwray/cache-manager) from 5.4.0 to 5.5.1.
- [Release notes](https://github.com/jaredwray/cache-manager/releases)
- [Commits](https://github.com/jaredwray/cache-manager/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 00:09:22 +00:00
dependabot[bot]
9c3886b41c chore(deps-dev): bump amqplib from 0.10.3 to 0.10.4
Bumps [amqplib](https://github.com/amqp-node/amqplib) from 0.10.3 to 0.10.4.
- [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.3...v0.10.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 00:08:46 +00:00
JonathanMbt
3424843c81 fix(microservices): pass rmq connection options correctly to amqp-connection-manager 2024-04-13 16:23:45 +02:00
Micael Levi L. Cavalcante
684ce3ef4c feat(common): support empty @Inject() on constructor-based injection 2024-04-13 08:25:11 -04:00
dependabot[bot]
1420440959 chore(deps): bump mysql2 from 3.9.1 to 3.9.4 in /sample/05-sql-typeorm
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.1 to 3.9.4.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.1...v3.9.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-12 16:14:41 +00:00
dependabot[bot]
ad8cc798ef chore(deps): bump mysql2 from 3.9.1 to 3.9.4 in /sample/07-sequelize
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.1 to 3.9.4.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.1...v3.9.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-12 16:14:21 +00:00
Kamil Mysliwiec
6f119a7fdd Merge pull request #13381 from nestjs/dependabot/npm_and_yarn/reflect-metadata-0.2.2
chore(deps): bump reflect-metadata from 0.2.1 to 0.2.2
2024-04-12 09:21:26 +02:00
Kamil Mysliwiec
542a3c57e5 Merge pull request #13394 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.10.6
chore(deps-dev): bump @grpc/grpc-js from 1.10.4 to 1.10.6
2024-04-12 09:21:19 +02:00
Kamil Mysliwiec
726557f2e7 Merge pull request #13399 from nestjs/dependabot/npm_and_yarn/fastify/static-7.0.3
chore(deps-dev): bump @fastify/static from 7.0.1 to 7.0.3
2024-04-12 09:21:15 +02:00
Kamil Mysliwiec
45df18053d Merge pull request #13409 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.6.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.4.0 to 7.6.0
2024-04-12 09:21:06 +02:00
Kamil Mysliwiec
9f99402e62 Merge pull request #13410 from nestjs/dependabot/npm_and_yarn/mongoose-8.3.1
chore(deps-dev): bump mongoose from 8.2.3 to 8.3.1
2024-04-12 09:21:02 +02:00
Kamil Mysliwiec
b80891049c Merge pull request #13412 from nestjs/dependabot/npm_and_yarn/types/node-20.12.7
chore(deps-dev): bump @types/node from 20.11.30 to 20.12.7
2024-04-12 09:20:57 +02:00
Kamil Mysliwiec
8f1ef56ba3 Merge pull request #13413 from nestjs/dependabot/npm_and_yarn/protobufjs-7.2.6
chore(deps-dev): bump protobufjs from 7.2.4 to 7.2.6
2024-04-12 09:20:49 +02:00
Kamil Mysliwiec
54b0dd6463 Merge pull request #13414 from nestjs/dependabot/npm_and_yarn/nats-2.22.0
chore(deps-dev): bump nats from 2.19.0 to 2.22.0
2024-04-12 09:20:44 +02:00
Kamil Mysliwiec
59d7deefb9 Merge pull request #13415 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/gateway/tar-6.2.1
chore(deps): bump tar from 6.1.13 to 6.2.1 in /sample/32-graphql-federation-schema-first/gateway
2024-04-12 09:20:35 +02:00
Kamil Mysliwiec
4453abf7f3 Merge pull request #13416 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/users-application/tar-6.2.1
chore(deps): bump tar from 6.1.13 to 6.2.1 in /sample/32-graphql-federation-schema-first/users-application
2024-04-12 09:20:29 +02:00
Kamil Mysliwiec
8819712db0 Merge pull request #13417 from nestjs/dependabot/npm_and_yarn/sample/32-graphql-federation-schema-first/posts-application/tar-6.2.1
chore(deps): bump tar from 6.1.13 to 6.2.1 in /sample/32-graphql-federation-schema-first/posts-application
2024-04-12 09:20:25 +02:00
Kamil Mysliwiec
a6114d76bc Merge pull request #13418 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/users-application/tar-6.2.1
chore(deps): bump tar from 6.1.15 to 6.2.1 in /sample/31-graphql-federation-code-first/users-application
2024-04-12 09:20:19 +02:00
Kamil Mysliwiec
6f47428e89 Merge pull request #13419 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/gateway/tar-6.2.1
chore(deps): bump tar from 6.1.15 to 6.2.1 in /sample/31-graphql-federation-code-first/gateway
2024-04-12 09:20:12 +02:00
Kamil Mysliwiec
a9fe30acb2 Merge pull request #13420 from nestjs/dependabot/npm_and_yarn/sample/31-graphql-federation-code-first/posts-application/tar-6.2.1
chore(deps): bump tar from 6.1.15 to 6.2.1 in /sample/31-graphql-federation-code-first/posts-application
2024-04-12 09:20:04 +02:00
dependabot[bot]
297e75203e chore(deps): bump tar
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 09:35:59 +00:00
dependabot[bot]
0ebfb5c098 chore(deps): bump tar
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 09:29:12 +00:00
dependabot[bot]
5e209118b8 chore(deps): bump tar
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 09:28:44 +00:00
dependabot[bot]
eede67fd22 chore(deps): bump tar
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.13 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.13...v6.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 06:42:58 +00:00
dependabot[bot]
d07949da01 chore(deps): bump tar
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.13 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.13...v6.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 06:42:57 +00:00
dependabot[bot]
6ca2b55a73 chore(deps): bump tar
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.13 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.13...v6.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 06:42:57 +00:00
dependabot[bot]
d591b92a65 chore(deps-dev): bump nats from 2.19.0 to 2.22.0
Bumps [nats](https://github.com/nats-io/nats.js) from 2.19.0 to 2.22.0.
- [Release notes](https://github.com/nats-io/nats.js/releases)
- [Commits](https://github.com/nats-io/nats.js/compare/v2.19.0...v2.22.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 00:58:25 +00:00
dependabot[bot]
6335197e32 chore(deps-dev): bump protobufjs from 7.2.4 to 7.2.6
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 7.2.4 to 7.2.6.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases)
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.2.4...protobufjs-v7.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 21:48:16 +00:00
dependabot[bot]
8adf987eb8 chore(deps-dev): bump @types/node from 20.11.30 to 20.12.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.30 to 20.12.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 00:47:48 +00:00
dependabot[bot]
230e54b2c8 chore(deps-dev): bump mongoose from 8.2.3 to 8.3.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.2.3 to 8.3.1.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/8.2.3...8.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 00:35:10 +00:00
dependabot[bot]
96c933700d chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.4.0 to 7.6.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.6.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 00:34:42 +00:00
MegaSpaceHamlet
ef12d355ff refactor(platform-express): modify error arg type
Add the possible `field` property to the `error` arg in
`transformExecption`.
2024-04-08 16:58:33 -04:00
Micael Levi L. Cavalcante
47ca9d9f7c test(core): handle auto flushing in exceptions-zone test suite 2024-04-07 12:53:51 -04:00
Micael Levi L. Cavalcante
bc9755a918 fix(core): auto flush logs on synchronous internal errors 2024-04-07 12:43:23 -04:00
dependabot[bot]
d8d72173ce chore(deps-dev): bump @fastify/static from 7.0.1 to 7.0.3
Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 7.0.1 to 7.0.3.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v7.0.1...v7.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-05 00:08:14 +00:00
dependabot[bot]
26b5fd5edf chore(deps-dev): bump @grpc/grpc-js from 1.10.4 to 1.10.6
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.10.4 to 1.10.6.
- [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>
2024-04-04 00:25:46 +00:00
yjiq150
9dec08e930 refactor(microservices): improve speed of grpc server initialization 2024-04-03 22:47:24 +09:00
Alex
52b2c72124 Improving types 2024-04-03 12:26:16 +05:00
Alex
1ccc7f9d91 Сorrection of Reflector types 2024-04-02 16:01:17 +05:00
dependabot[bot]
a7fff5d92b chore(deps): bump reflect-metadata from 0.2.1 to 0.2.2
Bumps [reflect-metadata](https://github.com/rbuckton/reflect-metadata) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/rbuckton/reflect-metadata/releases)
- [Changelog](https://github.com/rbuckton/reflect-metadata/blob/main/tsconfig-release.json)
- [Commits](https://github.com/rbuckton/reflect-metadata/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 00:48:03 +00:00
codytseng
8c7718e383 perf(ws): optimize message handler lookup 2024-03-31 17:17:06 +08:00
MegaSpaceHamlet
50e1d705c3 feat(platform-express): multer errors show 'field'
Multer errors may include a 'field' property for certain errors. Pass it
along into the error message.
2024-03-30 22:43:51 -04:00
Steven Silvestri
22a9245a1a refactor(microservices): prevent grpc write promise from throwing 2024-03-28 02:08:28 -06:00
Kamil Myśliwiec
8b4dbb3090 chore(@nestjs) publish v10.3.7 release 2024-03-28 08:38:55 +01:00
Kamil Mysliwiec
55967291fc Merge pull request #13370 from nestjs/revert-13056-perf/12914-readable-error-on-undefined-token
Revert "perf(common): Improve error handling for undefined tokens"
2024-03-28 08:33:58 +01:00
Kamil Mysliwiec
8a4166a360 Revert "perf(common): Improve error handling for undefined tokens" 2024-03-28 08:29:56 +01:00
Kamil Myśliwiec
1f2fae7065 chore(@nestjs) publish v10.3.6 release 2024-03-27 08:56:19 +01:00
Kamil Mysliwiec
50385decc1 Merge pull request #13362 from nestjs/dependabot/npm_and_yarn/grpc/proto-loader-0.7.11
chore(deps-dev): bump @grpc/proto-loader from 0.7.10 to 0.7.11
2024-03-27 08:35:25 +01:00
Kamil Mysliwiec
872ab4075c Merge pull request #13367 from nestjs/revert-13328-fix/redundant-emit-code
Revert "fix(microservices): fix redundant code to emit error"
2024-03-27 08:34:52 +01:00
Kamil Mysliwiec
f416f5af79 Revert "fix(microservices): fix redundant code to emit error" 2024-03-27 08:34:38 +01:00
Kamil Mysliwiec
f29f932b2b Merge pull request #13366 from breeeew/fix-request-scope-leak
fix(core): break reference chain to instance object
2024-03-27 08:33:16 +01:00
dependabot[bot]
274011df32 chore(deps-dev): bump @grpc/proto-loader from 0.7.10 to 0.7.11
Bumps [@grpc/proto-loader](https://github.com/grpc/grpc-node) from 0.7.10 to 0.7.11.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/proto-loader@0.7.10...@grpc/proto-loader@0.7.11)

---
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>
2024-03-27 07:31:31 +00:00
Kamil Mysliwiec
ccbbe06c5e Merge pull request #13358 from nestjs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-7.4.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.3.1 to 7.4.0
2024-03-27 08:29:49 +01:00
Kamil Mysliwiec
17578401b6 Merge pull request #13361 from nestjs/dependabot/npm_and_yarn/mocha-10.4.0
chore(deps-dev): bump mocha from 10.3.0 to 10.4.0
2024-03-27 08:29:44 +01:00
Kamil Mysliwiec
e133595be4 Merge pull request #13363 from nestjs/dependabot/npm_and_yarn/grpc/grpc-js-1.10.4
chore(deps-dev): bump @grpc/grpc-js from 1.10.3 to 1.10.4
2024-03-27 08:29:33 +01:00
Kamil Mysliwiec
743c4b6f2a Merge pull request #13364 from nestjs/dependabot/npm_and_yarn/mysql2-3.9.3
chore(deps-dev): bump mysql2 from 3.9.2 to 3.9.3
2024-03-27 08:28:49 +01:00
breeeew
6a7f74f0c7 fix(core): break reference chain to instance object
Reference caused in getContextFactory, and it stored in handlerMetadataStorage in Map, that never be purged
2024-03-27 07:51:21 +03:00
dependabot[bot]
4510f6dd0e chore(deps-dev): bump mysql2 from 3.9.2 to 3.9.3
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.2 to 3.9.3.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.2...v3.9.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 00:24:10 +00:00
dependabot[bot]
b3f0b65865 chore(deps-dev): bump @grpc/grpc-js from 1.10.3 to 1.10.4
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.10.3 to 1.10.4.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.10.3...@grpc/grpc-js@1.10.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 00:23:36 +00:00
dependabot[bot]
0782837780 chore(deps-dev): bump mocha from 10.3.0 to 10.4.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.3.0 to 10.4.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.3.0...v10.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 00:22:34 +00:00
dependabot[bot]
334b27bc39 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.3.1 to 7.4.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.4.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 08:22:47 +00:00
Kamil Mysliwiec
ddc1265735 Merge pull request #13355 from nestjs/dependabot/npm_and_yarn/apollo/server-4.10.2
chore(deps-dev): bump @apollo/server from 4.10.1 to 4.10.2
2024-03-26 09:20:59 +01:00
Kamil Mysliwiec
560e350bed Merge pull request #13359 from nestjs/dependabot/npm_and_yarn/typescript-eslint/parser-7.4.0
chore(deps-dev): bump @typescript-eslint/parser from 7.3.1 to 7.4.0
2024-03-26 09:20:51 +01:00
Kamil Mysliwiec
b3a75103f1 Merge pull request #13357 from nestjs/dependabot/npm_and_yarn/express-4.19.2
chore(deps): bump express from 4.19.1 to 4.19.2
2024-03-26 09:20:40 +01:00
dependabot[bot]
70dea80b9c chore(deps-dev): bump @typescript-eslint/parser from 7.3.1 to 7.4.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.3.1 to 7.4.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.4.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 01:01:06 +00:00
dependabot[bot]
8b1a1dde43 chore(deps): bump express from 4.19.1 to 4.19.2
Bumps [express](https://github.com/expressjs/express) from 4.19.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.1...4.19.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 00:59:49 +00:00
dependabot[bot]
29574831fe chore(deps-dev): bump @apollo/server from 4.10.1 to 4.10.2
Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.10.1 to 4.10.2.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.10.2/packages/server)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-25 00:51:04 +00:00
Kamil Myśliwiec
1a605dd073 Merge branch 'master' of https://github.com/nestjs/nest 2024-03-22 09:39:38 +01:00
Kamil Myśliwiec
8bf0015dfd chore: update readme 2024-03-22 09:39:30 +01:00
Kamil Mysliwiec
09857ae16f Merge pull request #13343 from nestjs/dependabot/npm_and_yarn/core-js-3.36.1
chore(deps-dev): bump core-js from 3.36.0 to 3.36.1
2024-03-22 09:36:23 +01:00
Kamil Mysliwiec
d5c67790a9 Merge pull request #13344 from nestjs/dependabot/npm_and_yarn/commitlint/cli-19.2.1
chore(deps-dev): bump @commitlint/cli from 19.2.0 to 19.2.1
2024-03-22 09:36:15 +01:00
Kamil Mysliwiec
03bae3973d Merge pull request #13347 from nestjs/dependabot/npm_and_yarn/typescript-5.4.3
chore(deps-dev): bump typescript from 5.4.2 to 5.4.3
2024-03-22 09:31:45 +01:00
Kamil Mysliwiec
5b28de7134 Merge pull request #13345 from nestjs/dependabot/npm_and_yarn/types/node-20.11.30
chore(deps-dev): bump @types/node from 20.11.29 to 20.11.30
2024-03-22 09:31:40 +01:00
Kamil Mysliwiec
ff181305e5 Merge pull request #13348 from nestjs/dependabot/npm_and_yarn/fastify/multipart-8.2.0
chore(deps-dev): bump @fastify/multipart from 8.1.0 to 8.2.0
2024-03-22 09:31:32 +01:00
Kamil Mysliwiec
81a68c8442 Merge pull request #13349 from nestjs/dependabot/npm_and_yarn/express-4.19.1
chore(deps): bump express from 4.18.3 to 4.19.1
2024-03-22 09:31:27 +01:00
Kamil Mysliwiec
42320aeabe Merge pull request #13352 from nestjs/dependabot/npm_and_yarn/mongoose-8.2.3
chore(deps-dev): bump mongoose from 8.2.2 to 8.2.3
2024-03-22 09:31:21 +01:00
dependabot[bot]
198708282d chore(deps-dev): bump mongoose from 8.2.2 to 8.2.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.2.2 to 8.2.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/8.2.2...8.2.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-22 00:07:07 +00:00
dependabot[bot]
550916c854 chore(deps): bump express from 4.18.3 to 4.19.1
Bumps [express](https://github.com/expressjs/express) from 4.18.3 to 4.19.1.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.3...4.19.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-21 00:16:46 +00:00
dependabot[bot]
17992cb520 chore(deps-dev): bump @fastify/multipart from 8.1.0 to 8.2.0
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v8.1.0...v8.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>
2024-03-21 00:16:00 +00:00
dependabot[bot]
86953ef289 chore(deps-dev): bump typescript from 5.4.2 to 5.4.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.4.2 to 5.4.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.4.2...v5.4.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-21 00:15:27 +00:00
dependabot[bot]
d0645d5038 chore(deps-dev): bump @types/node from 20.11.29 to 20.11.30
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.29 to 20.11.30.
- [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>
2024-03-20 00:47:11 +00:00
dependabot[bot]
0148ec438d chore(deps-dev): bump @commitlint/cli from 19.2.0 to 19.2.1
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 19.2.0 to 19.2.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/v19.2.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>
2024-03-20 00:46:09 +00:00
dependabot[bot]
54cf3c4984 chore(deps-dev): bump core-js from 3.36.0 to 3.36.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.36.0 to 3.36.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.36.1/packages/core-js)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-20 00:45:26 +00:00
Kamil Myśliwiec
b3f85e9c04 test: update module compiler test 2024-03-19 10:52:31 +01:00
Kamil Myśliwiec
c4a905b996 chore: update comment to suggest switching to a different algorithm 2024-03-19 09:37:58 +01:00
Kamil Myśliwiec
094c35cf79 refactor: update types to better reflect dynamic metadata shape 2024-03-19 09:35:43 +01:00
Kamil Mysliwiec
30110d49e0 Update packages/core/injector/compiler.ts
Co-authored-by: Vinicius Lourenço <12551007+H4ad@users.noreply.github.com>
2024-03-19 09:33:04 +01:00
Kamil Myśliwiec
fb72a8ec9f feat(core): introduce different module opaque key factories 2024-03-18 10:12:56 +01:00
Hareloo
0d7a768b89 fix(common): when transforming undefined numeric values
Transforming numeric values in validationpipe is incorrect when value is undefined

closes #12864
2023-12-06 20:52:48 +02:00
kmw14641
ed8699769d fix(common): apply options to plaintoclass in classserializerinterceptor
fixed issue that with type option which is not already converted,
any other option cannot be applied to plainToClass

Closes #12763
2023-11-17 00:59:04 +09:00
Pieter Scheffers
0cbc15405d refactor: Use TCP_DEFAULT_PORT as default instead of using a boolean check 2023-11-16 11:26:44 +01:00
Micael Levi L. Cavalcante
c47be164f3 ci: switch to shallow cloning of 'wrk' repository 2023-11-14 15:46:35 -04:00
Micael Levi L. Cavalcante
61791e5115 feat(common): narrow allowed injection tokens for @Inject() 2023-11-14 15:46:32 -04:00
Jay McDoniel
2f2252264b feat: allow for microservice options to come from the di container
Microservices are now able to be created by getting their options
from within the DI container itself. This has been a long requested
feature of developers and I finally had some time to work through how
we could possibly let this happen.
2023-10-20 17:08:35 -07:00
René Zeidler
d04886d816 fix(core): fix type and return value of Reflector#getAllAndMerge
When only a single metadata value is present in the list of targets for
`Reflector#getAllAndMerge`, that value gets wrapped in an array if it is
not already an array or an object.
Previously, single values were returned as is, so the method could
actually return any value. Now the method always returns an array or an
object as indicated by its return type.
This also fixes the return type of both `getAll` and `getAllAndMerge`
when using the strongly typed `ReflectableDecorator<T>`.

Fixes #12231
2023-08-21 10:44:28 +02:00
285 changed files with 27983 additions and 19444 deletions

View File

@@ -129,9 +129,6 @@ jobs:
- run:
name: Lint
command: npm run lint
- run:
name: Lint commit
command: ./node_modules/.bin/commitlint-circle -c .commitlintrc.json
integration_tests:
working_directory: ~/nest

View File

@@ -6,8 +6,8 @@ cd "$(dirname "$0")"
cd /tmp/
sudo apt-get install build-essential libssl-dev git -y
git clone https://github.com/wg/wrk.git wrk
git clone --depth=1 https://github.com/wg/wrk.git wrk
cd wrk
sudo make
# move the executable to somewhere in your PATH, ex:
sudo cp wrk /usr/local/bin
sudo cp wrk /usr/local/bin

View File

@@ -38,10 +38,12 @@ body:
required: true
attributes:
label: "Minimum reproduction code"
description: |
An URL to some Git repository/[StackBlitz](https://stackblitz.com/fork/github/nestjs/typescript-starter)/[CodeSandbox](https://codesandbox.io/s/github/nestjs/typescript-starter/tree/master) project that reproduces your issue. [What is a minimum reproduction?](https://jmcdo29.github.io/wtf-is-a-minimum-reproduction)
:warning: **NOTE:** We can close this issue if we don't manage to reproduce your potential bug. [Here](https://antfu.me/posts/why-reproductions-are-required) is why.
placeholder: "https://github.com/..."
description: |
An URL to some Git repository/[StackBlitz](https://stackblitz.com/fork/github/nestjs/typescript-starter)/[CodeSandbox](https://codesandbox.io/s/github/nestjs/typescript-starter/tree/master) project that reproduces your issue. [What is a minimum reproduction?](https://jmcdo29.github.io/wtf-is-a-minimum-reproduction)
> [!WARNING]
> We may close this Issue if we don't manage to reproduce the potential bug. [Read this](https://antfu.me/posts/why-reproductions-are-required) to understand why.
- type: textarea
attributes:

4
.gitignore vendored
View File

@@ -1,3 +1,5 @@
packages/*/package-lock.json
# dependencies
node_modules/
@@ -47,4 +49,4 @@ yarn-error.log
build/config\.gypi
.npmrc
pnpm-lock.yaml
pnpm-lock.yaml

119
Readme.md
View File

@@ -57,69 +57,84 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Principal Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
<table style="text-align:center;">
<tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td><a href="https://microsoft.com/" target="_blank"><img src="https://nestjs.com/img/logos/microsoft-logo.png" width="180" valign="middle" /></a></td>
<td><a href="https://mojam.co" target="_blank"><img src="https://nestjs.com/img/logos/mojam-logo.png" width="80" valign="middle" /></a></td>
<td><a href="https://marblism.com?utm_source=nest" target="_blank"><img src="https://nestjs.com/img/logos/marblism-logo.png" width="180" valign="middle" /></a></td>
<td><a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td><a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/logos/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr>
</table>
#### Gold Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://www.redhat.com" target="_blank"><img src="https://nestjs.com/img/red-hat-logo.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://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="90" valign="middle" /></a></td></tr><tr><td>
<a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/snyk-logo-black.png" width="185" valign="middle" /></a></td><td>
<a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td>
<td>
<a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/ridi-logo.svg" width="105" valign="middle" /></a></td><td>
<a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/movavi-logo.svg" width="105" valign="middle" /></a></td>
<td>
<a href="https://skunk.team" target="_blank"><img src="https://nestjs.com/img/skunk-logo.png" height="60" valign="middle" /></a></td>
</tr></table>
<table style="text-align:center;">
<tr>
<td><a href="https://www.redhat.com" target="_blank"><img src="https://nestjs.com/img/logos/red-hat-logo.svg" width="200" valign="middle" /></a></td>
<td><a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td><a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/logos/nx-logo.png" height="45" valign="middle" /></a></td>
<td><a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/logos/intrinisic-logo.png" width="210" valign="middle" /></a></td>
<td><a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/logos/jetbrains-logo.svg" width="90" valign="middle" /></a></td>
</tr>
<tr>
<td><a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/logos/snyk-logo-black.png" width="185" valign="middle" /></a></td>
<td><a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/logos/fuse-logo.svg" width="105" valign="middle" /></a></td>
<td><a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/logos/ridi-logo.svg" width="105" valign="middle" /></a></td>
<td><a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/logos/movavi-logo.svg" width="105" valign="middle" /></a></td>
<td><a href="https://skunk.team" target="_blank"><img src="https://nestjs.com/img/logos/skunk-logo.png" height="60" valign="middle" /></a></td>
</tr>
</table>
#### Silver Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td>
<table style="text-align:center;">
<tr>
<td><a href="https://www.mercedes-benz.com/" target="_blank"><img src="https://nestjs.com/img/logos/mercedes-logo.png" width="100" valign="middle" /></a></td>
<td><a href="https://www.dinii.jp/" target="_blank"><img src="https://nestjs.com/img/logos/dinii-logo.png" width="65" valign="middle" /></a></td>
<td><a href="https://bloodycase.com/?promocode=NEST" target="_blank"><img src="https://nestjs.com/img/logos/bloodycase-logo.png" width="65" valign="middle" /></a></td>
<td><a href="https://handsontable.com/docs/react-data-grid/?utm_source=NestJS_GH&utm_medium=sponsorship&utm_campaign=library_sponsorship_2024" target="_blank"><img src="https://nestjs.com/img/logos/handsontable-dark-logo.svg#2" width="150" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.itflashcards.com/" target="_blank"><img src="https://nestjs.com/img/logos/it_flashcards-logo.png" width="170" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://arcjet.com/?ref=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/arcjet-logo.svg" width="170" valign="middle" /></a></td>
</tr>
</table>
#### Sponsors
<table><tr><td align="center" valign="middle">
<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://mantro.net/" target="_blank"><img src="https://nestjs.com/img/mantro-logo.svg" width="95" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://triplebyte.com/" target="_blank"><img src="https://nestjs.com/img/triplebyte.png" width="107" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://nearpod.com/" target="_blank"><img src="https://nestjs.com/img/nearpod-logo.svg" width="100" valign="middle" /></a> </td>
<td align="center" valign="middle">
<a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" width="97" valign="middle" /></a> </td></tr><tr>
<td align="center" valign="middle"><a href="https://sanyodigital.com/" target="_blank"><img src="https://nestjs.com/img/sanyo-digital.png" width="130" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/vpn-review-logo.png" width="85" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/lambda-it-logo.svg" width="115" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.najlepszeplatformyforex.pl/blog/broker-xtb/" target="_blank"><img src="https://nestjs.com/img/npf-logo.jpg" width="200" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://rocketech.it/cases/?utm_source=google&utm_medium=badge&utm_campaign=nestjs" target="_blank"><img src="https://nestjs.com/img/rocketech-logo.svg" width="110" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.anonymistic.com/" target="_blank"><img src="https://nestjs.com/img/anonymistic-logo.png" width="125" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://www.naologic.com/" target="_blank"><img src="https://nestjs.com/img/naologic-logo.svg" width="125" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://triplecore.io" target="_blank"><img src="https://nestjs.com/img/triplecore-logo.svg" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/casinowizard-logo.png" width="120" valign="middle" /></a></td>
<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://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://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
</tr></table>
<table>
<tr>
<td align="center" valign="middle"><a href="https://www.swingdev.io" target="_blank"><img src="https://nestjs.com/img/logos/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/logos/novologic.png" width="110" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://mantro.net/" target="_blank"><img src="https://nestjs.com/img/logos/mantro-logo.svg" width="95" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://triplebyte.com/" target="_blank"><img src="https://nestjs.com/img/logos/triplebyte.png" width="107" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://nearpod.com/" target="_blank"><img src="https://nestjs.com/img/logos/nearpod-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/logos/genuinebee.svg" width="97" valign="middle" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/logos/vpn-review-logo.png" width="85" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/logos/lambda-it-logo.svg" width="115" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://rocketech.it/cases/?utm_source=google&utm_medium=badge&utm_campaign=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/rocketech-logo.svg" width="110" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.anonymistic.com/" target="_blank"><img src="https://nestjs.com/img/logos/anonymistic-logo.png" width="125" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.naologic.com/" target="_blank"><img src="https://nestjs.com/img/logos/naologic-logo.svg" width="125" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://triplecore.io" target="_blank"><img src="https://nestjs.com/img/logos/triplecore-logo.svg" width="50" valign="middle" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/logos/casinowizard-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://polygon-software.ch/" target="_blank"><img src="https://nestjs.com/img/logos/polygon-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://boringowl.io/" target="_blank"><img src="https://nestjs.com/img/logos/boringowl-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/logos/nordbot-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/logos/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/logos/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/logos/julienferand-logo.jpeg" width="55" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/logos/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/logos/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.route4me.com/" target="_blank"><img src="https://nestjs.com/img/logos/route4me-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.slotsup.com/" target="_blank"><img src="https://nestjs.com/img/logos/slotsup-logo.png" width="60" valign="middle" /></a></td>
</tr>
</table>
## Backers

View File

@@ -45,6 +45,11 @@ class TestController {
overviewById() {
return RETURN_VALUE;
}
@Get('multiple/exclude')
multipleExclude() {
return RETURN_VALUE;
}
}
@Module({
@@ -59,6 +64,7 @@ class TestModule {
path: 'middleware',
method: RequestMethod.POST,
})
.exclude('multiple/exclude')
.forRoutes('*');
}
}
@@ -110,6 +116,12 @@ describe('Exclude middleware', () => {
.expect(200, RETURN_VALUE);
});
it(`should exclude "/multiple/exclude" endpoint`, () => {
return request(app.getHttpServer())
.get('/multiple/exclude')
.expect(200, RETURN_VALUE);
});
afterEach(async () => {
await app.close();
});

View File

@@ -45,6 +45,10 @@ describe('Hello world (express instance)', () => {
});
});
it('/HEAD should respond to with a 200', () => {
return request(server).head('/hello').expect(200);
});
afterEach(async () => {
await app.close();
});

View File

@@ -87,6 +87,15 @@ describe('Hello world (fastify adapter)', () => {
.then(({ payload }) => expect(payload).to.be.eql('Hello world!'));
});
it('/HEAD should respond to with a 200', () => {
return app
.inject({
method: 'HEAD',
url: '/hello',
})
.then(({ statusCode }) => expect(statusCode).to.be.eq(200));
});
afterEach(async () => {
await app.close();
});

View File

@@ -43,10 +43,7 @@ describe('OnModuleDestroy', () => {
it('should sort modules by distance (topological sort) - DESC order', async () => {
@Injectable()
class BB implements OnModuleDestroy {
public field: string;
async onModuleDestroy() {
this.field = 'b-field';
}
onModuleDestroy = Sinon.spy();
}
@Module({
@@ -57,13 +54,10 @@ describe('OnModuleDestroy', () => {
@Injectable()
class AA implements OnModuleDestroy {
public field: string;
constructor(private bb: BB) {}
async onModuleDestroy() {
this.field = this.bb.field + '_a-field';
}
onModuleDestroy = Sinon.spy();
}
@Module({
imports: [B],
providers: [AA],
@@ -78,7 +72,8 @@ describe('OnModuleDestroy', () => {
await app.init();
await app.close();
const instance = module.get(AA);
expect(instance.field).to.equal('b-field_a-field');
const aa = module.get(AA);
const bb = module.get(BB);
Sinon.assert.callOrder(aa.onModuleDestroy, bb.onModuleDestroy);
});
});

View File

@@ -39,11 +39,39 @@ describe('OnModuleInit', () => {
});
it('should sort modules by distance (topological sort) - DESC order', async () => {
@Injectable()
class CC implements OnModuleInit {
public field: string;
async onModuleInit() {
this.field = 'c-field';
}
}
@Module({})
class C {
static forRoot() {
return {
module: C,
global: true,
providers: [
{
provide: CC,
useValue: new CC(),
},
],
exports: [CC],
};
}
}
@Injectable()
class BB implements OnModuleInit {
public field: string;
constructor(private cc: CC) {}
async onModuleInit() {
this.field = 'b-field';
this.field = this.cc.field + '_b-field';
}
}
@@ -68,14 +96,19 @@ describe('OnModuleInit', () => {
})
class A {}
@Module({
imports: [A, C.forRoot()],
})
class AppModule {}
const module = await Test.createTestingModule({
imports: [A],
imports: [AppModule],
}).compile();
const app = module.createNestApplication();
await app.init();
const instance = module.get(AA);
expect(instance.field).to.equal('b-field_a-field');
expect(instance.field).to.equal('c-field_b-field_a-field');
});
});

View File

@@ -4,11 +4,15 @@ import { INestApplication } from '@nestjs/common';
import { MicroserviceOptions, Transport } from '@nestjs/microservices';
import { Test } from '@nestjs/testing';
import { fail } from 'assert';
import { expect } from 'chai';
import { expect, use } from 'chai';
import * as chaiAsPromised from 'chai-as-promised';
import { join } from 'path';
import * as sinon from 'sinon';
import * as request from 'supertest';
import { GrpcController } from '../src/grpc/grpc.controller';
use(chaiAsPromised);
describe('GRPC transport', () => {
let server;
let app: INestApplication;
@@ -32,6 +36,7 @@ describe('GRPC transport', () => {
],
},
});
// Start gRPC microservice
await app.startAllMicroservices();
await app.init();
@@ -149,6 +154,50 @@ describe('GRPC transport', () => {
expect(receivedIds).to.deep.equal(expectedIds);
});
describe('streaming calls that error', () => {
// We want to assert that the application does not crash when an error is encountered with an unhandledRejection
// the best way to do that is to listen for the unhandledRejection event and fail the test if it is called
let processSpy: sinon.SinonSpy;
beforeEach(() => {
processSpy = sinon.spy();
process.on('unhandledRejection', processSpy);
});
afterEach(() => {
process.off('unhandledRejection', processSpy);
});
it('should not crash when replying with an error', async () => {
const call = new Promise<void>((resolve, reject) => {
const stream = client.streamDivide({
data: [{ dividend: 1, divisor: 0 }],
});
stream.on('data', () => {
fail('Stream should not have emitted any data');
});
stream.on('error', err => {
if (err.code !== GRPC.status.CANCELLED) {
reject(err);
}
});
stream.on('end', () => {
resolve();
});
});
await expect(call).to.eventually.be.rejectedWith(
'3 INVALID_ARGUMENT: dividing by 0 is not possible',
);
// if this fails the application has crashed
expect(processSpy.called).to.be.false;
});
});
after(async () => {
await app.close();
});

View File

@@ -0,0 +1,98 @@
import {
Controller,
INestMicroservice,
Injectable,
Module,
} from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import {
AsyncOptions,
ClientTCP,
ClientsModule,
MessagePattern,
MicroserviceOptions,
Payload,
TcpOptions,
Transport,
} from '@nestjs/microservices';
import { expect } from 'chai';
let port: number;
do {
port = Math.round(Math.random() * 10000);
} while (port < 1000);
@Injectable()
class RpcOptionsProvider {
getOptions(): TcpOptions {
return {
transport: Transport.TCP,
options: {
port,
host: '0.0.0.0',
},
};
}
}
@Controller()
class RpcController {
@MessagePattern({ cmd: 'sum' })
sumPayload(@Payload() payload: number[]) {
return payload.reduce((a, b) => a + b, 0);
}
}
@Module({
imports: [
ClientsModule.register([
{
name: 'RPC_CLIENT',
transport: Transport.TCP,
options: {
port,
host: '0.0.0.0',
},
},
]),
],
controllers: [RpcController],
providers: [RpcOptionsProvider],
})
class RpcModule {}
describe('RPC Async transport', () => {
let app: INestMicroservice;
let client: ClientTCP;
beforeEach(async () => {
app = await NestFactory.createMicroservice<
AsyncOptions<MicroserviceOptions>
>(RpcModule, {
logger: false,
inject: [RpcOptionsProvider],
useFactory: (optionsProvider: RpcOptionsProvider) =>
optionsProvider.getOptions(),
});
await app.listen();
client = app.get('RPC_CLIENT', { strict: false });
});
it(`/POST`, done => {
let retData = 0;
client.send({ cmd: 'sum' }, [1, 2, 3, 4, 5]).subscribe({
next: val => (retData += val),
error: done,
complete: () => {
expect(retData).to.eq(15);
done();
},
});
});
afterEach(async () => {
await app.close();
});
});

View File

@@ -10,7 +10,7 @@ import {
RpcException,
} from '@nestjs/microservices';
import { join } from 'path';
import { Observable, of, catchError } from 'rxjs';
import { Observable, of, catchError, from, mergeMap } from 'rxjs';
class ErrorHandlingProxy extends ClientGrpcProxy {
serializeError(err) {
@@ -107,6 +107,17 @@ export class GrpcController {
};
}
// contrived example meant to show when an error is encountered, like dividing by zero, the
// application does not crash and the error is returned appropriately to the client
@GrpcMethod('Math', 'StreamDivide')
streamDivide({
data,
}: {
data: { dividend: number; divisor: number }[];
}): Observable<any> {
return from(data).pipe(mergeMap(request => this.divide(request)));
}
@GrpcMethod('Math2')
async sum2({ data }: { data: number[] }): Promise<any> {
return of({

View File

@@ -7,7 +7,9 @@ service Math {
rpc SumStream(stream RequestSum) returns(stream SumResult);
rpc SumStreamPass(stream RequestSum) returns(stream SumResult);
rpc Divide (RequestDivide) returns (DivideResult);
rpc StreamLargeMessages(Empty) returns (stream BackpressureData) {}
rpc StreamLargeMessages(Empty) returns (stream BackpressureData);
/* Given a series of dividend and divisor, stream back the division results for each */
rpc StreamDivide (StreamDivideRequest) returns (stream StreamDivideResponse);
}
message BackpressureData {
@@ -33,3 +35,11 @@ message RequestDivide {
message DivideResult {
int32 result = 1;
}
message StreamDivideRequest {
repeated RequestDivide data = 1;
}
message StreamDivideResponse {
DivideResult data = 1;
}

View File

@@ -13,7 +13,7 @@ import { Observable } from 'rxjs';
import { SumDto } from './dto/sum.dto';
/**
* The following function explicity sends messages to the key representing the partition.
* The following function explicitly sends messages to the key representing the partition.
*/
const explicitPartitioner = () => {
return ({ message }: PartitionerArgs) => {

View File

@@ -1,13 +1,13 @@
import { Module, Injectable } from '@nestjs/common';
import { AppController } from './app.controller';
import { Injectable, Module } from '@nestjs/common';
import {
ClientsModule,
Transport,
ClientsModuleOptionsFactory,
ClientOptions,
ClientsModule,
ClientsModuleOptionsFactory,
ClientTCP,
RpcException,
Transport,
} from '@nestjs/microservices';
import { AppController } from './app.controller';
import * as fs from 'fs';
import * as path from 'path';

View File

@@ -573,7 +573,7 @@ allow_anonymous true
# not given then the access is read/write. <topic> can contain the + or #
# wildcards as in subscriptions.
#
# The "deny" option can used to explicity deny access to a topic that would
# The "deny" option can used to explicitly deny access to a topic that would
# otherwise be granted by a broader read/write/readwrite statement. Any "deny"
# topics are handled before topics that grant read/write access.
#

View File

@@ -0,0 +1,98 @@
import { INestApplication, VersioningType } from '@nestjs/common';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
/**
* `.enableVersioning()` uses `VersioningType.URI` type by default
* Regression test for #13496
* @see [Versioning](https://docs.nestjs.com/techniques/versioning)
*/
describe('Default Versioning behavior', () => {
// ======================================================================== //
describe('Express', () => {
let app: INestApplication;
before(async () => {
const moduleRef = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleRef.createNestApplication();
app.enableVersioning();
await app.init();
});
describe('GET /', () => {
it('V1', () => {
return request(app.getHttpServer())
.get('/v1')
.expect(200)
.expect('Hello World V1!');
});
it('No Version', () => {
return request(app.getHttpServer()).get('/').expect(404);
});
});
describe('GET /neutral', () => {
it('No Version', () => {
return request(app.getHttpServer())
.get('/neutral')
.expect(200)
.expect('Neutral');
});
});
after(async () => {
await app.close();
});
});
// ======================================================================== //
describe('Fastify', () => {
let app: INestApplication;
before(async () => {
const moduleRef = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleRef.createNestApplication<NestFastifyApplication>(
new FastifyAdapter(),
);
app.enableVersioning();
await app.init();
await app.getHttpAdapter().getInstance().ready();
});
describe('GET /', () => {
it('V1', () => {
return request(app.getHttpServer())
.get('/v1')
.expect(200)
.expect('Hello World V1!');
});
it('No Version', () => {
return request(app.getHttpServer()).get('/').expect(404);
});
});
describe('GET /neutral', () => {
it('No Version', () => {
return request(app.getHttpServer())
.get('/neutral')
.expect(200)
.expect('Neutral');
});
});
after(async () => {
await app.close();
});
});
});

View File

@@ -218,6 +218,61 @@ describe('WebSocketGateway (WsAdapter)', () => {
);
});
it('should set messageParser by using setMessageParser method', async () => {
const testingModule = await Test.createTestingModule({
providers: [ApplicationGateway],
}).compile();
app = testingModule.createNestApplication();
const wsAdapter = new WsAdapter(app);
wsAdapter.setMessageParser(data => {
const [event, payload] = JSON.parse(data.toString());
return { event, data: payload };
});
app.useWebSocketAdapter(wsAdapter);
await app.listen(3000);
ws = new WebSocket('ws://localhost:8080');
await new Promise(resolve => ws.on('open', resolve));
ws.send(JSON.stringify(['push', { test: 'test' }]));
await new Promise<void>(resolve =>
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
ws.close();
resolve();
}),
);
});
it('should set messageParser by using constructor options', async () => {
const testingModule = await Test.createTestingModule({
providers: [ApplicationGateway],
}).compile();
app = testingModule.createNestApplication();
const wsAdapter = new WsAdapter(app, {
messageParser: data => {
const [event, payload] = JSON.parse(data.toString());
return { event, data: payload };
},
});
app.useWebSocketAdapter(wsAdapter);
await app.listen(3000);
ws = new WebSocket('ws://localhost:8080');
await new Promise(resolve => ws.on('open', resolve));
ws.send(JSON.stringify(['push', { test: 'test' }]));
await new Promise<void>(resolve =>
ws.on('message', data => {
expect(JSON.parse(data).data.test).to.be.eql('test');
ws.close();
resolve();
}),
);
});
afterEach(async function () {
await app.close();
});

View File

@@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "10.3.5"
"version": "10.4.7"
}

18510
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "10.3.4",
"version": "10.4.5",
"description": "Modern, fast, powerful node.js web framework",
"homepage": "https://nestjs.com",
"repository": {
@@ -63,76 +63,75 @@
"class-validator": "0.14.1",
"cli-color": "2.0.4",
"cors": "2.8.5",
"express": "4.18.3",
"fast-json-stringify": "5.13.0",
"express": "4.21.1",
"fast-json-stringify": "6.0.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.2.1",
"reflect-metadata": "0.2.2",
"rxjs": "7.8.1",
"socket.io": "4.7.5",
"tslib": "2.6.2",
"socket.io": "4.8.0",
"tslib": "2.7.0",
"uid": "2.0.2",
"uuid": "9.0.1"
"uuid": "10.0.0"
},
"devDependencies": {
"@apollo/server": "4.10.1",
"@apollo/server": "4.11.0",
"@codechecks/client": "0.1.12",
"@commitlint/cli": "19.2.0",
"@commitlint/config-angular": "19.1.0",
"@commitlint/cli": "19.5.0",
"@commitlint/config-angular": "19.5.0",
"@fastify/cors": "9.0.1",
"@fastify/formbody": "7.4.0",
"@fastify/middie": "8.3.0",
"@fastify/multipart": "8.1.0",
"@fastify/static": "7.0.1",
"@fastify/view": "9.0.0",
"@grpc/grpc-js": "1.10.3",
"@grpc/proto-loader": "0.7.10",
"@nestjs/apollo": "12.1.0",
"@nestjs/graphql": "12.1.1",
"@nestjs/mongoose": "10.0.4",
"@fastify/middie": "8.3.1",
"@fastify/multipart": "8.3.0",
"@fastify/static": "7.0.4",
"@fastify/view": "9.1.0",
"@grpc/grpc-js": "1.11.1",
"@grpc/proto-loader": "0.7.13",
"@nestjs/apollo": "12.2.0",
"@nestjs/graphql": "12.2.0",
"@nestjs/mongoose": "10.0.10",
"@nestjs/typeorm": "10.0.2",
"@types/amqplib": "0.10.5",
"@types/bytes": "3.1.4",
"@types/chai": "4.3.11",
"@types/chai": "4.3.16",
"@types/chai-as-promised": "7.1.8",
"@types/cors": "2.8.17",
"@types/express": "4.17.21",
"@types/gulp": "4.0.17",
"@types/http-errors": "2.0.4",
"@types/mocha": "10.0.6",
"@types/node": "20.11.29",
"@types/mocha": "10.0.8",
"@types/node": "22.5.5",
"@types/sinon": "17.0.3",
"@types/supertest": "2.0.16",
"@types/ws": "8.5.10",
"@typescript-eslint/eslint-plugin": "7.3.1",
"@typescript-eslint/parser": "7.3.1",
"@types/ws": "8.5.12",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"amqp-connection-manager": "4.1.14",
"amqplib": "0.10.3",
"artillery": "2.0.8",
"body-parser": "1.20.2",
"amqplib": "0.10.4",
"artillery": "2.0.20",
"body-parser": "1.20.3",
"bytes": "3.1.2",
"cache-manager": "5.4.0",
"cache-manager": "5.7.6",
"cache-manager-redis-store": "3.0.1",
"chai": "4.4.1",
"chai-as-promised": "7.1.1",
"chai": "4.5.0",
"chai-as-promised": "7.1.2",
"clang-format": "1.8.0",
"commitlint-circle": "1.0.0",
"concurrently": "8.2.2",
"conventional-changelog": "5.1.0",
"core-js": "3.36.0",
"concurrently": "9.0.1",
"conventional-changelog": "6.0.0",
"core-js": "3.38.1",
"coveralls": "3.1.1",
"delete-empty": "3.0.0",
"engine.io-client": "6.5.3",
"eslint": "8.57.0",
"engine.io-client": "6.6.1",
"eslint": "8.57.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eventsource": "2.0.2",
"fancy-log": "2.0.0",
"fastify": "4.26.2",
"graphql": "16.8.1",
"fastify": "4.28.1",
"graphql": "16.9.0",
"graphql-tools": "9.0.1",
"gulp": "4.0.2",
"gulp-clang-format": "1.0.27",
@@ -141,39 +140,38 @@
"gulp-typescript": "5.0.1",
"gulp-watch": "5.0.1",
"http-errors": "2.0.0",
"husky": "9.0.11",
"husky": "9.1.5",
"imports-loader": "5.0.0",
"ioredis": "5.3.2",
"ioredis": "5.4.1",
"json-loader": "0.5.7",
"kafkajs": "2.2.4",
"lerna": "2.11.0",
"lerna-changelog": "2.2.0",
"light-my-request": "5.12.0",
"lint-staged": "15.2.2",
"light-my-request": "6.1.0",
"lint-staged": "15.2.10",
"markdown-table": "2.0.0",
"merge-graphql-schemas": "1.7.8",
"mocha": "10.3.0",
"mongoose": "8.2.2",
"mqtt": "5.5.0",
"mocha": "10.7.3",
"mongoose": "8.6.2",
"mqtt": "5.6.0",
"multer": "1.4.4",
"mysql2": "3.9.2",
"nats": "2.19.0",
"nodemon": "3.1.0",
"mysql2": "3.11.3",
"nats": "2.28.2",
"nodemon": "3.1.5",
"nyc": "14.1.1",
"prettier": "3.2.5",
"redis": "4.6.13",
"prettier": "3.3.3",
"redis": "4.7.0",
"rxjs-compat": "6.6.7",
"sinon": "17.0.1",
"sinon": "19.0.2",
"sinon-chai": "3.7.0",
"socket.io-client": "4.7.5",
"socket.io-client": "4.8.0",
"subscriptions-transport-ws": "0.11.0",
"supertest": "6.3.3",
"ts-morph": "22.0.0",
"supertest": "7.0.0",
"ts-morph": "23.0.0",
"ts-node": "10.9.2",
"typeorm": "0.3.20",
"typescript": "5.4.2",
"typescript": "5.6.2",
"wrk": "1.2.1",
"ws": "8.16.0"
"ws": "8.18.0"
},
"engines": {
"node": ">= 16"

View File

@@ -57,71 +57,84 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Principal Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
<table style="text-align:center;">
<tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td><a href="https://microsoft.com/" target="_blank"><img src="https://nestjs.com/img/logos/microsoft-logo.png" width="180" valign="middle" /></a></td>
<td><a href="https://mojam.co" target="_blank"><img src="https://nestjs.com/img/logos/mojam-logo.png" width="80" valign="middle" /></a></td>
<td><a href="https://marblism.com?utm_source=nest" target="_blank"><img src="https://nestjs.com/img/logos/marblism-logo.png" width="180" valign="middle" /></a></td>
<td><a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td><a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/logos/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr>
</table>
#### Gold Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://www.redhat.com" target="_blank"><img src="https://nestjs.com/img/red-hat-logo.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
<a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/intrinisic-logo.png" width="210" valign="middle" /></a></td></tr><tr>
<td>
<a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/jetbrains-logo.svg" width="90" valign="middle" /></a></td><td>
<a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/snyk-logo-black.png" width="185" valign="middle" /></a></td><td>
<a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td>
<td>
<a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/ridi-logo.svg" width="105" valign="middle" /></a></td><td>
<a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/movavi-logo.svg" width="105" valign="middle" /></a></td>
</tr><tr><td>
<a href="https://skunk.team" target="_blank"><img src="https://nestjs.com/img/skunk-logo.png" height="60" valign="middle" /></a></td>
</tr></table>
<table style="text-align:center;">
<tr>
<td><a href="https://www.redhat.com" target="_blank"><img src="https://nestjs.com/img/logos/red-hat-logo.svg" width="200" valign="middle" /></a></td>
<td><a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td><a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/logos/nx-logo.png" height="45" valign="middle" /></a></td>
<td><a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/logos/intrinisic-logo.png" width="210" valign="middle" /></a></td>
<td><a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/logos/jetbrains-logo.svg" width="90" valign="middle" /></a></td>
</tr>
<tr>
<td><a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/logos/snyk-logo-black.png" width="185" valign="middle" /></a></td>
<td><a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/logos/fuse-logo.svg" width="105" valign="middle" /></a></td>
<td><a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/logos/ridi-logo.svg" width="105" valign="middle" /></a></td>
<td><a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/logos/movavi-logo.svg" width="105" valign="middle" /></a></td>
<td><a href="https://skunk.team" target="_blank"><img src="https://nestjs.com/img/logos/skunk-logo.png" height="60" valign="middle" /></a></td>
</tr>
</table>
#### Silver Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td>
<table style="text-align:center;">
<tr>
<td><a href="https://www.mercedes-benz.com/" target="_blank"><img src="https://nestjs.com/img/logos/mercedes-logo.png" width="100" valign="middle" /></a></td>
<td><a href="https://www.dinii.jp/" target="_blank"><img src="https://nestjs.com/img/logos/dinii-logo.png" width="65" valign="middle" /></a></td>
<td><a href="https://bloodycase.com/?promocode=NEST" target="_blank"><img src="https://nestjs.com/img/logos/bloodycase-logo.png" width="65" valign="middle" /></a></td>
<td><a href="https://handsontable.com/docs/react-data-grid/?utm_source=NestJS_GH&utm_medium=sponsorship&utm_campaign=library_sponsorship_2024" target="_blank"><img src="https://nestjs.com/img/logos/handsontable-logo.svg" width="150" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.itflashcards.com/" target="_blank"><img src="https://nestjs.com/img/logos/it_flashcards-logo.png" width="170" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://arcjet.com/?ref=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/arcjet-logo.svg" width="170" valign="middle" /></a></td>
</tr>
</table>
#### Sponsors
<table><tr><td align="center" valign="middle">
<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://mantro.net/" target="_blank"><img src="https://nestjs.com/img/mantro-logo.svg" width="95" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://triplebyte.com/" target="_blank"><img src="https://nestjs.com/img/triplebyte.png" width="107" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://nearpod.com/" target="_blank"><img src="https://nestjs.com/img/nearpod-logo.svg" width="100" valign="middle" /></a> </td>
<td align="center" valign="middle">
<a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" width="97" valign="middle" /></a> </td></tr><tr>
<td align="center" valign="middle"><a href="https://sanyodigital.com/" target="_blank"><img src="https://nestjs.com/img/sanyo-digital.png" width="130" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/vpn-review-logo.png" width="85" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/lambda-it-logo.svg" width="115" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.najlepszeplatformyforex.pl/blog/broker-xtb/" target="_blank"><img src="https://nestjs.com/img/npf-logo.jpg" width="200" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://rocketech.it/cases/?utm_source=google&utm_medium=badge&utm_campaign=nestjs" target="_blank"><img src="https://nestjs.com/img/rocketech-logo.svg" width="110" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.anonymistic.com/" target="_blank"><img src="https://nestjs.com/img/anonymistic-logo.png" width="125" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://www.naologic.com/" target="_blank"><img src="https://nestjs.com/img/naologic-logo.svg" width="125" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://triplecore.io" target="_blank"><img src="https://nestjs.com/img/triplecore-logo.svg" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/casinowizard-logo.png" width="120" valign="middle" /></a></td>
<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://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://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
</tr></table>
<table>
<tr>
<td align="center" valign="middle"><a href="https://www.swingdev.io" target="_blank"><img src="https://nestjs.com/img/logos/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/logos/novologic.png" width="110" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://mantro.net/" target="_blank"><img src="https://nestjs.com/img/logos/mantro-logo.svg" width="95" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://triplebyte.com/" target="_blank"><img src="https://nestjs.com/img/logos/triplebyte.png" width="107" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://nearpod.com/" target="_blank"><img src="https://nestjs.com/img/logos/nearpod-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/logos/genuinebee.svg" width="97" valign="middle" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/logos/vpn-review-logo.png" width="85" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/logos/lambda-it-logo.svg" width="115" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://rocketech.it/cases/?utm_source=google&utm_medium=badge&utm_campaign=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/rocketech-logo.svg" width="110" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.anonymistic.com/" target="_blank"><img src="https://nestjs.com/img/logos/anonymistic-logo.png" width="125" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.naologic.com/" target="_blank"><img src="https://nestjs.com/img/logos/naologic-logo.svg" width="125" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://triplecore.io" target="_blank"><img src="https://nestjs.com/img/logos/triplecore-logo.svg" width="50" valign="middle" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/logos/casinowizard-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://polygon-software.ch/" target="_blank"><img src="https://nestjs.com/img/logos/polygon-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://boringowl.io/" target="_blank"><img src="https://nestjs.com/img/logos/boringowl-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/logos/nordbot-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/logos/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/logos/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/logos/julienferand-logo.jpeg" width="55" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/logos/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/logos/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.route4me.com/" target="_blank"><img src="https://nestjs.com/img/logos/route4me-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.slotsup.com/" target="_blank"><img src="https://nestjs.com/img/logos/slotsup-logo.png" width="60" valign="middle" /></a></td>
</tr>
</table>
## Backers

View File

@@ -1,7 +1,9 @@
import {
PARAMTYPES_METADATA,
PROPERTY_DEPS_METADATA,
SELF_DECLARED_DEPS_METADATA,
} from '../../constants';
import { ForwardReference, InjectionToken } from '../../interfaces';
import { isUndefined } from '../../utils/shared.utils';
/**
@@ -33,16 +35,16 @@ import { isUndefined } from '../../utils/shared.utils';
*
* @publicApi
*/
export function Inject<T = any>(
token?: T,
export function Inject(
token?: InjectionToken | ForwardReference,
): PropertyDecorator & ParameterDecorator {
return (target: object, key: string | symbol | undefined, index?: number) => {
const type = token || Reflect.getMetadata('design:type', target, key);
const injectCallHasArguments = arguments.length > 0;
if (!type) {
throw new Error(`Token is undefined at index: ${index}. This often occurs due to circular dependencies.
Ensure there are no circular dependencies in your files or barrel files.
For more details, refer to https://trilon.io/blog/avoiding-circular-dependencies-in-nestjs.`);
return (target: object, key: string | symbol | undefined, index?: number) => {
let type = token || Reflect.getMetadata('design:type', target, key);
// Try to infer the token in a constructor-based injection
if (!type && !injectCallHasArguments) {
type = Reflect.getMetadata(PARAMTYPES_METADATA, target, key)?.[index];
}
if (!isUndefined(index)) {

View File

@@ -16,12 +16,8 @@ export type ParamDecoratorEnhancer = ParameterDecorator;
*
* @publicApi
*/
export function createParamDecorator<
FactoryData = any,
FactoryInput = any,
FactoryOutput = any,
>(
factory: CustomParamFactory<FactoryData, FactoryInput, FactoryOutput>,
export function createParamDecorator<FactoryData = any, FactoryOutput = any>(
factory: CustomParamFactory<FactoryData, FactoryOutput>,
enhancers: ParamDecoratorEnhancer[] = [],
): (
...dataOrPipes: (Type<PipeTransform> | PipeTransform | FactoryData)[]

View File

@@ -118,3 +118,66 @@ export const All = createMappingDecorator(RequestMethod.ALL);
* @publicApi
*/
export const Search = createMappingDecorator(RequestMethod.SEARCH);
/**
* Route handler (method) Decorator. Routes Webdav PROPFIND requests to the specified path.
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
*
* @publicApi
*/
export const Propfind = createMappingDecorator(RequestMethod.PROPFIND);
/**
* Route handler (method) Decorator. Routes Webdav PROPPATCH requests to the specified path.
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
*
* @publicApi
*/
export const Proppatch = createMappingDecorator(RequestMethod.PROPPATCH);
/**
* Route handler (method) Decorator. Routes Webdav MKCOL requests to the specified path.
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
*
* @publicApi
*/
export const Mkcol = createMappingDecorator(RequestMethod.MKCOL);
/**
* Route handler (method) Decorator. Routes Webdav COPY requests to the specified path.
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
*
* @publicApi
*/
export const Copy = createMappingDecorator(RequestMethod.COPY);
/**
* Route handler (method) Decorator. Routes Webdav MOVE requests to the specified path.
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
*
* @publicApi
*/
export const Move = createMappingDecorator(RequestMethod.MOVE);
/**
* Route handler (method) Decorator. Routes Webdav LOCK requests to the specified path.
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
*
* @publicApi
*/
export const Lock = createMappingDecorator(RequestMethod.LOCK);
/**
* Route handler (method) Decorator. Routes Webdav UNLOCK requests to the specified path.
*
* @see [Routing](https://docs.nestjs.com/controllers#routing)
*
* @publicApi
*/
export const Unlock = createMappingDecorator(RequestMethod.UNLOCK);

View File

@@ -13,6 +13,9 @@ export enum HttpStatus {
NO_CONTENT = 204,
RESET_CONTENT = 205,
PARTIAL_CONTENT = 206,
MULTI_STATUS = 207,
ALREADY_REPORTED = 208,
CONTENT_DIFFERENT = 210,
AMBIGUOUS = 300,
MOVED_PERMANENTLY = 301,
FOUND = 302,
@@ -41,13 +44,17 @@ export enum HttpStatus {
I_AM_A_TEAPOT = 418,
MISDIRECTED = 421,
UNPROCESSABLE_ENTITY = 422,
LOCKED = 423,
FAILED_DEPENDENCY = 424,
PRECONDITION_REQUIRED = 428,
TOO_MANY_REQUESTS = 429,
UNRECOVERABLE_ERROR = 456,
INTERNAL_SERVER_ERROR = 500,
NOT_IMPLEMENTED = 501,
BAD_GATEWAY = 502,
SERVICE_UNAVAILABLE = 503,
GATEWAY_TIMEOUT = 504,
HTTP_VERSION_NOT_SUPPORTED = 505,
INSUFFICIENT_STORAGE = 507,
LOOP_DETECTED = 508,
}

View File

@@ -8,4 +8,11 @@ export enum RequestMethod {
OPTIONS,
HEAD,
SEARCH,
PROPFIND,
PROPPATCH,
MKCOL,
COPY,
MOVE,
LOCK,
UNLOCK,
}

View File

@@ -2,7 +2,7 @@ import {
HttpExceptionBody,
HttpExceptionBodyMessage,
} from '../interfaces/http/http-exception-body.interface';
import { isObject, isString } from '../utils/shared.utils';
import { isNumber, isObject, isString } from '../utils/shared.utils';
export interface HttpExceptionOptions {
/** original cause of the error */
@@ -115,17 +115,14 @@ export class HttpException extends Error {
message: HttpExceptionBodyMessage,
statusCode: number,
): HttpExceptionBody;
public static createBody(
message: HttpExceptionBodyMessage,
error: string,
statusCode: number,
): HttpExceptionBody;
public static createBody<Body extends Record<string, unknown>>(
custom: Body,
): Body;
public static createBody<Body extends Record<string, unknown>>(
arg0: null | HttpExceptionBodyMessage | Body,
arg1?: HttpExceptionBodyMessage | string,
@@ -138,7 +135,7 @@ export class HttpException extends Error {
};
}
if (isString(arg0) || Array.isArray(arg0)) {
if (isString(arg0) || Array.isArray(arg0) || isNumber(arg0)) {
return {
message: arg0,
error: arg1 as string,

View File

@@ -1,10 +1,22 @@
/**
* Options for `StreamableFile`
*
* @see [Streaming files](https://docs.nestjs.com/techniques/streaming-files)
*
* @publicApi
*/
export interface StreamableFileOptions {
/**
* The value that will be used for the `Content-Type` response header.
* @default `"application/octet-stream"`
*/
type?: string;
/**
* The value that will be used for the `Content-Disposition` response header.
*/
disposition?: string;
/**
* The value that will be used for the `Content-Length` response header.
*/
length?: number;
}

View File

@@ -1,9 +1,9 @@
import { Readable } from 'stream';
import { types } from 'util';
import { HttpStatus } from '../enums';
import { Logger } from '../services';
import { isFunction } from '../utils/shared.utils';
import { StreamableFileOptions, StreamableHandlerResponse } from './interfaces';
import { Logger } from '../services';
/**
* @see [Streaming files](https://docs.nestjs.com/techniques/streaming-files)
@@ -31,7 +31,7 @@ export class StreamableFile {
};
protected logError: (err: Error) => void = (err: Error) => {
this.logger.error(err.message, err.stack);
this.logger.error(err);
};
constructor(buffer: Uint8Array, options?: StreamableFileOptions);

View File

@@ -2,7 +2,7 @@ import { Type } from '../type.interface';
import { ClassTransformOptions } from './class-transform-options.interface';
export interface TransformerPackage {
plainToClass<T>(
plainToInstance<T>(
cls: Type<T>,
plain: unknown,
options?: ClassTransformOptions,

View File

@@ -1,7 +1,9 @@
import { ExecutionContext } from './execution-context.interface';
/**
* @publicApi
*/
export type CustomParamFactory<TData = any, TInput = any, TOutput = any> = (
export type CustomParamFactory<TData = any, TOutput = any> = (
data: TData,
input: TInput,
context: ExecutionContext,
) => TOutput;

View File

@@ -1,4 +1,4 @@
export type HttpExceptionBodyMessage = string | string[];
export type HttpExceptionBodyMessage = string | string[] | number;
export interface HttpExceptionBody {
message: HttpExceptionBodyMessage;

View File

@@ -47,6 +47,20 @@ export interface HttpServer<
put(path: string, handler: RequestHandler<TRequest, TResponse>): any;
patch(handler: RequestHandler<TRequest, TResponse>): any;
patch(path: string, handler: RequestHandler<TRequest, TResponse>): any;
propfind?(handler: RequestHandler<TRequest, TResponse>): any;
propfind?(path: string, handler: RequestHandler<TRequest, TResponse>): any;
proppatch?(handler: RequestHandler<TRequest, TResponse>): any;
proppatch?(path: string, handler: RequestHandler<TRequest, TResponse>): any;
mkcol?(handler: RequestHandler<TRequest, TResponse>): any;
mkcol?(path: string, handler: RequestHandler<TRequest, TResponse>): any;
copy?(handler: RequestHandler<TRequest, TResponse>): any;
copy?(path: string, handler: RequestHandler<TRequest, TResponse>): any;
move?(handler: RequestHandler<TRequest, TResponse>): any;
move?(path: string, handler: RequestHandler<TRequest, TResponse>): any;
lock?(handler: RequestHandler<TRequest, TResponse>): any;
lock?(path: string, handler: RequestHandler<TRequest, TResponse>): any;
unlock?(handler: RequestHandler<TRequest, TResponse>): any;
unlock?(path: string, handler: RequestHandler<TRequest, TResponse>): any;
all(path: string, handler: RequestHandler<TRequest, TResponse>): any;
all(handler: RequestHandler<TRequest, TResponse>): any;
options(handler: RequestHandler<TRequest, TResponse>): any;

View File

@@ -7,7 +7,7 @@ import { MiddlewareConsumer } from './middleware-consumer.interface';
*/
export interface MiddlewareConfigProxy {
/**
* Excludes routes from the currently processed middleware.
* Routes to exclude from the current middleware.
*
* @param {(string | RouteInfo)[]} routes
* @returns {MiddlewareConfigProxy}
@@ -15,8 +15,9 @@ export interface MiddlewareConfigProxy {
exclude(...routes: (string | RouteInfo)[]): MiddlewareConfigProxy;
/**
* Attaches passed either routes or controllers to the currently configured middleware.
* If you pass a class, Nest would attach middleware to every path defined within this controller.
* Attaches either routes or controllers to the current middleware.
* If you pass a controller class, Nest will attach the current middleware to every path
* defined within it.
*
* @param {(string | Type | RouteInfo)[]} routes
* @returns {MiddlewareConsumer}

View File

@@ -35,7 +35,6 @@ export interface ModuleMetadata {
*/
exports?: Array<
| DynamicModule
| Promise<DynamicModule>
| string
| symbol
| Provider

View File

@@ -44,4 +44,13 @@ export class NestApplicationContextOptions {
* @default false
*/
snapshot?: boolean;
/**
* Determines what algorithm use to generate module ids.
* When set to `deep-hash`, the module id is generated based on the serialized module definition.
* When set to `reference`, each module obtains a unique id based on its reference.
*
* @default 'reference'
*/
moduleIdGeneratorAlgorithm?: 'deep-hash' | 'reference';
}

View File

@@ -1,8 +1,11 @@
import { ShutdownSignal } from '../enums/shutdown-signal.enum';
import { LoggerService, LogLevel } from '../services/logger.service';
import { DynamicModule } from './modules';
import { NestApplicationContextOptions } from './nest-application-context-options.interface';
import { Type } from './type.interface';
export type SelectOptions = Pick<NestApplicationContextOptions, 'abortOnError'>;
export interface GetOrResolveOptions {
/**
* If enabled, lookup will only be performed in the host module.
@@ -27,7 +30,10 @@ export interface INestApplicationContext {
* Allows navigating through the modules tree, for example, to pull out a specific instance from the selected module.
* @returns {INestApplicationContext}
*/
select<T>(module: Type<T> | DynamicModule): INestApplicationContext;
select<T>(
module: Type<T> | DynamicModule,
options?: SelectOptions,
): INestApplicationContext;
/**
* Retrieves an instance of either injectable or controller, otherwise, throws exception.

View File

@@ -1,3 +1,4 @@
import { Observable } from 'rxjs';
import { ExceptionFilter } from './exceptions/exception-filter.interface';
import { CanActivate } from './features/can-activate.interface';
import { NestInterceptor } from './features/nest-interceptor.interface';
@@ -19,8 +20,8 @@ export interface INestMicroservice extends INestApplicationContext {
listen(): Promise<any>;
/**
* Register Ws Adapter which will be used inside Gateways.
* Use when you want to override default `socket.io` library.
* Registers a web socket adapter that will be used for Gateways.
* Use to override the default `socket.io` library.
*
* @param {WebSocketAdapter} adapter
* @returns {this}
@@ -28,37 +29,64 @@ export interface INestMicroservice extends INestApplicationContext {
useWebSocketAdapter(adapter: WebSocketAdapter): this;
/**
* Registers exception filters as global filters (will be used within every message pattern handler)
* Registers global exception filters (will be used for every pattern handler).
*
* @param {...ExceptionFilter} filters
*/
useGlobalFilters(...filters: ExceptionFilter[]): this;
/**
* Registers pipes as global pipes (will be used within every message pattern handler)
* Registers global pipes (will be used for every pattern handler).
*
* @param {...PipeTransform} pipes
*/
useGlobalPipes(...pipes: PipeTransform<any>[]): this;
/**
* Registers interceptors as global interceptors (will be used within every message pattern handler)
* Registers global interceptors (will be used for every pattern handler).
*
* @param {...NestInterceptor} interceptors
*/
useGlobalInterceptors(...interceptors: NestInterceptor[]): this;
/**
* Registers guards as global guards (will be used within every message pattern handler)
* Registers global guards (will be used for every pattern handler).
*
* @param {...CanActivate} guards
*/
useGlobalGuards(...guards: CanActivate[]): this;
/**
* Terminates the application
* Terminates the application.
*
* @returns {Promise<void>}
*/
close(): Promise<void>;
/**
* Returns an observable that emits status changes.
*
* @returns {Observable<string>}
*/
status: Observable<string>;
/**
* Registers an event listener for the given event.
* @param event Event name
* @param callback Callback to be executed when the event is emitted
*/
on<
EventsMap extends Record<string, Function> = Record<string, Function>,
EventKey extends keyof EventsMap = keyof EventsMap,
EventCallback extends EventsMap[EventKey] = EventsMap[EventKey],
>(
event: EventKey,
callback: EventCallback,
): void;
/**
* Returns an instance of the underlying server/broker instance,
* or a group of servers if there are more than one.
*/
unwrap<T>(): T;
}

View File

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

View File

@@ -1,9 +1,10 @@
export * from './default-value.pipe';
export * from './file';
export * from './parse-array.pipe';
export * from './parse-bool.pipe';
export * from './parse-int.pipe';
export * from './parse-float.pipe';
export * from './parse-date.pipe';
export * from './parse-enum.pipe';
export * from './parse-float.pipe';
export * from './parse-int.pipe';
export * from './parse-uuid.pipe';
export * from './validation.pipe';
export * from './file';

View File

@@ -7,7 +7,7 @@ import {
PipeTransform,
} from '../interfaces/features/pipe-transform.interface';
import { HttpErrorByCode } from '../utils/http-error-by-code.util';
import { isNil, isUndefined, isString } from '../utils/shared.utils';
import { isNil, isString, isUndefined } from '../utils/shared.utils';
import { ValidationPipe, ValidationPipeOptions } from './validation.pipe';
const VALIDATION_ERROR_MESSAGE = 'Validation failed (parsable array expected)';
@@ -21,9 +21,26 @@ export interface ParseArrayOptions
ValidationPipeOptions,
'transform' | 'validateCustomDecorators' | 'exceptionFactory'
> {
/**
* Type for items to be converted into
*/
items?: Type<unknown>;
/**
* Items separator to split string by
* @default ','
*/
separator?: string;
/**
* If true, the pipe will return null or undefined if the value is not provided
* @default false
*/
optional?: boolean;
/**
* A factory function that returns an exception object to be thrown
* if validation fails.
* @param error Error message or object
* @returns The exception object
*/
exceptionFactory?: (error: any) => any;
}

View File

@@ -15,8 +15,21 @@ import { isNil } from '../utils/shared.utils';
* @publicApi
*/
export interface ParseBoolPipeOptions {
/**
* The HTTP status code to be used in the response when the validation fails.
*/
errorHttpStatusCode?: ErrorHttpStatusCode;
/**
* A factory function that returns an exception object to be thrown
* if validation fails.
* @param error Error message
* @returns The exception object
*/
exceptionFactory?: (error: string) => any;
/**
* If true, the pipe will return null or undefined if the value is not provided
* @default false
*/
optional?: boolean;
}

View File

@@ -0,0 +1,74 @@
import { Injectable } from '../decorators/core/injectable.decorator';
import { HttpStatus } from '../enums/http-status.enum';
import { PipeTransform } from '../interfaces/features/pipe-transform.interface';
import {
ErrorHttpStatusCode,
HttpErrorByCode,
} from '../utils/http-error-by-code.util';
import { isNil } from '../utils/shared.utils';
export interface ParseDatePipeOptions {
/**
* If true, the pipe will return null or undefined if the value is not provided
* @default false
*/
optional?: boolean;
/**
* Default value for the date
*/
default?: () => Date;
/**
* The HTTP status code to be used in the response when the validation fails.
*/
errorHttpStatusCode?: ErrorHttpStatusCode;
/**
* A factory function that returns an exception object to be thrown
* if validation fails.
* @param error Error message
* @returns The exception object
*/
exceptionFactory?: (error: string) => any;
}
@Injectable()
export class ParseDatePipe
implements PipeTransform<string | number | undefined | null>
{
protected exceptionFactory: (error: string) => any;
constructor(private readonly options: ParseDatePipeOptions = {}) {
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } =
options;
this.exceptionFactory =
exceptionFactory ||
(error => new HttpErrorByCode[errorHttpStatusCode](error));
}
/**
* Method that accesses and performs optional transformation on argument for
* in-flight requests.
*
* @param value currently processed route argument
* @param metadata contains metadata about the currently processed route argument
*/
transform(value: string | number | undefined | null): Date {
if (this.options.optional && isNil(value)) {
return this.options.default
? this.options.default()
: (value as undefined | null);
}
if (!value) {
throw this.exceptionFactory('Validation failed (no Date provided)');
}
const transformedValue = new Date(value);
if (isNaN(transformedValue.getTime())) {
throw this.exceptionFactory('Validation failed (invalid date format)');
}
return transformedValue;
}
}

View File

@@ -11,8 +11,21 @@ import { isNil } from '../utils/shared.utils';
* @publicApi
*/
export interface ParseEnumPipeOptions {
/**
* If true, the pipe will return null or undefined if the value is not provided
* @default false
*/
optional?: boolean;
/**
* The HTTP status code to be used in the response when the validation fails.
*/
errorHttpStatusCode?: ErrorHttpStatusCode;
/**
* A factory function that returns an exception object to be thrown
* if validation fails.
* @param error Error message
* @returns The exception object
*/
exceptionFactory?: (error: string) => any;
}

View File

@@ -11,8 +11,21 @@ import { isNil } from '../utils/shared.utils';
* @publicApi
*/
export interface ParseFloatPipeOptions {
/**
* The HTTP status code to be used in the response when the validation fails.
*/
errorHttpStatusCode?: ErrorHttpStatusCode;
/**
* A factory function that returns an exception object to be thrown
* if validation fails.
* @param error Error message
* @returns The exception object
*/
exceptionFactory?: (error: string) => any;
/**
* If true, the pipe will return null or undefined if the value is not provided
* @default false
*/
optional?: boolean;
}

View File

@@ -15,8 +15,21 @@ import { isNil } from '../utils/shared.utils';
* @publicApi
*/
export interface ParseIntPipeOptions {
/**
* The HTTP status code to be used in the response when the validation fails.
*/
errorHttpStatusCode?: ErrorHttpStatusCode;
/**
* A factory function that returns an exception object to be thrown
* if validation fails.
* @param error Error message
* @returns The exception object
*/
exceptionFactory?: (error: string) => any;
/**
* If true, the pipe will return null or undefined if the value is not provided
* @default false
*/
optional?: boolean;
}

View File

@@ -15,9 +15,25 @@ import { isNil, isString } from '../utils/shared.utils';
* @publicApi
*/
export interface ParseUUIDPipeOptions {
version?: '3' | '4' | '5';
/**
* UUID version to validate
*/
version?: '3' | '4' | '5' | '7';
/**
* The HTTP status code to be used in the response when the validation fails.
*/
errorHttpStatusCode?: ErrorHttpStatusCode;
/**
* A factory function that returns an exception object to be thrown
* if validation fails.
* @param error Error message
* @returns The exception object
*/
exceptionFactory?: (errors: string) => any;
/**
* If true, the pipe will return null or undefined if the value is not provided
* @default false
*/
optional?: boolean;
}
@@ -34,9 +50,10 @@ export class ParseUUIDPipe implements PipeTransform<string> {
3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
7: /^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
};
private readonly version: '3' | '4' | '5';
private readonly version: '3' | '4' | '5' | '7';
protected exceptionFactory: (errors: string) => any;
constructor(@Optional() protected readonly options?: ParseUUIDPipeOptions) {

View File

@@ -121,7 +121,7 @@ export class ValidationPipe implements PipeTransform<any> {
const isNil = value !== originalValue;
const isPrimitive = this.isPrimitive(value);
this.stripProtoKeys(value);
let entity = classTransformer.plainToClass(
let entity = classTransformer.plainToInstance(
metatype,
value,
this.transformOptions,
@@ -203,6 +203,12 @@ export class ValidationPipe implements PipeTransform<any> {
return value === true || value === 'true';
}
if (metatype === Number) {
if (isUndefined(value)) {
// This is a workaround to deal with optional numeric values since
// optional numerics shouldn't be parsed to a valid number when
// they were not defined
return undefined;
}
return +value;
}
return value;

View File

@@ -94,7 +94,11 @@ export class ClassSerializerInterceptor implements NestInterceptor {
if (plainOrClass instanceof options.type) {
return classTransformer.classToPlain(plainOrClass, options);
}
const instance = classTransformer.plainToClass(options.type, plainOrClass);
const instance = classTransformer.plainToInstance(
options.type,
plainOrClass,
options,
);
return classTransformer.classToPlain(instance, options);
}

View File

@@ -1,3 +1,4 @@
import { inspect, InspectOptions } from 'util';
import { Injectable, Optional } from '../decorators/core';
import { clc, yellow } from '../utils/cli-colors.util';
import {
@@ -9,6 +10,8 @@ import {
import { LoggerService, LogLevel } from './logger.service';
import { isLogLevelEnabled } from './utils';
const DEFAULT_DEPTH = 5;
export interface ConsoleLoggerOptions {
/**
* Enabled log levels.
@@ -16,8 +19,73 @@ export interface ConsoleLoggerOptions {
logLevels?: LogLevel[];
/**
* If enabled, will print timestamp (time difference) between current and previous log message.
* Note: This option is not used when `json` is enabled.
*/
timestamp?: boolean;
/**
* A prefix to be used for each log message.
* Note: This option is not used when `json` is enabled.
*/
prefix?: string;
/**
* If enabled, will print the log message in JSON format.
*/
json?: boolean;
/**
* If enabled, will print the log message in color.
* Default true if json is disabled, false otherwise
*/
colors?: boolean;
/**
* The context of the logger.
*/
context?: string;
/**
* If enabled, will print the log message in a single line, even if it is an object with multiple properties.
* If set to a number, the most n inner elements are united on a single line as long as all properties fit into breakLength. Short array elements are also grouped together.
* Default true when `json` is enabled, false otherwise.
*/
compact?: boolean | number;
/**
* Specifies the maximum number of Array, TypedArray, Map, Set, WeakMap, and WeakSet elements to include when formatting.
* Set to null or Infinity to show all elements. Set to 0 or negative to show no elements.
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
* @default 100
*/
maxArrayLength?: number;
/**
* Specifies the maximum number of characters to include when formatting.
* Set to null or Infinity to show all elements. Set to 0 or negative to show no characters.
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
* @default 10000.
*/
maxStringLength?: number;
/**
* If enabled, will sort keys while formatting objects.
* Can also be a custom sorting function.
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
* @default false
*/
sorted?: boolean | ((a: string, b: string) => number);
/**
* Specifies the number of times to recurse while formatting object. T
* This is useful for inspecting large objects. To recurse up to the maximum call stack size pass Infinity or null.
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
* @default 5
*/
depth?: number;
/**
* If true, object's non-enumerable symbols and properties are included in the formatted result.
* WeakMap and WeakSet entries are also included as well as user defined prototype properties
* @default false
*/
showHidden?: boolean;
/**
* The length at which input values are split across multiple lines. Set to Infinity to format the input as a single line (in combination with "compact" set to true).
* Default Infinity when "compact" is true, 80 otherwise.
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
*/
breakLength?: number;
}
const DEFAULT_LOG_LEVELS: LogLevel[] = [
@@ -40,22 +108,54 @@ const dateTimeFormatter = new Intl.DateTimeFormat(undefined, {
@Injectable()
export class ConsoleLogger implements LoggerService {
private static lastTimestampAt?: number;
private originalContext?: string;
/**
* The options of the logger.
*/
protected options: ConsoleLoggerOptions;
/**
* The context of the logger (can be set manually or automatically inferred).
*/
protected context?: string;
/**
* The original context of the logger (set in the constructor).
*/
protected originalContext?: string;
/**
* The options used for the "inspect" method.
*/
protected inspectOptions: InspectOptions;
/**
* The last timestamp at which the log message was printed.
*/
protected static lastTimestampAt?: number;
constructor();
constructor(context: string);
constructor(options: ConsoleLoggerOptions);
constructor(context: string, options: ConsoleLoggerOptions);
constructor(
@Optional()
protected context?: string,
contextOrOptions?: string | ConsoleLoggerOptions,
@Optional()
protected options: ConsoleLoggerOptions = {},
options?: ConsoleLoggerOptions,
) {
if (!options.logLevels) {
options.logLevels = DEFAULT_LOG_LEVELS;
}
// eslint-disable-next-line prefer-const
let [context, opts] = isString(contextOrOptions)
? [contextOrOptions, options]
: !!options
? [undefined, options]
: [contextOrOptions?.context, contextOrOptions];
opts = opts ?? {};
opts.logLevels ??= DEFAULT_LOG_LEVELS;
opts.colors ??= opts.colors ?? (opts.json ? false : true);
opts.prefix ??= 'Nest';
this.options = opts;
this.inspectOptions = this.getInspectOptions();
if (context) {
this.context = context;
this.originalContext = context;
}
}
@@ -91,7 +191,7 @@ export class ConsoleLogger implements LoggerService {
const { messages, context, stack } =
this.getContextAndStackAndMessagesToPrint([message, ...optionalParams]);
this.printMessages(messages, context, 'error', 'stderr');
this.printMessages(messages, context, 'error', 'stderr', stack);
this.printStackTrace(stack);
}
@@ -203,8 +303,18 @@ export class ConsoleLogger implements LoggerService {
context = '',
logLevel: LogLevel = 'log',
writeStreamType?: 'stdout' | 'stderr',
errorStack?: unknown,
) {
messages.forEach(message => {
if (this.options.json) {
this.printAsJson(message, {
context,
logLevel,
writeStreamType,
errorStack,
});
return;
}
const pidMessage = this.formatPid(process.pid);
const contextMessage = this.formatContext(context);
const timestampDiff = this.updateAndGetTimestampDiff();
@@ -222,12 +332,57 @@ export class ConsoleLogger implements LoggerService {
});
}
protected printAsJson(
message: unknown,
options: {
context: string;
logLevel: LogLevel;
writeStreamType?: 'stdout' | 'stderr';
errorStack?: unknown;
},
) {
type JsonLogObject = {
level: LogLevel;
pid: number;
timestamp: number;
message: unknown;
context?: string;
stack?: unknown;
};
const logObject: JsonLogObject = {
level: options.logLevel,
pid: process.pid,
timestamp: Date.now(),
message,
};
if (options.context) {
logObject.context = options.context;
}
if (options.errorStack) {
logObject.stack = options.errorStack;
}
const formattedMessage =
!this.options.colors && this.inspectOptions.compact === true
? JSON.stringify(logObject, this.stringifyReplacer)
: inspect(logObject, this.inspectOptions);
process[options.writeStreamType ?? 'stdout'].write(`${formattedMessage}\n`);
}
protected formatPid(pid: number) {
return `[Nest] ${pid} - `;
return `[${this.options.prefix}] ${pid} - `;
}
protected formatContext(context: string): string {
return context ? yellow(`[${context}] `) : '';
if (!context) {
return '';
}
context = `[${context}] `;
return this.options.colors ? yellow(context) : context;
}
protected formatMessage(
@@ -256,23 +411,30 @@ export class ConsoleLogger implements LoggerService {
return this.stringifyMessage(message(), logLevel);
}
return isPlainObject(message) || Array.isArray(message)
? `${this.colorize('Object:', logLevel)}\n${JSON.stringify(
message,
(key, value) =>
typeof value === 'bigint' ? value.toString() : value,
2,
)}\n`
: this.colorize(message as string, logLevel);
if (typeof message === 'string') {
return this.colorize(message, logLevel);
}
const outputText = inspect(message, this.inspectOptions);
if (isPlainObject(message)) {
return `Object(${Object.keys(message).length}) ${outputText}`;
}
if (Array.isArray(message)) {
return `Array(${message.length}) ${outputText}`;
}
return outputText;
}
protected colorize(message: string, logLevel: LogLevel) {
if (!this.options.colors || this.options.json) {
return message;
}
const color = this.getColorByLogLevel(logLevel);
return color(message);
}
protected printStackTrace(stack: string) {
if (!stack) {
if (!stack || this.options.json) {
return;
}
process.stderr.write(`${stack}\n`);
@@ -289,7 +451,58 @@ export class ConsoleLogger implements LoggerService {
}
protected formatTimestampDiff(timestampDiff: number) {
return yellow(` +${timestampDiff}ms`);
const formattedDiff = ` +${timestampDiff}ms`;
return this.options.colors ? yellow(formattedDiff) : formattedDiff;
}
protected getInspectOptions() {
let breakLength = this.options.breakLength;
if (typeof breakLength === 'undefined') {
breakLength = this.options.colors
? this.options.compact
? Infinity
: undefined
: this.options.compact === false
? undefined
: Infinity; // default breakLength to Infinity if inline is not set and colors is false
}
const inspectOptions: InspectOptions = {
depth: this.options.depth ?? DEFAULT_DEPTH,
sorted: this.options.sorted,
showHidden: this.options.showHidden,
compact: this.options.compact ?? (this.options.json ? true : false),
colors: this.options.colors,
breakLength,
};
if (this.options.maxArrayLength) {
inspectOptions.maxArrayLength = this.options.maxArrayLength;
}
if (this.options.maxStringLength) {
inspectOptions.maxStringLength = this.options.maxStringLength;
}
return inspectOptions;
}
protected stringifyReplacer(key: string, value: unknown) {
// Mimic util.inspect behavior for JSON logger with compact on and colors off
if (typeof value === 'bigint') {
return value.toString();
}
if (typeof value === 'symbol') {
return value.toString();
}
if (
value instanceof Map ||
value instanceof Set ||
value instanceof Error
) {
return `${inspect(value, this.inspectOptions)}`;
}
return value;
}
private getContextAndMessagesToPrint(args: unknown[]) {

View File

@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { applyDecorators, UseGuards } from '../../decorators';
import { GUARDS_METADATA } from '../../constants';
import { applyDecorators, UseGuards } from '../../decorators';
import { CanActivate } from '../../interfaces';
describe('applyDecorators', () => {

View File

@@ -22,14 +22,4 @@ describe('@Inject', () => {
];
expect(metadata).to.be.eql(expectedMetadata);
});
it('should throw an error when token is undefined', () => {
const defineInvalidClass = () => {
class Test {
constructor(@Inject(undefined) invalidParam) {}
}
};
expect(defineInvalidClass).to.throw(/^Token is undefined/);
});
});

View File

@@ -1,7 +1,22 @@
import { expect } from 'chai';
import { Body, HostParam, Param, Query, Search } from '../../decorators';
import { RequestMethod } from '../../enums/request-method.enum';
import { All, Delete, Get, ParseIntPipe, Patch, Post, Put } from '../../index';
import {
All,
Delete,
Get,
ParseIntPipe,
Patch,
Post,
Put,
Propfind,
Proppatch,
Mkcol,
Move,
Copy,
Lock,
Unlock,
} from '../../index';
import { ROUTE_ARGS_METADATA } from '../../constants';
import { RouteParamtypes } from '../../enums/route-paramtypes.enum';
@@ -415,3 +430,409 @@ describe('Inheritance', () => {
expect(methodUsingArray).to.be.eql(requestPropsUsingArray.method);
});
});
describe('@PropFind', () => {
const requestPath = 'test';
const requestProps = {
path: requestPath,
method: RequestMethod.PROPFIND,
};
const requestPathUsingArray = ['foo', 'bar'];
const requestPropsUsingArray = {
path: requestPathUsingArray,
method: RequestMethod.PROPFIND,
};
it('should enhance class with expected request metadata', () => {
class Test {
@Propfind(requestPath)
public static test() {}
@Propfind(requestPathUsingArray)
public static testUsingArray() {}
}
const path = Reflect.getMetadata('path', Test.test);
const method = Reflect.getMetadata('method', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
const methodUsingArray = Reflect.getMetadata('method', Test.testUsingArray);
expect(path).to.be.eql(requestPath);
expect(method).to.be.eql(requestProps.method);
expect(pathUsingArray).to.be.eql(requestPathUsingArray);
expect(methodUsingArray).to.be.eql(requestPropsUsingArray.method);
});
it('should set path on "/" by default', () => {
class Test {
@Propfind()
public static test(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
@Propfind([])
public static testUsingArray(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
}
const path = Reflect.getMetadata('path', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
expect(path).to.be.eql('/');
expect(pathUsingArray).to.be.eql('/');
});
});
describe('@PropPatch', () => {
const requestPath = 'test';
const requestProps = {
path: requestPath,
method: RequestMethod.PROPPATCH,
};
const requestPathUsingArray = ['foo', 'bar'];
const requestPropsUsingArray = {
path: requestPathUsingArray,
method: RequestMethod.PROPPATCH,
};
it('should enhance class with expected request metadata', () => {
class Test {
@Proppatch(requestPath)
public static test() {}
@Proppatch(requestPathUsingArray)
public static testUsingArray() {}
}
const path = Reflect.getMetadata('path', Test.test);
const method = Reflect.getMetadata('method', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
const methodUsingArray = Reflect.getMetadata('method', Test.testUsingArray);
expect(path).to.be.eql(requestPath);
expect(method).to.be.eql(requestProps.method);
expect(pathUsingArray).to.be.eql(requestPathUsingArray);
expect(methodUsingArray).to.be.eql(requestPropsUsingArray.method);
});
it('should set path on "/" by default', () => {
class Test {
@Proppatch()
public static test(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
@Proppatch([])
public static testUsingArray(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
}
const path = Reflect.getMetadata('path', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
expect(path).to.be.eql('/');
expect(pathUsingArray).to.be.eql('/');
});
});
describe('@MkCol', () => {
const requestPath = 'test';
const requestProps = {
path: requestPath,
method: RequestMethod.MKCOL,
};
const requestPathUsingArray = ['foo', 'bar'];
const requestPropsUsingArray = {
path: requestPathUsingArray,
method: RequestMethod.MKCOL,
};
it('should enhance class with expected request metadata', () => {
class Test {
@Mkcol(requestPath)
public static test() {}
@Mkcol(requestPathUsingArray)
public static testUsingArray() {}
}
const path = Reflect.getMetadata('path', Test.test);
const method = Reflect.getMetadata('method', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
const methodUsingArray = Reflect.getMetadata('method', Test.testUsingArray);
expect(path).to.be.eql(requestPath);
expect(method).to.be.eql(requestProps.method);
expect(pathUsingArray).to.be.eql(requestPathUsingArray);
expect(methodUsingArray).to.be.eql(requestPropsUsingArray.method);
});
it('should set path on "/" by default', () => {
class Test {
@Mkcol()
public static test(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
@Mkcol([])
public static testUsingArray(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
}
const path = Reflect.getMetadata('path', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
expect(path).to.be.eql('/');
expect(pathUsingArray).to.be.eql('/');
});
});
describe('@Copy', () => {
const requestPath = 'test';
const requestProps = {
path: requestPath,
method: RequestMethod.COPY,
};
const requestPathUsingArray = ['foo', 'bar'];
const requestPropsUsingArray = {
path: requestPathUsingArray,
method: RequestMethod.COPY,
};
it('should enhance class with expected request metadata', () => {
class Test {
@Copy(requestPath)
public static test() {}
@Copy(requestPathUsingArray)
public static testUsingArray() {}
}
const path = Reflect.getMetadata('path', Test.test);
const method = Reflect.getMetadata('method', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
const methodUsingArray = Reflect.getMetadata('method', Test.testUsingArray);
expect(path).to.be.eql(requestPath);
expect(method).to.be.eql(requestProps.method);
expect(pathUsingArray).to.be.eql(requestPathUsingArray);
expect(methodUsingArray).to.be.eql(requestPropsUsingArray.method);
});
it('should set path on "/" by default', () => {
class Test {
@Copy()
public static test(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
@Copy([])
public static testUsingArray(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
}
const path = Reflect.getMetadata('path', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
expect(path).to.be.eql('/');
expect(pathUsingArray).to.be.eql('/');
});
});
describe('@Move', () => {
const requestPath = 'test';
const requestProps = {
path: requestPath,
method: RequestMethod.MOVE,
};
const requestPathUsingArray = ['foo', 'bar'];
const requestPropsUsingArray = {
path: requestPathUsingArray,
method: RequestMethod.MOVE,
};
it('should enhance class with expected request metadata', () => {
class Test {
@Move(requestPath)
public static test() {}
@Move(requestPathUsingArray)
public static testUsingArray() {}
}
const path = Reflect.getMetadata('path', Test.test);
const method = Reflect.getMetadata('method', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
const methodUsingArray = Reflect.getMetadata('method', Test.testUsingArray);
expect(path).to.be.eql(requestPath);
expect(method).to.be.eql(requestProps.method);
expect(pathUsingArray).to.be.eql(requestPathUsingArray);
expect(methodUsingArray).to.be.eql(requestPropsUsingArray.method);
});
it('should set path on "/" by default', () => {
class Test {
@Move()
public static test(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
@Move([])
public static testUsingArray(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
}
const path = Reflect.getMetadata('path', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
expect(path).to.be.eql('/');
expect(pathUsingArray).to.be.eql('/');
});
});
describe('@Lock', () => {
const requestPath = 'test';
const requestProps = {
path: requestPath,
method: RequestMethod.LOCK,
};
const requestPathUsingArray = ['foo', 'bar'];
const requestPropsUsingArray = {
path: requestPathUsingArray,
method: RequestMethod.LOCK,
};
it('should enhance class with expected request metadata', () => {
class Test {
@Lock(requestPath)
public static test() {}
@Lock(requestPathUsingArray)
public static testUsingArray() {}
}
const path = Reflect.getMetadata('path', Test.test);
const method = Reflect.getMetadata('method', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
const methodUsingArray = Reflect.getMetadata('method', Test.testUsingArray);
expect(path).to.be.eql(requestPath);
expect(method).to.be.eql(requestProps.method);
expect(pathUsingArray).to.be.eql(requestPathUsingArray);
expect(methodUsingArray).to.be.eql(requestPropsUsingArray.method);
});
it('should set path on "/" by default', () => {
class Test {
@Lock()
public static test(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
@Lock([])
public static testUsingArray(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
}
const path = Reflect.getMetadata('path', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
expect(path).to.be.eql('/');
expect(pathUsingArray).to.be.eql('/');
});
});
describe('@Unlock', () => {
const requestPath = 'test';
const requestProps = {
path: requestPath,
method: RequestMethod.UNLOCK,
};
const requestPathUsingArray = ['foo', 'bar'];
const requestPropsUsingArray = {
path: requestPathUsingArray,
method: RequestMethod.UNLOCK,
};
it('should enhance class with expected request metadata', () => {
class Test {
@Unlock(requestPath)
public static test() {}
@Unlock(requestPathUsingArray)
public static testUsingArray() {}
}
const path = Reflect.getMetadata('path', Test.test);
const method = Reflect.getMetadata('method', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
const methodUsingArray = Reflect.getMetadata('method', Test.testUsingArray);
expect(path).to.be.eql(requestPath);
expect(method).to.be.eql(requestProps.method);
expect(pathUsingArray).to.be.eql(requestPathUsingArray);
expect(methodUsingArray).to.be.eql(requestPropsUsingArray.method);
});
it('should set path on "/" by default', () => {
class Test {
@Unlock()
public static test(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
@Unlock([])
public static testUsingArray(
@Query() query,
@Param() params,
@HostParam() hostParams,
) {}
}
const path = Reflect.getMetadata('path', Test.test);
const pathUsingArray = Reflect.getMetadata('path', Test.testUsingArray);
expect(path).to.be.eql('/');
expect(pathUsingArray).to.be.eql('/');
});
});

View File

@@ -0,0 +1,71 @@
import { expect } from 'chai';
import { BadRequestException } from '../../exceptions';
import { ParseDatePipe } from '../../pipes/parse-date.pipe';
describe('ParseDatePipe', () => {
let target: ParseDatePipe;
beforeEach(() => {
target = new ParseDatePipe();
});
describe('transform', () => {
describe('when validation passes', () => {
it('should return a valid date object', () => {
const date = new Date().toISOString();
const transformedDate = target.transform(date);
expect(transformedDate).to.be.instanceOf(Date);
expect(transformedDate.toISOString()).to.equal(date);
const asNumber = transformedDate.getTime();
const transformedNumber = target.transform(asNumber);
expect(transformedNumber).to.be.instanceOf(Date);
expect(transformedNumber.getTime()).to.equal(asNumber);
});
it('should not throw an error if the value is undefined/null and optional is true', () => {
const target = new ParseDatePipe({ optional: true });
const value = target.transform(undefined);
expect(value).to.equal(undefined);
});
});
describe('when default value is provided', () => {
it('should return the default value if the value is undefined/null', () => {
const defaultValue = new Date();
const target = new ParseDatePipe({
optional: true,
default: () => defaultValue,
});
const value = target.transform(undefined);
expect(value).to.equal(defaultValue);
});
});
describe('when validation fails', () => {
it('should throw an error', () => {
try {
target.transform('123abc');
expect.fail();
} catch (error) {
expect(error).to.be.instanceOf(BadRequestException);
expect(error.message).to.equal(
'Validation failed (invalid date format)',
);
}
});
});
describe('when empty value', () => {
it('should throw an error', () => {
try {
target.transform('');
expect.fail();
} catch (error) {
expect(error).to.be.instanceOf(BadRequestException);
expect(error.message).to.equal(
'Validation failed (no Date provided)',
);
}
});
});
});
});

View File

@@ -205,6 +205,18 @@ describe('ValidationPipe', () => {
}),
).to.be.equal(+value);
});
it('should parse undefined to undefined', async () => {
target = new ValidationPipe({ transform: true });
const value = undefined;
expect(
await target.transform(value, {
metatype: Number,
data: 'test',
type: 'query',
}),
).to.be.undefined;
});
});
describe('when input is a path parameter (number)', () => {
it('should parse to number', async () => {
@@ -219,6 +231,18 @@ describe('ValidationPipe', () => {
}),
).to.be.equal(+value);
});
it('should parse undefined to undefined', async () => {
target = new ValidationPipe({ transform: true });
const value = undefined;
expect(
await target.transform(value, {
metatype: Number,
data: 'test',
type: 'param',
}),
).to.be.undefined;
});
});
describe('when input is a query parameter (boolean)', () => {
it('should parse the string "true" to the boolean true', async () => {
@@ -478,6 +502,56 @@ describe('ValidationPipe', () => {
});
});
describe('option: "validateCustomDecorators" when metadata.type is not `body`', () => {
describe('when is set to `true`', () => {
it('should transform and validate', async () => {
const target = new ValidationPipe({
validateCustomDecorators: true,
});
const metadata: ArgumentMetadata = {
type: 'custom',
metatype: TestModel,
data: '',
};
const testObj = { prop1: 'value1', prop2: 'value2' };
expect(await target.transform(testObj, metadata)).to.not.be.undefined;
});
});
describe('when is set to `false`', () => {
it('should throw an error', async () => {
const target = new ValidationPipe({
validateCustomDecorators: false,
});
const metadata: ArgumentMetadata = {
type: 'custom',
metatype: TestModel,
data: '',
};
const objNotFollowingTestModel = { prop1: undefined, prop2: 'value2' };
expect(await target.transform(objNotFollowingTestModel, metadata)).to
.not.be.undefined;
});
});
describe('when is not supplied', () => {
it('should transform and validate', async () => {
const target = new ValidationPipe({});
const metadata: ArgumentMetadata = {
type: 'custom',
metatype: TestModel,
data: '',
};
const testObj = { prop1: 'value1', prop2: 'value2' };
expect(await target.transform(testObj, metadata)).to.not.be.undefined;
});
});
});
describe('option: "errorHttpStatusCode"', () => {
describe('when validation fails', () => {
beforeEach(() => {

View File

@@ -125,9 +125,12 @@ describe('Logger', () => {
Logger.error(error);
expect(processStderrWriteSpy.calledOnce).to.be.true;
expect(processStderrWriteSpy.firstCall.firstArg).to.include(`Object:`);
expect(processStderrWriteSpy.firstCall.firstArg).to.include(
`{\n "randomError": true\n}`,
`Object(${Object.keys(error).length})`,
);
expect(processStderrWriteSpy.firstCall.firstArg).to.include(
`randomError: \x1b[33mtrue`,
);
});
@@ -181,6 +184,153 @@ describe('Logger', () => {
expect(processStderrWriteSpy.thirdCall.firstArg).to.equal(stack + '\n');
});
});
describe('when the default logger is used and json mode is enabled', () => {
const logger = new ConsoleLogger({ json: true });
let processStdoutWriteSpy: sinon.SinonSpy;
let processStderrWriteSpy: sinon.SinonSpy;
beforeEach(() => {
processStdoutWriteSpy = sinon.spy(process.stdout, 'write');
processStderrWriteSpy = sinon.spy(process.stderr, 'write');
});
afterEach(() => {
processStdoutWriteSpy.restore();
processStderrWriteSpy.restore();
});
it('should print error with stack as JSON to the console', () => {
const errorMessage = 'error message';
const error = new Error(errorMessage);
logger.error(error.message, error.stack);
const json = JSON.parse(processStderrWriteSpy.firstCall?.firstArg);
expect(json.pid).to.equal(process.pid);
expect(json.level).to.equal('error');
expect(json.message).to.equal(errorMessage);
});
it('should log out to stdout as JSON', () => {
const message = 'message 1';
logger.log(message);
const json = JSON.parse(processStdoutWriteSpy.firstCall?.firstArg);
expect(json.pid).to.equal(process.pid);
expect(json.level).to.equal('log');
expect(json.message).to.equal(message);
});
it('should log out an error to stderr as JSON', () => {
const message = 'message 1';
logger.error(message);
const json = JSON.parse(processStderrWriteSpy.firstCall?.firstArg);
expect(json.pid).to.equal(process.pid);
expect(json.level).to.equal('error');
expect(json.message).to.equal(message);
});
it('should log Map object', () => {
const map = new Map([
['key1', 'value1'],
['key2', 'value2'],
]);
logger.log(map);
const json = JSON.parse(processStdoutWriteSpy.firstCall?.firstArg);
expect(json.pid).to.equal(process.pid);
expect(json.level).to.equal('log');
expect(json.message).to.equal(
`Map(2) { 'key1' => 'value1', 'key2' => 'value2' }`,
);
});
it('should log Set object', () => {
const set = new Set(['value1', 'value2']);
logger.log(set);
const json = JSON.parse(processStdoutWriteSpy.firstCall?.firstArg);
expect(json.pid).to.equal(process.pid);
expect(json.level).to.equal('log');
expect(json.message).to.equal(`Set(2) { 'value1', 'value2' }`);
});
it('should log bigint', () => {
const bigInt = BigInt(9007199254740991);
logger.log(bigInt);
const json = JSON.parse(processStdoutWriteSpy.firstCall?.firstArg);
expect(json.pid).to.equal(process.pid);
expect(json.level).to.equal('log');
expect(json.message).to.equal('9007199254740991');
});
it('should log symbol', () => {
const symbol = Symbol('test');
logger.log(symbol);
const json = JSON.parse(processStdoutWriteSpy.firstCall?.firstArg);
expect(json.pid).to.equal(process.pid);
expect(json.level).to.equal('log');
expect(json.message).to.equal('Symbol(test)');
});
});
describe('when the default logger is used, json mode is enabled and compact is false (utils.inspect)', () => {
const logger = new ConsoleLogger({ json: true, compact: false });
let processStdoutWriteSpy: sinon.SinonSpy;
let processStderrWriteSpy: sinon.SinonSpy;
beforeEach(() => {
processStdoutWriteSpy = sinon.spy(process.stdout, 'write');
processStderrWriteSpy = sinon.spy(process.stderr, 'write');
});
afterEach(() => {
processStdoutWriteSpy.restore();
processStderrWriteSpy.restore();
});
it('should log out to stdout as JSON (utils.inspect)', () => {
const message = 'message 1';
logger.log(message);
const json = convertInspectToJSON(
processStdoutWriteSpy.firstCall?.firstArg,
);
expect(json.pid).to.equal(process.pid);
expect(json.level).to.equal('log');
expect(json.message).to.equal(message);
});
it('should log out an error to stderr as JSON (utils.inspect)', () => {
const message = 'message 1';
logger.error(message);
const json = convertInspectToJSON(
processStderrWriteSpy.firstCall?.firstArg,
);
expect(json.pid).to.equal(process.pid);
expect(json.level).to.equal('error');
expect(json.message).to.equal(message);
});
});
describe('when logging is disabled', () => {
let processStdoutWriteSpy: sinon.SinonSpy;
let previousLoggerRef: LoggerService;
@@ -568,6 +718,7 @@ describe('Logger', () => {
expect(processStdoutWriteSpy.called).to.be.false;
});
});
describe('when custom logger is being used', () => {
class CustomLogger implements LoggerService {
log(message: any, context?: string) {}
@@ -723,7 +874,7 @@ describe('Logger', () => {
}
}
const consoleLogger = new CustomConsoleLogger();
const consoleLogger = new CustomConsoleLogger({ colors: false });
const consoleLoggerSpy = sinon.spy(
consoleLogger,
'stringifyMessage' as keyof ConsoleLogger,
@@ -739,30 +890,40 @@ describe('Logger', () => {
expect(consoleLoggerSpy.getCall(0).returnValue).to.equal('str1');
expect(consoleLoggerSpy.getCall(1).returnValue).to.equal(
`Object:
{
"key": "str2"
}
`,
`Object(1) {
key: 'str2'
}`,
);
expect(consoleLoggerSpy.getCall(2).returnValue).to.equal(
`Object:
[
"str3"
]
`,
`Array(1) [
'str3'
]`,
);
expect(consoleLoggerSpy.getCall(3).returnValue).to.equal(
`Object:
[
`Array(1) [
{
"key": "str4"
key: 'str4'
}
]
`,
]`,
);
expect(consoleLoggerSpy.getCall(4).returnValue).to.equal(null);
expect(consoleLoggerSpy.getCall(5).returnValue).to.equal(1);
expect(consoleLoggerSpy.getCall(4).returnValue).to.equal('null');
expect(consoleLoggerSpy.getCall(5).returnValue).to.equal('1');
});
});
});
function convertInspectToJSON(inspectOutput: string) {
const jsonLikeString = inspectOutput
.replace(/'([^']+)'/g, '"$1"') // single-quoted strings
.replace(/([a-zA-Z0-9_]+):/g, '"$1":') // unquoted object keys
.replace(/\bundefined\b/g, 'null')
.replace(/\[Function(: [^\]]+)?\]/g, '"[Function]"')
.replace(/\[Circular\]/g, '"[Circular]"');
try {
return JSON.parse(jsonLikeString);
} catch (error) {
console.error('Error parsing the modified inspect output:', error);
throw error;
}
}

View File

@@ -1,7 +1,7 @@
import { Logger } from '../services/logger.service';
const MISSING_REQUIRED_DEPENDENCY = (name: string, reason: string) =>
`The "${name}" package is missing. Please, make sure to install this library ($ npm install ${name}) to take advantage of ${reason}.`;
`The "${name}" package is missing. Please, make sure to install it to take advantage of ${reason}.`;
const logger = new Logger('PackageLoader');

View File

@@ -57,71 +57,84 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Principal Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td>
<a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr></table>
<table style="text-align:center;">
<tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td><a href="https://microsoft.com/" target="_blank"><img src="https://nestjs.com/img/logos/microsoft-logo.png" width="180" valign="middle" /></a></td>
<td><a href="https://mojam.co" target="_blank"><img src="https://nestjs.com/img/logos/mojam-logo.png" width="80" valign="middle" /></a></td>
<td><a href="https://marblism.com?utm_source=nest" target="_blank"><img src="https://nestjs.com/img/logos/marblism-logo.png" width="180" valign="middle" /></a></td>
<td><a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
<td><a href="https://amplication.com/" target="_blank"><img src="https://nestjs.com/img/logos/amplication-logo.svg" width="190" valign="middle" /></a></td>
</tr>
</table>
#### Gold Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://www.redhat.com" target="_blank"><img src="https://nestjs.com/img/red-hat-logo.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
<a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/nx-logo.png" height="45" valign="middle" /></a></td>
<td>
<a href="https://weld.app/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="140" valign="middle" /></a></td>
<td>
<a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/intrinisic-logo.png" width="210" valign="middle" /></a></td></tr><tr>
<td>
<a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/jetbrains-logo.svg" width="90" valign="middle" /></a></td><td>
<a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/snyk-logo-black.png" width="185" valign="middle" /></a></td><td>
<a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td>
<td>
<a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/ridi-logo.svg" width="105" valign="middle" /></a></td><td>
<a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/movavi-logo.svg" width="105" valign="middle" /></a></td>
</tr><tr><td>
<a href="https://skunk.team" target="_blank"><img src="https://nestjs.com/img/skunk-logo.png" height="60" valign="middle" /></a></td>
</tr></table>
<table style="text-align:center;">
<tr>
<td><a href="https://www.redhat.com" target="_blank"><img src="https://nestjs.com/img/logos/red-hat-logo.svg" width="200" valign="middle" /></a></td>
<td><a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td><a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/logos/nx-logo.png" height="45" valign="middle" /></a></td>
<td><a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/logos/intrinisic-logo.png" width="210" valign="middle" /></a></td>
<td><a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/logos/jetbrains-logo.svg" width="90" valign="middle" /></a></td>
</tr>
<tr>
<td><a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/logos/snyk-logo-black.png" width="185" valign="middle" /></a></td>
<td><a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/logos/fuse-logo.svg" width="105" valign="middle" /></a></td>
<td><a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/logos/ridi-logo.svg" width="105" valign="middle" /></a></td>
<td><a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/logos/movavi-logo.svg" width="105" valign="middle" /></a></td>
<td><a href="https://skunk.team" target="_blank"><img src="https://nestjs.com/img/logos/skunk-logo.png" height="60" valign="middle" /></a></td>
</tr>
</table>
#### Silver Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td>
<table style="text-align:center;">
<tr>
<td><a href="https://www.mercedes-benz.com/" target="_blank"><img src="https://nestjs.com/img/logos/mercedes-logo.png" width="100" valign="middle" /></a></td>
<td><a href="https://www.dinii.jp/" target="_blank"><img src="https://nestjs.com/img/logos/dinii-logo.png" width="65" valign="middle" /></a></td>
<td><a href="https://bloodycase.com/?promocode=NEST" target="_blank"><img src="https://nestjs.com/img/logos/bloodycase-logo.png" width="65" valign="middle" /></a></td>
<td><a href="https://handsontable.com/docs/react-data-grid/?utm_source=NestJS_GH&utm_medium=sponsorship&utm_campaign=library_sponsorship_2024" target="_blank"><img src="https://nestjs.com/img/logos/handsontable-logo.svg" width="150" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.itflashcards.com/" target="_blank"><img src="https://nestjs.com/img/logos/it_flashcards-logo.png" width="170" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://arcjet.com/?ref=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/arcjet-logo.svg" width="170" valign="middle" /></a></td>
</tr>
</table>
#### Sponsors
<table><tr><td align="center" valign="middle">
<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://mantro.net/" target="_blank"><img src="https://nestjs.com/img/mantro-logo.svg" width="95" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://triplebyte.com/" target="_blank"><img src="https://nestjs.com/img/triplebyte.png" width="107" valign="middle" /></a> </td><td align="center" valign="middle">
<a href="https://nearpod.com/" target="_blank"><img src="https://nestjs.com/img/nearpod-logo.svg" width="100" valign="middle" /></a> </td>
<td align="center" valign="middle">
<a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" width="97" valign="middle" /></a> </td></tr><tr>
<td align="center" valign="middle"><a href="https://sanyodigital.com/" target="_blank"><img src="https://nestjs.com/img/sanyo-digital.png" width="130" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/vpn-review-logo.png" width="85" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/lambda-it-logo.svg" width="115" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.najlepszeplatformyforex.pl/blog/broker-xtb/" target="_blank"><img src="https://nestjs.com/img/npf-logo.jpg" width="200" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://rocketech.it/cases/?utm_source=google&utm_medium=badge&utm_campaign=nestjs" target="_blank"><img src="https://nestjs.com/img/rocketech-logo.svg" width="110" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.anonymistic.com/" target="_blank"><img src="https://nestjs.com/img/anonymistic-logo.png" width="125" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://www.naologic.com/" target="_blank"><img src="https://nestjs.com/img/naologic-logo.svg" width="125" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://triplecore.io" target="_blank"><img src="https://nestjs.com/img/triplecore-logo.svg" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/casinowizard-logo.png" width="120" valign="middle" /></a></td>
<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://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://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/nordbot-logo.png" width="120" valign="middle" /></a></td></tr><tr>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
</tr></table>
<table>
<tr>
<td align="center" valign="middle"><a href="https://www.swingdev.io" target="_blank"><img src="https://nestjs.com/img/logos/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/logos/novologic.png" width="110" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://mantro.net/" target="_blank"><img src="https://nestjs.com/img/logos/mantro-logo.svg" width="95" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://triplebyte.com/" target="_blank"><img src="https://nestjs.com/img/logos/triplebyte.png" width="107" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://nearpod.com/" target="_blank"><img src="https://nestjs.com/img/logos/nearpod-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/logos/genuinebee.svg" width="97" valign="middle" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/logos/vpn-review-logo.png" width="85" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/logos/lambda-it-logo.svg" width="115" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://rocketech.it/cases/?utm_source=google&utm_medium=badge&utm_campaign=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/rocketech-logo.svg" width="110" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.anonymistic.com/" target="_blank"><img src="https://nestjs.com/img/logos/anonymistic-logo.png" width="125" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.naologic.com/" target="_blank"><img src="https://nestjs.com/img/logos/naologic-logo.svg" width="125" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://triplecore.io" target="_blank"><img src="https://nestjs.com/img/logos/triplecore-logo.svg" width="50" valign="middle" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/logos/casinowizard-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://polygon-software.ch/" target="_blank"><img src="https://nestjs.com/img/logos/polygon-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://boringowl.io/" target="_blank"><img src="https://nestjs.com/img/logos/boringowl-logo.svg" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/logos/nordbot-logo.png" width="120" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/logos/dopiosh-logo.png" width="50" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/logos/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/logos/julienferand-logo.jpeg" width="55" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/logos/tripoffice-logo.png" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/logos/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.route4me.com/" target="_blank"><img src="https://nestjs.com/img/logos/route4me-logo.svg" width="100" valign="middle" /></a></td>
<td align="center" valign="middle"><a href="https://www.slotsup.com/" target="_blank"><img src="https://nestjs.com/img/logos/slotsup-logo.png" width="60" valign="middle" /></a></td>
</tr>
</table>
## Backers

View File

@@ -62,6 +62,48 @@ export abstract class AbstractHttpAdapter<
return this.instance.patch(...args);
}
public propfind(handler: RequestHandler);
public propfind(path: any, handler: RequestHandler);
public propfind(...args: any[]) {
return this.instance.propfind(...args);
}
public proppatch(handler: RequestHandler);
public proppatch(path: any, handler: RequestHandler);
public proppatch(...args: any[]) {
return this.instance.proppatch(...args);
}
public mkcol(handler: RequestHandler);
public mkcol(path: any, handler: RequestHandler);
public mkcol(...args: any[]) {
return this.instance.mkcol(...args);
}
public copy(handler: RequestHandler);
public copy(path: any, handler: RequestHandler);
public copy(...args: any[]) {
return this.instance.copy(...args);
}
public move(handler: RequestHandler);
public move(path: any, handler: RequestHandler);
public move(...args: any[]) {
return this.instance.move(...args);
}
public lock(handler: RequestHandler);
public lock(path: any, handler: RequestHandler);
public lock(...args: any[]) {
return this.instance.lock(...args);
}
public unlock(handler: RequestHandler);
public unlock(path: any, handler: RequestHandler);
public unlock(...args: any[]) {
return this.instance.unlock(...args);
}
public all(handler: RequestHandler);
public all(path: any, handler: RequestHandler);
public all(...args: any[]) {

View File

@@ -146,7 +146,7 @@ export class DiscoverableMetaHostCollection {
// But since calling `wrapper.instance` could degrade overall performance
// we must defer it as much we can.
instanceWrapper.metatype || instanceWrapper.inject
? instanceWrapper.instance?.constructor ?? instanceWrapper.metatype
? (instanceWrapper.instance?.constructor ?? instanceWrapper.metatype)
: instanceWrapper.metatype,
);
}

View File

@@ -1,14 +1,9 @@
import { RuntimeException } from './exceptions/runtime.exception';
import { Logger } from '@nestjs/common/services/logger.service';
export class ExceptionHandler {
private static readonly logger = new Logger(ExceptionHandler.name);
public handle(exception: RuntimeException | Error) {
if (!(exception instanceof RuntimeException)) {
ExceptionHandler.logger.error(exception.message, exception.stack);
return;
}
ExceptionHandler.logger.error(exception.what(), exception.stack);
public handle(exception: Error) {
ExceptionHandler.logger.error(exception);
}
}

View File

@@ -9,7 +9,7 @@ export class ExceptionsZone {
public static run(
callback: () => void,
teardown: (err: any) => void = DEFAULT_TEARDOWN,
autoFlushLogs?: boolean,
autoFlushLogs: boolean,
) {
try {
callback();
@@ -25,7 +25,7 @@ export class ExceptionsZone {
public static async asyncRun(
callback: () => Promise<void>,
teardown: (err: any) => void = DEFAULT_TEARDOWN,
autoFlushLogs?: boolean,
autoFlushLogs: boolean,
) {
try {
await callback();

View File

@@ -68,12 +68,6 @@ export class BaseExceptionFilter<T = any> implements ExceptionFilter<T> {
applicationRef.end(response);
}
if (this.isExceptionObject(exception)) {
return BaseExceptionFilter.logger.error(
exception.message,
exception.stack,
);
}
return BaseExceptionFilter.logger.error(exception);
}

View File

@@ -5,7 +5,7 @@ export class ExternalExceptionFilter<T = any, R = any> {
catch(exception: T, host: ArgumentsHost): R | Promise<R> {
if (exception instanceof Error && !(exception instanceof HttpException)) {
ExternalExceptionFilter.logger.error(exception.message, exception.stack);
ExternalExceptionFilter.logger.error(exception);
}
throw exception;
}

View File

@@ -89,15 +89,11 @@ export class ContextUtils {
instance?: object,
callback?: Function,
): (args: unknown[]) => ExecutionContextHost {
const contextFactory = (args: unknown[]) => {
const ctx = new ExecutionContextHost(
args,
instance && (instance.constructor as Type<unknown>),
callback,
);
const type = instance && (instance.constructor as Type<unknown>);
return (args: unknown[]) => {
const ctx = new ExecutionContextHost(args, type, callback);
ctx.setType(contextType);
return ctx;
};
return contextFactory;
}
}

View File

@@ -11,6 +11,13 @@ const REQUEST_METHOD_MAP = {
[RequestMethod.OPTIONS]: 'options',
[RequestMethod.HEAD]: 'head',
[RequestMethod.SEARCH]: 'search',
[RequestMethod.PROPFIND]: 'propfind',
[RequestMethod.PROPPATCH]: 'proppatch',
[RequestMethod.MKCOL]: 'mkcol',
[RequestMethod.COPY]: 'copy',
[RequestMethod.MOVE]: 'move',
[RequestMethod.LOCK]: 'lock',
[RequestMethod.UNLOCK]: 'unlock',
} as const satisfies Record<RequestMethod, keyof HttpServer>;
export class RouterMethodFactory {

View File

@@ -3,7 +3,7 @@ import {
ForwardReference,
Type,
} from '@nestjs/common/interfaces';
import { ModuleTokenFactory } from './module-token-factory';
import { ModuleOpaqueKeyFactory } from './opaque-key-factory/interfaces/module-opaque-key-factory.interface';
export interface ModuleFactory {
type: Type<any>;
@@ -12,36 +12,59 @@ export interface ModuleFactory {
}
export class ModuleCompiler {
constructor(private readonly moduleTokenFactory = new ModuleTokenFactory()) {}
constructor(
private readonly _moduleOpaqueKeyFactory: ModuleOpaqueKeyFactory,
) {}
get moduleOpaqueKeyFactory(): ModuleOpaqueKeyFactory {
return this._moduleOpaqueKeyFactory;
}
public async compile(
metatype: Type<any> | DynamicModule | Promise<DynamicModule>,
moduleClsOrDynamic:
| Type
| DynamicModule
| ForwardReference
| Promise<DynamicModule>,
): Promise<ModuleFactory> {
const { type, dynamicMetadata } = this.extractMetadata(await metatype);
const token = this.moduleTokenFactory.create(type, dynamicMetadata);
moduleClsOrDynamic = await moduleClsOrDynamic;
const { type, dynamicMetadata } = this.extractMetadata(moduleClsOrDynamic);
const token = dynamicMetadata
? this._moduleOpaqueKeyFactory.createForDynamic(
type,
dynamicMetadata,
moduleClsOrDynamic as DynamicModule | ForwardReference,
)
: this._moduleOpaqueKeyFactory.createForStatic(
type,
moduleClsOrDynamic as Type,
);
return { type, dynamicMetadata, token };
}
public extractMetadata(
metatype: Type<any> | ForwardReference | DynamicModule,
moduleClsOrDynamic: Type | ForwardReference | DynamicModule,
): {
type: Type<any>;
dynamicMetadata?: Partial<DynamicModule> | undefined;
type: Type;
dynamicMetadata: Omit<DynamicModule, 'module'> | undefined;
} {
if (!this.isDynamicModule(metatype)) {
if (!this.isDynamicModule(moduleClsOrDynamic)) {
return {
type: (metatype as ForwardReference)?.forwardRef
? (metatype as ForwardReference).forwardRef()
: metatype,
type: (moduleClsOrDynamic as ForwardReference)?.forwardRef
? (moduleClsOrDynamic as ForwardReference).forwardRef()
: moduleClsOrDynamic,
dynamicMetadata: undefined,
};
}
const { module: type, ...dynamicMetadata } = metatype;
const { module: type, ...dynamicMetadata } = moduleClsOrDynamic;
return { type, dynamicMetadata };
}
public isDynamicModule(
module: Type<any> | DynamicModule | ForwardReference,
): module is DynamicModule {
return !!(module as DynamicModule).module;
moduleClsOrDynamic: Type | DynamicModule | ForwardReference,
): moduleClsOrDynamic is DynamicModule {
return !!(moduleClsOrDynamic as DynamicModule).module;
}
}

View File

@@ -4,6 +4,7 @@ import {
GLOBAL_MODULE_METADATA,
} from '@nestjs/common/constants';
import { Injectable, Type } from '@nestjs/common/interfaces';
import { NestApplicationContextOptions } from '@nestjs/common/interfaces/nest-application-context-options.interface';
import { ApplicationConfig } from '../application-config';
import { DiscoverableMetaHostCollection } from '../discovery/discoverable-meta-host-collection';
import {
@@ -19,16 +20,16 @@ import { ContextId } from './instance-wrapper';
import { InternalCoreModule } from './internal-core-module/internal-core-module';
import { InternalProvidersStorage } from './internal-providers-storage';
import { Module } from './module';
import { ModuleTokenFactory } from './module-token-factory';
import { ModulesContainer } from './modules-container';
import { ByReferenceModuleOpaqueKeyFactory } from './opaque-key-factory/by-reference-module-opaque-key-factory';
import { DeepHashedModuleOpaqueKeyFactory } from './opaque-key-factory/deep-hashed-module-opaque-key-factory';
import { ModuleOpaqueKeyFactory } from './opaque-key-factory/interfaces/module-opaque-key-factory.interface';
type ModuleMetatype = Type<any> | DynamicModule | Promise<DynamicModule>;
type ModuleScope = Type<any>[];
export class NestContainer {
private readonly globalModules = new Set<Module>();
private readonly moduleTokenFactory = new ModuleTokenFactory();
private readonly moduleCompiler = new ModuleCompiler(this.moduleTokenFactory);
private readonly modules = new ModulesContainer();
private readonly dynamicModulesMetadata = new Map<
string,
@@ -36,11 +37,27 @@ export class NestContainer {
>();
private readonly internalProvidersStorage = new InternalProvidersStorage();
private readonly _serializedGraph = new SerializedGraph();
private moduleCompiler: ModuleCompiler;
private internalCoreModule: Module;
constructor(
private readonly _applicationConfig: ApplicationConfig = undefined,
) {}
private readonly _applicationConfig:
| ApplicationConfig
| undefined = undefined,
private readonly _contextOptions:
| NestApplicationContextOptions
| undefined = undefined,
) {
const moduleOpaqueKeyFactory =
this._contextOptions?.moduleIdGeneratorAlgorithm === 'deep-hash'
? new DeepHashedModuleOpaqueKeyFactory()
: new ByReferenceModuleOpaqueKeyFactory({
keyGenerationStrategy: this._contextOptions?.snapshot
? 'shallow'
: 'random',
});
this.moduleCompiler = new ModuleCompiler(moduleOpaqueKeyFactory);
}
get serializedGraph(): SerializedGraph {
return this._serializedGraph;
@@ -313,7 +330,7 @@ export class NestContainer {
metadataKey?: Exclude<keyof DynamicModule, 'global' | 'module'>,
) {
const metadata = this.dynamicModulesMetadata.get(token);
return metadataKey ? metadata?.[metadataKey] ?? [] : metadata;
return metadataKey ? (metadata?.[metadataKey] ?? []) : metadata;
}
public registerCoreModuleRef(moduleRef: Module) {
@@ -321,8 +338,8 @@ export class NestContainer {
this.modules[InternalCoreModule.name] = moduleRef;
}
public getModuleTokenFactory(): ModuleTokenFactory {
return this.moduleTokenFactory;
public getModuleTokenFactory(): ModuleOpaqueKeyFactory {
return this.moduleCompiler.moduleOpaqueKeyFactory;
}
public registerRequestProvider<T = any>(request: T, contextId: ContextId) {

View File

@@ -2,6 +2,7 @@ import { Logger } from '@nestjs/common';
import { ExternalContextCreator } from '../../helpers/external-context-creator';
import { HttpAdapterHost } from '../../helpers/http-adapter-host';
import { GraphInspector } from '../../inspector/graph-inspector';
import { InitializeOnPreviewAllowlist } from '../../inspector/initialize-on-preview.allowlist';
import { SerializedGraph } from '../../inspector/serialized-graph';
import { ModuleOverride } from '../../interfaces/module-override.interface';
import { DependenciesScanner } from '../../scanner';
@@ -42,6 +43,8 @@ export class InternalCoreModuleFactory {
);
};
InitializeOnPreviewAllowlist.add(InternalCoreModule);
return InternalCoreModule.register([
{
provide: ExternalContextCreator,

View File

@@ -653,7 +653,12 @@ export class Module {
private generateUuid(): string {
const prefix = 'M_';
const key = this.name?.toString() ?? this.token?.toString();
const key = this.token
? this.token.includes(':')
? this.token.split(':')[1]
: this.token
: this.name;
return key ? UuidFactory.get(`${prefix}_${key}`) : randomStringGenerator();
}
}

View File

@@ -0,0 +1,63 @@
import { DynamicModule } from '@nestjs/common/interfaces/modules/dynamic-module.interface';
import { ForwardReference } from '@nestjs/common/interfaces/modules/forward-reference.interface';
import { Type } from '@nestjs/common/interfaces/type.interface';
import { randomStringGenerator } from '@nestjs/common/utils/random-string-generator.util';
import { createHash } from 'crypto';
import { ModuleOpaqueKeyFactory } from './interfaces/module-opaque-key-factory.interface';
const K_MODULE_ID = Symbol('K_MODULE_ID');
export class ByReferenceModuleOpaqueKeyFactory
implements ModuleOpaqueKeyFactory
{
private readonly keyGenerationStrategy: 'random' | 'shallow';
constructor(options?: { keyGenerationStrategy: 'random' | 'shallow' }) {
this.keyGenerationStrategy = options?.keyGenerationStrategy ?? 'random';
}
public createForStatic(
moduleCls: Type,
originalRef: Type | ForwardReference = moduleCls,
): string {
return this.getOrCreateModuleId(moduleCls, undefined, originalRef);
}
public createForDynamic(
moduleCls: Type<unknown>,
dynamicMetadata: Omit<DynamicModule, 'module'>,
originalRef: DynamicModule | ForwardReference,
): string {
return this.getOrCreateModuleId(moduleCls, dynamicMetadata, originalRef);
}
private getOrCreateModuleId(
moduleCls: Type<unknown>,
dynamicMetadata: Partial<DynamicModule> | undefined,
originalRef: Type | DynamicModule | ForwardReference,
): string {
if (originalRef[K_MODULE_ID]) {
return originalRef[K_MODULE_ID];
}
let moduleId: string;
if (this.keyGenerationStrategy === 'random') {
moduleId = this.generateRandomString();
} else {
moduleId = dynamicMetadata
? `${this.generateRandomString()}:${this.hashString(moduleCls.name + JSON.stringify(dynamicMetadata))}`
: `${this.generateRandomString()}:${this.hashString(moduleCls.toString())}`;
}
originalRef[K_MODULE_ID] = moduleId;
return moduleId;
}
private hashString(value: string): string {
return createHash('sha256').update(value).digest('hex');
}
private generateRandomString(): string {
return randomStringGenerator();
}
}

View File

@@ -1,50 +1,28 @@
import { DynamicModule, Logger } from '@nestjs/common';
import { DynamicModule } from '@nestjs/common/interfaces/modules/dynamic-module.interface';
import { Type } from '@nestjs/common/interfaces/type.interface';
import { Logger } from '@nestjs/common/services/logger.service';
import { randomStringGenerator } from '@nestjs/common/utils/random-string-generator.util';
import { isFunction, isSymbol } from '@nestjs/common/utils/shared.utils';
import { createHash } from 'crypto';
import stringify from 'fast-safe-stringify';
import { performance } from 'perf_hooks';
import { ModuleOpaqueKeyFactory } from './interfaces/module-opaque-key-factory.interface';
const CLASS_STR = 'class ';
const CLASS_STR_LEN = CLASS_STR.length;
export class ModuleTokenFactory {
private readonly moduleTokenCache = new Map<string, string>();
export class DeepHashedModuleOpaqueKeyFactory
implements ModuleOpaqueKeyFactory
{
private readonly moduleIdsCache = new WeakMap<Type<unknown>, string>();
private readonly logger = new Logger(ModuleTokenFactory.name, {
private readonly moduleTokenCache = new Map<string, string>();
private readonly logger = new Logger(DeepHashedModuleOpaqueKeyFactory.name, {
timestamp: true,
});
public create(
metatype: Type<unknown>,
dynamicModuleMetadata?: Partial<DynamicModule> | undefined,
): string {
const moduleId = this.getModuleId(metatype);
public createForStatic(moduleCls: Type): string {
const moduleId = this.getModuleId(moduleCls);
const moduleName = this.getModuleName(moduleCls);
if (!dynamicModuleMetadata) {
return this.getStaticModuleToken(moduleId, this.getModuleName(metatype));
}
const opaqueToken = {
id: moduleId,
module: this.getModuleName(metatype),
dynamic: dynamicModuleMetadata,
};
const start = performance.now();
const opaqueTokenString = this.getStringifiedOpaqueToken(opaqueToken);
const timeSpentInMs = performance.now() - start;
if (timeSpentInMs > 10) {
const formattedTimeSpent = timeSpentInMs.toFixed(2);
this.logger.warn(
`The module "${opaqueToken.module}" is taking ${formattedTimeSpent}ms to serialize, this may be caused by larger objects statically assigned to the module. More details: https://github.com/nestjs/nest/issues/12738`,
);
}
return this.hashString(opaqueTokenString);
}
public getStaticModuleToken(moduleId: string, moduleName: string): string {
const key = `${moduleId}_${moduleName}`;
if (this.moduleTokenCache.has(key)) {
return this.moduleTokenCache.get(key);
@@ -55,6 +33,31 @@ export class ModuleTokenFactory {
return hash;
}
public createForDynamic(
moduleCls: Type<unknown>,
dynamicMetadata: Omit<DynamicModule, 'module'>,
): string {
const moduleId = this.getModuleId(moduleCls);
const moduleName = this.getModuleName(moduleCls);
const opaqueToken = {
id: moduleId,
module: moduleName,
dynamic: dynamicMetadata,
};
const start = performance.now();
const opaqueTokenString = this.getStringifiedOpaqueToken(opaqueToken);
const timeSpentInMs = performance.now() - start;
if (timeSpentInMs > 10) {
const formattedTimeSpent = timeSpentInMs.toFixed(2);
this.logger.warn(
`The module "${opaqueToken.module}" is taking ${formattedTimeSpent}ms to serialize, this may be caused by larger objects statically assigned to the module. Consider changing the "moduleIdGeneratorAlgorithm" option to "reference" to improve the performance.`,
);
}
return this.hashString(opaqueTokenString);
}
public getStringifiedOpaqueToken(opaqueToken: object | undefined): string {
// Uses safeStringify instead of JSON.stringify to support circular dynamic modules
// The replacer function is also required in order to obtain real class names

View File

@@ -0,0 +1,26 @@
import { DynamicModule } from '@nestjs/common/interfaces/modules/dynamic-module.interface';
import { ForwardReference } from '@nestjs/common/interfaces/modules/forward-reference.interface';
import { Type } from '@nestjs/common/interfaces/type.interface';
export interface ModuleOpaqueKeyFactory {
/**
* Creates a unique opaque key for the given static module.
* @param moduleCls A static module class.
* @param originalRef Original object reference. In most cases, it's the same as `moduleCls`.
*/
createForStatic(
moduleCls: Type,
originalRef: Type | ForwardReference,
): string;
/**
* Creates a unique opaque key for the given dynamic module.
* @param moduleCls A dynamic module class reference.
* @param dynamicMetadata Dynamic module metadata.
* @param originalRef Original object reference.
*/
createForDynamic(
moduleCls: Type<unknown>,
dynamicMetadata: Omit<DynamicModule, 'module'>,
originalRef: DynamicModule | ForwardReference,
): string;
}

View File

@@ -144,7 +144,7 @@ export class SerializedGraph {
if (typeof value === 'symbol') {
return value.toString();
}
return typeof value === 'function' ? value.name ?? 'Function' : value;
return typeof value === 'function' ? (value.name ?? 'Function') : value;
};
return JSON.stringify(this.toJSON(), replacer, 2);
}

View File

@@ -30,7 +30,8 @@ export class InterceptorsConsumer {
return defer(AsyncResource.bind(() => this.transformDeferred(next)));
}
const handler: CallHandler = {
handle: () => fromPromise(nextFn(i + 1)).pipe(mergeAll()),
handle: () =>
defer(AsyncResource.bind(() => nextFn(i + 1))).pipe(mergeAll()),
};
return interceptors[i].intercept(context, handler);
};

View File

@@ -58,8 +58,9 @@ export class MiddlewareBuilder implements MiddlewareConsumer {
public exclude(
...routes: Array<string | RouteInfo>
): MiddlewareConfigProxy {
this.excludedRoutes = this.getRoutesFlatList(routes).reduce(
(excludedRoutes, route) => {
this.excludedRoutes = [
...this.excludedRoutes,
...this.getRoutesFlatList(routes).reduce((excludedRoutes, route) => {
for (const routePath of this.routeInfoPathExtractor.extractPathFrom(
route,
)) {
@@ -70,9 +71,8 @@ export class MiddlewareBuilder implements MiddlewareConsumer {
}
return excludedRoutes;
},
[] as RouteInfo[],
);
}, [] as RouteInfo[]),
];
return this;
}

View File

@@ -9,6 +9,7 @@ import {
Abstract,
DynamicModule,
GetOrResolveOptions,
SelectOptions,
Type,
} from '@nestjs/common/interfaces';
import { NestApplicationContextOptions } from '@nestjs/common/interfaces/nest-application-context-options.interface';
@@ -50,7 +51,7 @@ export class NestApplicationContext<
private shouldFlushLogsOnOverride = false;
private readonly activeShutdownSignals = new Array<string>();
private readonly moduleCompiler = new ModuleCompiler();
private readonly moduleCompiler: ModuleCompiler;
private shutdownCleanupRef?: (...args: unknown[]) => unknown;
private _instanceLinksHost: InstanceLinksHost;
private _moduleRefsForHooksByDistance?: Array<Module>;
@@ -70,6 +71,7 @@ export class NestApplicationContext<
) {
super();
this.injector = new Injector();
this.moduleCompiler = container.getModuleCompiler();
if (this.appOptions.preview) {
this.printInPreviewModeWarning();
@@ -87,6 +89,7 @@ export class NestApplicationContext<
*/
public select<T>(
moduleType: Type<T> | DynamicModule,
selectOptions?: SelectOptions,
): INestApplicationContext {
const modulesContainer = this.container.getModules();
const contextModuleCtor = this.contextModule.metatype;
@@ -95,15 +98,30 @@ export class NestApplicationContext<
const moduleTokenFactory = this.container.getModuleTokenFactory();
const { type, dynamicMetadata } =
this.moduleCompiler.extractMetadata(moduleType);
const token = moduleTokenFactory.create(type, dynamicMetadata);
const token = dynamicMetadata
? moduleTokenFactory.createForDynamic(
type,
dynamicMetadata,
moduleType as DynamicModule,
)
: moduleTokenFactory.createForStatic(type, moduleType as Type);
const selectedModule = modulesContainer.get(token);
if (!selectedModule) {
throw new UnknownModuleException(type.name);
}
const options =
typeof selectOptions?.abortOnError !== 'undefined'
? {
...this.appOptions,
...selectOptions,
}
: this.appOptions;
return new NestApplicationContext(
this.container,
this.appOptions,
options,
selectedModule,
scope,
);
@@ -384,7 +402,10 @@ export class NestApplicationContext<
* modules and its children.
*/
protected async callDestroyHook(): Promise<void> {
const modulesSortedByDistance = this.getModulesToTriggerHooksOn();
const modulesSortedByDistance = [
...this.getModulesToTriggerHooksOn(),
].reverse();
for (const module of modulesSortedByDistance) {
await callModuleDestroyHook(module);
}

View File

@@ -3,6 +3,9 @@ import {
INestApplication,
INestApplicationContext,
INestMicroservice,
DynamicModule,
ForwardReference,
Type,
} from '@nestjs/common';
import { NestMicroserviceOptions } from '@nestjs/common/interfaces/microservices/nest-microservice-options.interface';
import { NestApplicationContextOptions } from '@nestjs/common/interfaces/nest-application-context-options.interface';
@@ -27,6 +30,12 @@ import { NestApplication } from './nest-application';
import { NestApplicationContext } from './nest-application-context';
import { DependenciesScanner } from './scanner';
type IEntryNestModule =
| Type<any>
| DynamicModule
| ForwardReference
| Promise<IEntryNestModule>;
/**
* @publicApi
*/
@@ -47,7 +56,7 @@ export class NestFactoryStatic {
* contains a reference to the NestApplication instance.
*/
public async create<T extends INestApplication = INestApplication>(
module: any,
module: IEntryNestModule,
options?: NestApplicationOptions,
): Promise<T>;
/**
@@ -62,12 +71,12 @@ export class NestFactoryStatic {
* contains a reference to the NestApplication instance.
*/
public async create<T extends INestApplication = INestApplication>(
module: any,
module: IEntryNestModule,
httpAdapter: AbstractHttpAdapter,
options?: NestApplicationOptions,
): Promise<T>;
public async create<T extends INestApplication = INestApplication>(
moduleCls: any,
moduleCls: IEntryNestModule,
serverOrOptions?: AbstractHttpAdapter | NestApplicationOptions,
options?: NestApplicationOptions,
): Promise<T> {
@@ -112,7 +121,7 @@ export class NestFactoryStatic {
* contains a reference to the NestMicroservice instance.
*/
public async createMicroservice<T extends object>(
moduleCls: any,
moduleCls: IEntryNestModule,
options?: NestMicroserviceOptions & T,
): Promise<INestMicroservice> {
const { NestMicroservice } = loadPackage(
@@ -154,7 +163,7 @@ export class NestFactoryStatic {
* contains a reference to the NestApplicationContext instance.
*/
public async createApplicationContext(
moduleCls: any,
moduleCls: IEntryNestModule,
options?: NestApplicationContextOptions,
): Promise<INestApplicationContext> {
const applicationConfig = new ApplicationConfig();
@@ -269,9 +278,13 @@ export class NestFactoryStatic {
return (...args: unknown[]) => {
let result: unknown;
ExceptionsZone.run(() => {
result = receiver[prop](...args);
}, teardown);
ExceptionsZone.run(
() => {
result = receiver[prop](...args);
},
teardown,
this.autoFlushLogs,
);
return result;
};

View File

@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "10.3.5",
"version": "10.4.7",
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
"author": "Kamil Mysliwiec",
"license": "MIT",
@@ -31,12 +31,12 @@
"@nuxtjs/opencollective": "0.3.2",
"fast-safe-stringify": "2.1.1",
"iterare": "1.2.1",
"path-to-regexp": "3.2.0",
"tslib": "2.6.2",
"path-to-regexp": "3.3.0",
"tslib": "2.7.0",
"uid": "2.0.2"
},
"devDependencies": {
"@nestjs/common": "10.3.5"
"@nestjs/common": "10.4.7"
},
"peerDependencies": {
"@nestjs/common": "^10.0.0",

View File

@@ -8,7 +8,7 @@ import {
import { isObject } from '@nestjs/common/utils/shared.utils';
import { IncomingMessage } from 'http';
import { EMPTY, lastValueFrom, Observable, isObservable } from 'rxjs';
import { catchError, debounce, map } from 'rxjs/operators';
import { catchError, concatMap, map } from 'rxjs/operators';
import {
AdditionalHeaders,
WritableHeaderStream,
@@ -128,7 +128,7 @@ export class RouterResponseController {
return { data: message as object | string };
}),
debounce(
concatMap(
message =>
new Promise<void>(resolve =>
stream.writeMessage(message, () => resolve()),
@@ -153,6 +153,9 @@ export class RouterResponseController {
request.on('close', () => {
subscription.unsubscribe();
if (!stream.writableEnded) {
stream.end();
}
});
}

View File

@@ -116,7 +116,7 @@ export class SseStream extends Transform {
message.id = this.lastEventId.toString();
}
if (!this.write(message, 'utf-8', cb)) {
if (!this.write(message, 'utf-8')) {
this.once('drain', cb);
} else {
process.nextTick(cb);

View File

@@ -92,10 +92,10 @@ export class DependenciesScanner {
overrides: options?.overrides,
});
await this.scanModulesForDependencies();
this.calculateModulesDistance();
this.addScopedEnhancersMetadata();
this.container.bindGlobalScope();
this.calculateModulesDistance();
}
public async scanForModules({
@@ -389,12 +389,16 @@ export class DependenciesScanner {
// Skip "InternalCoreModule" from calculating distance
modulesGenerator.next();
const modulesStack = [];
const calculateDistance = (moduleRef: Module, distance = 1) => {
if (!moduleRef || modulesStack.includes(moduleRef)) {
const calculateDistance = (
moduleRef: Module,
distance = 1,
modulesStack = [],
) => {
const localModulesStack = [...modulesStack];
if (!moduleRef || localModulesStack.includes(moduleRef)) {
return;
}
modulesStack.push(moduleRef);
localModulesStack.push(moduleRef);
const moduleImports = moduleRef.imports;
moduleImports.forEach(importedModuleRef => {
@@ -402,7 +406,7 @@ export class DependenciesScanner {
if (distance > importedModuleRef.distance) {
importedModuleRef.distance = distance;
}
calculateDistance(importedModuleRef, distance + 1);
calculateDistance(importedModuleRef, distance + 1, localModulesStack);
}
});
};
@@ -522,10 +526,14 @@ export class DependenciesScanner {
}
public insertExportedProvider(
exportedProvider: Type<Injectable>,
// TODO: improve the type definition below because it doesn't reflects the real usage of this method
exportedProvider: Type<Injectable> | ForwardReference,
token: string,
) {
this.container.addExportedProvider(exportedProvider, token);
const fulfilledProvider = this.isForwardReference(exportedProvider)
? exportedProvider.forwardRef()
: exportedProvider;
this.container.addExportedProvider(fulfilledProvider, token);
}
public insertController(controller: Type<Controller>, token: string) {

View File

@@ -127,14 +127,10 @@ export class Reflector {
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAll<T extends ReflectableDecorator<any>>(
decorator: T,
public getAll<TParam = any, TTransformed = TParam>(
decorator: ReflectableDecorator<TParam, TTransformed>,
targets: (Type<any> | Function)[],
): T extends ReflectableDecorator<infer R>
? R extends Array<any>
? R
: R[]
: unknown;
): TTransformed extends Array<any> ? TTransformed : TTransformed[];
/**
* Retrieve metadata for a specified key for a specified set of targets.
*
@@ -169,10 +165,14 @@ export class Reflector {
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAllAndMerge<T extends ReflectableDecorator<any>>(
decorator: T,
public getAllAndMerge<TParam = any, TTransformed = TParam>(
decorator: ReflectableDecorator<TParam, TTransformed>,
targets: (Type<any> | Function)[],
): T extends ReflectableDecorator<infer R> ? R : unknown;
): TTransformed extends Array<any>
? TTransformed
: TTransformed extends object
? TTransformed
: TTransformed[];
/**
* Retrieve metadata for a specified key for a specified set of targets and merge results.
*
@@ -203,6 +203,13 @@ export class Reflector {
if (isEmpty(metadataCollection)) {
return metadataCollection as TResult;
}
if (metadataCollection.length === 1) {
const value = metadataCollection[0];
if (isObject(value)) {
return value as TResult;
}
return metadataCollection as TResult;
}
return metadataCollection.reduce((a, b) => {
if (Array.isArray(a)) {
return a.concat(b);
@@ -224,10 +231,10 @@ export class Reflector {
* @param targets context (decorated objects) to retrieve metadata from
*
*/
public getAllAndOverride<T extends ReflectableDecorator<any>>(
decorator: T,
public getAllAndOverride<TParam = any, TTransformed = TParam>(
decorator: ReflectableDecorator<TParam, TTransformed>,
targets: (Type<any> | Function)[],
): T extends ReflectableDecorator<infer R> ? R : unknown;
): TTransformed;
/**
* Retrieve metadata for a specified key for a specified set of targets and return a first not undefined value.
*

View File

@@ -1,8 +1,7 @@
import * as sinon from 'sinon';
import { expect } from 'chai';
import * as sinon from 'sinon';
import { ExceptionHandler } from '../../../errors/exception-handler';
import { RuntimeException } from '../../../errors/exceptions/runtime.exception';
import { InvalidMiddlewareException } from '../../../errors/exceptions/invalid-middleware.exception';
describe('ExceptionHandler', () => {
let instance: ExceptionHandler;
@@ -10,7 +9,7 @@ describe('ExceptionHandler', () => {
instance = new ExceptionHandler();
});
describe('handle', () => {
let logger;
let logger: { error: Function };
let errorSpy: sinon.SinonSpy;
beforeEach(() => {
logger = {
@@ -19,16 +18,10 @@ describe('ExceptionHandler', () => {
(ExceptionHandler as any).logger = logger;
errorSpy = sinon.spy(logger, 'error');
});
it('when exception is instanceof RuntimeException', () => {
it('should call the logger.error method with the thrown exception passed as an argument', () => {
const exception = new RuntimeException('msg');
instance.handle(exception);
expect(errorSpy.calledWith(exception.message, exception.stack)).to.be
.true;
});
it('when exception is not instanceof RuntimeException', () => {
const exception = new InvalidMiddlewareException('msg');
instance.handle(exception);
expect(errorSpy.calledWith(exception.what(), exception.stack)).to.be.true;
expect(errorSpy.calledWith(exception)).to.be.true;
});
});
});

View File

@@ -1,5 +1,6 @@
import { expect } from 'chai';
import * as sinon from 'sinon';
import { Logger } from '@nestjs/common';
import { ExceptionsZone } from '../../../errors/exceptions-zone';
describe('ExceptionsZone', () => {
@@ -13,7 +14,7 @@ describe('ExceptionsZone', () => {
callback = sinon.spy();
});
it('should call callback', () => {
ExceptionsZone.run(callback as any, rethrow);
ExceptionsZone.run(callback as any, rethrow, false);
expect(callback.called).to.be.true;
});
describe('when callback throws exception', () => {
@@ -21,26 +22,54 @@ describe('ExceptionsZone', () => {
handle: () => {},
};
let handleSpy: sinon.SinonSpy;
let LoggerFlushSpy: sinon.SinonSpy;
before(() => {
(ExceptionsZone as any).exceptionHandler = exceptionHandler;
handleSpy = sinon.spy(exceptionHandler, 'handle');
LoggerFlushSpy = sinon.spy(Logger, 'flush');
});
it('should call "handle" method of exceptionHandler and rethrows', () => {
const throwsCallback = () => {
throw new Error('');
};
expect(() => ExceptionsZone.run(throwsCallback, rethrow)).to.throws();
expect(handleSpy.called).to.be.true;
after(() => {
LoggerFlushSpy.restore();
});
describe('when callback throws exception and autoFlushLogs is false', () => {
it('should call "handle" method of exceptionHandler and rethrows and not flush logs', () => {
const throwsCallback = () => {
throw new Error('');
};
expect(() =>
ExceptionsZone.run(throwsCallback, rethrow, false),
).to.throws();
expect(handleSpy.called).to.be.true;
expect(LoggerFlushSpy.called).to.be.false;
});
});
describe('when callback throws exception and autoFlushLogs is true', () => {
it('should call "handle" method of exceptionHandler and rethrows and flush logs', () => {
const throwsCallback = () => {
throw new Error('');
};
expect(() =>
ExceptionsZone.run(throwsCallback, rethrow, true),
).to.throws();
expect(handleSpy.called).to.be.true;
expect(LoggerFlushSpy.called).to.be.true;
});
});
});
});
describe('asyncRun', () => {
let callback: sinon.SinonSpy;
beforeEach(() => {
callback = sinon.spy();
});
it('should call callback', async () => {
await ExceptionsZone.asyncRun(callback as any, rethrow);
await ExceptionsZone.asyncRun(callback as any, rethrow, false);
expect(callback.called).to.be.true;
});
describe('when callback throws exception', () => {
@@ -48,16 +77,40 @@ describe('ExceptionsZone', () => {
handle: () => {},
};
let handleSpy: sinon.SinonSpy;
let LoggerFlushSpy: sinon.SinonSpy;
before(() => {
(ExceptionsZone as any).exceptionHandler = exceptionHandler;
handleSpy = sinon.spy(exceptionHandler, 'handle');
LoggerFlushSpy = sinon.spy(Logger, 'flush');
});
it('should call "handle" method of exceptionHandler and rethrows error', async () => {
const throwsCallback = () => {
throw new Error('');
};
expect(ExceptionsZone.asyncRun(throwsCallback, rethrow)).to.eventually
.be.rejected;
after(() => {
LoggerFlushSpy.restore();
});
describe('when callback throws exception and autoFlushLogs is false', () => {
it('should call "handle" method of exceptionHandler and rethrows error and not flush logs', async () => {
const throwsCallback = () => {
throw new Error('');
};
expect(ExceptionsZone.asyncRun(throwsCallback, rethrow, false)).to
.eventually.be.rejected;
expect(handleSpy.called).to.be.true;
expect(LoggerFlushSpy.called).to.be.false;
});
});
describe('when callback throws exception and autoFlushLogs is true', () => {
it('should call "handle" method of exceptionHandler and rethrows error and flush logs', async () => {
const throwsCallback = () => {
throw new Error('');
};
expect(ExceptionsZone.asyncRun(throwsCallback, rethrow, true)).to
.eventually.be.rejected;
expect(handleSpy.called).to.be.true;
expect(LoggerFlushSpy.called).to.be.true;
});
});
});
});

View File

@@ -14,6 +14,13 @@ describe('RouterMethodFactory', () => {
patch: () => {},
options: () => {},
head: () => {},
propfind: () => {},
proppatch: () => {},
mkcol: () => {},
copy: () => {},
move: () => {},
lock: () => {},
unlock: () => {},
all: () => {},
};
beforeEach(() => {
@@ -29,6 +36,17 @@ describe('RouterMethodFactory', () => {
expect(factory.get(target, RequestMethod.PATCH)).to.equal(target.patch);
expect(factory.get(target, RequestMethod.OPTIONS)).to.equal(target.options);
expect(factory.get(target, RequestMethod.HEAD)).to.equal(target.head);
expect(factory.get(target, RequestMethod.PROPFIND)).to.equal(
target.propfind,
);
expect(factory.get(target, RequestMethod.PROPPATCH)).to.equal(
target.proppatch,
);
expect(factory.get(target, RequestMethod.MKCOL)).to.equal(target.mkcol);
expect(factory.get(target, RequestMethod.COPY)).to.equal(target.copy);
expect(factory.get(target, RequestMethod.MOVE)).to.equal(target.move);
expect(factory.get(target, RequestMethod.LOCK)).to.equal(target.lock);
expect(factory.get(target, RequestMethod.UNLOCK)).to.equal(target.unlock);
expect(factory.get(target, -1 as any)).to.equal(target.use);
});
});

View File

@@ -1,28 +1,30 @@
import { expect } from 'chai';
import { ModuleCompiler } from '../../injector/compiler';
import { ByReferenceModuleOpaqueKeyFactory } from '../../injector/opaque-key-factory/by-reference-module-opaque-key-factory';
describe('ModuleCompiler', () => {
let compiler: ModuleCompiler;
beforeEach(() => {
compiler = new ModuleCompiler();
compiler = new ModuleCompiler(new ByReferenceModuleOpaqueKeyFactory());
});
describe('extractMetadata', () => {
describe('when module is a dynamic module', () => {
it('should return object with "type" and "dynamicMetadata" property', async () => {
it('should return object with "type" and "dynamicMetadata" property', () => {
const obj = { module: 'test', providers: [] };
const { module, ...dynamicMetadata } = obj;
expect(await compiler.extractMetadata(obj as any)).to.be.deep.equal({
expect(compiler.extractMetadata(obj as any)).to.be.deep.equal({
type: module,
dynamicMetadata,
});
});
});
describe('when module is a not dynamic module', () => {
it('should return object with "type" property', async () => {
it('should return object with "type" property', () => {
const type = 'test';
expect(await compiler.extractMetadata(type as any)).to.be.deep.equal({
expect(compiler.extractMetadata(type as any)).to.be.deep.equal({
type,
dynamicMetadata: undefined,
});
});
});

View File

@@ -9,6 +9,7 @@ import { NoopHttpAdapter } from '../utils/noop-adapter.spec';
describe('NestContainer', () => {
let container: NestContainer;
let untypedContainer: any;
@Module({})
class TestModule {}
@@ -19,6 +20,7 @@ describe('NestContainer', () => {
beforeEach(() => {
container = new NestContainer();
untypedContainer = container as any;
});
it('should "addProvider" throw "UnknownModuleException" when module is not stored in collection', () => {
@@ -53,7 +55,7 @@ describe('NestContainer', () => {
describe('clear', () => {
it('should call `clear` on modules collection', () => {
const clearSpy = sinon.spy((container as any).modules, 'clear');
const clearSpy = sinon.spy(untypedContainer.modules, 'clear');
container.clear();
expect(clearSpy.called).to.be.true;
});
@@ -63,7 +65,7 @@ describe('NestContainer', () => {
it('should not add module if already exists in collection', async () => {
const modules = new Map();
const setSpy = sinon.spy(modules, 'set');
(container as any).modules = modules;
untypedContainer.modules = modules;
await container.addModule(TestModule as any, []);
await container.addModule(TestModule as any, []);
@@ -89,7 +91,7 @@ describe('NestContainer', () => {
const modules = new Map();
const setSpy = sinon.spy(modules, 'set');
(container as any).modules = modules;
untypedContainer.modules = modules;
await container.addModule(TestModule as any, []);
await container.replaceModule(
@@ -174,7 +176,7 @@ describe('NestContainer', () => {
beforeEach(() => {
token = 'token';
collection = new Map();
(container as any).dynamicModulesMetadata = collection;
untypedContainer.dynamicModulesMetadata = collection;
});
describe('when dynamic metadata exists', () => {
it('should add to the dynamic metadata collection', () => {
@@ -215,7 +217,7 @@ describe('NestContainer', () => {
describe('get applicationConfig', () => {
it('should return ApplicationConfig instance', () => {
expect(container.applicationConfig).to.be.eql(
(container as any)._applicationConfig,
untypedContainer._applicationConfig,
);
});
});
@@ -225,7 +227,7 @@ describe('NestContainer', () => {
const httpAdapter = new NoopHttpAdapter({});
container.setHttpAdapter(httpAdapter);
const internalStorage = (container as any).internalProvidersStorage;
const internalStorage = untypedContainer.internalProvidersStorage;
expect(internalStorage.httpAdapter).to.be.eql(httpAdapter);
});
});
@@ -244,7 +246,7 @@ describe('NestContainer', () => {
it('should register core module ref', () => {
const ref = {} as any;
container.registerCoreModuleRef(ref);
expect((container as any).internalCoreModule).to.be.eql(ref);
expect(untypedContainer.internalCoreModule).to.be.eql(ref);
});
});
});

View File

@@ -34,7 +34,7 @@ describe('Injector', () => {
constructor(
public one: DependencyOne,
public two: DependencyTwo,
@Inject() public two: DependencyTwo,
) {}
}

View File

@@ -11,7 +11,8 @@ import { InstanceWrapper } from '../../injector/instance-wrapper';
import { Module } from '../../injector/module';
describe('Module', () => {
let module: Module;
let moduleRef: Module;
let untypedModuleRef: any;
let container: NestContainer;
@ModuleDecorator({})
@@ -22,23 +23,24 @@ describe('Module', () => {
beforeEach(() => {
container = new NestContainer();
module = new Module(TestModule, container);
moduleRef = new Module(TestModule, container);
untypedModuleRef = moduleRef as any;
});
it('should add controller', () => {
const collection = new Map();
const setSpy = sinon.spy(collection, 'set');
(module as any)._controllers = collection;
untypedModuleRef._controllers = collection;
@Controller({ scope: Scope.REQUEST, durable: true })
class Test {}
module.addController(Test);
moduleRef.addController(Test);
expect(
setSpy.calledWith(
Test,
new InstanceWrapper({
host: module,
host: moduleRef,
token: Test,
name: 'Test',
scope: Scope.REQUEST,
@@ -54,14 +56,14 @@ describe('Module', () => {
it('should add injectable', () => {
const collection = new Map();
const setSpy = sinon.spy(collection, 'set');
(module as any)._injectables = collection;
untypedModuleRef._injectables = collection;
module.addInjectable(TestProvider, 'interceptor', TestModule);
moduleRef.addInjectable(TestProvider, 'interceptor', TestModule);
expect(
setSpy.calledWith(
TestProvider,
new InstanceWrapper({
host: module,
host: moduleRef,
name: 'TestProvider',
token: TestProvider,
scope: undefined,
@@ -77,9 +79,9 @@ describe('Module', () => {
describe('when injectable is custom provided', () => {
it('should call `addCustomProvider`', () => {
const addCustomProviderSpy = sinon.spy(module, 'addCustomProvider');
const addCustomProviderSpy = sinon.spy(moduleRef, 'addCustomProvider');
module.addInjectable({ provide: 'test' } as any, 'guard');
moduleRef.addInjectable({ provide: 'test' } as any, 'guard');
expect(addCustomProviderSpy.called).to.be.true;
});
});
@@ -87,14 +89,14 @@ describe('Module', () => {
it('should add provider', () => {
const collection = new Map();
const setSpy = sinon.spy(collection, 'set');
(module as any)._providers = collection;
untypedModuleRef._providers = collection;
module.addProvider(TestProvider);
moduleRef.addProvider(TestProvider);
expect(
setSpy.calledWith(
TestProvider,
new InstanceWrapper({
host: module,
host: moduleRef,
name: 'TestProvider',
token: TestProvider,
scope: undefined,
@@ -109,81 +111,81 @@ describe('Module', () => {
it('should call "addCustomProvider" when "provide" property exists', () => {
const addCustomProvider = sinon.spy();
module.addCustomProvider = addCustomProvider;
moduleRef.addCustomProvider = addCustomProvider;
const provider = { provide: 'test', useValue: 'test' };
module.addProvider(provider as any);
moduleRef.addProvider(provider as any);
expect((addCustomProvider as sinon.SinonSpy).called).to.be.true;
});
it('should call "addCustomClass" when "useClass" property exists', () => {
const addCustomClass = sinon.spy();
module.addCustomClass = addCustomClass;
moduleRef.addCustomClass = addCustomClass;
const provider = { provide: 'test', useClass: () => null };
module.addCustomProvider(provider as any, new Map());
moduleRef.addCustomProvider(provider as any, new Map());
expect((addCustomClass as sinon.SinonSpy).called).to.be.true;
});
it('should call "addCustomValue" when "useValue" property exists', () => {
const addCustomValue = sinon.spy();
module.addCustomValue = addCustomValue;
moduleRef.addCustomValue = addCustomValue;
const provider = { provide: 'test', useValue: () => null };
module.addCustomProvider(provider as any, new Map());
moduleRef.addCustomProvider(provider as any, new Map());
expect((addCustomValue as sinon.SinonSpy).called).to.be.true;
});
it('should call "addCustomValue" when "useValue" property exists but its value is `undefined`', () => {
const addCustomValue = sinon.spy();
module.addCustomValue = addCustomValue;
moduleRef.addCustomValue = addCustomValue;
const provider = { provide: 'test', useValue: undefined };
module.addCustomProvider(provider as any, new Map());
moduleRef.addCustomProvider(provider as any, new Map());
expect((addCustomValue as sinon.SinonSpy).called).to.be.true;
});
it('should call "addCustomFactory" when "useFactory" property exists', () => {
const addCustomFactory = sinon.spy();
module.addCustomFactory = addCustomFactory;
moduleRef.addCustomFactory = addCustomFactory;
const provider = { provide: 'test', useFactory: () => null };
module.addCustomProvider(provider as any, new Map());
moduleRef.addCustomProvider(provider as any, new Map());
expect((addCustomFactory as sinon.SinonSpy).called).to.be.true;
});
it('should call "addCustomUseExisting" when "useExisting" property exists', () => {
const addCustomUseExisting = sinon.spy();
module.addCustomUseExisting = addCustomUseExisting;
moduleRef.addCustomUseExisting = addCustomUseExisting;
const provider = { provide: 'test', useExisting: () => null };
module.addCustomUseExisting(provider as any, new Map());
moduleRef.addCustomUseExisting(provider as any, new Map());
expect((addCustomUseExisting as sinon.SinonSpy).called).to.be.true;
});
describe('addCustomClass', () => {
const type = { name: 'TypeTest' };
const provider = { provide: type, useClass: type, durable: true };
let setSpy;
let setSpy: sinon.SinonSpy;
beforeEach(() => {
const collection = new Map();
setSpy = sinon.spy(collection, 'set');
(module as any)._providers = collection;
untypedModuleRef._providers = collection;
});
it('should store provider', () => {
module.addCustomClass(provider as any, (module as any)._providers);
moduleRef.addCustomClass(provider as any, untypedModuleRef._providers);
expect(
setSpy.calledWith(
provider.provide,
new InstanceWrapper({
host: module,
host: moduleRef,
token: type as any,
name: provider.provide.name,
scope: undefined,
@@ -199,23 +201,23 @@ describe('Module', () => {
});
describe('addCustomValue', () => {
let setSpy;
let setSpy: sinon.SinonSpy;
const value = () => ({});
const provider = { provide: value, useValue: value };
beforeEach(() => {
const collection = new Map();
setSpy = sinon.spy(collection, 'set');
(module as any)._providers = collection;
untypedModuleRef._providers = collection;
});
it('should store provider', () => {
module.addCustomValue(provider as any, (module as any)._providers);
moduleRef.addCustomValue(provider as any, untypedModuleRef._providers);
expect(
setSpy.calledWith(
provider.provide,
new InstanceWrapper({
host: module,
host: moduleRef,
token: provider.provide,
name: provider.provide.name,
scope: Scope.DEFAULT,
@@ -235,20 +237,20 @@ describe('Module', () => {
const inject = [1, 2, 3];
const provider = { provide: type, useFactory: type, inject, durable: true };
let setSpy;
let setSpy: sinon.SinonSpy;
beforeEach(() => {
const collection = new Map();
setSpy = sinon.spy(collection, 'set');
(module as any)._providers = collection;
untypedModuleRef._providers = collection;
});
it('should store provider', () => {
module.addCustomFactory(provider as any, (module as any)._providers);
moduleRef.addCustomFactory(provider as any, untypedModuleRef._providers);
expect(
setSpy.calledWith(
provider.provide,
new InstanceWrapper({
host: module,
host: moduleRef,
token: provider.provide as any,
name: provider.provide.name,
scope: undefined,
@@ -268,15 +270,18 @@ describe('Module', () => {
const type = { name: 'TypeTest' };
const provider = { provide: type, useExisting: type };
let setSpy;
let setSpy: sinon.SinonSpy;
beforeEach(() => {
const collection = new Map();
setSpy = sinon.spy(collection, 'set');
(module as any)._providers = collection;
untypedModuleRef._providers = collection;
});
it('should store provider', () => {
module.addCustomUseExisting(provider as any, (module as any)._providers);
const factoryFn = (module as any)._providers.get(
moduleRef.addCustomUseExisting(
provider as any,
untypedModuleRef._providers,
);
const factoryFn = untypedModuleRef._providers.get(
provider.provide,
).metatype;
@@ -285,7 +290,7 @@ describe('Module', () => {
setSpy.calledWith(
token,
new InstanceWrapper({
host: module,
host: moduleRef,
token,
name: provider.provide.name,
metatype: factoryFn,
@@ -304,41 +309,41 @@ describe('Module', () => {
describe('when get instance', () => {
describe('when metatype does not exists in providers collection', () => {
beforeEach(() => {
sinon.stub((module as any)._providers, 'has').returns(false);
sinon.stub(untypedModuleRef._providers, 'has').returns(false);
});
it('should throw RuntimeException', () => {
expect(() => module.instance).to.throws(RuntimeException);
expect(() => moduleRef.instance).to.throws(RuntimeException);
});
});
describe('when metatype exists in providers collection', () => {
it('should return null', () => {
expect(module.instance).to.be.eql(null);
expect(moduleRef.instance).to.be.eql(null);
});
});
});
describe('when exported provider is custom provided', () => {
beforeEach(() => {
sinon.stub(module, 'validateExportedProvider').callsFake(o => o);
sinon.stub(moduleRef, 'validateExportedProvider').callsFake(o => o);
});
it('should call `addCustomExportedProvider`', () => {
const addCustomExportedProviderSpy = sinon.spy(
module,
moduleRef,
'addCustomExportedProvider',
);
module.addExportedProvider({ provide: 'test' } as any);
moduleRef.addExportedProvider({ provide: 'test' } as any);
expect(addCustomExportedProviderSpy.called).to.be.true;
});
it('should support symbols', () => {
const addCustomExportedProviderSpy = sinon.spy(
module,
moduleRef,
'addCustomExportedProvider',
);
const symb = Symbol('test');
module.addExportedProvider({ provide: symb } as any);
moduleRef.addExportedProvider({ provide: symb } as any);
expect(addCustomExportedProviderSpy.called).to.be.true;
expect((module as any)._exports.has(symb)).to.be.true;
expect(untypedModuleRef._exports.has(symb)).to.be.true;
});
});
@@ -348,10 +353,10 @@ describe('Module', () => {
const wrapper = {
mergeWith: sinon.spy(),
};
sinon.stub(module, 'hasProvider').callsFake(() => true);
sinon.stub(module.providers, 'get').callsFake(() => wrapper as any);
sinon.stub(moduleRef, 'hasProvider').callsFake(() => true);
sinon.stub(moduleRef.providers, 'get').callsFake(() => wrapper as any);
module.replace(null, { isProvider: true });
moduleRef.replace(null, { isProvider: true });
expect(wrapper.mergeWith.called).to.be.true;
});
});
@@ -361,10 +366,12 @@ describe('Module', () => {
mergeWith: sinon.spy(),
isProvider: true,
};
sinon.stub(module, 'hasInjectable').callsFake(() => true);
sinon.stub(module.injectables, 'get').callsFake(() => wrapper as any);
sinon.stub(moduleRef, 'hasInjectable').callsFake(() => true);
sinon
.stub(moduleRef.injectables, 'get')
.callsFake(() => wrapper as any);
module.replace(null, {});
moduleRef.replace(null, {});
expect(wrapper.mergeWith.called).to.be.true;
});
});
@@ -373,61 +380,63 @@ describe('Module', () => {
describe('imports', () => {
it('should return relatedModules', () => {
const test = ['test'];
(module as any)._imports = test;
untypedModuleRef._imports = test;
expect(module.imports).to.be.eql(test);
expect(moduleRef.imports).to.be.eql(test);
});
});
describe('injectables', () => {
it('should return injectables', () => {
const test = ['test'];
(module as any)._injectables = test;
expect(module.injectables).to.be.eql(test);
untypedModuleRef._injectables = test;
expect(moduleRef.injectables).to.be.eql(test);
});
});
describe('controllers', () => {
it('should return controllers', () => {
const test = ['test'];
(module as any)._controllers = test;
untypedModuleRef._controllers = test;
expect(module.controllers).to.be.eql(test);
expect(moduleRef.controllers).to.be.eql(test);
});
});
describe('exports', () => {
it('should return exports', () => {
const test = ['test'];
(module as any)._exports = test;
untypedModuleRef._exports = test;
expect(module.exports).to.be.eql(test);
expect(moduleRef.exports).to.be.eql(test);
});
});
describe('providers', () => {
it('should return providers', () => {
const test = ['test'];
(module as any)._providers = test;
untypedModuleRef._providers = test;
expect(module.providers).to.be.eql(test);
expect(moduleRef.providers).to.be.eql(test);
});
});
describe('createModuleReferenceType', () => {
let moduleRef: any;
let customModuleRef: any;
beforeEach(() => {
const Class = module.createModuleReferenceType();
moduleRef = new Class();
const Class = moduleRef.createModuleReferenceType();
customModuleRef = new Class();
});
it('should return metatype with "get" method', () => {
expect(!!moduleRef.get).to.be.true;
expect(!!customModuleRef.get).to.be.true;
});
describe('get', () => {
it('should throw exception if not exists', () => {
expect(() => moduleRef.get('fail')).to.throws(UnknownElementException);
expect(() => customModuleRef.get('fail')).to.throws(
UnknownElementException,
);
});
});
});
@@ -436,22 +445,22 @@ describe('Module', () => {
describe('when unit exists in provider collection', () => {
it('should behave as identity', () => {
(module as any)._providers = new Map([[token, true]]);
expect(module.validateExportedProvider(token)).to.be.eql(token);
untypedModuleRef._providers = new Map([[token, true]]);
expect(moduleRef.validateExportedProvider(token)).to.be.eql(token);
});
});
describe('when unit exists in related modules collection', () => {
it('should behave as identity', () => {
class Random {}
(module as any)._imports = new Set([
untypedModuleRef._imports = new Set([
new Module(Random, new NestContainer()),
]);
expect(module.validateExportedProvider(Random)).to.be.eql(Random);
expect(moduleRef.validateExportedProvider(Random)).to.be.eql(Random);
});
});
describe('when unit does not exist in both provider and related modules collections', () => {
it('should throw UnknownExportException', () => {
expect(() => module.validateExportedProvider(token)).to.throws(
expect(() => moduleRef.validateExportedProvider(token)).to.throws(
UnknownExportException,
);
});
@@ -462,13 +471,13 @@ describe('Module', () => {
describe('when module has provider', () => {
it('should return true', () => {
const token = 'test';
module.providers.set(token, new InstanceWrapper());
expect(module.hasProvider(token)).to.be.true;
moduleRef.providers.set(token, new InstanceWrapper());
expect(moduleRef.hasProvider(token)).to.be.true;
});
});
describe('otherwise', () => {
it('should return false', () => {
expect(module.hasProvider('_')).to.be.false;
expect(moduleRef.hasProvider('_')).to.be.false;
});
});
});
@@ -477,33 +486,33 @@ describe('Module', () => {
describe('when module has injectable', () => {
it('should return true', () => {
const token = 'test';
module.injectables.set(token, new InstanceWrapper());
expect(module.hasInjectable(token)).to.be.true;
moduleRef.injectables.set(token, new InstanceWrapper());
expect(moduleRef.hasInjectable(token)).to.be.true;
});
});
describe('otherwise', () => {
it('should return false', () => {
expect(module.hasInjectable('_')).to.be.false;
expect(moduleRef.hasInjectable('_')).to.be.false;
});
});
});
describe('getter "id"', () => {
it('should return module id', () => {
expect(module.id).to.be.equal(module['_id']);
expect(moduleRef.id).to.be.equal(moduleRef['_id']);
});
});
describe('getProviderByKey', () => {
describe('when does not exist', () => {
it('should return undefined', () => {
expect(module.getProviderByKey('test')).to.be.undefined;
expect(moduleRef.getProviderByKey('test')).to.be.undefined;
});
});
describe('otherwise', () => {
it('should return instance wrapper', () => {
module.addProvider(TestProvider);
expect(module.getProviderByKey(TestProvider)).to.not.be.undefined;
moduleRef.addProvider(TestProvider);
expect(moduleRef.getProviderByKey(TestProvider)).to.not.be.undefined;
});
});
});

View File

@@ -0,0 +1,111 @@
import { expect } from 'chai';
import * as sinon from 'sinon';
import { ByReferenceModuleOpaqueKeyFactory } from '../../../injector/opaque-key-factory/by-reference-module-opaque-key-factory';
describe('ByReferenceModuleOpaqueKeyFactory', () => {
const moduleId = 'constId';
let factory: ByReferenceModuleOpaqueKeyFactory;
describe('when generating algorithm is random', () => {
beforeEach(() => {
factory = new ByReferenceModuleOpaqueKeyFactory();
sinon.stub(factory as any, 'generateRandomString').returns(moduleId);
});
describe('createForStatic', () => {
class Module {}
it('should return expected token', () => {
const type = Module;
const token1 = factory.createForStatic(type);
const token2 = factory.createForStatic(type);
expect(token1).to.be.deep.eq(token2);
});
});
describe('createForDynamic', () => {
class Module {}
it('should include dynamic metadata', () => {
const dynamicModule = {
module: Module,
providers: [
{
provide: 'test',
useValue: 'test',
},
],
};
const token1 = factory.createForDynamic(
dynamicModule.module,
{
providers: dynamicModule.providers,
},
dynamicModule,
);
const token2 = factory.createForDynamic(
dynamicModule.module,
{
providers: dynamicModule.providers,
},
dynamicModule,
);
expect(token1).to.be.deep.eq(token2);
});
});
});
describe('when generating algorithm is shallow', () => {
beforeEach(() => {
factory = new ByReferenceModuleOpaqueKeyFactory({
keyGenerationStrategy: 'shallow',
});
sinon.stub(factory as any, 'generateRandomString').returns(moduleId);
});
describe('createForStatic', () => {
class Module {}
it('should return expected token', () => {
const type = Module;
const token1 = factory.createForStatic(type);
const token2 = factory.createForStatic(type);
expect(token1).to.be.deep.eq(token2);
});
});
describe('createForDynamic', () => {
class Module {}
it('should include dynamic metadata', () => {
const dynamicModule = {
module: Module,
providers: [
{
provide: 'test',
useValue: 'test',
},
],
};
const token1 = factory.createForDynamic(
dynamicModule.module,
{
providers: dynamicModule.providers,
},
dynamicModule,
);
const token2 = factory.createForDynamic(
dynamicModule.module,
{
providers: dynamicModule.providers,
},
dynamicModule,
);
expect(token1).to.be.deep.eq(token2);
});
});
});
});

View File

@@ -1,41 +1,48 @@
import { expect } from 'chai';
import * as sinon from 'sinon';
import { ModuleTokenFactory } from '../../injector/module-token-factory';
import { DeepHashedModuleOpaqueKeyFactory } from '../../../injector/opaque-key-factory/deep-hashed-module-opaque-key-factory';
describe('ModuleTokenFactory', () => {
describe('DeepHashedModuleOpaqueKeyFactory', () => {
const moduleId = 'constId';
let factory: ModuleTokenFactory;
let factory: DeepHashedModuleOpaqueKeyFactory;
beforeEach(() => {
factory = new ModuleTokenFactory();
factory = new DeepHashedModuleOpaqueKeyFactory();
sinon.stub(factory, 'getModuleId').returns(moduleId);
});
describe('create', () => {
describe('createForStatic', () => {
class Module {}
it('should return expected token', () => {
const type = Module;
const token1 = factory.create(type, undefined);
const token2 = factory.create(type, undefined);
const token1 = factory.createForStatic(type);
const token2 = factory.createForStatic(type);
expect(token1).to.be.deep.eq(token2);
});
});
describe('createForDynamic', () => {
class Module {}
it('should include dynamic metadata', () => {
const type = Module;
const token1 = factory.create(type, {
const token1 = factory.createForDynamic(type, {
providers: [{}],
} as any);
const token2 = factory.create(type, {
const token2 = factory.createForDynamic(type, {
providers: [{}],
} as any);
expect(token1).to.be.deep.eq(token2);
});
});
describe('getModuleName', () => {
it('should map module metatype to name', () => {
const metatype = () => {};
expect(factory.getModuleName(metatype as any)).to.be.eql(metatype.name);
});
});
describe('getStringifiedOpaqueToken', () => {
describe('when metadata exists', () => {
it('should return hash', () => {
@@ -80,6 +87,7 @@ describe('ModuleTokenFactory', () => {
);
});
});
describe('when metadata does not exist', () => {
it('should return empty string', () => {
expect(factory.getStringifiedOpaqueToken(undefined)).to.be.eql('');

View File

@@ -1,7 +1,7 @@
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
import { AsyncLocalStorage } from 'async_hooks';
import { expect } from 'chai';
import { Observable, lastValueFrom, of, retry } from 'rxjs';
import { Observable, defer, lastValueFrom, merge, of, retry } from 'rxjs';
import * as sinon from 'sinon';
import { InterceptorsConsumer } from '../../interceptors/interceptors-consumer';
@@ -86,7 +86,7 @@ describe('InterceptorsConsumer', () => {
});
describe('when AsyncLocalStorage is used', () => {
it('should allow an interceptor to set values in AsyncLocalStorage that are accesible from the controller', async () => {
it('should allow an interceptor to set values in AsyncLocalStorage that are accessible from the controller', async () => {
const storage = new AsyncLocalStorage<Record<string, any>>();
class StorageInterceptor implements NestInterceptor {
intercept(
@@ -179,6 +179,51 @@ describe('InterceptorsConsumer', () => {
});
});
});
describe('deferred promise conversion', () => {
it('should convert promise to observable deferred', async () => {
class TestError extends Error {}
const testInterceptors = [
{
intercept: sinon.stub().callsFake(async (ctx, handler) => {
return merge(
handler.handle(),
defer(() => {
throw new TestError();
}),
);
}),
},
{
intercept: sinon
.stub()
.callsFake(async (ctx, handler) => handler.handle()),
},
{
intercept: sinon
.stub()
.callsFake(async (ctx, handler) => handler.handle()),
},
,
];
const observable = await consumer.intercept(
testInterceptors,
null,
{ constructor: null },
null,
async () => 1,
);
try {
await transformToResult(observable);
} catch (error) {
if (!(error instanceof TestError)) {
throw error;
}
}
expect(testInterceptors[2].intercept.called).to.be.false;
});
});
});
async function transformToResult(resultOrDeferred: any) {

View File

@@ -4,9 +4,13 @@ import { RouteParamsFactory } from '../../router/route-params-factory';
describe('RouteParamsFactory', () => {
let factory: RouteParamsFactory;
let untypedFactory: any;
beforeEach(() => {
factory = new RouteParamsFactory();
untypedFactory = factory as any;
});
describe('exchangeKeyForValue', () => {
const res = {};
const next = () => ({});
@@ -37,14 +41,14 @@ describe('RouteParamsFactory', () => {
describe(`RouteParamtypes.NEXT`, () => {
it('should return next object', () => {
expect(
(factory as any).exchangeKeyForValue(RouteParamtypes.NEXT, ...args),
untypedFactory.exchangeKeyForValue(RouteParamtypes.NEXT, ...args),
).to.be.eql(next);
});
});
describe(`RouteParamtypes.RESPONSE`, () => {
it('should return response object', () => {
expect(
(factory as any).exchangeKeyForValue(
untypedFactory.exchangeKeyForValue(
RouteParamtypes.RESPONSE,
...args,
),
@@ -54,7 +58,7 @@ describe('RouteParamsFactory', () => {
describe(`RouteParamtypes.REQUEST`, () => {
it('should return request object', () => {
expect(
(factory as any).exchangeKeyForValue(
untypedFactory.exchangeKeyForValue(
RouteParamtypes.REQUEST,
...args,
),
@@ -64,14 +68,14 @@ describe('RouteParamsFactory', () => {
describe(`RouteParamtypes.BODY`, () => {
it('should return body object', () => {
expect(
(factory as any).exchangeKeyForValue(RouteParamtypes.BODY, ...args),
untypedFactory.exchangeKeyForValue(RouteParamtypes.BODY, ...args),
).to.be.eql(req.body);
});
});
describe(`RouteParamtypes.RAW_BODY`, () => {
it('should return rawBody buffer', () => {
expect(
(factory as any).exchangeKeyForValue(
untypedFactory.exchangeKeyForValue(
RouteParamtypes.RAW_BODY,
...args,
),
@@ -81,7 +85,7 @@ describe('RouteParamsFactory', () => {
describe(`RouteParamtypes.HEADERS`, () => {
it('should return headers object', () => {
expect(
(factory as any).exchangeKeyForValue(
untypedFactory.exchangeKeyForValue(
RouteParamtypes.HEADERS,
...args,
),
@@ -91,14 +95,14 @@ describe('RouteParamsFactory', () => {
describe(`RouteParamtypes.IP`, () => {
it('should return ip property', () => {
expect(
(factory as any).exchangeKeyForValue(RouteParamtypes.IP, ...args),
untypedFactory.exchangeKeyForValue(RouteParamtypes.IP, ...args),
).to.be.equal(req.ip);
});
});
describe(`RouteParamtypes.SESSION`, () => {
it('should return session object', () => {
expect(
(factory as any).exchangeKeyForValue(
untypedFactory.exchangeKeyForValue(
RouteParamtypes.SESSION,
...args,
),
@@ -108,50 +112,41 @@ describe('RouteParamsFactory', () => {
describe(`RouteParamtypes.QUERY`, () => {
it('should return query object', () => {
expect(
(factory as any).exchangeKeyForValue(
RouteParamtypes.QUERY,
...args,
),
untypedFactory.exchangeKeyForValue(RouteParamtypes.QUERY, ...args),
).to.be.eql(req.query);
});
});
describe(`RouteParamtypes.PARAM`, () => {
it('should return params object', () => {
expect(
(factory as any).exchangeKeyForValue(
RouteParamtypes.PARAM,
...args,
),
untypedFactory.exchangeKeyForValue(RouteParamtypes.PARAM, ...args),
).to.be.eql(req.params);
});
});
describe(`RouteParamtypes.HOST`, () => {
it('should return hosts object', () => {
expect(
(factory as any).exchangeKeyForValue(RouteParamtypes.HOST, ...args),
untypedFactory.exchangeKeyForValue(RouteParamtypes.HOST, ...args),
).to.be.eql(req.hosts);
});
});
describe(`RouteParamtypes.FILE`, () => {
it('should return file object', () => {
expect(
(factory as any).exchangeKeyForValue(RouteParamtypes.FILE, ...args),
untypedFactory.exchangeKeyForValue(RouteParamtypes.FILE, ...args),
).to.be.eql(req.file);
});
});
describe(`RouteParamtypes.FILES`, () => {
it('should return files object', () => {
expect(
(factory as any).exchangeKeyForValue(
RouteParamtypes.FILES,
...args,
),
untypedFactory.exchangeKeyForValue(RouteParamtypes.FILES, ...args),
).to.be.eql(req.files);
});
});
describe('not available', () => {
it('should return null', () => {
expect((factory as any).exchangeKeyForValue(-1, ...args)).to.be.eql(
expect(untypedFactory.exchangeKeyForValue(-1, ...args)).to.be.eql(
null,
);
});

View File

@@ -7,6 +7,7 @@ import { PassThrough, Writable } from 'stream';
import { HttpStatus, RequestMethod } from '../../../common';
import { RouterResponseController } from '../../router/router-response-controller';
import { NoopHttpAdapter } from '../utils/noop-adapter.spec';
import { SseStream } from '../../router/sse-stream';
describe('RouterResponseController', () => {
let adapter: NoopHttpAdapter;
@@ -374,6 +375,71 @@ data: test
done();
});
describe('when writing data too densely', () => {
const DEFAULT_MAX_LISTENERS = SseStream.defaultMaxListeners;
const MAX_LISTENERS = 1;
const sandbox = sinon.createSandbox();
beforeEach(() => {
// Can't access to the internal sseStream,
// as a workaround, set `defaultMaxListeners` of `SseStream` and reset the max listeners of `process`
const PROCESS_MAX_LISTENERS = process.getMaxListeners();
SseStream.defaultMaxListeners = MAX_LISTENERS;
process.setMaxListeners(PROCESS_MAX_LISTENERS);
const sseStream = sinon.createStubInstance(SseStream);
const originalWrite = SseStream.prototype.write;
// Make `.write()` always return false, so as to listen `drain` event
sseStream.write.callsFake(function (...args: any[]) {
originalWrite.apply(this, args);
return false;
});
sandbox.replace(SseStream.prototype, 'write', sseStream.write);
});
afterEach(() => {
sandbox.restore();
SseStream.defaultMaxListeners = DEFAULT_MAX_LISTENERS;
});
it('should not cause memory leak', async () => {
let maxDrainListenersExceededWarning = null;
process.on('warning', (warning: any) => {
if (
warning.name === 'MaxListenersExceededWarning' &&
warning.emitter instanceof SseStream &&
warning.type === 'drain' &&
warning.count === MAX_LISTENERS + 1
) {
maxDrainListenersExceededWarning = warning;
}
});
const result = new Subject();
const response = new Writable();
response._write = () => {};
const request = new Writable();
request._write = () => {};
routerResponseController.sse(
result,
response as unknown as ServerResponse,
request as unknown as IncomingMessage,
);
// Send multiple messages simultaneously
Array.from({ length: MAX_LISTENERS + 1 }).forEach((_, i) =>
result.next(String(i)),
);
await new Promise(resolve => process.nextTick(resolve));
expect(maxDrainListenersExceededWarning).to.equal(null);
});
});
describe('when there is an error', () => {
it('should close the request', done => {
const result = new Subject();

View File

@@ -52,6 +52,7 @@ describe('RoutesResolver', () => {
let router: any;
let routesResolver: RoutesResolver;
let untypedRoutesResolver: any;
let container: NestContainer;
let modules: Map<string, any>;
let applicationRef: any;
@@ -82,6 +83,7 @@ describe('RoutesResolver', () => {
new Injector(),
new GraphInspector(container),
);
untypedRoutesResolver = routesResolver as any;
});
describe('registerRouters', () => {
@@ -95,14 +97,14 @@ describe('RoutesResolver', () => {
const appInstance = new NoopHttpAdapter(router);
const exploreSpy = sinon.spy(
(routesResolver as any).routerExplorer,
untypedRoutesResolver.routerExplorer,
'explore',
);
const moduleName = '';
modules.set(moduleName, {});
sinon
.stub((routesResolver as any).routerExplorer, 'extractRouterPath')
.stub(untypedRoutesResolver.routerExplorer, 'extractRouterPath')
.callsFake(() => ['']);
routesResolver.registerRouters(routes, moduleName, '', '', appInstance);
@@ -137,14 +139,14 @@ describe('RoutesResolver', () => {
const appInstance = new NoopHttpAdapter(router);
const exploreSpy = sinon.spy(
(routesResolver as any).routerExplorer,
untypedRoutesResolver.routerExplorer,
'explore',
);
const moduleName = '';
modules.set(moduleName, {});
sinon
.stub((routesResolver as any).routerExplorer, 'extractRouterPath')
.stub(untypedRoutesResolver.routerExplorer, 'extractRouterPath')
.callsFake(() => ['']);
routesResolver.registerRouters(routes, moduleName, '', '', appInstance);
@@ -181,6 +183,7 @@ describe('RoutesResolver', () => {
new Injector(),
new GraphInspector(container),
);
untypedRoutesResolver = routesResolver as any;
const routes = new Map();
const routeWrapper = new InstanceWrapper({
@@ -191,14 +194,14 @@ describe('RoutesResolver', () => {
const appInstance = new NoopHttpAdapter(router);
const exploreSpy = sinon.spy(
(routesResolver as any).routerExplorer,
untypedRoutesResolver.routerExplorer,
'explore',
);
const moduleName = '';
modules.set(moduleName, {});
sinon
.stub((routesResolver as any).routerExplorer, 'extractRouterPath')
.stub(untypedRoutesResolver.routerExplorer, 'extractRouterPath')
.callsFake(() => ['']);
routesResolver.registerRouters(routes, moduleName, '', '', appInstance);

View File

@@ -56,6 +56,7 @@ describe('DependenciesScanner', () => {
class InvalidModule {}
let scanner: DependenciesScanner;
let untypedScanner: any;
let mockContainer: sinon.SinonMock;
let container: NestContainer;
let graphInspector: GraphInspector;
@@ -71,6 +72,7 @@ describe('DependenciesScanner', () => {
graphInspector,
new ApplicationConfig(),
);
untypedScanner = scanner as any;
sinon.stub(scanner, 'registerCoreModule').callsFake(async () => {});
});
@@ -86,7 +88,7 @@ describe('DependenciesScanner', () => {
.expects('replaceModule')
.never();
await scanner.scan(TestModule as any);
await scanner.scan(TestModule);
expectationCountAddModule.verify();
expectationCountReplaceModule.verify();
});
@@ -95,20 +97,20 @@ describe('DependenciesScanner', () => {
const expectation = mockContainer.expects('addProvider').twice();
const stub = sinon.stub(scanner, 'insertExportedProvider');
await scanner.scan(TestModule as any);
await scanner.scan(TestModule);
expectation.verify();
stub.restore();
});
it('should "insertController" call twice (2 components) container method "addController"', async () => {
const expectation = mockContainer.expects('addController').twice();
await scanner.scan(TestModule as any);
await scanner.scan(TestModule);
expectation.verify();
});
it('should "insertExportedProvider" call once (1 component) container method "addExportedProvider"', async () => {
const expectation = mockContainer.expects('addExportedProvider').once();
await scanner.scan(TestModule as any);
await scanner.scan(TestModule);
expectation.verify();
});
@@ -176,7 +178,7 @@ describe('DependenciesScanner', () => {
.expects('addModule')
.once();
await scanner.scan(OverrideTestModule as any, {
await scanner.scan(OverrideTestModule, {
overrides: modulesToOverride,
});
@@ -188,13 +190,13 @@ describe('DependenciesScanner', () => {
it('should "insertProvider" call once container method "addProvider"', async () => {
const expectation = mockContainer.expects('addProvider').once();
await scanner.scan(OverrideTestModule as any);
await scanner.scan(OverrideTestModule);
expectation.verify();
});
it('should "insertController" call twice (2 components) container method "addController"', async () => {
const expectation = mockContainer.expects('addController').twice();
await scanner.scan(OverrideTestModule as any);
await scanner.scan(OverrideTestModule);
expectation.verify();
});
@@ -230,7 +232,7 @@ describe('DependenciesScanner', () => {
})
class OverrideForwardRefTestModule {}
await scanner.scan(OverrideForwardRefTestModule as any, {
await scanner.scan(OverrideForwardRefTestModule, {
overrides: [
{
moduleToReplace: Overwritten,
@@ -290,7 +292,7 @@ describe('DependenciesScanner', () => {
beforeEach(() => {
addInjectableStub = sinon
.stub((scanner as any).container, 'addInjectable')
.stub(untypedScanner.container, 'addInjectable')
.callsFake(() => instanceWrapper);
insertEnhancerMetadataCacheStub = sinon
.stub(graphInspector, 'insertEnhancerMetadataCache')
@@ -427,7 +429,7 @@ describe('DependenciesScanner', () => {
const module = { forwardRef: sinon.stub().returns({}) };
sinon.stub(container, 'addImport').returns({} as any);
await scanner.insertImport(module as any, [] as any, 'test');
await scanner.insertImport(module, [] as any, 'test');
expect(module.forwardRef.called).to.be.true;
});
describe('when "related" is nil', () => {
@@ -477,7 +479,7 @@ describe('DependenciesScanner', () => {
it('should push new object to "applicationProvidersApplyMap" array', () => {
mockContainer.expects('addProvider').callsFake(() => false);
scanner.insertProvider(provider, token);
const applyMap = (scanner as any).applicationProvidersApplyMap;
const applyMap = untypedScanner.applicationProvidersApplyMap;
expect(applyMap).to.have.length(1);
expect(applyMap[0].moduleKey).to.be.eql(token);
@@ -514,15 +516,11 @@ describe('DependenciesScanner', () => {
expectation.verify();
});
it('should not push new object to "applicationProvidersApplyMap" array', () => {
expect((scanner as any).applicationProvidersApplyMap).to.have.length(
0,
);
expect(untypedScanner.applicationProvidersApplyMap).to.have.length(0);
mockContainer.expects('addProvider').callsFake(() => false);
scanner.insertProvider(component, token);
expect((scanner as any).applicationProvidersApplyMap).to.have.length(
0,
);
expect(untypedScanner.applicationProvidersApplyMap).to.have.length(0);
});
});
});
@@ -534,7 +532,7 @@ describe('DependenciesScanner', () => {
providerKey: 'providerToken',
type: APP_GUARD,
};
(scanner as any).applicationProvidersApplyMap = [provider];
untypedScanner.applicationProvidersApplyMap = [provider];
const expectedInstance = {};
const instanceWrapper = {
@@ -569,7 +567,7 @@ describe('DependenciesScanner', () => {
type: APP_GUARD,
scope: Scope.REQUEST,
};
(scanner as any).applicationProvidersApplyMap = [provider];
untypedScanner.applicationProvidersApplyMap = [provider];
const expectedInstanceWrapper = new InstanceWrapper();
mockContainer.expects('getModules').callsFake(() => ({
@@ -606,7 +604,7 @@ describe('DependenciesScanner', () => {
};
it('should add enhancers metadata to every controller and every entry provider', () => {
(scanner as any).applicationProvidersApplyMap = [provider];
untypedScanner.applicationProvidersApplyMap = [provider];
const instance = new InstanceWrapper({ name: 'test' });
const controllers = new Map();
@@ -651,7 +649,7 @@ describe('DependenciesScanner', () => {
describe(`when token is ${APP_INTERCEPTOR}`, () => {
it('call "addGlobalInterceptor"', () => {
const addSpy = sinon.spy(
(scanner as any).applicationConfig,
untypedScanner.applicationConfig,
'addGlobalInterceptor',
);
scanner.getApplyProvidersMap()[APP_INTERCEPTOR](null);
@@ -661,7 +659,7 @@ describe('DependenciesScanner', () => {
describe(`when token is ${APP_GUARD}`, () => {
it('call "addGlobalGuard"', () => {
const addSpy = sinon.spy(
(scanner as any).applicationConfig,
untypedScanner.applicationConfig,
'addGlobalGuard',
);
scanner.getApplyProvidersMap()[APP_GUARD](null);
@@ -671,7 +669,7 @@ describe('DependenciesScanner', () => {
describe(`when token is ${APP_PIPE}`, () => {
it('call "addGlobalPipe"', () => {
const addSpy = sinon.spy(
(scanner as any).applicationConfig,
untypedScanner.applicationConfig,
'addGlobalPipe',
);
scanner.getApplyProvidersMap()[APP_PIPE](null);
@@ -681,7 +679,7 @@ describe('DependenciesScanner', () => {
describe(`when token is ${APP_FILTER}`, () => {
it('call "addGlobalFilter"', () => {
const addSpy = sinon.spy(
(scanner as any).applicationConfig,
untypedScanner.applicationConfig,
'addGlobalFilter',
);
scanner.getApplyProvidersMap()[APP_FILTER](null);
@@ -693,7 +691,7 @@ describe('DependenciesScanner', () => {
describe(`when token is ${APP_INTERCEPTOR}`, () => {
it('call "addGlobalRequestInterceptor"', () => {
const addSpy = sinon.spy(
(scanner as any).applicationConfig,
untypedScanner.applicationConfig,
'addGlobalRequestInterceptor',
);
scanner.getApplyRequestProvidersMap()[APP_INTERCEPTOR](null);
@@ -703,7 +701,7 @@ describe('DependenciesScanner', () => {
describe(`when token is ${APP_GUARD}`, () => {
it('call "addGlobalRequestGuard"', () => {
const addSpy = sinon.spy(
(scanner as any).applicationConfig,
untypedScanner.applicationConfig,
'addGlobalRequestGuard',
);
scanner.getApplyRequestProvidersMap()[APP_GUARD](null);
@@ -713,7 +711,7 @@ describe('DependenciesScanner', () => {
describe(`when token is ${APP_PIPE}`, () => {
it('call "addGlobalRequestPipe"', () => {
const addSpy = sinon.spy(
(scanner as any).applicationConfig,
untypedScanner.applicationConfig,
'addGlobalRequestPipe',
);
scanner.getApplyRequestProvidersMap()[APP_PIPE](null);
@@ -723,7 +721,7 @@ describe('DependenciesScanner', () => {
describe(`when token is ${APP_FILTER}`, () => {
it('call "addGlobalRequestFilter"', () => {
const addSpy = sinon.spy(
(scanner as any).applicationConfig,
untypedScanner.applicationConfig,
'addGlobalRequestFilter',
);
scanner.getApplyRequestProvidersMap()[APP_FILTER](null);

View File

@@ -5,48 +5,63 @@ const transformDecorator = Reflector.createDecorator<string[], number>({
transform: value => value.length,
});
describe('Reflector', () => {
let reflector: Reflector;
type TestObject = {
only1?: string;
only2?: string;
both: string;
};
class Test {}
describe('Reflector', () => {
const key = 'key';
let reflector: Reflector;
@transformDecorator(['a', 'b', 'c'])
class TestTransform {}
class Test {}
class Test1 {}
class Test2 {}
beforeEach(() => {
Reflect.deleteMetadata(key, Test1);
Reflect.deleteMetadata(key, Test2);
reflector = new Reflector();
});
describe('get', () => {
it('should reflect metadata by key', () => {
const key = 'key';
const value = 'value';
Reflect.defineMetadata(key, value, Test);
expect(reflector.get(key, Test)).to.eql(value);
Reflect.defineMetadata(key, value, Test1);
expect(reflector.get(key, Test1)).to.eql(value);
});
it('should reflect metadata by decorator', () => {
const decorator = Reflector.createDecorator<string>();
const value = 'value';
Reflect.defineMetadata(decorator.KEY, value, Test);
Reflect.defineMetadata(decorator.KEY, value, Test1);
let reflectedValue = reflector.get(decorator, Test);
// string
let reflectedValue = reflector.get(decorator, Test1);
expect(reflectedValue).to.eql(value);
// @ts-expect-error 'value' is not assignable to parameter of type 'string'
reflectedValue = true;
reflectedValue satisfies string;
});
it('should reflect metadata by decorator (custom key)', () => {
const decorator = Reflector.createDecorator<string[]>({ key: 'custom' });
const value = ['value'];
Reflect.defineMetadata('custom', value, Test);
Reflect.defineMetadata('custom', value, Test1);
let reflectedValue = reflector.get(decorator, Test);
// string[]
let reflectedValue = reflector.get(decorator, Test1);
expect(reflectedValue).to.eql(value);
// @ts-expect-error 'value' is not assignable to parameter of type 'string[]'
reflectedValue = true;
reflectedValue satisfies string[];
});
it('should reflect metadata by decorator (with transform option)', () => {
@@ -55,6 +70,8 @@ describe('Reflector', () => {
// @ts-expect-error 'value' is not assignable to type 'number'
reflectedValue = [];
reflectedValue satisfies number;
});
it('should require transform option when second generic type is provided', () => {
@@ -64,53 +81,121 @@ describe('Reflector', () => {
});
describe('getAll', () => {
it('should reflect metadata of all targets', () => {
const key = 'key';
const value = 'value';
Reflect.defineMetadata(key, value, Test);
expect(reflector.getAll(key, [Test])).to.eql([value]);
it('should reflect metadata of all targets by key', () => {
const value1 = 'value1';
const value2 = 'value2';
Reflect.defineMetadata(key, value1, Test1);
Reflect.defineMetadata(key, value2, Test2);
expect(reflector.getAll(key, [Test1, Test2])).to.eql([value1, value2]);
});
it('should reflect metadata of all targets by decorator', () => {
const decorator = Reflector.createDecorator<string>();
const value1 = 'value1';
const value2 = 'value2';
Reflect.defineMetadata(decorator.KEY, value1, Test1);
Reflect.defineMetadata(decorator.KEY, value2, Test2);
// string[]
const reflectedValue = reflector.getAll(decorator, [Test1, Test2]);
expect(reflectedValue).to.eql([value1, value2]);
reflectedValue satisfies string[];
});
});
describe('getAllAndMerge', () => {
it('should return an empty array when there are no targets', () => {
const key = 'key';
expect(reflector.getAllAndMerge(key, [])).to.be.empty;
});
it('should reflect metadata of all targets and concat arrays', () => {
const key = 'key';
const decorator = Reflector.createDecorator<string[]>();
const value = 'value';
Reflect.defineMetadata(key, [value], Test);
expect(reflector.getAllAndMerge(key, [Test, Test])).to.eql([
value,
value,
Reflect.defineMetadata(decorator.KEY, [value], Test1);
// string[]
const reflectedValue = reflector.getAllAndMerge(decorator, [
Test1,
Test1,
]);
expect(reflectedValue).to.eql([value, value]);
reflectedValue satisfies string[];
});
it('should reflect metadata of all targets and concat boolean arrays', () => {
const decorator = Reflector.createDecorator<boolean>();
const value = true;
Reflect.defineMetadata(decorator.KEY, [value], Test1);
// string[]
const reflectedValue = reflector.getAllAndMerge(decorator, [
Test1,
Test1,
]);
expect(reflectedValue).to.eql([value, value]);
reflectedValue satisfies boolean[];
});
it('should reflect metadata of all targets and create an array', () => {
const key = 'key';
const decorator = Reflector.createDecorator<string>();
const value = 'value';
Reflect.defineMetadata(key, value, Test);
expect(reflector.getAllAndMerge(key, [Test, Test])).to.eql([
value,
value,
Reflect.defineMetadata(decorator.KEY, value, Test1);
// string[]
const reflectedValue = reflector.getAllAndMerge(decorator, [
Test1,
Test1,
]);
expect(reflectedValue).to.eql([value, value]);
reflectedValue satisfies string[];
});
it('should reflect metadata of all targets and merge an object', () => {
const key = 'key';
const value = { test: 'test' };
Reflect.defineMetadata(key, value, Test);
expect(reflector.getAllAndMerge(key, [Test, Test])).to.eql({
...value,
it('should reflect metadata of all targets and merge objects', () => {
const decorator = Reflector.createDecorator<TestObject>();
const value1: TestObject = { only1: 'test1', both: 'overriden' };
const value2: TestObject = { only2: 'test2', both: 'test' };
Reflect.defineMetadata(decorator.KEY, value1, Test1);
Reflect.defineMetadata(decorator.KEY, value2, Test2);
// TestObject
const reflectedValue = reflector.getAllAndMerge(decorator, [
Test1,
Test2,
]);
expect(reflectedValue).to.eql({
...value1,
...value2,
});
reflectedValue satisfies TestObject;
});
it('should reflect metadata of all targets and create an array from a single value', () => {
const value = 'value';
Reflect.defineMetadata(key, value, Test1);
const result = reflector.getAllAndMerge(key, [Test1, Test2]);
expect(result).to.eql([value]);
result satisfies string[];
});
it('should reflect metadata of all targets and return a single array unmodified', () => {
const value = ['value'];
Reflect.defineMetadata(key, value, Test1);
expect(reflector.getAllAndMerge(key, [Test1, Test2])).to.eql(value);
});
it('should reflect metadata of all targets and return a single object unmodified', () => {
const value = { test: 'value' };
Reflect.defineMetadata(key, value, Test1);
expect(reflector.getAllAndMerge(key, [Test1, Test2])).to.eql(value);
});
});
describe('getAllAndOverride', () => {
it('should reflect metadata of all targets and return a first not undefined value', () => {
const key = 'key';
const value = 'value';
Reflect.defineMetadata(key, value, Test);
expect(reflector.getAllAndOverride(key, [Test, Test])).to.eql(value);
const value1 = 'value1';
const value2 = 'value2';
Reflect.defineMetadata(key, value1, Test1);
Reflect.defineMetadata(key, value2, Test2);
expect(reflector.getAllAndOverride(key, [Test1, Test2])).to.eql(value1);
});
});
});

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