@rspack/dev-server 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,6 +5,13 @@
5
5
 
6
6
  # @rspack/dev-server
7
7
 
8
+ <p>
9
+ <a href="https://npmjs.com/package/@rspack/dev-server?activeTab=readme"><img src="https://img.shields.io/npm/v/@rspack/dev-server?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a>
10
+ <a href="https://npmcharts.com/compare/@rspack/dev-server?minimal=true"><img src="https://img.shields.io/npm/dm/@rspack/dev-server.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
11
+ <a href="https://nodejs.org/en/about/previous-releases"><img src="https://img.shields.io/node/v/@rspack/dev-server.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="node version"></a>
12
+ <a href="https://github.com/web-infra-dev/rspack-dev-server/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="license" /></a>
13
+ </p>
14
+
8
15
  Use Rspack with a development server that provides live reloading. This should be used for development only.
9
16
 
10
17
  > `@rspack/dev-server` is based on `webpack-dev-server@5`
package/client/index.js CHANGED
@@ -207,9 +207,12 @@ var onSocketMessage = {
207
207
  sendMessage("Invalid");
208
208
  },
209
209
  /**
210
- * @param {string} hash
210
+ * @param {string | undefined} _hash
211
211
  */
212
212
  hash: function hash(_hash) {
213
+ if (!_hash) {
214
+ return;
215
+ }
213
216
  status.previousHash = status.currentHash;
214
217
  status.currentHash = _hash;
215
218
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/dev-server",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "license": "MIT",
5
5
  "description": "Development server for rspack",
6
6
  "main": "./dist/index.js",
@@ -30,6 +30,9 @@
30
30
  "dist",
31
31
  "client"
32
32
  ],
33
+ "engines": {
34
+ "node": ">= 18.12.0"
35
+ },
33
36
  "homepage": "https://rspack.dev",
34
37
  "bugs": "https://github.com/web-infra-dev/rspack-dev-server/issues",
35
38
  "repository": {
@@ -39,7 +42,7 @@
39
42
  "devDependencies": {
40
43
  "@biomejs/biome": "^1.8.3",
41
44
  "@jest/test-sequencer": "^29.7.0",
42
- "@rspack/core": "1.0.6",
45
+ "@rspack/core": "1.0.11",
43
46
  "@rspack/plugin-react-refresh": "1.0.0",
44
47
  "@types/connect-history-api-fallback": "1.5.4",
45
48
  "@types/express": "4.17.21",