Commit Graph

2970 Commits

Author SHA1 Message Date
Kamil Myśliwiec
6c8ce69832 Merge branch 'master' into chore/migrate-to-tsc-composite-mode 2022-11-07 11:22:03 +01:00
Kamil Myśliwiec
7f9e30a7bd chore: update readme 2022-11-07 11:11:38 +01:00
Kamil Myśliwiec
8101900e13 chore(@nestjs) publish v9.2.0 release 2022-11-07 11:11:15 +01:00
Kamil Mysliwiec
05ee137c38 Merge pull request #10459 from SirReiva/fix-fastify-response
fix(core): return response required for fastify v4
2022-11-07 11:03:52 +01:00
Kamil Mysliwiec
fc6b34be87 Merge pull request #10345 from tolgap/fix/9517-keep-alive-connections-blocking
fix(platform): shutdown hooks not firing caused by open http connections
2022-11-07 11:02:20 +01:00
Kamil Mysliwiec
dc2582a179 Merge pull request #10479 from micalevisk/feat/verbose-wrong-controller-error
feat(core): display class's name on request mapping exceptions
2022-11-07 10:52:38 +01:00
Kamil Mysliwiec
1f376fea52 Update packages/platform-express/adapters/express-adapter.ts 2022-11-07 10:44:54 +01:00
Kamil Mysliwiec
7ec60cabf9 Merge pull request #10460 from thiagomini/feature/10392-http-exceptions-cause-with-custom-message
feat(common): add error options object
2022-11-07 10:44:22 +01:00
Kamil Mysliwiec
ee82c7bf2e Update packages/core/errors/messages.ts 2022-11-07 10:43:37 +01:00
Kamil Mysliwiec
4d3f283d66 Update packages/core/errors/exceptions/unknown-request-mapping.exception.ts 2022-11-07 10:42:17 +01:00
Kamil Mysliwiec
e04e41408d Merge pull request #10481 from micalevisk/feat/issue-10480
feat(plataform-express): replace `any` return type on `#listen` with `Server`
2022-11-07 10:41:18 +01:00
Kamil Mysliwiec
ea4c1d83f5 Merge pull request #10484 from thiagomini/feature/8844-api-version-in-route-info
Feature/8844 api version in route info
2022-11-07 10:41:02 +01:00
Kamil Mysliwiec
eaee2b971c Merge pull request #10497 from CodyTseng/fix-repl-param-type
fix(core): change `repl()` function param type to `Type | DynamicModule`
2022-11-07 10:40:37 +01:00
Kamil Mysliwiec
9ffdffd4e0 Merge pull request #10515 from buddh4/feat-custom-file-pipe-builder-validators
feat(common): Allow adding custom validators to ParseFilePipeBuilder
2022-11-07 10:40:23 +01:00
Kamil Mysliwiec
803916158f Merge pull request #10521 from nestjs/feat/add-each-to-resolve-and-get
feat(core): expose each option to get and resolve methods
2022-11-07 10:39:41 +01:00
Kamil Myśliwiec
ba75fd7a71 feat(core): implement resolve when each is set to true 2022-11-07 10:13:57 +01:00
Kamil Myśliwiec
c9d7f7b0b0 chore: add comment to the get or resolve options object 2022-11-07 09:32:04 +01:00
Kamil Myśliwiec
ef590d3f67 fix: add index.ts file for backward compatibility 2022-11-07 09:04:12 +01:00
Kamil Myśliwiec
8b3d0a7b7e chore: migrate to tsc composite mode (project references) 2022-11-07 09:02:14 +01:00
dependabot[bot]
565d378770 chore(deps): bump ws from 8.10.0 to 8.11.0
Bumps [ws](https://github.com/websockets/ws) from 8.10.0 to 8.11.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.10.0...8.11.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-07 00:11:24 +00: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
Kamil Mysliwiec
beaccf3e1a Merge pull request #10499 from Tony133/chore/update-import
chore(common,core,express): update imports
2022-11-04 08:25:36 +01:00
Tony133
7f2f630111 chore(common,core,express): update imports 2022-11-03 22:35:15 +01:00
buddh4
a4a4d57033 feat(common): Allow adding custom validators to ParseFilePipeBuilder 2022-11-03 15:50:38 +01:00
Thiago Martins
4176ee512f fix(core): add missing parameter for module
add missing parameter to middleware module
2022-11-01 09:53:52 -03:00
codytseng
2047893671 fix: change repl() function param type to Type | DynamicModule 2022-11-01 20:11:25 +08:00
dependabot[bot]
909b01f734 chore(deps): bump tslib from 2.4.0 to 2.4.1
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/2.4.0...2.4.1)

