@lynx-js/template-webpack-plugin-canary 0.6.4-canary-20250309-b21403c1 → 0.6.4

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,15 +1,17 @@
1
1
  # @lynx-js/template-webpack-plugin
2
2
 
3
- ## 0.6.4-canary-20250309050636-b21403c107212fbc0a0033c067c0170555e0ad4c
3
+ ## 0.6.4
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Support NPM provenance. ([#30](https://github.com/lynx-family/lynx-stack/pull/30))
8
8
 
9
+ - Use WASM when NAPI is not available. ([#138](https://github.com/lynx-family/lynx-stack/pull/138))
10
+
9
11
  - Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
10
12
 
11
13
  ```js
12
- import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
14
+ import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
13
15
 
14
16
  new LynxTemplatePlugin({
15
17
  defaultOverflowVisible: false,
@@ -17,8 +19,8 @@
17
19
  ```
18
20
 
19
21
  - Updated dependencies [[`c617453`](https://github.com/lynx-family/lynx-stack/commit/c617453aea967aba702967deb2916b5c883f03bb)]:
20
- - @lynx-js/webpack-runtime-globals@0.0.5-canary-20250309050636-b21403c107212fbc0a0033c067c0170555e0ad4c
21
- - @lynx-js/css-serializer@0.1.2-canary-20250309050636-b21403c107212fbc0a0033c067c0170555e0ad4c
22
+ - @lynx-js/webpack-runtime-globals@0.0.5
23
+ - @lynx-js/css-serializer@0.1.2
22
24
 
23
25
  ## 0.6.3
24
26
 
@@ -28,10 +30,10 @@
28
30
  - 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
29
31
 
30
32
  ```js
31
- import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
33
+ import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
32
34
 
33
35
  const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
34
- hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
36
+ hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
35
37
  console.log(entryNames);
36
38
  });
37
39
  ```
@@ -141,7 +141,8 @@ export class LynxEncodePluginImpl {
141
141
  stage: LynxEncodePlugin.ENCODE_STAGE,
142
142
  }, async (args) => {
143
143
  const { encodeOptions } = args;
144
- const { encode } = await import('@lynx-js/tasm');
144
+ const { getEncodeMode } = await import('@lynx-js/tasm');
145
+ const encode = getEncodeMode();
145
146
  const { buffer, lepus_debug } = await Promise.resolve(encode(encodeOptions));
146
147
  return { buffer, debugInfo: lepus_debug };
147
148
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/template-webpack-plugin-canary",
3
- "version": "0.6.4-canary-20250309-b21403c1",
3
+ "version": "0.6.4",
4
4
  "description": "Simplifies creation of Lynx template files to serve your webpack bundles",
5
5
  "keywords": [
6
6
  "webpack",
@@ -32,9 +32,9 @@
32
32
  "README.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.2-canary-20250309-b21403c1",
35
+ "@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.2",
36
36
  "@lynx-js/tasm": "0.0.5",
37
- "@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.5-canary-20250309-b21403c1",
37
+ "@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.5",
38
38
  "@rspack/lite-tapable": "1.0.1",
39
39
  "css-tree": "^3.1.0",
40
40
  "object.groupby": "^1.0.3"