1228 Commits

Author SHA1 Message Date
Kamil Myśliwiec
a1b4ee9678 chore: resolve conflicts 2026-02-16 11:55:52 +01:00
Kamil Myśliwiec
953569a0af fix: move hierarchy set after comp host resolution 2026-02-16 11:03:41 +01:00
Kamil Myśliwiec
9cf8699892 test: update integration tests to use vitest 2026-02-15 20:28:34 +01:00
Kamil Myśliwiec
65615baafb chore: resolve merge conflicts 2026-02-15 20:23:58 +01:00
Himanshu Gupta
d4e7540822 fix(testing): use vitest assertions in shutdown tests 2026-02-16 00:03:12 +05:30
Himanshu Gupta
decb89bf02 refactor(common,express): rename graceful shutdown option
Rename gracefulShutdown to return503OnClosing to align the HTTP
option name with Fastify's terminology. The previous name was too
vague and could imply broader behavior (connection draining, grace
periods) beyond what it actually does.
2026-02-15 23:27:34 +05:30
Himanshu Gupta
26953bab74 fix(common,core,express): activate shutdown flag before hooks
Move isShuttingDown flag activation from dispose() to a new
prepareClose() step that runs before callDestroyHook(). This prevents
new requests from being processed while providers are being destroyed
during shutdown.

