breaking: move shared HTTP utils to the framework (#9402)

Fixes: FRMW-2728, FRMW-2729

After this PR gets merged the following middleware will be exported from the `@medusajs/framework/http` import path.

- applyParamsAsFilters
- clearFiltersByKey
- applyDefaultFilters
- setContext
- getQueryConfig
- httpCompression
- maybeApplyLinkFilter
- refetchEntities
- unlessPath
- validateBody
- validateQuery

Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
This commit is contained in:
Harminder VirkandAdrien de Peretti authored and GitHub committed 2024-10-03 09:42:00 +00:00
1 parent 193f93464f
commit 48e00169d2
557 files changed
+2365 -3499

No files matched your search

+2
View File
@@ -5662,6 +5662,7 @@ __metadata:
"@mikro-orm/postgresql": 5.9.7
"@swc/core": ^1.7.28
"@swc/jest": ^0.2.36
"@types/express": ^4.17.17
"@types/yargs": ^15.0.15
awilix: ^8.0.1
chalk: ^4.0.0
@@ -24359,6 +24360,7 @@ __metadata:
"@mikro-orm/knex": 5.9.7
"@mikro-orm/migrations": 5.9.7
"@mikro-orm/postgresql": 5.9.7
"@types/express": ^4.17.17
awilix: ^8.0.1
axios: ^0.21.4
express: ^4.21.0