@lynx-js/rspeedy-canary 0.10.9-canary-20250826-1952fc15 → 0.11.0-canary-20250827-83713b12

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,13 +1,21 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.10.9-canary-20250826135439-1952fc1557e5abbdbdf4a2073fd3b6f64dd32c3c
3
+ ## 0.11.0-canary-20250827013554-83713b12f3c828191d0d131f6a7aec77d6ad4f9d
4
+
5
+ ### Minor Changes
6
+
7
+ - Bump Rsbuild v1.5.0 with Rspack v1.5.0. ([#1591](https://github.com/lynx-family/lynx-stack/pull/1591))
8
+
9
+ - **BREAKING CHANGE**: Remove the `./register` exports from `@lynx-js/rspeedy`. ([#1547](https://github.com/lynx-family/lynx-stack/pull/1547))
10
+
11
+ This should not affect most users.
4
12
 
5
13
  ### Patch Changes
6
14
 
7
15
  - Support `rspeedy build --watch` ([#1579](https://github.com/lynx-family/lynx-stack/pull/1579))
8
16
 
9
17
  - Updated dependencies [[`1952fc1`](https://github.com/lynx-family/lynx-stack/commit/1952fc1557e5abbdbdf4a2073fd3b6f64dd32c3c)]:
10
- - @lynx-js/chunk-loading-webpack-plugin@0.3.2-canary-20250826135439-1952fc1557e5abbdbdf4a2073fd3b6f64dd32c3c
18
+ - @lynx-js/chunk-loading-webpack-plugin@0.3.2-canary-20250827013554-83713b12f3c828191d0d131f6a7aec77d6ad4f9d
11
19
  - @lynx-js/cache-events-webpack-plugin@0.0.1
12
20
 
13
21
  ## 0.10.8
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__ from "@rsbuild/co
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
3
3
  import node_fs from "node:fs";
4
4
  import { pathToFileURL } from "node:url";
5
- import { register } from "@lynx-js/rspeedy/register";
5
+ import { register } from "#register";
6
6
  var __webpack_modules__ = {
7
7
  "../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": function(module) {
8
8
  let p = process || {}, argv = p.argv || [], env = p.env || {};
@@ -1,5 +1,5 @@
1
1
  import { pathToFileURL } from "node:url";
2
- import { register } from "@lynx-js/rspeedy/register";
2
+ import { register } from "#register";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
5
5
  export const __webpack_id__ = "src_cli_build_ts";
@@ -1,5 +1,5 @@
1
1
  import { pathToFileURL } from "node:url";
2
- import { register } from "@lynx-js/rspeedy/register";
2
+ import { register } from "#register";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
5
5
  export const __webpack_id__ = "src_cli_dev_ts";
@@ -1,5 +1,5 @@
1
1
  import { pathToFileURL } from "node:url";
2
- import { register } from "@lynx-js/rspeedy/register";
2
+ import { register } from "#register";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
5
5
  export const __webpack_id__ = "src_cli_inspect_ts";
@@ -1,5 +1,5 @@
1
1
  import { pathToFileURL } from "node:url";
2
- import { register } from "@lynx-js/rspeedy/register";
2
+ import { register } from "#register";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
5
5
  export const __webpack_id__ = "src_cli_preview_ts";
@@ -5735,7 +5735,7 @@ export const __webpack_modules__ = {
5735
5735
  if (void 0 === value) return true;
5736
5736
  return false;
5737
5737
  }));
5738
- const _io359 = (input, _exceptionable = true)=>(void 0 === input.target || "node" === input.target || "web" === input.target || "web-worker" === input.target) && null !== input.externals && (void 0 === input.externals || "function" == typeof input.externals || "string" == typeof input.externals || input.externals instanceof RegExp || Array.isArray(input.externals) && input.externals.every((elem, _index289)=>null != elem && ("function" == typeof elem || "string" == typeof elem || elem instanceof RegExp || "object" == typeof elem && null !== elem && false === Array.isArray(elem) && _io105(elem, _exceptionable))) || "object" == typeof input.externals && null !== input.externals && false === Array.isArray(input.externals) && _io105(input.externals, _exceptionable)) && (void 0 === input.distPath || "object" == typeof input.distPath && null !== input.distPath && false === Array.isArray(input.distPath) && _io360(input.distPath, _exceptionable)) && (void 0 === input.filename || "object" == typeof input.filename && null !== input.filename && false === Array.isArray(input.filename) && _io361(input.filename, _exceptionable)) && (void 0 === input.charset || "utf8" === input.charset || "ascii" === input.charset) && (void 0 === input.polyfill || "usage" === input.polyfill || "entry" === input.polyfill || "off" === input.polyfill) && (void 0 === input.assetPrefix || "string" == typeof input.assetPrefix) && null !== input.dataUriLimit && (void 0 === input.dataUriLimit || "number" == typeof input.dataUriLimit || "object" == typeof input.dataUriLimit && null !== input.dataUriLimit && false === Array.isArray(input.dataUriLimit) && _io362(input.dataUriLimit, _exceptionable)) && (void 0 === input.legalComments || "none" === input.legalComments || "inline" === input.legalComments || "linked" === input.legalComments) && null !== input.cleanDistPath && (void 0 === input.cleanDistPath || "auto" === input.cleanDistPath || "boolean" == typeof input.cleanDistPath || "object" == typeof input.cleanDistPath && null !== input.cleanDistPath && false === Array.isArray(input.cleanDistPath) && _io363(input.cleanDistPath, _exceptionable)) && (void 0 === input.cssModules || "object" == typeof input.cssModules && null !== input.cssModules && false === Array.isArray(input.cssModules) && _io364(input.cssModules, _exceptionable)) && null !== input.minify && (void 0 === input.minify || "boolean" == typeof input.minify || "object" == typeof input.minify && null !== input.minify && false === Array.isArray(input.minify) && _io365(input.minify, _exceptionable)) && null !== input.manifest && (void 0 === input.manifest || "string" == typeof input.manifest || "boolean" == typeof input.manifest || "object" == typeof input.manifest && null !== input.manifest && false === Array.isArray(input.manifest) && _io375(input.manifest, _exceptionable)) && null !== input.sourceMap && (void 0 === input.sourceMap || "boolean" == typeof input.sourceMap || "object" == typeof input.sourceMap && null !== input.sourceMap && false === Array.isArray(input.sourceMap) && _io376(input.sourceMap, _exceptionable)) && (void 0 === input.filenameHash || "string" == typeof input.filenameHash || "boolean" == typeof input.filenameHash) && null !== input.inlineScripts && (void 0 === input.inlineScripts || "function" == typeof input.inlineScripts || "boolean" == typeof input.inlineScripts || input.inlineScripts instanceof RegExp || "object" == typeof input.inlineScripts && null !== input.inlineScripts && _io377(input.inlineScripts, _exceptionable)) && null !== input.inlineStyles && (void 0 === input.inlineStyles || "function" == typeof input.inlineStyles || "boolean" == typeof input.inlineStyles || input.inlineStyles instanceof RegExp || "object" == typeof input.inlineStyles && null !== input.inlineStyles && _io377(input.inlineStyles, _exceptionable)) && (void 0 === input.injectStyles || "boolean" == typeof input.injectStyles) && (void 0 === input.overrideBrowserslist || Array.isArray(input.overrideBrowserslist) && input.overrideBrowserslist.every((elem, _index290)=>"string" == typeof elem)) && null !== input.copy && (void 0 === input.copy || Array.isArray(input.copy) && input.copy.every((elem, _index291)=>null != elem && ("string" == typeof elem || "object" == typeof elem && null !== elem && _io379(elem, _exceptionable))) || "object" == typeof input.copy && null !== input.copy && _io378(input.copy, _exceptionable)) && (void 0 === input.emitAssets || "boolean" == typeof input.emitAssets) && (void 0 === input.emitCss || "boolean" == typeof input.emitCss) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
5738
+ const _io359 = (input, _exceptionable = true)=>(void 0 === input.target || "node" === input.target || "web" === input.target || "web-worker" === input.target) && null !== input.externals && (void 0 === input.externals || "function" == typeof input.externals || "string" == typeof input.externals || input.externals instanceof RegExp || Array.isArray(input.externals) && input.externals.every((elem, _index289)=>null != elem && ("function" == typeof elem || "string" == typeof elem || elem instanceof RegExp || "object" == typeof elem && null !== elem && false === Array.isArray(elem) && _io105(elem, _exceptionable))) || "object" == typeof input.externals && null !== input.externals && false === Array.isArray(input.externals) && _io105(input.externals, _exceptionable)) && (void 0 === input.distPath || "object" == typeof input.distPath && null !== input.distPath && false === Array.isArray(input.distPath) && _io360(input.distPath, _exceptionable)) && (void 0 === input.filename || "object" == typeof input.filename && null !== input.filename && false === Array.isArray(input.filename) && _io361(input.filename, _exceptionable)) && (void 0 === input.charset || "utf8" === input.charset || "ascii" === input.charset) && (void 0 === input.polyfill || "usage" === input.polyfill || "entry" === input.polyfill || "off" === input.polyfill) && (void 0 === input.assetPrefix || "string" == typeof input.assetPrefix) && null !== input.dataUriLimit && (void 0 === input.dataUriLimit || "number" == typeof input.dataUriLimit || "object" == typeof input.dataUriLimit && null !== input.dataUriLimit && false === Array.isArray(input.dataUriLimit) && _io362(input.dataUriLimit, _exceptionable)) && (void 0 === input.legalComments || "none" === input.legalComments || "inline" === input.legalComments || "linked" === input.legalComments) && null !== input.cleanDistPath && (void 0 === input.cleanDistPath || "auto" === input.cleanDistPath || "boolean" == typeof input.cleanDistPath || "object" == typeof input.cleanDistPath && null !== input.cleanDistPath && false === Array.isArray(input.cleanDistPath) && _io363(input.cleanDistPath, _exceptionable)) && (void 0 === input.cssModules || "object" == typeof input.cssModules && null !== input.cssModules && false === Array.isArray(input.cssModules) && _io364(input.cssModules, _exceptionable)) && null !== input.minify && (void 0 === input.minify || "boolean" == typeof input.minify || "object" == typeof input.minify && null !== input.minify && false === Array.isArray(input.minify) && _io365(input.minify, _exceptionable)) && null !== input.manifest && (void 0 === input.manifest || "string" == typeof input.manifest || "boolean" == typeof input.manifest || "object" == typeof input.manifest && null !== input.manifest && false === Array.isArray(input.manifest) && _io375(input.manifest, _exceptionable)) && (void 0 === input["module"] || "boolean" == typeof input["module"]) && null !== input.sourceMap && (void 0 === input.sourceMap || "boolean" == typeof input.sourceMap || "object" == typeof input.sourceMap && null !== input.sourceMap && false === Array.isArray(input.sourceMap) && _io376(input.sourceMap, _exceptionable)) && (void 0 === input.filenameHash || "string" == typeof input.filenameHash || "boolean" == typeof input.filenameHash) && null !== input.inlineScripts && (void 0 === input.inlineScripts || "function" == typeof input.inlineScripts || "boolean" == typeof input.inlineScripts || input.inlineScripts instanceof RegExp || "object" == typeof input.inlineScripts && null !== input.inlineScripts && _io377(input.inlineScripts, _exceptionable)) && null !== input.inlineStyles && (void 0 === input.inlineStyles || "function" == typeof input.inlineStyles || "boolean" == typeof input.inlineStyles || input.inlineStyles instanceof RegExp || "object" == typeof input.inlineStyles && null !== input.inlineStyles && _io377(input.inlineStyles, _exceptionable)) && (void 0 === input.injectStyles || "boolean" == typeof input.injectStyles) && (void 0 === input.overrideBrowserslist || Array.isArray(input.overrideBrowserslist) && input.overrideBrowserslist.every((elem, _index290)=>"string" == typeof elem)) && null !== input.copy && (void 0 === input.copy || Array.isArray(input.copy) && input.copy.every((elem, _index291)=>null != elem && ("string" == typeof elem || "object" == typeof elem && null !== elem && _io379(elem, _exceptionable))) || "object" == typeof input.copy && null !== input.copy && _io378(input.copy, _exceptionable)) && (void 0 === input.emitAssets || "boolean" == typeof input.emitAssets) && (void 0 === input.emitCss || "boolean" == typeof input.emitCss) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
5739
5739
  if ([
5740
5740
  "target",
5741
5741
  "externals",
@@ -5750,6 +5750,7 @@ export const __webpack_modules__ = {
5750
5750
  "cssModules",
5751
5751
  "minify",
5752
5752
  "manifest",
5753
+ "module",
5753
5754
  "sourceMap",
5754
5755
  "filenameHash",
5755
5756
  "inlineScripts",
@@ -6171,7 +6172,7 @@ export const __webpack_modules__ = {
6171
6172
  if (void 0 === value) return true;
6172
6173
  return false;
6173
6174
  }));
6174
- const _io388 = (input, _exceptionable = true)=>(void 0 === input.total || "boolean" == typeof input.total) && (void 0 === input.detail || "boolean" == typeof input.detail) && (void 0 === input.compressed || "boolean" == typeof input.compressed) && (void 0 === input.include || true) && (void 0 === input.exclude || true) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
6175
+ const _io388 = (input, _exceptionable = true)=>null !== input.total && (void 0 === input.total || "function" == typeof input.total || "boolean" == typeof input.total) && (void 0 === input.detail || "boolean" == typeof input.detail) && (void 0 === input.compressed || "boolean" == typeof input.compressed) && (void 0 === input.include || true) && (void 0 === input.exclude || true) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
6175
6176
  if ([
6176
6177
  "total",
6177
6178
  "detail",
@@ -6347,14 +6348,14 @@ export const __webpack_modules__ = {
6347
6348
  if (void 0 === value) return true;
6348
6349
  return false;
6349
6350
  }));
6350
- const _io405 = (input, _exceptionable = true)=>(void 0 === input.pre || Array.isArray(input.pre) && input.pre.every((elem, _index330)=>"string" == typeof elem)) && (void 0 === input.post || Array.isArray(input.post) && input.post.every((elem, _index331)=>"string" == typeof elem)) && "string" == typeof input.name && null !== input.apply && (void 0 === input.apply || "function" == typeof input.apply || "serve" === input.apply || "build" === input.apply) && (void 0 === input.enforce || "pre" === input.enforce || "post" === input.enforce) && (void 0 === input.remove || Array.isArray(input.remove) && input.remove.every((elem, _index332)=>"string" == typeof elem)) && true && (2 === Object.keys(input).length || Object.keys(input).every((key)=>{
6351
+ const _io405 = (input, _exceptionable = true)=>(void 0 === input.pre || Array.isArray(input.pre) && input.pre.every((elem, _index330)=>"string" == typeof elem)) && (void 0 === input.post || Array.isArray(input.post) && input.post.every((elem, _index331)=>"string" == typeof elem)) && "string" == typeof input.name && (void 0 === input.enforce || "pre" === input.enforce || "post" === input.enforce) && (void 0 === input.remove || Array.isArray(input.remove) && input.remove.every((elem, _index332)=>"string" == typeof elem)) && true && true && (2 === Object.keys(input).length || Object.keys(input).every((key)=>{
6351
6352
  if ([
6352
6353
  "pre",
6353
6354
  "post",
6354
6355
  "name",
6355
- "apply",
6356
6356
  "enforce",
6357
6357
  "remove",
6358
+ "apply",
6358
6359
  "setup"
6359
6360
  ].some((prop)=>key === prop)) return true;
6360
6361
  const value = input[key];
@@ -33238,6 +33239,11 @@ export const __webpack_modules__ = {
33238
33239
  expected: "(ManifestObjectConfig | boolean | string | undefined)",
33239
33240
  value: input.manifest
33240
33241
  })),
33242
+ void 0 === input["module"] || "boolean" == typeof input["module"] || _report(_exceptionable, {
33243
+ path: _path + "[\"module\"]",
33244
+ expected: "(boolean | undefined)",
33245
+ value: input["module"]
33246
+ }),
33241
33247
  (null !== input.sourceMap || _report(_exceptionable, {
33242
33248
  path: _path + ".sourceMap",
33243
33249
  expected: "(SourceMap | boolean | undefined)",
@@ -33354,6 +33360,7 @@ export const __webpack_modules__ = {
33354
33360
  "cssModules",
33355
33361
  "minify",
33356
33362
  "manifest",
33363
+ "module",
33357
33364
  "sourceMap",
33358
33365
  "filenameHash",
33359
33366
  "inlineScripts",
@@ -35579,11 +35586,15 @@ export const __webpack_modules__ = {
35579
35586
  }).every((flag)=>flag)
35580
35587
  ].every((flag)=>flag);
35581
35588
  const _vo388 = (input, _path, _exceptionable = true)=>[
35582
- void 0 === input.total || "boolean" == typeof input.total || _report(_exceptionable, {
35589
+ (null !== input.total || _report(_exceptionable, {
35583
35590
  path: _path + ".total",
35584
35591
  expected: "(boolean | undefined)",
35585
35592
  value: input.total
35586
- }),
35593
+ })) && (void 0 === input.total || "function" == typeof input.total || "boolean" == typeof input.total || _report(_exceptionable, {
35594
+ path: _path + ".total",
35595
+ expected: "(boolean | undefined)",
35596
+ value: input.total
35597
+ })),
35587
35598
  void 0 === input.detail || "boolean" == typeof input.detail || _report(_exceptionable, {
35588
35599
  path: _path + ".detail",
35589
35600
  expected: "(boolean | undefined)",
@@ -36602,15 +36613,6 @@ export const __webpack_modules__ = {
36602
36613
  expected: "string",
36603
36614
  value: input.name
36604
36615
  }),
36605
- (null !== input.apply || _report(_exceptionable, {
36606
- path: _path + ".apply",
36607
- expected: "(\"build\" | \"serve\" | undefined)",
36608
- value: input.apply
36609
- })) && (void 0 === input.apply || "function" == typeof input.apply || "serve" === input.apply || "build" === input.apply || _report(_exceptionable, {
36610
- path: _path + ".apply",
36611
- expected: "(\"build\" | \"serve\" | undefined)",
36612
- value: input.apply
36613
- })),
36614
36616
  void 0 === input.enforce || "pre" === input.enforce || "post" === input.enforce || _report(_exceptionable, {
36615
36617
  path: _path + ".enforce",
36616
36618
  expected: "(\"post\" | \"pre\" | undefined)",
@@ -36630,14 +36632,15 @@ export const __webpack_modules__ = {
36630
36632
  value: input.remove
36631
36633
  }),
36632
36634
  true,
36635
+ true,
36633
36636
  2 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
36634
36637
  if ([
36635
36638
  "pre",
36636
36639
  "post",
36637
36640
  "name",
36638
- "apply",
36639
36641
  "enforce",
36640
36642
  "remove",
36643
+ "apply",
36641
36644
  "setup"
36642
36645
  ].some((prop)=>key === prop)) return true;
36643
36646
  const value = input[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.10.9-canary-20250826-1952fc15",
3
+ "version": "0.11.0-canary-20250827-83713b12",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -19,6 +19,12 @@
19
19
  "email": "colinwang.0616@gmail.com"
20
20
  },
21
21
  "type": "module",
22
+ "imports": {
23
+ "#register": {
24
+ "types": "./dist/register/index.d.ts",
25
+ "import": "./dist/register/index.js"
26
+ }
27
+ },
22
28
  "exports": {
23
29
  ".": {
24
30
  "types": "./dist/index.d.ts",
@@ -27,10 +33,6 @@
27
33
  "./client": {
28
34
  "types": "./client.d.ts"
29
35
  },
30
- "./register": {
31
- "types": "./dist/register/index.d.ts",
32
- "import": "./dist/register/index.js"
33
- },
34
36
  "./package.json": "./package.json"
35
37
  },
36
38
  "types": "./dist/index.d.ts",
@@ -47,10 +49,10 @@
47
49
  ],
48
50
  "dependencies": {
49
51
  "@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.1",
50
- "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.2-canary-20250826-1952fc15",
52
+ "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.2-canary-20250827-83713b12",
51
53
  "@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
52
54
  "@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
53
- "@rsbuild/core": "1.4.15",
55
+ "@rsbuild/core": "1.5.0",
54
56
  "@rsbuild/plugin-css-minimizer": "1.0.3",
55
57
  "@rsdoctor/rspack-plugin": "1.2.3"
56
58
  },
@@ -64,6 +66,7 @@
64
66
  "ipaddr.js": "^2.2.0",
65
67
  "javascript-stringify": "^2.1.0",
66
68
  "picocolors": "^1.1.1",
69
+ "rsbuild-plugin-arethetypeswrong": "0.1.1",
67
70
  "rsbuild-plugin-publint": "0.3.3",
68
71
  "tiny-invariant": "^1.3.3",
69
72
  "ts-blank-space": "^0.6.2",