Commit Graph

156 Commits

Author SHA1 Message Date
at7211
2d20ef9887 fix(core): improve dependency resolution error messages 2025-09-04 15:02:08 +08: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
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
Kamil Myśliwiec
7d3e5c1a38 build: use strict null checks part 5 2024-11-26 14:39:51 +01:00
Micael Levi L. Cavalcante
18fbf2797a feat(core): disambiguate string-based providers on error message 2023-09-24 21:48:46 -04:00
Kamil Myśliwiec
1fea6325ef fix(core): throw on circular factories and custom providers 2023-07-13 12:57:26 +02:00
Kamil Myśliwiec
0f904d2cab chore: update minimum engine version to 16 2023-04-05 13:31:07 +02:00
Lioness100
fda5fff1cd docs: fix typos 2023-02-10 21:39:29 -05:00
Kamil Myśliwiec
2b6211f81b chore: merge conflicts 2023-01-11 19:30:30 +01:00
Kamil Myśliwiec
95e8394b32 test: add inspector e2e tests, add deterministic uuid registry 2022-11-29 09:56:19 +01:00
Micael Levi L. Cavalcante
bf17cd0394 feat(core): add hint to unknown dependency error msg 2022-11-15 00:10:28 -04:00
Kamil Myśliwiec
5b42ab71af test: add paths mapping and watch mode for unit tests 2022-11-09 11:46:08 +01:00
Kamil Myśliwiec
92c37ddc3b style: address linter errors, move ts-expect-error desc 2022-11-07 10:23:24 +01:00
Kamil Myśliwiec
a8e5bc6c9b test(core): add multiple providers resolution integration tests 2022-11-07 10:14:22 +01:00
Kamil Myśliwiec
39c3dfe3c6 test(injector): update optional factory provider integration tests 2022-07-12 11:08:03 +02:00
Kamil Myśliwiec
ced2acff61 test(): hotfix - use deep equal instead 2022-07-12 10:07:16 +02:00
Kamil Myśliwiec
8e5b1f426c test(): add test case for optional deps in scoped providers 2022-07-12 09:58:45 +02:00
Kamil Mysliwiec
874344c60e Merge pull request #9271 from micalevisk/fix/issue-9245
fix(core): use class refs as keys (container)
2022-03-01 13:01:38 +01:00
Micael Levi (@micalevisk)
d38a592ef0 test(integration): add tests for self-injections providers 2022-02-28 18:21:26 -04:00
Kamil Myśliwiec
19ea1c2f35 test(): add more tests around optional factory dependency 2022-02-21 10:20:06 +01:00
Kamil Myśliwiec
6136e46419 feat(core): support optional dependencies in factory providers 2022-02-18 16:59:24 +01:00
Kamil Myśliwiec
9d0551ff25 style(): run prettier 2021-08-16 09:30:29 +02:00
Kamil Myśliwiec
d59c7b87bd feat(core): add instance links, introspection and expose request provider 2020-07-01 14:05:32 +02:00
Kamil Myśliwiec
439736f051 fix(core): add more descriptive messages for invalid usage of resolve() 2020-06-01 11:10:24 +02:00
Kamil Myśliwiec
d08c7c742b fix(core): resolve nested transient providers #4756 2020-05-12 11:59:59 +02:00
Kamil Myśliwiec
de8fad4e00 fix(): remove package.json files from integration dirs 2020-03-11 22:43:53 +01:00
Kamil Myśliwiec
d3e14195e2 fix(): resolve merge conflicts 2020-03-11 22:41:53 +01:00
Renovate Bot
54642ce983 fix(deps): update nest monorepo to v6.11.11 2020-03-03 12:16:22 +00:00
Kamil Myśliwiec
9248ff602f fix(): fix import issues, remove integration package locks 2020-03-03 10:32:50 +01:00
Renovate Bot
38cac359a3 fix(deps): update nest monorepo to v6.11.10 2020-03-03 08:33:39 +00:00
Kamil Myśliwiec
0d2c064591 fix(): resolve merge conflicts 2020-03-02 18:09:53 +01:00
Renovate Bot
767fec35b9 fix(deps): update nest monorepo to v6.11.9 2020-03-02 16:57:33 +00:00
Kamil Myśliwiec
5d2de5fd9a fix(): integration tests cleanup, update deps versions 2020-03-02 13:46:26 +01:00
Renovate Bot
e42c1903dc fix(deps): update nest monorepo to v6.11.8 2020-02-20 13:43:58 +00:00
Renovate Bot
f86a6c2130 fix(deps): update nest monorepo to v6.11.7 2020-02-13 13:38:46 +00:00
Renovate Bot
a06b3bf169 chore(deps): update nest monorepo 2020-02-06 12:03:00 +00:00
Renovate Bot
6d7c835ba9 fix(deps): update nest monorepo to v6.11.5 2020-01-31 11:45:33 +00:00
Renovate Bot
837e4c0088 fix(deps): update nest monorepo to v6.11.4 2020-01-28 11:28:37 +00:00
Renovate Bot
d17143673f fix(deps): update nest monorepo to v6.11.3 2020-01-28 10:16:24 +00:00
Kamil Myśliwiec
01dfe29458 fix(): resolve conflicts 2020-01-26 12:18:14 +01:00
Kamil Myśliwiec
7309ba4bdf chore(): remove lint from lint-staged 2020-01-26 12:17:23 +01:00
Renovate Bot
1da677c0ed fix(deps): update nest monorepo to v6.11.1 2020-01-24 22:14:47 +00:00
Renovate Bot
f8c944bfe7 fix(deps): update nest monorepo to v6.11.0 2020-01-24 14:01:43 +00:00
Renovate Bot
be9d6c54b6 chore(deps): update dependency ts-node to v8.6.2 2020-01-13 18:32:21 +00:00
Renovate Bot
6575e65697 chore(deps): update dependency ts-node to v8.6.1 2020-01-10 23:21:31 +00:00
Renovate Bot
b01372525c chore(deps): update dependency ts-node to v8.6.0 2020-01-10 02:38:45 +00:00
Renovate Bot
bc995d8ae8 fix(deps): update nest monorepo to v6.10.14 2020-01-05 12:39:26 +00:00
Renovate Bot
f459725b3a fix(deps): update dependency rxjs to v6.5.4 2020-01-05 10:32:37 +00:00
Kamil Mysliwiec
0c6385d657 Merge pull request #3653 from jacob87o2/fix-unknown-dependency-exception
fix(core): fix unknown dependency exception (symbols)
2019-12-27 12:58:22 +01:00
Renovate Bot
c4939f99f7 fix(deps): update nest monorepo to v6.10.12 2019-12-19 03:41:27 +00:00