Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.229,
Internal ChangesSection of the release
What
The helper that trims a string to a byte budget now returns early when three bytes per character would still fit, and otherwise encodes and decodes with TextEncoder/TextDecoder, stripping any trailing replacement character left by a cut mid-sequence. Same results, less allocation.
Evidence
new TextDecoder().decode(r.subarray(0, t)).replace(/\uFFFD+$/, "")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.