@rspack/dev-server 2.0.0-rc.2 → 2.0.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.
@@ -1,31 +1,3 @@
1
- /*!
2
- * Array of passes.
3
- *
4
- * A `pass` is just a function that is executed on `req, res, options`
5
- * so that you can easily add new checks while still keeping the base
6
- * flexible.
7
- */
8
-
9
- /*!
10
- * Array of passes.
11
- *
12
- * A `pass` is just a function that is executed on `req, socket, options`
13
- * so that you can easily add new checks while still keeping the base
14
- * flexible.
15
- */
16
-
17
- /*!
18
- * Caron dimonio, con occhi di bragia
19
- * loro accennando, tutte le raccoglie;
20
- * batte col remo qualunque s’adagia
21
- *
22
- * Charon the demon, with the eyes of glede,
23
- * Beckoning to them, collects them all together,
24
- * Beats with his oar whoever lags behind
25
- *
26
- * Dante - The Divine Comedy (Canto III)
27
- */
28
-
29
1
  /*!
30
2
  * fill-range <https://github.com/jonschlinkert/fill-range>
31
3
  *
@@ -54,13 +26,6 @@
54
26
  * Released under the MIT License.
55
27
  */
56
28
 
57
- /*!
58
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
59
- *
60
- * Copyright (c) 2014-2017, Jon Schlinkert.
61
- * Released under the MIT License.
62
- */
63
-
64
29
  /*!
65
30
  * to-regex-range <https://github.com/micromatch/to-regex-range>
66
31
  *
@@ -1,5 +1,5 @@
1
- import { __webpack_require__ } from "./108.js";
2
- import "./108.js";
1
+ import { __webpack_require__ } from "./198.js";
2
+ import "./198.js";
3
3
  __webpack_require__.add({
4
4
  "./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js" (module) {
5
5
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /*! LICENSE: 0~serve-static.js.LICENSE.txt */
2
- import { __webpack_require__ } from "./108.js";
3
- import "./108.js";
2
+ import { __webpack_require__ } from "./198.js";
3
+ import "./198.js";
4
4
  import "./0~debug.js";
