Skip to content

Commit

Permalink
fix(deps): update dependency http-proxy-middleware to v3 (#11038)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Walker-GM authored Jul 21, 2024
1 parent cf5fe1d commit c19bbbd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 24 deletions.
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"express": "4.19.2",
"find-my-way": "8.2.0",
"fs-extra": "11.2.0",
"http-proxy-middleware": "2.0.6",
"http-proxy-middleware": "3.0.0",
"isbot": "5.1.13",
"react": "19.0.0-beta-04b058868c-20240508",
"react-server-dom-webpack": "19.0.0-beta-04b058868c-20240508",
Expand Down
6 changes: 0 additions & 6 deletions packages/vite/src/runFeServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,10 @@ export async function runFeServer() {
// 2. Proxy the api server
// TODO (STREAMING) we need to be able to specify whether proxying is required or not
// e.g. deploying to Netlify, we don't need to proxy but configure it in Netlify
// Also be careful of differences between v2 and v3 of the server
app.use(
rwConfig.web.apiUrl,
// @WARN! Be careful, between v2 and v3 of http-proxy-middleware
// the syntax has changed https://github.com/chimurai/http-proxy-middleware
createProxyMiddleware({
changeOrigin: false,
pathRewrite: {
[`^${rwConfig.web.apiUrl}`]: '', // remove base path
},
// Using 127.0.0.1 to force ipv4. With `localhost` you don't really know
// if it's going to be ipv4 or ipv6
target: `http://127.0.0.1:${rwConfig.api.port}`,
Expand Down
30 changes: 13 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8694,7 +8694,7 @@ __metadata:
find-my-way: "npm:8.2.0"
fs-extra: "npm:11.2.0"
glob: "npm:11.0.0"
http-proxy-middleware: "npm:2.0.6"
http-proxy-middleware: "npm:3.0.0"
isbot: "npm:5.1.13"
publint: "npm:0.2.9"
react: "npm:19.0.0-beta-04b058868c-20240508"
Expand Down Expand Up @@ -10707,12 +10707,12 @@ __metadata:
languageName: node
linkType: hard

"@types/http-proxy@npm:^1.17.8":
version: 1.17.11
resolution: "@types/http-proxy@npm:1.17.11"
"@types/http-proxy@npm:^1.17.10":
version: 1.17.14
resolution: "@types/http-proxy@npm:1.17.14"
dependencies:
"@types/node": "npm:*"
checksum: 10c0/0af1bed7c1eaace924b8a316a718a702d40882dc541320ca1629c7f4ee852ef4dbef1963d4cb9e523b59dbe4d7f07e37def38b15e8ebb92d5b569b800b1c2bf7
checksum: 10c0/c4bffd87be9aff7e879c05bd2c28716220e0eb39788e3f8d314eee665324ad8f5f0919041cbd710254d553cd9cea023f8b776d4b1ec31d2188eac60af18c3022
languageName: node
linkType: hard

Expand Down Expand Up @@ -18887,21 +18887,17 @@ __metadata:
languageName: node
linkType: hard

"http-proxy-middleware@npm:2.0.6":
version: 2.0.6
resolution: "http-proxy-middleware@npm:2.0.6"
"http-proxy-middleware@npm:3.0.0":
version: 3.0.0
resolution: "http-proxy-middleware@npm:3.0.0"
dependencies:
"@types/http-proxy": "npm:^1.17.8"
"@types/http-proxy": "npm:^1.17.10"
debug: "npm:^4.3.4"
http-proxy: "npm:^1.18.1"
is-glob: "npm:^4.0.1"
is-plain-obj: "npm:^3.0.0"
micromatch: "npm:^4.0.2"
peerDependencies:
"@types/express": ^4.17.13
peerDependenciesMeta:
"@types/express":
optional: true
checksum: 10c0/25a0e550dd1900ee5048a692e0e9b2b6339d06d487a705d90c47e359e9c6561d648cd7862d001d090e651c9efffa1b6e5160fcf1f299b5fa4935f76e9754eb11
micromatch: "npm:^4.0.5"
checksum: 10c0/a3da2e9211483834384c27ad37dcff00dc8ea4990bb791f1383d3a5951f28f77fdc41dbaf2501a6607dcfca3dacac11e43bda22c4f68224abe532cbab8983ede
languageName: node
linkType: hard

Expand Down Expand Up @@ -22284,7 +22280,7 @@ __metadata:
languageName: node
linkType: hard

"micromatch@npm:^4.0.2, micromatch@npm:^4.0.4, micromatch@npm:^4.0.5":
"micromatch@npm:^4.0.4, micromatch@npm:^4.0.5":
version: 4.0.5
resolution: "micromatch@npm:4.0.5"
dependencies:
Expand Down

0 comments on commit c19bbbd

Please sign in to comment.