---
updated-dependencies:
- dependency-name: tslib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-01 00:18:12 +00: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
Thiago Martins
439652a4e2 test(core): ensure middleware builder gets version
ensure middleware builder gets route version
2022-10-31 17:01:20 -03:00
Thiago Martins
13760346b1 feat(core): add version attribute to routes mapper
ensure routes mapper returns route's version when defined
2022-10-31 17:00:33 -03:00
Thiago Martins
d3aae1d7c9 feat(core): add version attribute to routes mapper
ensure routes mapper returns route's version when defined
2022-10-31 16:51:20 -03:00
Micael Levi L. Cavalcante
2fe543dbae test(core): cover the scenario where the @Catch() is missing 2022-10-30 15:32:15 -04:00
Micael Levi L. Cavalcante
d6a89fa613 feat(plataform-express): replace any return type on #listen 2022-10-30 15:20:13 -04:00
Micael Levi L. Cavalcante
1d8c56a77f test(core): fix scenario on external exceptions handler 2022-10-29 18:37:52 -04:00
Micael Levi L. Cavalcante
9e8094d33e test(core): cover missing metadata on controller class scneario 2022-10-29 15:58:15 -04:00
Micael Levi L. Cavalcante
21687ea4e5 feat(core): display class's name on request mapping exceptions 2022-10-29 14:56:59 -04:00
Thiago Martins
ab881e3b63 test(common): add http exception tests
add "getStatus" tests for all HttpException children classes
2022-10-27 17:40:41 -03:00
Thiago Martins
45b6cc1047 test(common): add http exception tests
add tests for all HttpException children classes and fix NotAcceptableException wrong status code.
2022-10-27 17:37:27 -03:00
Thiago Martins
971ce5f56f test(common): reuse error cause variable
reuse errorCause variable in HttpException test
2022-10-27 17:21:13 -03:00
Thiago Martins
379b82c189 feat(common): add error cause option
add error cause option to UnsupportedMediaTypeException.
2022-10-27 17:20:03 -03:00
Thiago Martins
b4aca5d01f feat(common): add error cause option
add error cause option to UnprocessableEntityException.
2022-10-27 17:18:54 -03:00
Thiago Martins
f62acac815 feat(common): add error cause option
add error cause option to UnauthorizedException.
2022-10-27 17:17:26 -03:00
Thiago Martins
e8abd9af20 feat(common): add error cause option
add error cause option to ServiceUnavailableException.
2022-10-27 17:16:21 -03:00
Thiago Martins
5031f4105f feat(common): add error cause option
add error cause option to RequestTimeoutException.
2022-10-27 17:15:04 -03:00
Thiago Martins
d40ebd17bf feat(common): add error cause option
add error cause option to PreconditionFailedException.
2022-10-27 17:11:25 -03:00
Thiago Martins
dfc28fcd28 feat(common): add error cause option
add error cause option to PayloadTooLargeException.
2022-10-27 17:08:47 -03:00
Thiago Martins
2416df695a feat(common): add error cause option
add error cause option to NotImplementedException.
2022-10-27 17:07:33 -03:00