Commit Graph

97 Commits

Author SHA1 Message Date
Kamil Myśliwiec
0c93692bc9 chore: update prettier 2025-12-05 13:35:27 +01:00
mag123c
b64aef5d69 fix(core): add option for async logger compatibility 2025-11-28 22:52:38 +09:00
Flo
3080787d9b fix(core): call shutdown hooks in reverse distance order 2024-12-03 16:56:13 +01:00
Kamil Myśliwiec
6e0f891f48 style: address lint errors and warnings 2024-11-27 12:18:43 +01:00
Kamil Myśliwiec
d27628aafa chore: resolve conflicts 2024-11-27 09:55:20 +01:00
Kamil Myśliwiec
339be465fe chore: resolve conflicts 2024-11-27 09:49:01 +01:00
Kamil Myśliwiec
22008976ec build: use strict null checks part 2 2024-11-26 13:36:33 +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 Myśliwiec
e64ab182ba refactor(core): replace internal init with an inline promise 2024-11-15 14:32:09 +01:00
Max Karacsony
5c6986f0c7 chore(core): defer application shutdown until init finishes 2024-11-14 13:50:07 +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 Myśliwiec
38bfa9a13a feat(core): allow overriding abort on error for select method 2024-11-07 12:18:12 +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 Myśliwiec
fb72a8ec9f feat(core): introduce different module opaque key factories 2024-03-18 10:12:56 +01:00
Micael Levi L. Cavalcante
6bb08b434c feat(core): display module's name on .select(module) errors 2023-12-13 13:10:15 -04:00
Micael Levi L. Cavalcante
6bcb3bdcbd style: fix formatting 2023-09-21 17:52:08 -04:00
Kamil Myśliwiec
bf5b7ad394 feat(core): initialize on preview allowlist 2023-02-08 10:42:52 +01:00
Kamil Mysliwiec
f71554ca96 Merge pull request #10696 from kos984/fix/NestApplicationContext-listenToShutdownSignals
fix(core): process exit before shutdown hook end
2023-02-01 13:01:01 +01:00
Kamil Mysliwiec
785b745622 Merge pull request #10775 from bartversluijs/feat/core-close-signal
feat(core): pass signal when manually invoking close
2023-02-01 11:32:23 +01:00
Kamil Myśliwiec
38f55a1cff feat(core): introduce preview mode, update tests, fix minor issues 2023-01-11 15:14:50 +01:00
Bart Versluijs
4189a7f1a3 feat(core): pass signal when manually invoking close 2022-12-28 21:57:24 +01:00
Konstantin Upir
ceea86d6ed fix(core): process exit before shutdown hook end 2022-12-12 12:37:08 +01:00
Kamil Myśliwiec
debf451b0d chore(core): add comments/method overloads for better dev experience 2022-11-05 16:22:54 +01:00
Kamil Myśliwiec
f4d1a1d978 feat(core): expose each option to get and resolve methods 2022-11-05 16:09:47 +01:00
Tony133
7f2f630111 chore(common,core,express): update imports 2022-11-03 22:35:15 +01:00
Tony133
ef04ff3008 chore(core): add index.ts in folder errorsexceptions and update imports 2022-10-22 16:45:31 +02:00
Pooyan Khanjankhani
0cbde57766 Fix typo in docs 2022-05-28 14:54:23 +04:30
Lutz
4c649edc2d fix(core): scoped injection with symbol key issue 2022-04-09 23:22:04 +09:00
Kamil Mysliwiec
0ae6f0ea03 Update packages/core/nest-application-context.ts 2021-12-16 14:11:02 +01:00
Kamil Mysliwiec
0ae4b617b8 Update packages/core/nest-application-context.ts 2021-12-16 14:10:44 +01:00
Micael Levi (lab)
bf0e07457a fix(common,core): auto flush logs after useLogger call if enabled
When using `NestApplicationContext` app and `autoFlushLogs` is on,
invoking `useLogger` method on it must flushes its logs.
2021-12-07 07:03:42 -04:00
Kamil Myśliwiec
26720034a8 fix(core): pass down strict options (module ref) #7239 2021-06-29 15:16:21 +02:00
Kamil Myśliwiec
a2b4c4a723 fix(): fix unit tests, imports 2021-02-11 14:52:20 +01:00
Kamil Mysliwiec
46b140991c Merge pull request #6221 from nestjs/feat/logger-refactor
feat(common): built-in, console logger refactor
2021-01-27 12:18:22 +01:00
Kamil Myśliwiec
8f7362a4cb feat(core): use topological sort for lifecycle hooks 2021-01-25 14:52:27 +01:00
Kamil Myśliwiec
9b74f30471 feat(common): built-in, console logger refactor 2021-01-22 14:58:07 +01:00
Kamil Myśliwiec
a45039ae45 fix(core): use dynamic metadata to generate a hash (context) 2020-12-30 09:47:56 +01:00
gangajogur
ad179935f4 fix(core): Add abstract option to resolvePerContext method 2020-11-17 22:02:13 +10:00
gangajogur
4f694e213c fix(core): add abstract option to resolve method 2020-11-17 21:40:58 +10:00
Alvaro
9c79e0ee59 fix: verify err variable is defined in catch block 2020-11-05 12:34:47 +01:00
Kim Kern
69ada75280 fix(core): allow setting log level after app creation
So far, they types only allowed to set the log level within the application options, and not when calling app.useLogger(), although internally, they call the same method.
closes @nestjs/nest#5484
2020-09-27 20:27:06 +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
038beb0c54 fix(core): fix resolve() method (fallback to get() for static) 2020-06-18 15:34:03 +02:00
Kamil Myśliwiec
2a7bf6a357 fix(core): revert resolve method regression 2020-06-18 15:21:34 +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
b2bd950cc9 fix(core): fix nullable constructor host when factory provided 2020-04-24 08:59:38 +02:00
cojack
4b7dcd6b2c feat(core): use iterate to reduce number of loops 2020-03-17 10:43:58 +01:00
Kamil Myśliwiec
d3987342b2 test(): fix broken unit tests 2020-03-03 10:07:43 +01:00
Kamil Myśliwiec
50e643f045 fix(core): unsubscribe from shutdown signals on close 2020-02-13 09:22:56 +01:00
Kamil Myśliwiec
db08a609a2 style(core): move protected dispose under public methods 2019-12-10 17:19:44 +01:00