@lynx-js/rspeedy-canary 0.10.1-canary-20250711-7b75469d → 0.10.1

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,6 +1,6 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.10.1-canary-20250711054456-7b75469d05dd2ec78bf6e1e54b94c8dff938eb40
3
+ ## 0.10.1
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -9,7 +9,7 @@
9
9
  - Bump Rsbuild v1.4.5 with Rspack v1.4.5 ([#1239](https://github.com/lynx-family/lynx-stack/pull/1239))
10
10
 
11
11
  - Updated dependencies [[`0a3c89d`](https://github.com/lynx-family/lynx-stack/commit/0a3c89d5776009d1f32d444e77be834fa2b79645)]:
12
- - @lynx-js/webpack-dev-transport@0.2.0-canary-20250711054456-7b75469d05dd2ec78bf6e1e54b94c8dff938eb40
12
+ - @lynx-js/webpack-dev-transport@0.2.0
13
13
 
14
14
  ## 0.10.0
15
15
 
@@ -31,28 +31,28 @@
31
31
 
32
32
  ```ts
33
33
  type InlineChunkTestFunction = (params: {
34
- size: number;
35
- name: string;
36
- }) => boolean;
34
+ size: number
35
+ name: string
36
+ }) => boolean
37
37
 
38
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
38
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
39
39
 
40
40
  type InlineChunkConfig =
41
41
  | boolean
42
42
  | InlineChunkTest
43
- | { enable?: boolean | "auto"; test: InlineChunkTest };
43
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
44
44
  ```
45
45
 
46
46
  ```ts
47
- import { defineConfig } from "@lynx-js/rspeedy";
47
+ import { defineConfig } from '@lynx-js/rspeedy'
48
48
 
49
49
  export default defineConfig({
50
50
  output: {
51
51
  inlineScripts: ({ name, size }) => {
52
- return name.includes("foo") && size < 1000;
52
+ return name.includes('foo') && size < 1000
53
53
  },
54
54
  },
55
- });
55
+ })
56
56
  ```
57
57
 
58
58
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -95,13 +95,13 @@
95
95
  example:
96
96
 
97
97
  ```js
98
- import { defineConfig } from "@lynx-js/rspeedy";
98
+ import { defineConfig } from '@lynx-js/rspeedy'
99
99
 
100
100
  export default defineConfig({
101
101
  output: {
102
102
  inlineScripts: false,
103
103
  },
104
- });
104
+ })
105
105
  ```
106
106
 
107
107
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -121,12 +121,12 @@
121
121
  example:
122
122
 
123
123
  ```js
124
- import { defineConfig } from "@lynx-js/rspeedy";
124
+ import { defineConfig } from '@lynx-js/rspeedy'
125
125
  export default defineConfig({
126
126
  source: {
127
- preEntry: "./src/polyfill.ts",
127
+ preEntry: './src/polyfill.ts',
128
128
  },
129
- });
129
+ })
130
130
  ```
131
131
 
132
132
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -137,17 +137,17 @@
137
137
 
138
138
  ```js
139
139
  export const myPlugin = {
140
- name: "my-plugin",
140
+ name: 'my-plugin',
141
141
  setup(api) {
142
- const { callerName } = api.context;
142
+ const { callerName } = api.context
143
143
 
144
- if (callerName === "rslib") {
144
+ if (callerName === 'rslib') {
145
145
  // ...
146
- } else if (callerName === "rspeedy") {
146
+ } else if (callerName === 'rspeedy') {
147
147
  // ...
148
148
  }
149
149
  },
150
- };
150
+ }
151
151
  ```
152
152
 
153
153
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -170,7 +170,7 @@
170
170
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
171
171
 
172
172
  ```js
173
- import { defineConfig } from "@lynx-js/rspeedy";
173
+ import { defineConfig } from '@lynx-js/rspeedy'
174
174
 
175
175
  export default defineConfig({
176
176
  tools: {
@@ -180,7 +180,7 @@
180
180
  },
181
181
  },
182
182
  },
183
- });
183
+ })
184
184
  ```
185
185
 
186
186
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -312,12 +312,12 @@
312
312
  example:
313
313
 
314
314
  ```js
315
- import { defineConfig } from "@lynx-js/rspeedy";
315
+ import { defineConfig } from '@lynx-js/rspeedy'
316
316
  export default defineConfig({
317
317
  server: {
318
- base: "/dist",
318
+ base: '/dist',
319
319
  },
320
- });
320
+ })
321
321
  ```
322
322
 
323
323
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -370,11 +370,11 @@
370
370
  You can switch to other tools by using:
371
371
 
372
372
  ```js
373
- import { defineConfig } from "@lynx-js/rspeedy";
373
+ import { defineConfig } from '@lynx-js/rspeedy'
374
374
  import {
375
375
  CssMinimizerWebpackPlugin,
376
376
  pluginCssMinimizer,
377
- } from "@rsbuild/plugin-css-minimizer";
377
+ } from '@rsbuild/plugin-css-minimizer'
378
378
 
379
379
  export default defineConfig({
380
380
  plugins: [
@@ -387,7 +387,7 @@
387
387
  },
388
388
  }),
389
389
  ],
390
- });
390
+ })
391
391
  ```
392
392
 
393
393
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -397,8 +397,8 @@
397
397
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
398
398
 
399
399
  ```js
400
- import { defineConfig } from "@lynx-js/rspeedy";
401
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
400
+ import { defineConfig } from '@lynx-js/rspeedy'
401
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
402
402
 
403
403
  export default defineConfig({
404
404
  plugins: [
@@ -410,7 +410,7 @@
410
410
  },
411
411
  }),
412
412
  ],
413
- });
413
+ })
414
414
  ```
415
415
 
416
416
  ## 0.7.1
@@ -430,7 +430,7 @@
430
430
  You may turn it off using `output.minify.css: false`:
431
431
 
432
432
  ```js
433
- import { defineConfig } from "@lynx-js/rspeedy";
433
+ import { defineConfig } from '@lynx-js/rspeedy'
434
434
 
435
435
  export default defineConfig({
436
436
  output: {
@@ -438,18 +438,18 @@
438
438
  css: false,
439
439
  },
440
440
  },
441
- });
441
+ })
442
442
  ```
443
443
 
444
444
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
445
445
 
446
446
  ```js
447
- import { defineConfig } from "@lynx-js/rspeedy";
448
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
447
+ import { defineConfig } from '@lynx-js/rspeedy'
448
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
449
449
 
450
450
  export default defineConfig({
451
451
  plugins: [pluginCssMinimizer()],
452
- });
452
+ })
453
453
  ```
454
454
 
455
455
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -476,22 +476,22 @@
476
476
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
477
477
 
478
478
  ```js
479
- import { defineConfig } from "@lynx-js/rspeedy";
479
+ import { defineConfig } from '@lynx-js/rspeedy'
480
480
 
481
481
  export default defineConfig({
482
482
  dev: {
483
483
  watchFiles: [
484
484
  {
485
- type: "reload-server",
486
- paths: ["public/**/*.txt"],
485
+ type: 'reload-server',
486
+ paths: ['public/**/*.txt'],
487
487
  },
488
488
  {
489
- type: "reload-page",
490
- paths: ["public/**/*.json"],
489
+ type: 'reload-page',
490
+ paths: ['public/**/*.json'],
491
491
  },
492
492
  ],
493
493
  },
494
- });
494
+ })
495
495
  ```
496
496
 
497
497
  - be9b003: Add `source.exclude`.
package/dist/index.js CHANGED
@@ -112,7 +112,7 @@ var __webpack_modules__ = {
112
112
  });
113
113
  var core_ = __webpack_require__("@rsbuild/core");
114
114
  var package_namespaceObject = {
115
- i8: "0.10.0"
115
+ i8: "0.10.1"
116
116
  };
117
117
  const version = package_namespaceObject.i8;
118
118
  const rspackVersion = core_.rspack.rspackVersion;
@@ -40,7 +40,7 @@ export const __webpack_modules__ = {
40
40
  });
41
41
  var core_ = __webpack_require__("@rsbuild/core");
42
42
  var package_namespaceObject = {
43
- i8: "0.10.0"
43
+ i8: "0.10.1"
44
44
  };
45
45
  const version = package_namespaceObject.i8;
46
46
  const rspackVersion = core_.rspack.rspackVersion;
@@ -10,7 +10,7 @@ export const __webpack_modules__ = {
10
10
  });
11
11
  var core_ = __webpack_require__("@rsbuild/core");
12
12
  var package_namespaceObject = {
13
- i8: "0.10.0"
13
+ i8: "0.10.1"
14
14
  };
15
15
  const version = package_namespaceObject.i8;
16
16
  const rspackVersion = core_.rspack.rspackVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.10.1-canary-20250711-7b75469d",
3
+ "version": "0.10.1",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.0",
50
- "@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0-canary-20250711-7b75469d",
50
+ "@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
51
51
  "@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
52
52
  "@rsbuild/core": "1.4.5",
53
53
  "@rsbuild/plugin-css-minimizer": "1.0.2",