Commit Graph

94 Commits

Author SHA1 Message Date
Kamil Myśliwiec
09c81568f8 feat: introduce standard schema serializer 2026-02-15 13:07:08 +01:00
Kamil Myśliwiec
473810cc85 chore: introduce the internal export path 2026-02-13 17:40:00 +01:00
Kamil Myśliwiec
fa6d45da74 build: migrate from cjs to esm 2026-02-09 14:10:04 +01:00
Kamil Myśliwiec
0c93692bc9 chore: update prettier 2025-12-05 13:35:27 +01:00
Regev Brody
58fcd8849a fix: middleware sort issues 2025-01-27 16:00:34 +02:00
Kamil Myśliwiec
44490dcad0 fix(core): global module middleware should be executed first 2025-01-23 09:19:36 +01:00
Kamil Myśliwiec
6e0f891f48 style: address lint errors and warnings 2024-11-27 12:18:43 +01:00
Kamil Myśliwiec
e2893f951c chore: add non null assertions 2024-11-27 10:06:07 +01:00
Kamil Myśliwiec
d27628aafa chore: resolve conflicts 2024-11-27 09:55:20 +01:00
Kamil Myśliwiec
7d3e5c1a38 build: use strict null checks part 5 2024-11-26 14:39:51 +01:00
Kamil Myśliwiec
22008976ec build: use strict null checks part 2 2024-11-26 13:36:33 +01:00
Kamil Myśliwiec
10fdf16c47 build: use strict null checks part 1 2024-11-26 12:46:59 +01:00
Kamil Myśliwiec
8829b8d1d7 style: address packages lint errors 2024-11-26 10:38:31 +01:00
DylanVeldra
6dba4debb9 fix(core): merge req context with tenant payload in the request instance 2024-08-18 17:11:49 +02:00
Kamil Myśliwiec
3321f6ca20 fix(core): middleware is not executed for root route with prefix 2024-03-18 11:35:49 +01:00
Kamil Myśliwiec
6752144a86 chore: resolve conflicts 2024-03-18 10:21:44 +01:00
Micael Levi L. Cavalcante
6bcb3bdcbd style: fix formatting 2023-09-21 17:52:08 -04:00
alucebur
5463765051 fix(core): apply middlewares only once per route
Closes #11821.
2023-06-17 18:56:18 +02:00
Kamil Myśliwiec
7aa710724d fix(core): apply middleware to versioned controllers (ctrl-level) 2023-06-14 11:34:56 +02:00
Kamil Myśliwiec
bc4a571ef4 fix: update outdated imports 2023-04-17 13:06:25 +02:00
codytseng
b8702d5dbd fix(core): add global prefix to exclude paths for middleware 2023-02-04 12:17:00 +08:00
codytseng
c6dbc05bb6 refactor: MiddlewareModule constructor parameters 2023-02-01 23:22:02 +08:00
codytseng
25dd621132 Merge branch 'master' into fix-middleware-global-prefix 2023-02-01 22:36:47 +08:00
Kamil Myśliwiec
c1815d2f8c fix: revert #10801 2023-02-01 14:29:21 +01:00
Kamil Myśliwiec
a986e7e907 Merge branch 'master' of https://github.com/nestjs/nest 2023-02-01 13:00:10 +01:00
Kamil Myśliwiec
cd0462fbcb style: minor formatting tweaks 2023-02-01 12:59:40 +01:00
Kamil Myśliwiec
b9910a400a Merge branch 'zmj-fix_gloabl_prefix' of github.com:zanminkian/nest into zanminkian-zmj-fix_gloabl_prefix 2023-02-01 12:58:09 +01:00
Kamil Mysliwiec
6d88e3cd3c Merge pull request #10809 from micalevisk/fix/durable-payload-regression
fix(core,microservices): inject the context when the tree is not durable
2023-02-01 12:56:47 +01:00
Kamil Myśliwiec
20abe1df78 fix(core): wrap middleware configure in try..catch - preview mode 2023-01-28 19:06:33 +01:00
Micael Levi L. Cavalcante
f396dc1ddf refactor(core): extract get context id logic into its own method 2023-01-27 12:08:12 -04:00
Micael Levi L. Cavalcante
aafdac62a0 fix(core,microservices): inject the context when the tree is not durable 2023-01-27 12:08:10 -04:00
Kamil Myśliwiec
38f55a1cff feat(core): introduce preview mode, update tests, fix minor issues 2023-01-11 15:14:50 +01:00
曾明健
5deabef549 fix(core): fix global prefix not working 2023-01-04 10:05:05 +00:00
codytseng
a1f17e2271 refactor: rename getPaths to extractPathsFrom 2022-11-24 21:34:45 +08:00
codytseng
ecba3bafde refactor: create a separate class to retrieve the paths 2022-11-24 14:37:59 +08:00
codytseng
758cd2d8b1 refactor: wrap get paths logic into a private function 2022-11-23 18:18:32 +08:00
Kamil Myśliwiec
a89615b124 feat: add graph inspector implementation 2022-11-21 11:00:11 +01:00
codytseng
cc7e829804 feat: version-aware middleware 2022-11-19 18:11:09 +08:00
codytseng
4c4c13bf84 Merge branch 'master' into fix-middleware-global-prefix 2022-11-15 22:38:42 +08:00
Thiago Martins
e36acea783 feat(core): add middleware versioning support
add middleware versionig support for uri versioning with an alternative prefix
2022-10-31 18:14:51 -03:00
Thiago Martins
4a039327bf fix(core): fix middleware for versioned routes
fix middlewares for versioned routes using header as versioning type
2022-10-31 17:38:54 -03:00
Thiago Martins
bd5c0607f3 feat(core): add version to middleware module
ensure middleware module considers path-versioning when applying middlewares
2022-10-31 17:02:16 -03:00
Tony133
411c6b44bc chore(core): updated imports 2022-10-22 12:42:57 +02:00
codytseng
c437ac97d0 fix(core): add leading slash to excluded paths 2022-10-15 10:50:25 +08:00
codytseng
75d5d64ec7 fix(core): let the middleware can get the params in the global prefix 2022-10-10 22:56:30 +08:00
Kamil Myśliwiec
eb5c2d2a67 feat(core): allow setting payload for durable trees 2022-09-19 14:43:44 +02:00
Kamil Myśliwiec
1ae72e1fdb fix(core): apply global middleware to routes excluded from prefix 2022-03-14 14:43:03 +01:00
Zclhlmgqzc
226a1ac28b fix: middleware with globalPrefixOptions exclude 2021-10-06 18:43:53 +08:00
Kamil Myśliwiec
ce122d6c24 fix(): minor updates to avoid breaking changes 2021-07-27 12:44:41 +02:00
Zclhlmgqzc
383d87e5cd fix(platform-express): middleware include RequestMethod 2021-07-18 17:56:12 +08:00