5
5
  __webpack_require__.add({
6
6
  "./node_modules/.pnpm/depd@2.0.0/node_modules/depd/index.js" (module, __unused_rspack_exports, __webpack_require__) {
@@ -85,7 +85,7 @@ var __webpack_require__temp = __webpack_require__;
85
85
  })();
86
86
  (()=>{
87
87
  var installedChunks = {
88
- 108: 0,
88
+ 198: 0,
89
89
  410: 0
90
90
  };
91
91
  var installChunk = (data)=>{
@@ -104,7 +104,7 @@ var __webpack_require__temp = __webpack_require__;
104
104
  __webpack_require__.C = installChunk;
105
105
  })();
106
106
  __webpack_require__.add({
107
- "./node_modules/.pnpm/http-compression@1.1.2/node_modules/http-compression/src/index.js" (module, __unused_rspack_exports, __webpack_require__) {
107
+ "./node_modules/.pnpm/http-compression@1.1.3/node_modules/http-compression/src/index.js" (module, __unused_rspack_exports, __webpack_require__) {
108
108
  const zlib = __webpack_require__("zlib");
109
109
  const MIMES = /text|javascript|\/json|xml/i;
110
110
  const noop = ()=>{};
@@ -3701,9 +3701,6 @@ __webpack_require__.add({
3701
3701
  }
3702
3702
  }
3703
3703
  },
3704
- assert (module) {
3705
- module.exports = __rspack_createRequire_require("assert");
3706
- },
3707
3704
  async_hooks (module) {
3708
3705
  module.exports = __rspack_createRequire_require("async_hooks");
3709
3706
  },
@@ -3737,9 +3734,6 @@ __webpack_require__.add({
3737
3734
  path (module) {
3738
3735
  module.exports = __rspack_createRequire_require("path");
3739
3736
  },
3740
- querystring (module) {
3741
- module.exports = __rspack_createRequire_require("querystring");
3742
- },
3743
3737
  stream (module) {
3744
3738
  module.exports = __rspack_createRequire_require("stream");
3745
3739
  },
@@ -3879,7 +3873,7 @@ class WebsocketServer extends servers_BaseServer {
3879
3873
  });
3880
3874
  }
3881
3875
  }
3882
- const src = __webpack_require__("./node_modules/.pnpm/http-compression@1.1.2/node_modules/http-compression/src/index.js");
3876
+ const src = __webpack_require__("./node_modules/.pnpm/http-compression@1.1.3/node_modules/http-compression/src/index.js");
3883
3877
  var src_default = /*#__PURE__*/ __webpack_require__.n(src);
3884
3878
  const ipaddr = __webpack_require__("./node_modules/.pnpm/ipaddr.js@2.3.0/node_modules/ipaddr.js/lib/ipaddr.js");
3885
3879
  var ipaddr_default = /*#__PURE__*/ __webpack_require__.n(ipaddr);
@@ -4447,7 +4441,7 @@ class Server {
4447
4441
  #getClientTransport() {
4448
4442
  let clientImplementation;
4449
4443
  let clientImplementationFound = true;
4450
- let clientTransport = 'object' == typeof this.options.client && null !== this.options.client && void 0 !== this.options.client.webSocketTransport ? this.options.client.webSocketTransport : 'ws';
4444
+ const clientTransport = 'object' == typeof this.options.client && null !== this.options.client && void 0 !== this.options.client.webSocketTransport ? this.options.client.webSocketTransport : 'ws';
4451
4445
  switch(typeof clientTransport){
4452
4446
  case 'string':
4453
4447
  if ('sockjs' === clientTransport) throw new Error("SockJS support has been removed. Please set client.webSocketTransport to 'ws' or provide a custom transport implementation path.");
@@ -4721,7 +4715,7 @@ class Server {
4721
4715
  }
4722
4716
  });
4723
4717
  if (this.options.proxy) {
4724
- const { createProxyMiddleware } = await import("./0~http-proxy-middleware.js").then(__webpack_require__.t.bind(__webpack_require__, "./node_modules/.pnpm/http-proxy-middleware@3.0.5/node_modules/http-proxy-middleware/dist/index.js", 23));
4718
+ const { createProxyMiddleware } = await import("./0~http-proxy-middleware.js");
4725
4719
  const getProxyMiddleware = (proxyConfig)=>{
4726
4720
  const { context, ...proxyOptions } = proxyConfig;
4727
4721
  const pathFilter = proxyOptions.pathFilter ?? context;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { RspackDevServer } from "./108.js";
1
+ export { RspackDevServer } from "./198.js";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@rspack/dev-server",
3
- "version": "2.0.0-rc.2",
4
- "description": "Development server for rspack",
5
- "homepage": "https://rspack.rs",
3
+ "version": "2.0.0",
4
+ "description": "Development server for Rspack",
5
+ "homepage": "https://github.com/rstackjs/rspack-dev-server",
6
6
  "bugs": "https://github.com/rstackjs/rspack-dev-server/issues",
7
7
  "repository": {
8
8
  "type": "git",
@@ -46,19 +46,19 @@
46
46
  ]
47
47
  },
48
48
  "dependencies": {
49
- "@rspack/dev-middleware": "^2.0.0"
49
+ "@rspack/dev-middleware": "^2.0.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@hono/node-server": "^1.19.12",
53
- "@microsoft/api-extractor": "^7.58.0",
54
- "@rslib/core": "^0.20.2",
55
- "@rslint/core": "^0.3.4",
52
+ "@hono/node-server": "^1.19.14",
53
+ "@microsoft/api-extractor": "^7.58.2",
54
+ "@rslib/core": "^0.21.1",
55
+ "@rslint/core": "^0.4.2",
56
56
  "@rspack/core": "2.0.0-rc.0",
57
- "@rspack/plugin-react-refresh": "1.6.1",
58
- "@rstest/core": "^0.9.5",
57
+ "@rspack/plugin-react-refresh": "1.6.2",
58
+ "@rstest/core": "^0.9.7",
59
59
  "@types/connect-history-api-fallback": "^1.5.4",
60
60
  "@types/mime-types": "3.0.1",
61
- "@types/node": "^24.12.0",
61
+ "@types/node": "^24.12.2",
62
62
  "@types/serve-static": "^2.2.0",
63
63
  "@types/trusted-types": "^2.0.7",
64
64
  "@types/ws": "8.18.1",
@@ -67,16 +67,16 @@
67
67
  "connect-next": "^4.0.1",
68
68
  "cross-env": "^10.1.0",
69
69
  "express": "^5.2.1",
70
- "hono": "^4.12.9",
71
- "http-compression": "^1.1.2",
70
+ "hono": "^4.12.14",
71
+ "http-compression": "^1.1.3",
72
72
  "http-proxy": "^1.18.1",
73
- "http-proxy-middleware": "^3.0.5",
73
+ "http-proxy-middleware": "4.0.0-beta.3",
74
74
  "ipaddr.js": "^2.3.0",
75
75
  "launch-editor": "^2.13.2",
76
76
  "nano-staged": "^0.9.0",
77
77
  "open": "^11.0.0",
78
78
  "p-retry": "^7.1.1",
79
- "prettier": "3.8.1",
79
+ "prettier": "3.8.3",
80
80
  "puppeteer": "^24.40.0",
81
81
  "react-refresh": "0.18.0",
82
82
  "require-from-string": "^2.0.2",