@lynx-js/rspeedy-canary 0.10.6-canary-20250805-1afa2ca1 → 0.10.6-canary-20250806-5b6cdc37

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,9 +1,11 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.10.6-canary-20250805134209-1afa2ca1d05961568065f681d2d8d56cd93f8fc2
3
+ ## 0.10.6-canary-20250806045727-5b6cdc3757ede85a59e44917ae3fe02f6de9a6da
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Remove the experimental `provider` option. ([#1432](https://github.com/lynx-family/lynx-stack/pull/1432))
8
+
7
9
  - fix deno compatibility ([#1412](https://github.com/lynx-family/lynx-stack/pull/1412))
8
10
 
9
11
  ## 0.10.5
package/dist/index.d.ts CHANGED
@@ -303,31 +303,6 @@ export declare interface ChunkSplitCustom {
303
303
  * @public
304
304
  */
305
305
  export declare interface Config {
306
- /**
307
- * The Rsbuild provider.
308
- *
309
- * @example
310
- * You can switch from Rspack to Webpack by:
311
- *
312
- * - Use `webpackProvider` from `@rsbuild/webpack`
313
- * - Add `pluginSwc` from `@rsbuild/plugin-webpack-swc` for TypeScript transpilation
314
- *
315
- * ```ts
316
- * import { defineConfig } from '@lynx-js/rspeedy'
317
- * import { webpackProvider } from '@rsbuild/webpack'
318
- * import { pluginSwc } from '@rsbuild/plugin-webpack-swc'
319
- *
320
- * export default defineConfig({
321
- * provider: webpackProvider,
322
- * plugins: [
323
- * pluginSwc(),
324
- * ],
325
- * })
326
- * ```
327
- *
328
- * @alpha
329
- */
330
- provider?: RsbuildConfig['provider'];
331
306
  /**
332
307
  * The {@link Dev} option is used to control the behavior related with development. Including: HMR, DevServer, etc.
333
308
  */
package/dist/index.js CHANGED
@@ -332,7 +332,6 @@ function toRsbuildEntry(entry) {
332
332
  const defaultDataUriLimit = 2048;
333
333
  function toRsbuildConfig(config) {
334
334
  return {
335
- provider: config.provider,
336
335
  dev: {
337
336
  watchFiles: config.dev?.watchFiles,
338
337
  writeToDisk: config.dev?.writeToDisk ?? true,
@@ -228,7 +228,6 @@ export const __webpack_modules__ = {
228
228
  const defaultDataUriLimit = 2048;
229
229
  function toRsbuildConfig(config) {
230
230
  return {
231
- provider: config.provider,
232
231
  dev: {
233
232
  watchFiles: config.dev?.watchFiles,
234
233
  writeToDisk: config.dev?.writeToDisk ?? true,
@@ -271,7 +271,6 @@ export const __webpack_modules__ = {
271
271
  const defaultDataUriLimit = 2048;
272
272
  function toRsbuildConfig(config) {
273
273
  return {
274
- provider: config.provider,
275
274
  dev: {
276
275
  watchFiles: config.dev?.watchFiles,
277
276
  writeToDisk: config.dev?.writeToDisk ?? true,
@@ -231,7 +231,6 @@ export const __webpack_modules__ = {
231
231
  const defaultDataUriLimit = 2048;
232
232
  function toRsbuildConfig(config) {
233
233
  return {
234
- provider: config.provider,
235
234
  dev: {
236
235
  watchFiles: config.dev?.watchFiles,
237
236
  writeToDisk: config.dev?.writeToDisk ?? true,
@@ -233,7 +233,6 @@ export const __webpack_modules__ = {
233
233
  const defaultDataUriLimit = 2048;
234
234
  function toRsbuildConfig(config) {
235
235
  return {
236
- provider: config.provider,
237
236
  dev: {
238
237
  watchFiles: config.dev?.watchFiles,
239
238
  writeToDisk: config.dev?.writeToDisk ?? true,
@@ -1041,7 +1041,6 @@ export const __webpack_modules__ = {
1041
1041
  };
1042
1042
  const _io0 = (input, _exceptionable = true)=>(void 0 === input.dev || "object" == typeof input.dev && null !== input.dev && false === Array.isArray(input.dev) && _io1(input.dev, _exceptionable)) && (void 0 === input.environments || "object" == typeof input.environments && null !== input.environments && false === Array.isArray(input.environments) && _io8(input.environments, _exceptionable)) && (void 0 === input.mode || "none" === input.mode || "development" === input.mode || "production" === input.mode) && (void 0 === input.output || "object" == typeof input.output && null !== input.output && false === Array.isArray(input.output) && _io406(input.output, _exceptionable)) && (void 0 === input.performance || "object" == typeof input.performance && null !== input.performance && false === Array.isArray(input.performance) && _io412(input.performance, _exceptionable)) && (void 0 === input.server || "object" == typeof input.server && null !== input.server && false === Array.isArray(input.server) && _io417(input.server, _exceptionable)) && (void 0 === input.source || "object" == typeof input.source && null !== input.source && false === Array.isArray(input.source) && _io418(input.source, _exceptionable)) && (void 0 === input.tools || "object" == typeof input.tools && null !== input.tools && false === Array.isArray(input.tools) && _io425(input.tools, _exceptionable)) && (void 0 === input.plugins || Array.isArray(input.plugins) && (_ia4(input.plugins, _exceptionable) || false)) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
1043
1043
  if ([
1044
- "provider",
1045
1044
  "dev",
1046
1045
  "environments",
1047
1046
  "mode",
@@ -1477,9 +1476,9 @@ export const __webpack_modules__ = {
1477
1476
  if (void 0 === value) return true;
1478
1477
  return "string" == typeof value || "boolean" == typeof value;
1479
1478
  });
1480
- const _io40 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6617"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1479
+ const _io40 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@913"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1481
1480
  if ([
1482
- "__@toStringTag@6617"
1481
+ "__@toStringTag@913"
1483
1482
  ].some((prop)=>key === prop)) return true;
1484
1483
  const value = input[key];
1485
1484
  if (void 0 === value) return true;
@@ -3084,14 +3083,14 @@ export const __webpack_modules__ = {
3084
3083
  if (void 0 === value) return true;
3085
3084
  return false;
3086
3085
  })));
3087
- const _io148 = (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@6617"] && Object.keys(input).every((key)=>{
3086
+ const _io148 = (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@913"] && Object.keys(input).every((key)=>{
3088
3087
  if ([
3089
3088
  "BYTES_PER_ELEMENT",
3090
3089
  "buffer",
3091
3090
  "byteLength",
3092
3091
  "byteOffset",
3093
3092
  "length",
3094
- "__@toStringTag@6617"
3093
+ "__@toStringTag@913"
3095
3094
  ].some((prop)=>key === prop)) return true;
3096
3095
  const value = input[key];
3097
3096
  if (void 0 === value) return true;
@@ -6343,9 +6342,9 @@ export const __webpack_modules__ = {
6343
6342
  if (void 0 === value) return true;
6344
6343
  return false;
6345
6344
  }));
6346
- const _io405 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6617"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6345
+ const _io405 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@913"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6347
6346
  if ([
6348
- "__@toStringTag@6617"
6347
+ "__@toStringTag@913"
6349
6348
  ].some((prop)=>key === prop)) return true;
6350
6349
  const value = input[key];
6351
6350
  if (void 0 === value) return true;
@@ -6935,18 +6934,18 @@ export const __webpack_modules__ = {
6935
6934
  return false;
6936
6935
  })();
6937
6936
  const _iu1 = (input, _exceptionable = true)=>(()=>{
6938
- if (void 0 !== input["__@toStringTag@6617"]) return _io148(input, _exceptionable);
6937
+ if (void 0 !== input["__@toStringTag@913"]) return _io148(input, _exceptionable);
6939
6938
  if (void 0 !== input.pem) return _io149(input, _exceptionable);
6940
6939
  return false;
6941
6940
  })();
6942
6941
  const _iu2 = (input, _exceptionable = true)=>(()=>{
6943
- if (void 0 !== input["__@toStringTag@6617"]) return _io148(input, _exceptionable);
6942
+ if (void 0 !== input["__@toStringTag@913"]) return _io148(input, _exceptionable);
6944
6943
  if (void 0 !== input.buf) return _io150(input, _exceptionable);
6945
6944
  return false;
6946
6945
  })();
6947
6946
  const _iu3 = (input, _exceptionable = true)=>(()=>{
6948
6947
  if (void 0 !== input.name) return _io404(input, _exceptionable);
6949
- if (void 0 !== input["__@toStringTag@6617"]) return _io405(input, _exceptionable);
6948
+ if (void 0 !== input["__@toStringTag@913"]) return _io405(input, _exceptionable);
6950
6949
  return false;
6951
6950
  })();
6952
6951
  const _iu4 = (input, _exceptionable = true)=>(()=>{
@@ -7024,7 +7023,6 @@ export const __webpack_modules__ = {
7024
7023
  const _ia3 = (input, _exceptionable = true)=>input.every((elem, _index370)=>void 0 !== elem && (null === elem || "string" == typeof elem || "number" == typeof elem || "boolean" == typeof elem || Array.isArray(elem) && (_ia3(elem, _exceptionable) || false) || "object" == typeof elem && null !== elem && false === Array.isArray(elem) && _io264(elem, _exceptionable)));
7025
7024
  const _ia4 = (input, _exceptionable = true)=>input.every((elem, _index371)=>null == elem || false === elem || Array.isArray(elem) && (_ia4(elem, _exceptionable) || false) || "object" == typeof elem && null !== elem && _iu3(elem, _exceptionable));
7026
7025
  const _vo0 = (input, _path, _exceptionable = true)=>[
7027
- true,
7028
7026
  void 0 === input.dev || ("object" == typeof input.dev && null !== input.dev && false === Array.isArray(input.dev) || _report(_exceptionable, {
7029
7027
  path: _path + ".dev",
7030
7028
  expected: "(Dev | undefined)",
@@ -7108,7 +7106,6 @@ export const __webpack_modules__ = {
7108
7106
  }),
7109
7107
  0 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
7110
7108
  if ([
7111
- "provider",
7112
7109
  "dev",
7113
7110
  "environments",
7114
7111
  "mode",
@@ -9469,14 +9466,14 @@ export const __webpack_modules__ = {
9469
9466
  }).every((flag)=>flag)
9470
9467
  ].every((flag)=>flag);
9471
9468
  const _vo40 = (input, _path, _exceptionable = true)=>[
9472
- "string" == typeof input["__@toStringTag@6617"] || _report(_exceptionable, {
9473
- path: _path + "[\"__@toStringTag@6617\"]",
9469
+ "string" == typeof input["__@toStringTag@913"] || _report(_exceptionable, {
9470
+ path: _path + "[\"__@toStringTag@913\"]",
9474
9471
  expected: "string",
9475
- value: input["__@toStringTag@6617"]
9472
+ value: input["__@toStringTag@913"]
9476
9473
  }),
9477
9474
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
9478
9475
  if ([
9479
- "__@toStringTag@6617"
9476
+ "__@toStringTag@913"
9480
9477
  ].some((prop)=>key === prop)) return true;
9481
9478
  const value = input[key];
9482
9479
  if (void 0 === value) return true;
@@ -18464,10 +18461,10 @@ export const __webpack_modules__ = {
18464
18461
  expected: "number",
18465
18462
  value: input.length
18466
18463
  }),
18467
- "Uint8Array" === input["__@toStringTag@6617"] || _report(_exceptionable, {
18468
- path: _path + "[\"__@toStringTag@6617\"]",
18464
+ "Uint8Array" === input["__@toStringTag@913"] || _report(_exceptionable, {
18465
+ path: _path + "[\"__@toStringTag@913\"]",
18469
18466
  expected: "\"Uint8Array\"",
18470
- value: input["__@toStringTag@6617"]
18467
+ value: input["__@toStringTag@913"]
18471
18468
  }),
18472
18469
  false === _exceptionable || Object.keys(input).map((key)=>{
18473
18470
  if ([
@@ -18476,7 +18473,7 @@ export const __webpack_modules__ = {
18476
18473
  "byteLength",
18477
18474
  "byteOffset",
18478
18475
  "length",
18479
- "__@toStringTag@6617"
18476
+ "__@toStringTag@913"
18480
18477
  ].some((prop)=>key === prop)) return true;
18481
18478
  const value = input[key];
18482
18479
  if (void 0 === value) return true;
@@ -36529,14 +36526,14 @@ export const __webpack_modules__ = {
36529
36526
  }).every((flag)=>flag)
36530
36527
  ].every((flag)=>flag);
36531
36528
  const _vo405 = (input, _path, _exceptionable = true)=>[
36532
- "string" == typeof input["__@toStringTag@6617"] || _report(_exceptionable, {
36533
- path: _path + "[\"__@toStringTag@6617\"]",
36529
+ "string" == typeof input["__@toStringTag@913"] || _report(_exceptionable, {
36530
+ path: _path + "[\"__@toStringTag@913\"]",
36534
36531
  expected: "string",
36535
- value: input["__@toStringTag@6617"]
36532
+ value: input["__@toStringTag@913"]
36536
36533
  }),
36537
36534
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
36538
36535
  if ([
36539
- "__@toStringTag@6617"
36536
+ "__@toStringTag@913"
36540
36537
  ].some((prop)=>key === prop)) return true;
36541
36538
  const value = input[key];
36542
36539
  if (void 0 === value) return true;
@@ -39514,7 +39511,7 @@ export const __webpack_modules__ = {
39514
39511
  });
39515
39512
  })();
39516
39513
  const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
39517
- if (void 0 !== input["__@toStringTag@6617"]) return _vo148(input, _path, _exceptionable);
39514
+ if (void 0 !== input["__@toStringTag@913"]) return _vo148(input, _path, _exceptionable);
39518
39515
  if (void 0 !== input.pem) return _vo149(input, _path, _exceptionable);
39519
39516
  return _report(_exceptionable, {
39520
39517
  path: _path,
@@ -39523,7 +39520,7 @@ export const __webpack_modules__ = {
39523
39520
  });
39524
39521
  })();
39525
39522
  const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
39526
- if (void 0 !== input["__@toStringTag@6617"]) return _vo148(input, _path, _exceptionable);
39523
+ if (void 0 !== input["__@toStringTag@913"]) return _vo148(input, _path, _exceptionable);
39527
39524
  if (void 0 !== input.buf) return _vo150(input, _path, _exceptionable);
39528
39525
  return _report(_exceptionable, {
39529
39526
  path: _path,
@@ -39533,7 +39530,7 @@ export const __webpack_modules__ = {
39533
39530
  })();
39534
39531
  const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
39535
39532
  if (void 0 !== input.name) return _vo404(input, _path, _exceptionable);
39536
- if (void 0 !== input["__@toStringTag@6617"]) return _vo405(input, _path, _exceptionable);
39533
+ if (void 0 !== input["__@toStringTag@913"]) return _vo405(input, _path, _exceptionable);
39537
39534
  return _report(_exceptionable, {
39538
39535
  path: _path,
39539
39536
  expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
@@ -19,11 +19,11 @@ export const __webpack_modules__ = {
19
19
  config,
20
20
  debug: _debug_js__WEBPACK_IMPORTED_MODULE_1__.fF,
21
21
  async exit (code) {
22
- const { exit } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
22
+ const { exit } = await __webpack_require__.e("src_cli_exit_ts").then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
23
23
  return exit(code);
24
24
  },
25
25
  logger: _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger,
26
- version: _version_js__WEBPACK_IMPORTED_MODULE_2__.version
26
+ version: _version_js__WEBPACK_IMPORTED_MODULE_2__.i8
27
27
  });
28
28
  }
29
29
  };
@@ -7,8 +7,10 @@ export const __webpack_modules__ = {
7
7
  __webpack_require__.d(__webpack_exports__, {
8
8
  pluginRsdoctor: ()=>pluginRsdoctor
9
9
  });
10
- var _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@rsbuild/core");
11
- var _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/utils/is-ci.ts");
10
+ var core_ = __webpack_require__("@rsbuild/core");
11
+ function isCI() {
12
+ return !!process.env['CI'] && 'false' !== process.env['CI'];
13
+ }
12
14
  function pluginRsdoctor(options) {
13
15
  return {
14
16
  name: 'lynx:rsbuild:rsdoctor',
@@ -25,7 +27,7 @@ export const __webpack_modules__ = {
25
27
  if (registered) continue;
26
28
  config.plugins ??= [];
27
29
  const defaultOptions = {
28
- disableClientServer: (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__.y)(),
30
+ disableClientServer: isCI(),
29
31
  supports: {
30
32
  banner: true
31
33
  },
@@ -40,20 +42,12 @@ export const __webpack_modules__ = {
40
42
  }
41
43
  }
42
44
  };
43
- config.plugins.push(new RsdoctorRspackPlugin((0, _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.mergeRsbuildConfig)(defaultOptions, options)));
45
+ config.plugins.push(new RsdoctorRspackPlugin((0, core_.mergeRsbuildConfig)(defaultOptions, options)));
44
46
  }
45
- _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger.info("Rsdoctor is enabled.");
47
+ core_.logger.info("Rsdoctor is enabled.");
46
48
  });
47
49
  }
48
50
  };
49
51
  }
50
- },
51
- "./src/utils/is-ci.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
52
- __webpack_require__.d(__webpack_exports__, {
53
- y: ()=>isCI
54
- });
55
- function isCI() {
56
- return !!process.env['CI'] && 'false' !== process.env['CI'];
57
- }
58
52
  }
59
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.10.6-canary-20250805-1afa2ca1",
3
+ "version": "0.10.6-canary-20250806-5b6cdc37",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -56,7 +56,6 @@
56
56
  "devDependencies": {
57
57
  "@microsoft/api-extractor": "7.52.10",
58
58
  "@rollup/plugin-typescript": "^12.1.4",
59
- "@rsbuild/webpack": "1.3.2",
60
59
  "chokidar": "^4.0.3",
61
60
  "commander": "^13.1.0",
62
61
  "eventemitter3": "^5.0.1",