@lynx-js/react@0.123.2
Patch Changes
-
Resolve the
preactpeer dependency to the vendored@lynx-js/internal-preact, preventing duplicate preact copies in the dependency tree. (#3276) -
Tell the main thread when a background commit produces no element mutations. (#3010)
When a background render commits without any snapshot patch (or ElementTemplate update op) and without any pending
runOnMainThreadtask,__FlushElementTreeis now called withemptyPatch: true. Hosts that understand the flag can end the pipeline early instead of walking the whole update path; older hosts simply ignore the unknown option, so this is safe on every engine version. -
Optimize no-flatten attribute detection when transforming spread attributes. (#3238)
-
Add the experimental
experimental_transformBuiltinAttributeNamesoption for transforming builtin element attribute names.falsepreserves attribute names.truetransformsonClicktobindtap,onCatchTaptocatchtap, otheronXXXevent names tobindxxx, and remaining camelCase names to dash-case. An object supports serializable custom rules throughmode,preserve, andrename. Explicit JSX attributes are transformed during compilation, and spread attributes are transformed at runtime. (#3274)