Loading
Bump @gitlab/at.js to 1.5.11
What does this MR do and why?
This MR bumps @gitlab/at.js from 1.5.9 to 1.5.11. It fixes TypeError: Cannot read properties of null (reading 'text'), which 14 feature specs log. The MR also removes the allowlist entry for this error.
at.js debounces lookups. When a keyup cleared the query before the timer fired, the timer still ran _lookUp with the old query. renderView then read this.query.text, and this.query was null. Version 1.5.11 cancels the timer when the query is cleared.
From 1.5.9 to 1.5.11, the only code change in the fork is this fix. The other commits are releases and a CI fix for publishing.
How to verify
- The feature specs in the removed allowlist entry fail if they still log the error. Examples are the
gfm_autocomplete_spec.rbfiles and the comment specs for issues and merge requests. yarn install --frozen-lockfilepasses with the newyarn.lock.
References
- Upstream fix in the fork: gitlab-org/frontend/At.js!19 (merged)
- Catalogue entry for this error: #628981 (closed)
- Catalogue of console errors in feature specs: #628901
- Same fix as a
patch-packagepatch, to be dropped from: !262368 (closed)