Skip to content

[DX] Bump http-proxy-middleware@3 - #5924

Open
Patrick Sean Odugboche (Podugboch) wants to merge 1 commit into
microsoft:mainfrom
Podugboch:bump-http-proxy-middleware-3
Open

Patrick Sean Odugboche (Podugboch) wants to merge 1 commit into
microsoft:mainfrom
Podugboch:bump-http-proxy-middleware-3

Conversation

@Podugboch

@Podugboch Patrick Sean Odugboche (Podugboch) commented Oct 19, 2026 •

Copy link
Copy Markdown

Fixes #5178

Changelog Entry

Changed

  • 👷🏻 Bumped http-proxy-middleware to 3.0.0, fixes #5178, by @Podugboch

Description

Bumps http-proxy-middleware to version 3.0.0 across the test harness and sample proxy setups, migrating event listeners from onProxyRes to on: { proxyRes: ... } required by http-proxy-middleware@3.

Specific Changes

  • Removed http-proxy-middleware@2 from packages/test/harness/package.json/pinDependencies

  • Bumped http-proxy-middleware to ^3.0.0 in packages/test/harness/package.json

  • Migrated onProxyRes handler to on: { proxyRes: ... } in packages/test/harness/src/host/jest-server/index.js

  • Updated samples/07.advanced-web-chat-apps/b.sso-for-enterprise/app/src/setupProxy.js to use named createProxyMiddleware import consistent with other samples

  • Added changelog entry in CHANGELOG.md

  • I have added tests and executed them locally

  • I have updated CHANGELOG.md

  • I have updated documentation

Review Checklist

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The sample retains an unsupported two-argument proxy call that prevents development-server startup.

1 open issue
What changed in this PR

Updates the test harness and enterprise SSO sample toward http-proxy-middleware v3 compatibility, addressing #5178.

Changes:

  • Removes the harness’s v2 pin and upgrades its dependency.
  • Migrates proxy response events and the sample’s factory import.
  • Adds a changelog entry.
File Description
samples/​07.advanced-web-chat-apps/​b.sso-for-enterprise/​app/​src/​setupProxy.js Uses the named proxy factory import.
packages/​test/​harness/​src/​host/​jest-server/​index.js Migrates to on.proxyRes.
packages/​test/​harness/​package.json Removes the v2 pin and selects v3.
CHANGELOG.md Documents the upgrade.

Review effort: Balanced

// Passthru-ing API traffic to /rest-api/
module.exports = app => {
app.use(proxy('/api', { target: 'http://localhost:5000/' }));
app.use(createProxyMiddleware('/api', { target: 'http://localhost:5000/' }));
@Podugboch

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DX] Bump http-proxy-middleware@3

2 participants