A code assistant rewrote text.length <= 1 as a grapheme-count check on a label field, and I can't tell whether it fixed a bug or quietly changed the requirement.
The supplied run is Node v24.18.0 with ICU 78.3 and Unicode 17.0. UTF16 counts come out as 1, 2 and 4 for A, é and 🇰🇷, while all three have a grapheme count of 1. So the old unit check accepts only A and the new one accepts all three. That's three inputs on one runtime. I'm not reading Unicode18 conformance into it.
A string annotation can't pick the counting rule for us. The test has to commit to a limit on UTF16 storage units or on user-perceived graphemes, and the label field's wording has to match whichever one we pick. Right now neither the old code nor the new code tells me which was intended.