mag123c
ff81fb1f57
feat(common): add force-console option to nestfactory.create()
2025-08-07 14:12:50 +09: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
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
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
Kamil Myśliwiec
7f142e9399
feat: add legacy route converter, update tests
2024-11-28 11:28:56 +01:00
Kamil Myśliwiec
7d3e5c1a38
build: use strict null checks part 5
2024-11-26 14:39:51 +01:00
Kamil Mysliwiec
5662fc1ac9
Merge branch '11.0.0' into chore/eslint-v9
2024-11-26 12:00:34 +01:00
Kamil Myśliwiec
236b633a76
style: address integration tests lint errors
2024-11-26 09:39:20 +01:00
Kamil Mysliwiec
59374c9b8c
Merge pull request #13797 from patrickacioli/fix-fastify-global-route-prefix
...
fix(fastify-adapter): middleware not executed when root path is excluded
2024-11-25 13:37:55 +01:00
Rick Dutour Geerling
4d46bd8f75
test: GET endpoints should respond to HEAD reqs
2024-09-23 10:12:19 +02:00
Patrick Acioli
ba761c1488
fix(fastify-adapter): middleware not executed when root path is excluded
2024-07-17 20:45:44 -03:00
dragontaek-lee
4d88c79839
fix(core): prevent exclude method from overwriting previous calls
2024-05-25 23:07:44 +09:00
Kamil Myśliwiec
f831473dbb
test: remove .only calls
2023-06-17 11:12:19 +02:00
Kamil Myśliwiec
a412dccfbe
fix(fastify): validate middleware paths
2023-06-12 11:03:31 +02:00
Kamil Mysliwiec
8053f11451
Merge pull request #9809 from rychardvale/fix-middleware-multiple-runs
...
feat(core): middleware runs once for matching route
2023-06-12 09:47:02 +02:00
Kamil Myśliwiec
0f904d2cab
chore: update minimum engine version to 16
2023-04-05 13:31:07 +02:00
Kamil Myśliwiec
702eebf9b5
chore: resolve conflicts
2023-04-05 13:10:23 +02:00
Kamil Myśliwiec
06da94bca5
chore: assert type of route info objects
2023-04-05 12:02:34 +02:00
codytseng
ea79cefc28
fix(testing): correct the type of server
2023-02-15 15:46:18 +08:00
codytseng
b8702d5dbd
fix(core): add global prefix to exclude paths for middleware
2023-02-04 12:17:00 +08:00
Kamil Mysliwiec
c7ac493b53
Merge pull request #10390 from CodyTseng/fix-middleware-global-prefix
...
fix(core): let the middleware can get the params in the global prefix
2023-02-03 10:24:47 +01:00
Kamil Mysliwiec
da708c7216
Merge pull request #10474 from tuxmachine/fix/8469-fastify-errors-content-type
...
Fix Content-Type for unexpected errors in Fastify
2023-02-02 13:34:49 +01:00
codytseng
25dd621132
Merge branch 'master' into fix-middleware-global-prefix
2023-02-01 22:36:47 +08:00
Kamil Myśliwiec
95e8394b32
test: add inspector e2e tests, add deterministic uuid registry
2022-11-29 09:56:19 +01:00
codytseng
fdc5f34219
feat: move test
2022-11-23 16:07:13 +08:00
Kamil Myśliwiec
5b42ab71af
test: add paths mapping and watch mode for unit tests
2022-11-09 11:46:08 +01: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
092e721263
test(ingration): refactor middleware tests
...
refactor middleware tests to explicitly define versioning options
2022-10-31 18:03:36 -03:00
Thiago Martins
25f03c4c06
test(integration): add middleware test
2022-10-31 17:50:21 -03:00
Thiago Martins
cf1b946e62
fix(core): fix middleware for versioned routes
...
fix middlewares for versioned routes using media type as versioning type
2022-10-31 17:42:52 -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
415858f635
test(integration): wrap test case for uri version
...
wrap test case for uri versioning context to facilitate the addition of tests for other versioning types
2022-10-31 17:18:30 -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
Rick Dutour Geerling
61d25beae0
fix(fastify): always return errors as application/json
...
If user overrides the Content-Type but doesn't add a custom exception
filter to handle errors, then Nest will respond with a JSON error
object. We should ensure the Content-Type header matches the body
in this case.
2022-10-31 12:09:25 +01:00
Rick Dutour Geerling
ddf3301d49
fix(express): always return errors as application/json
...
If user overrides the Content-Type but doesn't add a custom exception
filter to handle errors, then Nest will respond with a JSON error
object. We should ensure the Content-Type header matches the body
in this case.
2022-10-31 12:09:24 +01:00
Rychard Vale
328169628b
feat(core): middleware runs once for matching route
2022-06-20 07:26:58 -03:00
Tony133
c9e619e74a
test(integration): rename app module in test e2e
2022-05-24 21:28:34 +02:00
Kamil Mysliwiec
b6bc35ee37
Revert "fix(core): middlewareConsumer forRoutes controller"
2021-10-06 09:16:35 +02:00
Zclhlmgqzc
8289272861
fix(core): middlewareConsumer forRoutes controller
2021-10-04 19:33:00 +08:00
Kamil Myśliwiec
9d0551ff25
style(): run prettier
2021-08-16 09:30:29 +02:00
Zclhlmgqzc
383d87e5cd
fix(platform-express): middleware include RequestMethod
2021-07-18 17:56:12 +08:00
Zclhlmgqzc
22c204df23
fix(platform-fastify): FastifyAdapter Middleware no run
2021-07-14 15:26:23 +08:00
Kamil Myśliwiec
470fcf8695
chore(): resolve merge conflicts
2021-02-04 15:09:09 +01:00
Kamil Myśliwiec
f3ba3c8204
refactor(): reimplement routes storage
2020-12-28 13:11:34 +01:00
Andrew Dassonville
dd51cf8f51
feat(): accept array of host filters
...
Allows an array of host filters to be passed to the @Controller decorator.
2020-12-17 16:36:45 -08:00