Commit Graph

84 Commits

Author SHA1 Message Date
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
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
Kamil Myśliwiec
fc56e93c4b fix(): fix middleware tests, fix socketio deprecations 2021-01-29 15:24:09 +01:00
Kamil Myśliwiec
9241905f11 fix(microservices): reject on error (on listen method call) 2021-01-28 14:00:15 +01:00
Kamil Myśliwiec
25ac73b7d9 chore(): resolve merge conflicts 2021-01-27 12:15:44 +01:00
Kamil Myśliwiec
1fca030a44 test(core): fix unit tests 2021-01-13 12:53:23 +01:00
Kamil Myśliwiec
cc6d48b4c3 feat(core): use class refs as keys (container) 2021-01-13 11:24:02 +01:00
Kamil Myśliwiec
f3ba3c8204 refactor(): reimplement routes storage 2020-12-28 13:11:34 +01:00
Kamil Myśliwiec
bcc3fd3881 fix(core): fix injection of transient providers to middleware #5427 2020-12-11 12:24:51 +01:00
miZyind
bead1f4a57 feat(core): add support to controller path alias and refactor shard util 2020-11-30 18:00:15 +07:00
Kamil Myśliwiec
001eff418c fix(core): fix request scoped middleware execution order #5612 2020-10-29 12:56:49 +01:00
Kamil Myśliwiec
7a749add7c feat(platform-fastify): support middleware with fastify adapter 2020-07-29 11:33:46 +02:00