@lynx-js/react-webpack-plugin-canary 0.10.2-canary-20260731-46dfcc21 → 0.10.2

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +20 -23
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
- ## 0.10.2-canary-20260731090103-46dfcc2166a3750bbf2c5f5600d7b3721eac4dd2
3
+ ## 0.10.2
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,9 +8,6 @@
8
8
 
9
9
  - Add the experimental `experimental_transformBuiltinAttributeNames` option for transforming builtin element attribute names. `false` preserves attribute names. `true` transforms `onClick` to `bindtap`, `onCatchTap` to `catchtap`, other `onXXX` event names to `bindxxx`, and remaining camelCase names to dash-case. An object supports serializable custom rules through `mode`, `preserve`, and `rename`. Explicit JSX attributes are transformed during compilation, and spread attributes are transformed at runtime. ([#3274](https://github.com/lynx-family/lynx-stack/pull/3274))
10
10
 
11
- - Updated dependencies [[`4315634`](https://github.com/lynx-family/lynx-stack/commit/43156341e2449e48fd5badd6794937bad7c2b7c3), [`7795a43`](https://github.com/lynx-family/lynx-stack/commit/7795a43797ac9daf59e5f18dc978e1596948f94b)]:
12
- - @lynx-js/template-webpack-plugin@0.14.1-canary-20260731090103-46dfcc2166a3750bbf2c5f5600d7b3721eac4dd2
13
-
14
11
  ## 0.10.1
15
12
 
16
13
  ### Patch Changes
@@ -36,12 +33,12 @@
36
33
 
37
34
  ```js
38
35
  pluginReactLynx({
39
- firstScreenSyncTiming: "manual",
36
+ firstScreenSyncTiming: 'manual',
40
37
  });
41
38
  ```
42
39
 
43
40
  ```js
44
- import { markFirstScreenSyncReady } from "@lynx-js/react";
41
+ import { markFirstScreenSyncReady } from '@lynx-js/react';
45
42
 
46
43
  markFirstScreenSyncReady();
47
44
  ```
@@ -51,8 +48,8 @@
51
48
  - Add `compat.legacySlot` to `pluginReactLynx`. When enabled, dynamic children are compiled to the pre-SlotV2 form (JSX `children` + `wrapper` elements + `__DynamicPartChildren`/`__DynamicPartSlot` symbols instead of `$0`/`$1` slot props + `SlotV2`), so the compiled output stays compatible with legacy runtimes without `SlotV2` support (`< 0.120.0`, which shipped the SlotV2 refactor in #1764) — e.g. a standalone lazy bundle consumed by a host App that ships an older runtime. ([#2947](https://github.com/lynx-family/lynx-stack/pull/2947))
52
49
 
53
50
  ```js
54
- import { defineConfig } from "@lynx-js/rspeedy";
55
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
51
+ import { defineConfig } from '@lynx-js/rspeedy';
52
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
56
53
 
57
54
  export default defineConfig({
58
55
  plugins: [
@@ -225,16 +222,16 @@
225
222
  type InlineChunkConfig =
226
223
  | boolean
227
224
  | InlineChunkTest
228
- | { enable?: boolean | "auto"; test: InlineChunkTest };
225
+ | { enable?: boolean | 'auto'; test: InlineChunkTest };
229
226
  ```
230
227
 
231
228
  ```ts
232
- import { defineConfig } from "@lynx-js/rspeedy";
229
+ import { defineConfig } from '@lynx-js/rspeedy';
233
230
 
234
231
  export default defineConfig({
235
232
  output: {
236
233
  inlineScripts: ({ name, size }) => {
237
- return name.includes("foo") && size < 1000;
234
+ return name.includes('foo') && size < 1000;
238
235
  },
239
236
  },
240
237
  });
@@ -318,7 +315,7 @@
318
315
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
319
316
 
320
317
  ```js
321
- import { forwardRef, useImperativeHandle } from "@lynx-js/react";
318
+ import { forwardRef, useImperativeHandle } from '@lynx-js/react';
322
319
 
323
320
  export default forwardRef(function App(_, ref) {
324
321
  useImperativeHandle(ref, () => {
@@ -326,7 +323,7 @@
326
323
  return {
327
324
  name() {
328
325
  // This should be considered as background only
329
- console.info("This should not exist in main-thread");
326
+ console.info('This should not exist in main-thread');
330
327
  },
331
328
  };
332
329
  });
@@ -386,14 +383,14 @@
386
383
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
387
384
 
388
385
  ```js
389
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
390
- import { defineConfig } from "@lynx-js/rspeedy";
386
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
387
+ import { defineConfig } from '@lynx-js/rspeedy';
391
388
 
392
389
  export default defineConfig({
393
390
  plugins: [
394
391
  pluginReactLynx({
395
392
  defineDCE: {
396
- __SOME_FALSE_DEFINE__: "false",
393
+ __SOME_FALSE_DEFINE__: 'false',
397
394
  },
398
395
  }),
399
396
  ],
@@ -405,20 +402,20 @@
405
402
  For example, `import` initialized by dead code will be removed:
406
403
 
407
404
  ```js
408
- import { foo } from "bar";
405
+ import { foo } from 'bar';
409
406
 
410
407
  if (__SOME_FALSE_DEFINE__) {
411
408
  foo();
412
- console.log("dead code");
409
+ console.log('dead code');
413
410
  } else {
414
- console.log("reachable code");
411
+ console.log('reachable code');
415
412
  }
416
413
  ```
417
414
 
418
415
  will be transformed to:
419
416
 
420
417
  ```js
421
- console.log("reachable code");
418
+ console.log('reachable code');
422
419
  ```
423
420
 
424
421
  ## 0.6.0
@@ -428,14 +425,14 @@
428
425
  - a30c83d: Add `compat.removeComponentAttrRegex`.
429
426
 
430
427
  ```js
431
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
432
- import { defineConfig } from "@lynx-js/rspeedy";
428
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
429
+ import { defineConfig } from '@lynx-js/rspeedy';
433
430
 
434
431
  export default defineConfig({
435
432
  plugins: [
436
433
  pluginReactLynx({
437
434
  compat: {
438
- removeComponentAttrRegex: "YOUR REGEX",
435
+ removeComponentAttrRegex: 'YOUR REGEX',
439
436
  },
440
437
  }),
441
438
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.10.2-canary-20260731-46dfcc21",
3
+ "version": "0.10.2",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -45,9 +45,9 @@
45
45
  "css-loader": "^7.1.4",
46
46
  "swc-loader": "^0.2.7",
47
47
  "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.10.0",
48
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.14.1-canary-20260731-46dfcc21",
49
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.123.2-canary-20260731-46dfcc21",
50
- "@lynx-js/test-tools": "0.0.0"
48
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.123.2",
49
+ "@lynx-js/test-tools": "0.0.0",
50
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.14.1"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@lynx-js/template-webpack-plugin": "*"