Commit Graph

93 Commits

Author SHA1 Message Date
Kamil Myśliwiec
fb3ae67e25 chore: address lint errors, and fix ci test errors 2026-02-15 14:17:05 +01:00
Kamil Myśliwiec
288453fabb test: fix coverage collection, add more tests 2026-02-11 20:44:14 +01:00
Kamil Myśliwiec
6846cd7128 test: migrate to vitest 2026-02-11 15:04:51 +01:00
Kamil Myśliwiec
fa6d45da74 build: migrate from cjs to esm 2026-02-09 14:10:04 +01:00
Kamil Myśliwiec
0094e0df49 test: add optional chaining to eventsource init payload 2025-01-07 15:39:00 +01:00
Kamil Myśliwiec
5b091a4d4e chore(deps): upgrade to eventsource v3 2025-01-07 14:58:19 +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 Myśliwiec
236b633a76 style: address integration tests lint errors 2024-11-26 09:39:20 +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
7d8822cb5b Merge branch 'fix-global-prefix-middleware' of https://github.com/CodyTseng/nest into CodyTseng-fix-global-prefix-middleware 2024-03-18 10:23:10 +01:00
Kamil Myśliwiec
6752144a86 chore: resolve conflicts 2024-03-18 10:21:44 +01:00
codytseng
8769a9d6b9 Merge branch 'master' into fix-global-prefix-middleware 2024-03-06 14:42:10 +08:00
Micael Levi L. Cavalcante
6bcb3bdcbd style: fix formatting 2023-09-21 17:52:08 -04:00
codytseng
9fa3d930db fix: the root path middleware not applied when setting the global prefix 2023-08-01 21:33:00 +08:00
alucebur
81404bb92f test: add integration test 'should execute middleware only once' 2023-06-17 21:32:16 +02:00
Kamil Myśliwiec
0f904d2cab chore: update minimum engine version to 16 2023-04-05 13:31:07 +02:00
codytseng
25dd621132 Merge branch 'master' into fix-middleware-global-prefix 2023-02-01 22:36:47 +08:00
Tolga Paksoy
9b073748cb test(): add integration test for raw body 2022-12-05 17:52:11 +01:00
codytseng
fdc5f34219 feat: move test 2022-11-23 16:07:13 +08:00
codytseng
4a27d263c5 test: update the middleware get the params from global prefix test 2022-11-20 00:25:59 +08:00
codytseng
4c4c13bf84 Merge branch 'master' into fix-middleware-global-prefix 2022-11-15 22:38:42 +08:00
Kamil Myśliwiec
5b42ab71af test: add paths mapping and watch mode for unit tests 2022-11-09 11:46:08 +01:00
Tolga Paksoy
9d63732763 test(fastify): add specs for sse 2022-10-24 16:53:45 +02:00
Tolga Paksoy
5d1ac89637 test(express): add sse examples 2022-10-20 16:56:14 +02:00
codytseng
b7f458f3fe test: add the middleware get the params from global prefix test 2022-10-11 15:33:36 +08:00
Tolga Paksoy
50716eb0cd fix(express,fastify): raw body for urlencoded requests 2022-07-13 18:47:03 +02:00
Micael Levi (@micalevisk)
5e8c61985b test(integration): drop the first arg of createNestApplication 2022-06-23 19:21:43 -04:00
Tolga Paksoy
9db43f6f66 fix(testing): raw body spec not using fastify adapter 2022-05-24 10:17:50 +02:00
Kamil Myśliwiec
71e3143d90 style(): minor foramtting tweaks 2022-05-17 13:45:29 +02:00
Tolga Paksoy
4fb646ec29 test(platform): ensure json parsed body works as well 2022-04-22 15:11:02 +02:00
Tolga Paksoy
8ea63376ee test(platform-fastify): add tests for raw body option in fastify adapter 2022-03-17 12:00:41 +01:00
Tolga Paksoy
f28a964200 test(platform-express): add tests for raw body option in express adapter 2022-03-17 12:00:38 +01:00
Kamil Myśliwiec
1ae72e1fdb fix(core): apply global middleware to routes excluded from prefix 2022-03-14 14:43:03 +01:00
caucik
e7f1f10423 refactor: update integration imports to reference top level index.ts 2021-11-16 02:47:26 +01:00
Zclhlmgqzc
226a1ac28b fix: middleware with globalPrefixOptions exclude 2021-10-06 18:43:53 +08:00
Kamil Myśliwiec
6f200885d3 fix(core): fix path concatenating strategy 2021-03-10 09:16:24 +01:00
Kamil Myśliwiec
c5d47bb588 test(core): add tests for exclude global prefix methods 2021-02-02 13:28:22 +01:00
branbranmuffin
4cc2d1874a feat(core): change listen to reject on server bind failures
pr update
2021-01-12 18:25:04 -07:00
Kamil Myśliwiec
c687fe98a4 Merge branch 'app-locals' of https://github.com/msrumon/nest into msrumon-app-locals 2020-12-08 10:44:06 +01:00
Rumon
3d33283e6b feat(core): expose app.locals to express adapter 2020-11-30 23:33:15 +06:00
Jay McDoniel
f36cb0c729 fix(application): makes get-url work in callback
`app.getUrl()` was throwing an error when `this.isListening`
was set to false. The value was set _after_ `this.httpServer.listen`
was called, now it is set _before_ to ensure that the `app.getUrl()`
can be called in the callback of `listen`. A regression test has
been added for this, and all tests related to the change are passing.

fix: #5798
2020-11-26 14:18:39 -08:00
Kilian
52e14b05d4 feat(core): address review comments 2020-08-20 00:30:22 +02:00
Kilian
47f05de6c1 feat(core): exclude route from global prefix
New global prefix option to exclude some routes as a string or a RouteInfo
2020-08-19 23:56:19 +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
0fac7b1456 chore(deps): update dependency @types/node to v13.9.0 2020-03-06 19:04:13 +00: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