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 Virk
2024-10-03 09:42:00 +00:00
committed by GitHub
co-authored by Adrien de Peretti
parent 193f93464f
commit 48e00169d2
557 changed files with 2365 additions and 3499 deletions
+3 -1
View File
@@ -5,6 +5,8 @@
"main": "dist/index.js",
"exports": {
".": "./dist/index.js",
"./types": "./dist/types/index.js",
"./utils": "./dist/utils/index.js",
"./api/*": "./dist/api/*.js",
"./subscribers/*": "./dist/subscribers/*.js",
"./jobs/*": "./dist/jobs/*.js",
@@ -49,7 +51,6 @@
"@opentelemetry/sdk-trace-node": "^1.26.0",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/express": "^4.17.17",
"@types/jsonwebtoken": "^8.5.9",
"@types/lodash": "^4.14.191",
"@types/multer": "^1.4.7",
@@ -101,6 +102,7 @@
"@medusajs/workflow-engine-redis": "^0.0.4",
"@swc/core": "1.5.7",
"@swc/helpers": "^0.5.11",
"@types/express": "^4.17.17",
"boxen": "^5.0.1",
"chalk": "^4.0.0",
"chokidar": "^3.4.2",