@best-shot/dev-server 0.18.4 → 0.19.0

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/lib/server.mjs CHANGED
@@ -23,6 +23,9 @@ export class DevServer extends WebpackDevServer.default {
23
23
  ...item,
24
24
  }));
25
25
 
26
+ options.client ??= {};
27
+ options.client.progress ??= 'circular';
28
+
26
29
  options.hot ??= 'only';
27
30
  options.static ??= false;
28
31
  options.allowedHosts ??= ['all'];
@@ -8,14 +8,17 @@ export function apply(compiler) {
8
8
  webpackDevServerWaitpage.plugin().apply(compiler);
9
9
  }
10
10
 
11
- export function middleware(server) {
11
+ export function middleware({ compiler }) {
12
12
  const template = readFileSync(
13
13
  new URL('./template.ejs', import.meta.url),
14
14
  'utf8',
15
15
  );
16
16
 
17
- return webpackDevServerWaitpage(server, {
18
- template,
19
- ignore: (req) => isRaw(req.url),
20
- });
17
+ return webpackDevServerWaitpage(
18
+ { middleware: { context: { compiler } } },
19
+ {
20
+ template,
21
+ ignore: (req) => isRaw(req.url),
22
+ },
23
+ );
21
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@best-shot/dev-server",
3
- "version": "0.18.4",
3
+ "version": "0.19.0",
4
4
  "description": "DevServer support of `@best-shot/cli`",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -32,19 +32,19 @@
32
32
  "main": "index.mjs",
33
33
  "type": "module",
34
34
  "dependencies": {
35
- "chalk": "^5.3.0",
35
+ "chalk": "^5.4.0",
36
36
  "ejs": "^3.1.10",
37
- "express": "^4.21.1",
37
+ "express": "^4.21.2",
38
38
  "launch-editor-middleware": "^2.9.1",
39
- "webpack-dev-server": "~5.0.4",
39
+ "webpack-dev-server": "~5.2.0",
40
40
  "webpack-dev-server-waitpage": "^3.0.0",
41
- "@best-shot/config": "~0.6.2"
41
+ "@best-shot/config": "~0.7.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@best-shot/cli": "~0.16.4"
44
+ "@best-shot/cli": "~0.17.0"
45
45
  },
46
46
  "engines": {
47
- "node": ">=22.0.0 || ^18.20.4 || ^20.15.0"
47
+ "node": ">=22.11.0 || ^18.20.4 || ^20.15.0"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public",