@lynx-js/rspeedy-canary 0.11.7-canary-20251016-7570a5ec → 0.11.7-canary-20251021-353312e0

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/CHANGELOG.md CHANGED
@@ -1,11 +1,18 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.11.7-canary-20251016075126-7570a5ecfa8d023d40e68904ec7dd0591925a6f0
3
+ ## 0.11.7-canary-20251021133927-353312e019539895fa386dca2dafe5f001e10e6d
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Bump Rsbuild v1.5.17. ([#1889](https://github.com/lynx-family/lynx-stack/pull/1889))
8
8
 
9
+ - feat: support web preview in rspeedy dev ([#1893](https://github.com/lynx-family/lynx-stack/pull/1893))
10
+
11
+ - support web preview in rspeedy dev (experimental)
12
+
13
+ - Updated dependencies []:
14
+ - @lynx-js/web-rsbuild-server-middleware@0.18.1-canary-20251021133927-353312e019539895fa386dca2dafe5f001e10e6d
15
+
9
16
  ## 0.11.6
10
17
 
11
18
  ### Patch Changes
@@ -1494,9 +1494,9 @@ export const __webpack_modules__ = {
1494
1494
  if (void 0 === value) return true;
1495
1495
  return "string" == typeof value || "boolean" == typeof value;
1496
1496
  });
1497
- const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@926"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1497
+ const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6827"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1498
1498
  if ([
1499
- "__@toStringTag@926"
1499
+ "__@toStringTag@6827"
1500
1500
  ].some((prop)=>key === prop)) return true;
1501
1501
  const value = input[key];
1502
1502
  if (void 0 === value) return true;
@@ -3105,14 +3105,14 @@ export const __webpack_modules__ = {
3105
3105
  if (void 0 === value) return true;
3106
3106
  return false;
3107
3107
  })));
3108
- const _io149 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@926"] && Object.keys(input).every((key)=>{
3108
+ const _io149 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@6827"] && Object.keys(input).every((key)=>{
3109
3109
  if ([
3110
3110
  "BYTES_PER_ELEMENT",
3111
3111
  "buffer",
3112
3112
  "byteLength",
3113
3113
  "byteOffset",
3114
3114
  "length",
3115
- "__@toStringTag@926"
3115
+ "__@toStringTag@6827"
3116
3116
  ].some((prop)=>key === prop)) return true;
3117
3117
  const value = input[key];
3118
3118
  if (void 0 === value) return true;
@@ -6392,9 +6392,9 @@ export const __webpack_modules__ = {
6392
6392
  if (void 0 === value) return true;
6393
6393
  return false;
6394
6394
  }));
6395
- const _io408 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@926"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6395
+ const _io408 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6827"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6396
6396
  if ([
6397
- "__@toStringTag@926"
6397
+ "__@toStringTag@6827"
6398
6398
  ].some((prop)=>key === prop)) return true;
6399
6399
  const value = input[key];
6400
6400
  if (void 0 === value) return true;
@@ -7147,18 +7147,18 @@ export const __webpack_modules__ = {
7147
7147
  return false;
7148
7148
  })();
7149
7149
  const _iu1 = (input, _exceptionable = true)=>(()=>{
7150
- if (void 0 !== input["__@toStringTag@926"]) return _io149(input, _exceptionable);
7150
+ if (void 0 !== input["__@toStringTag@6827"]) return _io149(input, _exceptionable);
7151
7151
  if (void 0 !== input.pem) return _io150(input, _exceptionable);
7152
7152
  return false;
7153
7153
  })();
7154
7154
  const _iu2 = (input, _exceptionable = true)=>(()=>{
7155
- if (void 0 !== input["__@toStringTag@926"]) return _io149(input, _exceptionable);
7155
+ if (void 0 !== input["__@toStringTag@6827"]) return _io149(input, _exceptionable);
7156
7156
  if (void 0 !== input.buf) return _io151(input, _exceptionable);
7157
7157
  return false;
7158
7158
  })();
