Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack/webpack-dev-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.15.1
Choose a base ref
...
head repository: webpack/webpack-dev-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.2
Choose a head ref

Commits on Jan 22, 2024

  1. build!: minimum supported Nodejs version is 14.15.0 (#4645)

    BREAKING CHANGE: minimum supported Nodejs version is 14.15.0
    snitin315 authored and alexander-akait committed Jan 22, 2024
    Copy the full SHA
    ebe7ce8 View commit details
  2. Copy the full SHA
    07dea78 View commit details
  3. Copy the full SHA
    eca342d View commit details
  4. Copy the full SHA
    a5766b6 View commit details
  5. Copy the full SHA
    2dff0f5 View commit details
  6. Copy the full SHA
    4bf1a6f View commit details
  7. Copy the full SHA
    fde2697 View commit details
  8. Copy the full SHA
    1dfa24d View commit details
  9. Copy the full SHA
    1e86e37 View commit details
  10. Copy the full SHA
    3ff32b5 View commit details
  11. Copy the full SHA
    5fc5ddf View commit details
  12. Copy the full SHA
    dc70b87 View commit details
  13. Copy the full SHA
    51d41ec View commit details
  14. Copy the full SHA
    70ad574 View commit details
  15. refactor!: allow only Array for the proxy option (#4694)

    * refactor!: allow only Array for the proxy option
    
    * test: fix ci
    
    * chore: fix lint
    snitin315 authored and alexander-akait committed Jan 22, 2024
    Copy the full SHA
    d764325 View commit details
  16. Copy the full SHA
    afbc9bd View commit details
  17. Copy the full SHA
    8778a31 View commit details
  18. Copy the full SHA
    5c4006a View commit details
  19. Copy the full SHA
    6f285e3 View commit details
  20. Copy the full SHA
    5ca7120 View commit details
  21. Copy the full SHA
    8501d13 View commit details
  22. Copy the full SHA
    fd7ef49 View commit details
  23. Copy the full SHA
    98c3bfd View commit details
  24. Copy the full SHA
    080fa4a View commit details
  25. chore: udpate jest (#4810)

    snitin315 authored and alexander-akait committed Jan 22, 2024
    Copy the full SHA
    29a8de4 View commit details
  26. ci: add Node.js v20 (#4821)

    snitin315 authored and alexander-akait committed Jan 22, 2024
    Copy the full SHA
    2d75643 View commit details
  27. Copy the full SHA
    504b464 View commit details
  28. Copy the full SHA
    01f35c1 View commit details
  29. Copy the full SHA
    d70a421 View commit details
  30. Copy the full SHA
    cb24f40 View commit details
  31. Copy the full SHA
    29bbdf9 View commit details
  32. Copy the full SHA
    5a32096 View commit details
  33. Copy the full SHA
    519ed92 View commit details
  34. build!: minimum supported Nodejs version is 16.10.0 (#4882)

    * build!: minimum supported Nodejs version is 16.0.0
    
    * chore: update lockfile
    
    * build!: minimum supported Nodejs version is 16.10.0
    snitin315 authored and alexander-akait committed Jan 22, 2024
    Copy the full SHA
    0b6b1ce View commit details
  35. Copy the full SHA
    12080b0 View commit details
  36. Copy the full SHA
    d35953d View commit details
  37. Copy the full SHA
    d8eba73 View commit details
  38. Copy the full SHA
    62e4e29 View commit details
  39. Copy the full SHA
    2ddeec7 View commit details
  40. Copy the full SHA
    a2c09f5 View commit details
  41. Copy the full SHA
    be84c4f View commit details
  42. Copy the full SHA
    ef1c89d View commit details
  43. Copy the full SHA
    a6bea75 View commit details
  44. Copy the full SHA
    eb8033b View commit details
  45. Copy the full SHA
    e5ed5ed View commit details
  46. Copy the full SHA
    b9e968d View commit details
  47. Copy the full SHA
    cf0f883 View commit details
  48. Copy the full SHA
    9380991 View commit details
  49. Copy the full SHA
    1cfd6ca View commit details
  50. Copy the full SHA
    41ce65c View commit details
Showing 311 changed files with 24,186 additions and 48,385 deletions.
81 changes: 81 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"version": "0.2",
"language": "en,en-gb",
"words": [
"camelcase",
"tapable",
"sockjs",
"spdy",
"memfs",
"execa",
"networkidle",
"ipaddr",
"pageerror",
"unmock",
"testhost",
"USEPOLLING",
"colorette",
"selfsigned",
"portfinder",
"xlink",
"instanceof",
"Heyo",
"domcontentloaded",
"historyapifallback",
"pems",
"localdomain",
"unshift",
"Zeroconf",
"webworker",
"devserver",
"logspam",
"Sindre",
"Sorhus",
"esmodules",
"CAFC",
"FACCA",
"darkgrey",
"Consolas",
"peerigon",
"Ichigo",
"Kurosaki",
"typeof",
"parseable",
"proxyfalse",
"klona",
"sessionattached",
"zenitsu",
"chuntaro",
"nwjs",
"myhost",
"ƕrrn",
"Fƅsq",
"G'RД",
"ECONNREFUSED",
"taskkill",
"testhouse",
"mwarn",
"mansi",
"nosources",
"Heyyy",
"oipqj",
"breakpad",
"infobars",
"omnibox",
"swiftshader",
"hoge",
"subsubcomain"
],
"ignorePaths": [
"CHANGELOG.md",
"coverage",
"package.json",
"dist/**",
"client/**",
"**/__snapshots__/**",
"package-lock.json",
"node_modules",
"coverage",
"*.log"
]
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -3,3 +3,6 @@
!/test/client
coverage
node_modules
examples/**/main.js
examples/client/trusted-types-overlay/app.js
test/fixtures/reload-config/foo.js
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -8,10 +8,9 @@ about: Something went awry and you'd like to tell us about it.

### Bug report

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- Please ask questions on discussions or StackOverflow. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Actual Behavior
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/DOCS.md
Original file line number Diff line number Diff line change
@@ -20,7 +20,6 @@ Documentation Is:
<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Your Proposal for Changes
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/FEATURE.md
Original file line number Diff line number Diff line change
@@ -8,10 +8,9 @@ about: Suggest an idea for this project

### Feature Proposal

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- Please ask questions on discussions or StackOverflow. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Feature Use Case
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/MODIFICATION.md
Original file line number Diff line number Diff line change
@@ -8,10 +8,9 @@ about: Would you like something work differently? Have an alternative approach?

### Modification Proposal

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- Please ask questions on discussions or StackOverflow. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Expected Behavior / Situation
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
name: 🆘 Support, Help, and Advice
about: 👉🏽 Need support, help, or advice? Don't open an issue! Head to https://github.com/webpack/webpack/discussions, StackOverflow or https://gitter.im/webpack/webpack.
about: 👉🏽 Need support, help, or advice? Don't open an issue! Head to https://github.com/webpack/webpack/discussions or StackOverflow
---

Hey there! If you need support, help, or advice then this is not the place to ask.
Please visit [Discussions](https://github.com/webpack/webpack/discussions), [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.
Please visit [GitHub Discussions](https://github.com/webpack/webpack/discussions) or [StackOverflow](https://stackoverflow.com/questions/tagged/webpack) instead.
23 changes: 0 additions & 23 deletions .github/workflows/cancel.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -11,4 +11,4 @@ jobs:
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Dependency Review"
uses: actions/dependency-review-action@v2
uses: actions/dependency-review-action@v3
47 changes: 27 additions & 20 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -25,17 +25,21 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
node-version: [lts/*]

runs-on: ${{ matrix.os }}

concurrency:
group: lint-${{ matrix.os }}-v${{ matrix.node-version }}-${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
@@ -56,43 +60,41 @@ jobs:
run: npm audit --production

- name: Check commit message
uses: wagoid/commitlint-github-action@v4
uses: wagoid/commitlint-github-action@v5

test:
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }} (${{ matrix.shard }})

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 14.x, 16.x, 18.x, 19.x]
node-version: [18.x, 20.x, 21.x]
shard: ["1/4", "2/4", "3/4", "4/4"]
webpack-version: [latest]
include:
- node-version: 16.x
os: ubuntu-latest
webpack-version: 4

runs-on: ${{ matrix.os }}

concurrency:
group: test-${{ matrix.os }}-v${{ matrix.node-version }}-${{ matrix.webpack-version }}-${{ matrix.shard }}-${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Update package.json for webpack@4
if: matrix.webpack-version == '4'
run: echo "`jq '.scripts.build="npm run build:client"' package.json`" > package.json

- name: Install webpack ${{ matrix.webpack-version }}
if: matrix.webpack-version == '4'
run: npm i webpack@${{ matrix.webpack-version }} --save-dev --ignore-scripts
- name: Install dependencies for Node.js@18
run: |
npm i p-retry@^4.5.0 open@^8.0.9
node ./scripts/prepare-test-for-old-node.js
if: matrix.node-version == '18.x'

- name: Setup firefox
if: matrix.os != 'windows-latest'
@@ -103,13 +105,18 @@ jobs:
- name: Link webpack-dev-server
run: |
cp -R client tmp-client
npm link --ignore-scripts
npm link webpack-dev-server --ignore-scripts
npm link --ignore-scripts || true
npm link webpack-dev-server --ignore-scripts || true
rm -r client
cp -R tmp-client client
- name: Run tests for webpack version ${{ matrix.webpack-version }}
run: node_modules/.bin/jest --coverage --ci --shard=${{ matrix.shard }}
if: matrix.node-version == '18.x'

- name: Run tests for webpack version ${{ matrix.webpack-version }}
run: npm run test:coverage -- --ci --shard=${{ matrix.shard }}
if: matrix.node-version != '18.x'

- name: Submit coverage data to codecov
uses: codecov/codecov-action@v3
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ yarn.lock
yarn-error.log

.eslintcache
.cspellcache

test/fixtures/static-config/public/assets/non-exist.txt
test/fixtures/watch-files-config/public/assets/non-exist.txt
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -3,3 +3,4 @@
coverage
node_modules
CHANGELOG.md
examples/client/trusted-types-overlay/app.js
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,25 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [5.0.2](https://github.com/webpack/webpack-dev-server/compare/v5.0.1...v5.0.2) (2024-02-16)


### Bug Fixes

* types ([#5057](https://github.com/webpack/webpack-dev-server/issues/5057)) ([da2c24d](https://github.com/webpack/webpack-dev-server/commit/da2c24ddd92198a1337553457eedcece6af38195))

### [5.0.1](https://github.com/webpack/webpack-dev-server/compare/v5.0.0...v5.0.1) (2024-02-13)


### Bug Fixes

* avoid using eval in client ([#5045](https://github.com/webpack/webpack-dev-server/issues/5045)) ([7681477](https://github.com/webpack/webpack-dev-server/commit/76814771dcebe80628b4462f5e1d30064ae226d5))
* overlay and `require-trusted-types-for` ([#5046](https://github.com/webpack/webpack-dev-server/issues/5046)) ([e115436](https://github.com/webpack/webpack-dev-server/commit/e11543677120b004d1f20e11fdf34c07897c7b0c))

## [5.0.0](https://github.com/webpack/webpack-dev-server/compare/v4.15.1...v5.0.0) (2024-02-12)

[Migration Guide and Changes](https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md).

### [4.15.1](https://github.com/webpack/webpack-dev-server/compare/v4.15.0...v4.15.1) (2023-06-09)


Loading