Add beforeClose() to HttpServer interface and AbstractHttpAdapter so
adapters can be notified before the shutdown lifecycle begins.
2026-02-15 23:27:34 +05:30
Himanshu Gupta
f7e0495e49 fix(testing): increase timeouts for graceful shutdown tests 2026-02-15 23:27:34 +05:30
Himanshu Gupta
a696ed4585 fix(testing): expose graceful-shutdown e2e specs
Override root tsconfig.json exclusion so TypeScript project service finds
e2e specs. Also set target, strict, and
esModuleInterop compiler options.
2026-02-15 23:27:34 +05:30
Himanshu Gupta
319437ac3f feat(common,express): add graceful shutdown option
Closes #11416
2026-02-15 23:27:34 +05:30
Kamil Myśliwiec
fb3ae67e25 chore: address lint errors, and fix ci test errors 2026-02-15 14:17:05 +01:00
Kamil Myśliwiec
09c81568f8 feat: introduce standard schema serializer 2026-02-15 13:07:08 +01:00
Kamil Myśliwiec
288453fabb test: fix coverage collection, add more tests 2026-02-11 20:44:14 +01:00
Kamil Myśliwiec
6846cd7128 test: migrate to vitest 2026-02-11 15:04:51 +01:00
Kamil Myśliwiec
fa6d45da74 build: migrate from cjs to esm 2026-02-09 14:10:04 +01:00
renovate[bot]
46a9190770 chore(deps): update mysql docker tag to v9.6.0 2026-01-22 05:47:22 +00:00
Kamil Myśliwiec
c4cedda15a fix(platform-fastify): middie bypassing through decoded chars 2025-12-29 13:44:26 +01:00
Himanshu Gupta
6f1eddb601 test(core): add regression test for request scope bubbling
This adds an integration test to ensure that a Singleton service injected with a Request-Scoped dependency is correctly downgraded to Request-Scoped. This prevents future regressions in scope bubbling behavior.
2025-12-28 20:46:04 +05:30
mag123c
a4959fa5a7 test(core): nested transient chain instantiation 2025-12-20 16:16:18 +09:00
Kamil Mysliwiec
adff255d89 Merge pull request #16005 from malkovitc/fix/resolve-each-multiple-providers
fix(core): resolve all providers when using resolve() with each option
2025-12-15 10:11:24 +01:00
evgeniy.chernomortsev
0b1a40df23 test(core): add integration test for resolve() with each option on default-scoped providers 2025-12-09 18:36:45 +04:00
Kamil Myśliwiec
0c93692bc9 chore: update prettier 2025-12-05 13:35:27 +01:00
Kamil Mysliwiec
3723412508 Merge pull request #15986 from mag123c/fix/shutdown-hooks-process-exit
feat(core): add option for async logger compatibility
2025-12-05 13:00:52 +01:00
renovate[bot]
1ddcd1cc5c chore(deps): update confluentinc/cp-kafka docker tag to v8.1.1 2025-12-03 15:35:58 +00:00
renovate[bot]
917818e30d chore(deps): update confluentinc/cp-zookeeper docker tag to v7.9.5 2025-11-28 17:03:47 +00:00
mag123c
b64aef5d69 fix(core): add option for async logger compatibility 2025-11-28 22:52:38 +09:00
Kamil Mysliwiec
f70be75684 Merge pull request #15820 from nestjs/renovate/mysql-9.x
chore(deps): update mysql docker tag to v9.5.0
2025-10-27 09:54:14 +01:00
renovate[bot]
61e9782f0d chore(deps): update mysql docker tag to v9.5.0 2025-10-27 08:31:56 +00:00
Kamil Mysliwiec
334012e5b9 Merge pull request #15815 from mag123c/fix/transient-nested-dependency-isolation
fix(core): ensure nested transient provider isolation
2025-10-27 09:31:06 +01:00
mag123c
cde4fb8334 test(core): add nested transient isolation integration test 2025-10-22 09:34:37 +09:00
Kamil Mysliwiec
6f35185752 Merge pull request #15543 from kim-sung-jee/feature/websockets-manual-ack
feat(websockets): allow manual acknowledgement handling with @Ack() decorator
2025-10-21 10:32:04 +02:00
Kamil Mysliwiec
bf80d39d3f Merge pull request #15747 from slon2015/fix/rmq-microservice-fanout-bind
Fix/rmq microservice fanout bind
2025-10-21 10:27:36 +02:00
renovate[bot]
543d146f43 chore(deps): update confluentinc/cp-kafka docker tag to v8.1.0 2025-10-15 14:15:15 +00:00
Serafim Gerasimov
c3ed27dab6 test(microservices): Integration test for the fanout exchange 2025-10-14 21:06:47 +03:00
Kamil Mysliwiec
5b1251ced2 Merge pull request #15761 from nestjs/renovate/confluentinc-cp-zookeeper-7.x
chore(deps): update confluentinc/cp-zookeeper docker tag to v7.9.4
2025-10-12 16:57:53 +02:00
renovate[bot]
72344b4aa8 chore(deps): update confluentinc/cp-kafka docker tag to v8.0.2 2025-10-10 17:53:07 +00:00
renovate[bot]
acfd2803f6 chore(deps): update confluentinc/cp-zookeeper docker tag to v7.9.4 2025-10-10 13:22:27 +00:00
Kamil Mysliwiec
3c9a6e1387 Merge pull request #15692 from nestjs/renovate/confluentinc-cp-kafka-8.x
chore(deps): update confluentinc/cp-kafka docker tag to v8.0.1
2025-09-30 11:33:19 +02:00
renovate[bot]
23898fe00c chore(deps): update confluentinc/cp-zookeeper docker tag to v7.9.3 2025-09-30 08:17:23 +00:00
renovate[bot]
503f0c3bbc chore(deps): update confluentinc/cp-kafka docker tag to v8.0.1 2025-09-30 08:17:18 +00:00
Kamil Mysliwiec
55860382c5 Merge pull request #15503 from mag123c/feat/add-forceconsole-option-to-logger
feat(common): add force-console option to console logger
2025-09-16 10:07:15 +02:00
at7211
2d20ef9887 fix(core): improve dependency resolution error messages 2025-09-04 15:02:08 +08:00
Seongjee Kim
0c7b94d34e feat(ws): add integration for manually ack 2025-08-18 21:11:12 +09:00
Kamil Mysliwiec
60b2ed43cd Merge pull request #15504 from hajekjiri/bug/fix-undefined-injection
fix(core): fix race condition in class dependency resolution from imported modules
2025-08-07 08:54:48 +02:00
mag123c
ff81fb1f57 feat(common): add force-console option to nestfactory.create() 2025-08-07 14:12:50 +09:00
Jiri Hajek
ab93e4b0c2 fix(core): fix race condition in class dependency resolution
Fix race condition in class dependency resolution, which could otherwise
lead to undefined or null injection. This is a followup to #15405 that
fixes another case of this bug that was not taken care of in the
previous PR. In this case specifically, the staticity of the dependency
tree could be checked before all dependencies are loaded and the param /
property Barrier is passed, resulting in a potentially wrong evaluation
of the `isTreeStatic` property of the `InstanceWrapper`.

Closes #4873
2025-08-05 15:54:59 +02:00
Kamil Myśliwiec
a9d5716dad test(core): add tests for nested transient structures 2025-07-30 17:07:00 +02:00
renovate[bot]
c70b19607d chore(deps): update mysql docker tag to v9.4.0 2025-07-23 08:43:06 +00:00
Kamil Mysliwiec
b34d428c5c Merge pull request #15385 from mag123c/fix/fastify-adapter-middleware-init
fix(testing): auto-init fastify adapter for middleware registration
2025-07-16 09:38:57 +02:00
Jiri Hajek
a453b6375e fix(core): fix race condition in class dependency resolution
Fix race condition in class dependency resolution, which could
otherwise lead to undefined or null injection. Split the resolution
process in 2 parts with barrier synchronization in between to ensure all
dependencies are present in dependant's instance wrapper and the
staticity of its dependency tree is evaluated correctly.

Closes #4873
2025-07-15 16:47:45 +02:00