Commit Graph

1183 Commits

Author SHA1 Message Date
at7211
2d20ef9887 fix(core): improve dependency resolution error messages 2025-09-04 15:02:08 +08: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
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
mag123c
07291c21aa feat(platform-fastify): implement lazy middleware registration 2025-07-15 21:37:04 +09:00
mag123c
d602f74c37 fix(platform-fastify): improve middleware registration error message 2025-07-15 10:04:12 +09:00
mag123c
8e016e8bb0 fix(testing): auto-init fastify adapter for middleware registration 2025-07-14 10:03:23 +09:00
renovate[bot]
411794d4fd chore(deps): update confluentinc/cp-zookeeper docker tag to v7.9.2 2025-06-13 11:36:15 +00:00
renovate[bot]
ffc2204d26 chore(deps): update confluentinc/cp-kafka docker tag to v8 2025-06-11 15:55:58 +00:00
Kamil Myśliwiec
daa429d251 style: address lint issues 2025-05-30 10:56:04 +02:00
Dmitry Zhlobo
b84c1fe459 fix(core): gracefully shutdown the app when repl exits
The application module we pass to repl may have long-running phases
(e.g. database connection polling) and if we don't finish those
long-running phases the repl would stuck on exit possibly forever.

I encoutered this issue while using MikroORM.forRoot module.

The solution is to call `app.close()` when repl exits. Modules should
implement graceful shutdown using lifecycle hooks.
2025-05-28 14:59:22 +02:00
renovate[bot]
1c7d6f7286 chore(deps): update confluentinc/cp-zookeeper docker tag to v7.9.1 2025-05-12 06:54:07 +00:00
renovate[bot]
c849d5e5a0 chore(deps): update confluentinc/cp-kafka docker tag to v7.9.1 2025-05-08 15:49:42 +00:00
Kamil Mysliwiec
faf3e6aec2 Merge pull request #14540 from nestjs/feat/rmq-topic-exchange
feat(microservices): add support for topic exchange (rabbitmq)
2025-04-23 13:23:39 +02:00
renovate[bot]
2b912949eb chore(deps): update mysql docker tag to v9.3.0 2025-04-15 06:40:26 +00:00
Kamil Myśliwiec
73d4ee6074 test(fastify): update broken integration tests 2025-04-03 10:58:42 +02:00
Kyle Lilly
c91eeff7bb fix(fastify-adapter): global prefix exclusion path handling w/middleware 2025-04-02 10:37:31 -04:00
anizozina
64eeb9bf00 fix(core): dependencies not resolving for request-scoped lazy providers 2025-03-18 06:57:47 +09:00
renovate[bot]
5689c70992 chore(deps): update confluentinc/cp-zookeeper docker tag to v7.9.0 2025-02-19 19:02:25 +00:00
renovate[bot]
8b1e0ec646 chore(deps): update confluentinc/cp-kafka docker tag to v7.9.0 2025-02-19 12:09:53 +00:00
renovate[bot]
1648a3cec9 chore(deps): update confluentinc/cp-zookeeper docker tag to v7.8.1 2025-02-10 15:13:27 +00:00
renovate[bot]
916d130e33 chore(deps): update confluentinc/cp-kafka docker tag to v7.8.1 2025-02-10 13:09:24 +00:00
Kamil Myśliwiec
d2948d9522 refactor: introduce wildcards attribute, use existing exchange 2025-01-31 08:50:10 +01:00
Kamil Myśliwiec
23e76fd296 test: use unique queue name for rmq 2025-01-30 15:31:02 +01:00
Kamil Myśliwiec
e1a9f5f0f3 test: increase timeout for the wildcard topic exchange test 2025-01-30 14:57:15 +01:00
Kamil Myśliwiec
823fbab75d feat(microservices): add support for topic exchange (rabbitmq) 2025-01-30 13:52:50 +01:00
Regev Brody
31eaae505c fix: middleware sort issues 2025-01-27 16:16:58 +02:00
Kamil Myśliwiec
45fa078faf fix(core): allow optional named wildcard groups #14520 2025-01-27 13:45:05 +01:00
Kamil Myśliwiec
44490dcad0 fix(core): global module middleware should be executed first 2025-01-23 09:19:36 +01:00
renovate[bot]
b65f2a6f8a chore(deps): update mysql docker tag to v9.2.0 2025-01-22 05:44:08 +00:00
Kamil Myśliwiec
0996b7d2a9 chore(deps): update graphql-subscriptions package 2025-01-20 08:46:27 +01:00
Kamil Myśliwiec
6f04292d97 chore(deps): update graphql-subscriptions package 2025-01-20 08:44:00 +01:00
Kamil Myśliwiec
916adc28f3 test: delete removed keepconnectionalive attribute 2025-01-20 08:42:18 +01:00
Kamil Myśliwiec
db2a9b5aa3 chore: resolve conflicts 2025-01-09 11:54:46 +01:00
Kamil Myśliwiec
0094e0df49 test: add optional chaining to eventsource init payload 2025-01-07 15:39:00 +01:00
Kamil Myśliwiec
5b091a4d4e chore(deps): upgrade to eventsource v3 2025-01-07 14:58:19 +01:00
Kamil Myśliwiec
9e5f77c169 chore: resolve conflicts 2025-01-07 12:24:10 +01:00
Kamil Myśliwiec
8bcd1e5b81 chore: resolve conflicts 2025-01-07 12:14:37 +01:00
Kamil Myśliwiec
121494ac4e Merge branch '11.0.0' into chore/express-v5 2024-12-05 14:15:45 +01:00
renovate[bot]
b642364f6b chore(deps): update confluentinc/cp-zookeeper docker tag to v7.8.0 2024-12-05 12:43:26 +00:00
renovate[bot]
f0824383ba chore(deps): update confluentinc/cp-kafka docker tag to v7.8.0 2024-12-04 09:50:03 +00:00
Flo
3080787d9b fix(core): call shutdown hooks in reverse distance order 2024-12-03 16:56:13 +01:00
Kamil Myśliwiec
7f142e9399 feat: add legacy route converter, update tests 2024-11-28 11:28:56 +01:00
renovate[bot]
fc8c3e2167 chore(deps): update confluentinc/cp-zookeeper docker tag to v7.7.2 2024-11-28 10:07:26 +00:00
renovate[bot]
50e97b2abe chore(deps): update confluentinc/cp-kafka docker tag to v7.7.2 2024-11-28 09:39:44 +00:00
Kamil Myśliwiec
6e0f891f48 style: address lint errors and warnings 2024-11-27 12:18:43 +01:00
Kamil Myśliwiec
d606466b37 Merge branch 'master' into 11.0.0 2024-11-27 12:03:56 +01:00