$ the-wire · showcase
SSR drops scoped v-bind() CSS vars on Transition roots
By RepoJournal · Filed · About Vue.js · Composed from the cited sources · methodology
Both of the day's worth-caring-about fixes are silent-wrong-output bugs: Vue's SSR compiler loses inline CSS variables when a template's root is a Transition, and test-utils disagree with real browsers about key names and nested global stubs.
fix(compiler-ssr): inject css vars into a Transition root vuejs/core
When a component's template root is `<Transition>`, the SSR compiler dropped the inline variables generated for `<style scoped>` `v-bind()`: a root that renders `<div style="--color:red;">` on the client came off the server as bare `<div>content</div>`. The fix makes the server render carry the same style attribute the client does, so scoped v-bind() styling no longer flickers or sticks at its ...
fix: use standard key values for trigger key modifiers vuejs/test-utils
`trigger('keydown.esc')` used to set `event.key` to `'esc'`, while browsers send `'Escape'`, so any handler written against the real key value (or `@keydown.escape`) never fired in tests. The modifiers now emit standard key values, which will change results for suites or libraries relying on the old lowercase string, the way some projects already worked around it by passing `{ key: 'Escape' }` ...
fix: render globally registered components stubbed with false when nested vuejs/test-utils
A `<style scoped>`-free nesting case: with `global.components` plus `stubs: { X: false }`, the un-stub only applied in the mounted component, so `X` rendered as `<!---->` in every child, with "Component is missing template or render function", under both `mount` and `shallowMount`, whether configured via mounting options or `config.global`.
fix(compiler/vapor): hydrate <slot v-if> in <template v-for> vuejs/vue-jsx-vapor
The vapor compiler for vue-jsx-vapor now hydrates `<slot v-if>` inside `<template v-for>`, ported from the equivalent core fix.