Skip to content

chore(deps-dev): Bump webpack-dev-server from 4.15.2 to 5.2.1#2622

Merged
ankita10119 merged 1 commit intomasterfrom
dependabot/npm_and_yarn/webpack-dev-server-5.2.1
Apr 2, 2026
Merged

chore(deps-dev): Bump webpack-dev-server from 4.15.2 to 5.2.1#2622
ankita10119 merged 1 commit intomasterfrom
dependabot/npm_and_yarn/webpack-dev-server-5.2.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Jun 5, 2025

Bumps webpack-dev-server from 4.15.2 to 5.2.1.

Release notes

Sourced from webpack-dev-server's releases.

v5.2.1

5.2.1 (2025-03-26)

Security

  • cross-origin requests are not allowed unless allowed by Access-Control-Allow-Origin header
  • requests with an IP addresses in the Origin header are not allowed to connect to WebSocket server unless configured by allowedHosts or it different from the Host header

The above changes may make the dev server not work if you relied on such behavior, but unfortunately they carry security risks, so they were considered as fixes.

Bug Fixes

  • prevent overlay for errors caught by React error boundaries (#5431) (8c1abc9)
  • take the first network found instead of the last one, this restores the same behavior as 5.0.4 (#5411) (ffd0b86)

v5.2.0

5.2.0 (2024-12-11)

Features

  • added getClientEntry and getClientHotEntry methods to get clients entries (dc642a8)

Bug Fixes

  • speed up initial client bundling (145b5d0)

v5.1.0

5.1.0 (2024-09-03)

Features

  • add visual progress indicators (a8f40b7)
  • added the app option to be Function (by default only with connect compatibility frameworks) (3096148)
  • allow the server option to be Function (#5275) (02a1c6d)
  • http2 support for connect and connect compatibility frameworks which support HTTP2 (#5267) (6509a3f)

Bug Fixes

v5.0.4

5.0.4 (2024-03-19)

... (truncated)

Changelog

Sourced from webpack-dev-server's changelog.

5.2.1 (2025-03-26)

Security

  • cross-origin requests are not allowed unless allowed by Access-Control-Allow-Origin header
  • requests with an IP addresses in the Origin header are not allowed to connect to WebSocket server unless configured by allowedHosts or it different from the Host header

The above changes may make the dev server not work if you relied on such behavior, but unfortunately they carry security risks, so they were considered as fixes.

Bug Fixes

  • prevent overlay for errors caught by React error boundaries (#5431) (8c1abc9)
  • take the first network found instead of the last one, this restores the same behavior as 5.0.4 (#5411) (ffd0b86)

5.2.0 (2024-12-11)

Features

  • added getClientEntry and getClientHotEntry methods to get clients entries (dc642a8)

Bug Fixes

  • speed up initial client bundling (145b5d0)

5.1.0 (2024-09-03)

Features

  • add visual progress indicators (a8f40b7)
  • added the app option to be Function (by default only with connect compatibility frameworks) (3096148)
  • allow the server option to be Function (#5275) (02a1c6d)
  • http2 support for connect and connect compatibility frameworks which support HTTP2 (#5267) (6509a3f)

Bug Fixes

5.0.4 (2024-03-19)

Bug Fixes

... (truncated)

Commits
  • 0d22a08 chore(release): 5.2.1
  • 6045b1e chore(deps): update (#5444)
  • ffd0b86 fix: take the first network found instead of the last one, this restores the ...
  • 9ea7b08 ci: update dependency-review-action (#5442)
  • 5c9378b Merge commit from fork
  • d2575ad Merge commit from fork
  • 8c1abc9 fix: prevent overlay for errors caught by React error boundaries (#5431)
  • 5a39c70 ci: update codecov/codecov-action to v5 (#5406)
  • 55220a8 chore(deps-dev): bump the dependencies group across 1 directory with 4 update...
  • 09f6f8e chore(deps): bump the dependencies group across 1 directory with 2 updates (#...
  • Additional commits viewable in compare view
Install script changes

This version modifies prepare script that runs during installation. Review the package contents before updating.


@dependabot dependabot bot added dependencies One or more dependencies are being bumped javascript Pull requests that update Javascript code labels Jun 5, 2025
@dependabot dependabot bot requested a review from a team as a code owner June 5, 2025 02:23
@dependabot dependabot bot added dependencies One or more dependencies are being bumped javascript Pull requests that update Javascript code labels Jun 5, 2025
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/webpack-dev-server-5.2.1 branch 2 times, most recently from d79b697 to d95ad00 Compare June 13, 2025 08:00
@ankita10119
Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/webpack-dev-server-5.2.1 branch from d95ad00 to f189106 Compare August 19, 2025 19:50
@ankita10119
Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/webpack-dev-server-5.2.1 branch from f189106 to f35a27f Compare December 16, 2025 05:48
@ankita10119
Copy link
Copy Markdown
Contributor

@claude

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 16, 2025

Claude finished @ankita10119's task —— View job


Overall Assessment

❌ This PR introduces breaking changes that require configuration updates before it can be safely merged.


Critical Issues Found

1. Breaking Configuration Change in Example Code

File: examples/bundling/webpack/webpack.config.js:9
Issue: The contentBase option was removed in webpack-dev-server v5. The example webpack configuration uses the deprecated property which will cause the dev server to fail.

Required Fix:

// BEFORE (v4)
devServer: {
  contentBase: './',
  https: true,
  port: 3000
}

// AFTER (v5)
devServer: {
  static: './',  // Changed from contentBase
  https: true,
  port: 3000
}

2. Security Changes May Affect Development Workflow

The v5.2.1 release includes important security fixes that may impact the development server:

  • Cross-origin requests are now blocked unless explicitly allowed via Access-Control-Allow-Origin headers
  • Requests with IP addresses in the Origin header are restricted unless configured in allowedHosts

Impact: If developers rely on cross-origin requests during development, the dev server may reject these requests after this upgrade.

Recommended Action: Add explicit CORS configuration if needed:

devServer: {
  headers: {
    'Access-Control-Allow-Origin': '*',
    'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
    'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization'
  }
}

Additional Breaking Changes to Verify

The main webpack.config.js:44-52 appears compatible (uses static property correctly), but the following should be tested:

  1. Node.js Version: webpack-dev-server v5 requires Node.js ≥ 18.12.0 (up from ≥ 12.13.0 in v4)
  2. webpack-dev-middleware: Upgraded from v5 to v7 (major version change with its own breaking changes)
  3. Dependency updates: Multiple major version bumps in transitive dependencies:
    • open: v8 → v10
    • memfs: v3 → v4
    • p-retry: v4 → v6
    • is-wsl: v2 → v3
    • is-docker: v2 → v3

Required Actions Before Merge

  1. Update the example webpack config to replace contentBase with static
  2. Verify Node.js version meets the ≥18.12.0 requirement in CI/CD
  3. Test the dev server locally to ensure it starts without errors
  4. Test cross-origin scenarios if the application makes cross-origin requests during development
  5. Update documentation if developers need to configure allowedHosts or CORS headers

Recommendation

Do not merge until the breaking configuration change is fixed. The example webpack configuration must be updated to use webpack-dev-server v5 syntax, otherwise the example will be broken for users.


@ankita10119
Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/webpack-dev-server-5.2.1 branch from f35a27f to 30b4cbf Compare January 20, 2026 17:31
@ankita10119
Copy link
Copy Markdown
Contributor

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/webpack-dev-server-5.2.1 branch from 30b4cbf to ecc1f4e Compare February 13, 2026 09:34
@ankita10119
Copy link
Copy Markdown
Contributor

@dependabot recreate

Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.15.2 to 5.2.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](webpack/webpack-dev-server@v4.15.2...v5.2.1)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-version: 5.2.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/webpack-dev-server-5.2.1 branch from ecc1f4e to 18a0a9a Compare April 1, 2026 11:37
@ankita10119 ankita10119 merged commit aee5361 into master Apr 2, 2026
4 of 5 checks passed
@ankita10119 ankita10119 deleted the dependabot/npm_and_yarn/webpack-dev-server-5.2.1 branch April 2, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies One or more dependencies are being bumped javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant