Every new code block in a streaming reply stalled the tab, and each stall was longer than the one before. The stalls came from `style-mod`, the library CodeMirror uses for its styles: version 4.1.3 rewrote its style sheet every time a code block's editor was created, even when nothing had changed, and with Fade Effect for Streaming Text on the browser then restyled the whole reply, including every word still fading in. Version 4.1.4 only rewrites it when its styles actually changed, and this pins it in the lockfile. In the runs behind this change, a reply with 300 code blocks that arrived all at once shows in 9 seconds instead of 143, and the same reply streamed gradually no longer stalls for more than 0.7 seconds at a time instead of 5.4. What remains is one 6.7 second freeze when such a reply arrives all at once, and a gradual stream that still takes about 57 seconds, longer than the same text without code blocks.
Refs #34492
Converting 16,000 pasted lines to Markdown now takes 74 ms instead of 8.6 seconds, with byte-identical output. The converter got about 4x slower each time the text doubled, so every keystroke in the chat input after a large paste took seconds; its latest release fixes that and this is a plain version bump.
| Pasted lines | Before | After |
|---|---|---|
| 16,000 | 8,634 ms | 74 ms |
| 8,000 | 2,232 ms | 39 ms |
| 4,000 | 575 ms | 17 ms |
| 1,000 | 31 ms | 16 ms |
Related to #12087.
Pressing Backspace inside an unconfirmed IME composition in the chat input ended the composition, so the next keystrokes started a new one and the text appeared twice. This started in 0.12.4, when the editor library picked up a release that treats every deletion as a Backspace key press, including deletions the IME makes inside a composition, and the editor's Backspace handling then disturbs the composition. Pinning that library to the last release without this behaviour restores normal IME editing.
Fixes#33223
The web UI still shipped version 3.4.11 of DOMPurify, the library that strips unsafe HTML before content is shown, six releases behind DOMPurify's own latest. This moves it to 3.4.17, and new installs now require at least that version.
Co-authored-by: wesyoung2022 <115102004+wesyoung2022@users.noreply.github.com>