Repository navigation
@lynx-js/web-core@0.27.0
Minor Changes
-
Add
lynxView.sendNativeModuleEvent(moduleName, data)andcontext.setEventHandler(handler)onNativeModuleContextto push per-view, per-module structured-cloneable events from the main thread to background native modules. (#4411) -
Add an optional
nativeModulesInitDataproperty onlynx-viewto pass per-module structured-cloneable initial data via the 3rd context argument ({ initData }) to background native module factories without changingnativeModulesMap. (#4405)
Patch Changes
-
Resolve
@lynx-js/web-core/encodeto the unbundled encoder under thebrowsercondition. A browser bundle now loads its wasm through the bundler instead ofnode:fs, soWebEncodePlugincan encode web bundles in the browser through@rspack/browser. Node.js keeps using the prebuiltdist/encode_prod. (#4426) -
Add an opt-in
spunit transform. Set thetransform-spattribute or thetransformSPproperty on<lynx-view>to rewritesplengths in stylesheets and inline styles tocalc(N * var(--sp-unit)).--sp-unitdefaults to1px; set it on the<lynx-view>to follow the system font scale. (#4395)<lynx-view url="https://example.com/template.js" transform-sp="true" style="--sp-unit: 1.3px"></lynx-view>
-
Updated dependencies [
113c47d]:- @lynx-js/web-elements@0.12.20
- @lynx-js/web-worker-rpc@0.27.0