@lynx-js/react-webpack-plugin-canary 0.6.9-canary-20250321-5b3dc1b6 → 0.6.9

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 +13 -17
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,15 +1,11 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
- ## 0.6.9-canary-20250321140921-5b3dc1b681e810fd48091d5fde403d7416590750
3
+ ## 0.6.9
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Support `@lynx-js/react` v0.106.0. ([#239](https://github.com/lynx-family/lynx-stack/pull/239))
8
8
 
9
- - Updated dependencies [[`ba26a4d`](https://github.com/lynx-family/lynx-stack/commit/ba26a4db1ec3dcfd445dd834533b3bc10b091686), [`2d29851`](https://github.com/lynx-family/lynx-stack/commit/2d2985150cf749bdea170aa994f1c85ab3ff1d36), [`7391bc8`](https://github.com/lynx-family/lynx-stack/commit/7391bc85029ab831a839e4f4fd554a889ceb1ed8), [`b18cbce`](https://github.com/lynx-family/lynx-stack/commit/b18cbce912b73efc7d76f4f872b2aa094c594153), [`462e97b`](https://github.com/lynx-family/lynx-stack/commit/462e97b28c12b554c0c825c7df453bdf433749ae)]:
10
- - @lynx-js/template-webpack-plugin@0.6.6-canary-20250321140921-5b3dc1b681e810fd48091d5fde403d7416590750
11
- - @lynx-js/react@0.106.0-canary-20250321140921-5b3dc1b681e810fd48091d5fde403d7416590750
12
-
13
9
  ## 0.6.8
14
10
 
15
11
  ### Patch Changes
@@ -17,7 +13,7 @@
17
13
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
18
14
 
19
15
  ```js
20
- import { forwardRef, useImperativeHandle } from "@lynx-js/react";
16
+ import { forwardRef, useImperativeHandle } from '@lynx-js/react';
21
17
 
22
18
  export default forwardRef(function App(_, ref) {
23
19
  useImperativeHandle(ref, () => {
@@ -25,7 +21,7 @@
25
21
  return {
26
22
  name() {
27
23
  // This should be considered as background only
28
- console.info("This should not exist in main-thread");
24
+ console.info('This should not exist in main-thread');
29
25
  },
30
26
  };
31
27
  });
@@ -85,14 +81,14 @@
85
81
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
86
82
 
87
83
  ```js
88
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
89
- import { defineConfig } from "@lynx-js/rspeedy";
84
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
85
+ import { defineConfig } from '@lynx-js/rspeedy';
90
86
 
91
87
  export default defineConfig({
92
88
  plugins: [
93
89
  pluginReactLynx({
94
90
  defineDCE: {
95
- __SOME_FALSE_DEFINE__: "false",
91
+ __SOME_FALSE_DEFINE__: 'false',
96
92
  },
97
93
  }),
98
94
  ],
@@ -104,20 +100,20 @@
104
100
  For example, `import` initialized by dead code will be removed:
105
101
 
106
102
  ```js
107
- import { foo } from "bar";
103
+ import { foo } from 'bar';
108
104
 
109
105
  if (__SOME_FALSE_DEFINE__) {
110
106
  foo();
111
- console.log("dead code");
107
+ console.log('dead code');
112
108
  } else {
113
- console.log("reachable code");
109
+ console.log('reachable code');
114
110
  }
115
111
  ```
116
112
 
117
113
  will be transformed to:
118
114
 
119
115
  ```js
120
- console.log("reachable code");
116
+ console.log('reachable code');
121
117
  ```
122
118
 
123
119
  ## 0.6.0
@@ -127,14 +123,14 @@
127
123
  - a30c83d: Add `compat.removeComponentAttrRegex`.
128
124
 
129
125
  ```js
130
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
131
- import { defineConfig } from "@lynx-js/rspeedy";
126
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
127
+ import { defineConfig } from '@lynx-js/rspeedy';
132
128
 
133
129
  export default defineConfig({
134
130
  plugins: [
135
131
  pluginReactLynx({
136
132
  compat: {
137
- removeComponentAttrRegex: "YOUR REGEX",
133
+ removeComponentAttrRegex: 'YOUR REGEX',
138
134
  },
139
135
  }),
140
136
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.6.9-canary-20250321-5b3dc1b6",
3
+ "version": "0.6.9",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -42,9 +42,9 @@
42
42
  "css-loader": "^7.1.2",
43
43
  "swc-loader": "^0.2.6",
44
44
  "webpack": "^5.98.0",
45
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.106.0",
45
46
  "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.5.2",
46
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.106.0-canary-20250321-5b3dc1b6",
47
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.6-canary-20250321-5b3dc1b6",
47
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.6",
48
48
  "@lynx-js/test-tools": "0.0.0",
49
49
  "@lynx-js/vitest-setup": "0.0.0"
50
50
  },