7159
7159
  const _iu3 = (input, _exceptionable = true)=>(()=>{
7160
7160
  if (void 0 !== input.name) return _io407(input, _exceptionable);
7161
- if (void 0 !== input["__@toStringTag@926"]) return _io408(input, _exceptionable);
7161
+ if (void 0 !== input["__@toStringTag@6827"]) return _io408(input, _exceptionable);
7162
7162
  return false;
7163
7163
  })();
7164
7164
  const _iu4 = (input, _exceptionable = true)=>(()=>{
@@ -9774,14 +9774,14 @@ export const __webpack_modules__ = {
9774
9774
  }).every((flag)=>flag)
9775
9775
  ].every((flag)=>flag);
9776
9776
  const _vo41 = (input, _path, _exceptionable = true)=>[
9777
- "string" == typeof input["__@toStringTag@926"] || _report(_exceptionable, {
9778
- path: _path + "[\"__@toStringTag@926\"]",
9777
+ "string" == typeof input["__@toStringTag@6827"] || _report(_exceptionable, {
9778
+ path: _path + "[\"__@toStringTag@6827\"]",
9779
9779
  expected: "string",
9780
- value: input["__@toStringTag@926"]
9780
+ value: input["__@toStringTag@6827"]
9781
9781
  }),
9782
9782
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
9783
9783
  if ([
9784
- "__@toStringTag@926"
9784
+ "__@toStringTag@6827"
9785
9785
  ].some((prop)=>key === prop)) return true;
9786
9786
  const value = input[key];
9787
9787
  if (void 0 === value) return true;
@@ -18801,10 +18801,10 @@ export const __webpack_modules__ = {
18801
18801
  expected: "number",
18802
18802
  value: input.length
18803
18803
  }),
18804
- "Uint8Array" === input["__@toStringTag@926"] || _report(_exceptionable, {
18805
- path: _path + "[\"__@toStringTag@926\"]",
18804
+ "Uint8Array" === input["__@toStringTag@6827"] || _report(_exceptionable, {
18805
+ path: _path + "[\"__@toStringTag@6827\"]",
18806
18806
  expected: "\"Uint8Array\"",
18807
- value: input["__@toStringTag@926"]
18807
+ value: input["__@toStringTag@6827"]
18808
18808
  }),
18809
18809
  false === _exceptionable || Object.keys(input).map((key)=>{
18810
18810
  if ([
@@ -18813,7 +18813,7 @@ export const __webpack_modules__ = {
18813
18813
  "byteLength",
18814
18814
  "byteOffset",
18815
18815
  "length",
18816
- "__@toStringTag@926"
18816
+ "__@toStringTag@6827"
18817
18817
  ].some((prop)=>key === prop)) return true;
18818
18818
  const value = input[key];
18819
18819
  if (void 0 === value) return true;
@@ -37042,14 +37042,14 @@ export const __webpack_modules__ = {
37042
37042
  }).every((flag)=>flag)
37043
37043
  ].every((flag)=>flag);
37044
37044
  const _vo408 = (input, _path, _exceptionable = true)=>[
37045
- "string" == typeof input["__@toStringTag@926"] || _report(_exceptionable, {
37046
- path: _path + "[\"__@toStringTag@926\"]",
37045
+ "string" == typeof input["__@toStringTag@6827"] || _report(_exceptionable, {
37046
+ path: _path + "[\"__@toStringTag@6827\"]",
37047
37047
  expected: "string",
37048
- value: input["__@toStringTag@926"]
37048
+ value: input["__@toStringTag@6827"]
37049
37049
  }),
37050
37050
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
37051
37051
  if ([
37052
- "__@toStringTag@926"
37052
+ "__@toStringTag@6827"
37053
37053
  ].some((prop)=>key === prop)) return true;
37054
37054
  const value = input[key];
37055
37055
  if (void 0 === value) return true;
@@ -40930,7 +40930,7 @@ export const __webpack_modules__ = {
40930
40930
  });
40931
40931
  })();
40932
40932
  const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
40933
- if (void 0 !== input["__@toStringTag@926"]) return _vo149(input, _path, _exceptionable);
40933
+ if (void 0 !== input["__@toStringTag@6827"]) return _vo149(input, _path, _exceptionable);
40934
40934
  if (void 0 !== input.pem) return _vo150(input, _path, _exceptionable);
40935
40935
  return _report(_exceptionable, {
40936
40936
  path: _path,
@@ -40939,7 +40939,7 @@ export const __webpack_modules__ = {
40939
40939
  });
40940
40940
  })();
40941
40941
  const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
40942
- if (void 0 !== input["__@toStringTag@926"]) return _vo149(input, _path, _exceptionable);
40942
+ if (void 0 !== input["__@toStringTag@6827"]) return _vo149(input, _path, _exceptionable);
40943
40943
  if (void 0 !== input.buf) return _vo151(input, _path, _exceptionable);
40944
40944
  return _report(_exceptionable, {
40945
40945
  path: _path,
@@ -40949,7 +40949,7 @@ export const __webpack_modules__ = {
40949
40949
  })();
40950
40950
  const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
40951
40951
  if (void 0 !== input.name) return _vo407(input, _path, _exceptionable);
40952
- if (void 0 !== input["__@toStringTag@926"]) return _vo408(input, _path, _exceptionable);
40952
+ if (void 0 !== input["__@toStringTag@6827"]) return _vo408(input, _path, _exceptionable);
40953
40953
  return _report(_exceptionable, {
40954
40954
  path: _path,
40955
40955
  expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
@@ -59,6 +59,12 @@ export const __webpack_modules__ = {
59
59
  assetPrefix = `${assetPrefix}${server.base}/`;
60
60
  }
61
61
  (0, debug.Yz)(`dev.assetPrefix is normalized to ${assetPrefix}`);
62
+ api.onBeforeStartDevServer(async ({ environments, server })=>{
63
+ if (environments['web']) {
64
+ const { createWebVirtualFilesMiddleware } = await import("@lynx-js/web-rsbuild-server-middleware");
65
+ server.middlewares.use(createWebVirtualFilesMiddleware('/__web_preview'));
66
+ }
67
+ });
62
68
  api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>mergeRsbuildConfig(config, {
63
69
  dev: {
64
70
  assetPrefix,
@@ -1494,9 +1494,9 @@ export const __webpack_modules__ = {
1494
1494
  if (void 0 === value) return true;
1495
1495
  return "string" == typeof value || "boolean" == typeof value;
1496
1496
  });
1497
- const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6827"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1497
+ const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@926"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1498
1498
  if ([
1499
- "__@toStringTag@6827"
1499
+ "__@toStringTag@926"
1500
1500
  ].some((prop)=>key === prop)) return true;
1501
1501
  const value = input[key];
1502
1502
  if (void 0 === value) return true;
@@ -3105,14 +3105,14 @@ export const __webpack_modules__ = {
3105
3105
  if (void 0 === value) return true;
3106
3106
  return false;
3107
3107
  })));
3108
- const _io149 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@6827"] && Object.keys(input).every((key)=>{
3108
+ const _io149 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@926"] && Object.keys(input).every((key)=>{
3109
3109
  if ([
3110
3110
  "BYTES_PER_ELEMENT",
3111
3111
  "buffer",
3112
3112
  "byteLength",
3113
3113
  "byteOffset",
3114
3114
  "length",
3115
- "__@toStringTag@6827"
3115
+ "__@toStringTag@926"
3116
3116
  ].some((prop)=>key === prop)) return true;
3117
3117
  const value = input[key];
3118
3118
  if (void 0 === value) return true;
@@ -6392,9 +6392,9 @@ export const __webpack_modules__ = {
6392
6392
  if (void 0 === value) return true;
6393
6393
  return false;
6394
6394
  }));
6395
- const _io408 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6827"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6395
+ const _io408 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@926"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6396
6396
  if ([
6397
- "__@toStringTag@6827"
6397
+ "__@toStringTag@926"
6398
6398
  ].some((prop)=>key === prop)) return true;
6399
6399
  const value = input[key];
6400
6400
  if (void 0 === value) return true;
@@ -7147,18 +7147,18 @@ export const __webpack_modules__ = {
7147
7147
  return false;
7148
7148
  })();
7149
7149
  const _iu1 = (input, _exceptionable = true)=>(()=>{
7150
- if (void 0 !== input["__@toStringTag@6827"]) return _io149(input, _exceptionable);
7150
+ if (void 0 !== input["__@toStringTag@926"]) return _io149(input, _exceptionable);
7151
7151
  if (void 0 !== input.pem) return _io150(input, _exceptionable);
7152
7152
  return false;
7153
7153
  })();
7154
7154
  const _iu2 = (input, _exceptionable = true)=>(()=>{
7155
- if (void 0 !== input["__@toStringTag@6827"]) return _io149(input, _exceptionable);
7155
+ if (void 0 !== input["__@toStringTag@926"]) return _io149(input, _exceptionable);
7156
7156
  if (void 0 !== input.buf) return _io151(input, _exceptionable);
7157
7157
  return false;
7158
7158
  })();
7159
7159
  const _iu3 = (input, _exceptionable = true)=>(()=>{
7160
7160
  if (void 0 !== input.name) return _io407(input, _exceptionable);
7161
- if (void 0 !== input["__@toStringTag@6827"]) return _io408(input, _exceptionable);
7161
+ if (void 0 !== input["__@toStringTag@926"]) return _io408(input, _exceptionable);
7162
7162
  return false;
7163
7163
  })();
7164
7164
  const _iu4 = (input, _exceptionable = true)=>(()=>{
@@ -9774,14 +9774,14 @@ export const __webpack_modules__ = {
9774
9774
  }).every((flag)=>flag)
9775
9775
  ].every((flag)=>flag);
9776
9776
  const _vo41 = (input, _path, _exceptionable = true)=>[
9777
- "string" == typeof input["__@toStringTag@6827"] || _report(_exceptionable, {
9778
- path: _path + "[\"__@toStringTag@6827\"]",
9777
+ "string" == typeof input["__@toStringTag@926"] || _report(_exceptionable, {
9778
+ path: _path + "[\"__@toStringTag@926\"]",
9779
9779
  expected: "string",
9780
- value: input["__@toStringTag@6827"]
9780
+ value: input["__@toStringTag@926"]
9781
9781
  }),
9782
9782
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
9783
9783
  if ([
9784
- "__@toStringTag@6827"
9784
+ "__@toStringTag@926"
9785
9785
  ].some((prop)=>key === prop)) return true;
9786
9786
  const value = input[key];
9787
9787
  if (void 0 === value) return true;
@@ -18801,10 +18801,10 @@ export const __webpack_modules__ = {
18801
18801
  expected: "number",
18802
18802
  value: input.length
18803
18803
  }),
18804
- "Uint8Array" === input["__@toStringTag@6827"] || _report(_exceptionable, {
18805
- path: _path + "[\"__@toStringTag@6827\"]",
18804
+ "Uint8Array" === input["__@toStringTag@926"] || _report(_exceptionable, {
18805
+ path: _path + "[\"__@toStringTag@926\"]",
18806
18806
  expected: "\"Uint8Array\"",
18807
- value: input["__@toStringTag@6827"]
18807
+ value: input["__@toStringTag@926"]
18808
18808
  }),
18809
18809
  false === _exceptionable || Object.keys(input).map((key)=>{
18810
18810
  if ([
@@ -18813,7 +18813,7 @@ export const __webpack_modules__ = {
18813
18813
  "byteLength",
18814
18814
  "byteOffset",
18815
18815
  "length",
18816
- "__@toStringTag@6827"
18816
+ "__@toStringTag@926"
18817
18817
  ].some((prop)=>key === prop)) return true;
18818
18818
  const value = input[key];
18819
18819
  if (void 0 === value) return true;
@@ -37042,14 +37042,14 @@ export const __webpack_modules__ = {
37042
37042
  }).every((flag)=>flag)
37043
37043
  ].every((flag)=>flag);
37044
37044
  const _vo408 = (input, _path, _exceptionable = true)=>[
37045
- "string" == typeof input["__@toStringTag@6827"] || _report(_exceptionable, {
37046
- path: _path + "[\"__@toStringTag@6827\"]",
37045
+ "string" == typeof input["__@toStringTag@926"] || _report(_exceptionable, {
37046
+ path: _path + "[\"__@toStringTag@926\"]",
37047
37047
  expected: "string",
37048
- value: input["__@toStringTag@6827"]
37048
+ value: input["__@toStringTag@926"]
37049
37049
  }),
37050
37050
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
37051
37051
  if ([
37052
- "__@toStringTag@6827"
37052
+ "__@toStringTag@926"
37053
37053
  ].some((prop)=>key === prop)) return true;
37054
37054
  const value = input[key];
37055
37055
  if (void 0 === value) return true;
@@ -40930,7 +40930,7 @@ export const __webpack_modules__ = {
40930
40930
  });
40931
40931
  })();
40932
40932
  const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
40933
- if (void 0 !== input["__@toStringTag@6827"]) return _vo149(input, _path, _exceptionable);
40933
+ if (void 0 !== input["__@toStringTag@926"]) return _vo149(input, _path, _exceptionable);
40934
40934
  if (void 0 !== input.pem) return _vo150(input, _path, _exceptionable);
40935
40935
  return _report(_exceptionable, {
40936
40936
  path: _path,
@@ -40939,7 +40939,7 @@ export const __webpack_modules__ = {
40939
40939
  });
40940
40940
  })();
40941
40941
  const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
40942
- if (void 0 !== input["__@toStringTag@6827"]) return _vo149(input, _path, _exceptionable);
40942
+ if (void 0 !== input["__@toStringTag@926"]) return _vo149(input, _path, _exceptionable);
40943
40943
  if (void 0 !== input.buf) return _vo151(input, _path, _exceptionable);
40944
40944
  return _report(_exceptionable, {
40945
40945
  path: _path,
@@ -40949,7 +40949,7 @@ export const __webpack_modules__ = {
40949
40949
  })();
40950
40950
  const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
40951
40951
  if (void 0 !== input.name) return _vo407(input, _path, _exceptionable);
40952
- if (void 0 !== input["__@toStringTag@6827"]) return _vo408(input, _path, _exceptionable);
40952
+ if (void 0 !== input["__@toStringTag@926"]) return _vo408(input, _path, _exceptionable);
40953
40953
  return _report(_exceptionable, {
40954
40954
  path: _path,
40955
40955
  expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
@@ -59,6 +59,12 @@ export const __webpack_modules__ = {
59
59
  assetPrefix = `${assetPrefix}${server.base}/`;
60
60
  }
61
61
  (0, debug.Yz)(`dev.assetPrefix is normalized to ${assetPrefix}`);
62
+ api.onBeforeStartDevServer(async ({ environments, server })=>{
63
+ if (environments['web']) {
64
+ const { createWebVirtualFilesMiddleware } = await import("@lynx-js/web-rsbuild-server-middleware");
65
+ server.middlewares.use(createWebVirtualFilesMiddleware('/__web_preview'));
66
+ }
67
+ });
62
68
  api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>mergeRsbuildConfig(config, {
63
69
  dev: {
64
70
  assetPrefix,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.11.7-canary-20251016-7570a5ec",
3
+ "version": "0.11.7-canary-20251021-353312e0",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -50,6 +50,7 @@
50
50
  "dependencies": {
51
51
  "@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.2",
52
52
  "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.3",
53
+ "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.18.1-canary-20251021-353312e0",
53
54
  "@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
54
55
  "@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
55
56
  "@rsbuild/core": "1.5.17",