mirror of
https://github.com/ankitects/anki.git
synced 2026-09-10 10:59:28 -04:00
## Linked issue Closes #5361 ## Summary This bumps `eslint-plugin-compat` and the transitive dependency `browser-compat-data` for up-to-date data for the [browserslist](https://www.npmjs.com/package/browserslist) check. ## Steps to reproduce #5343 is failing with the error `DragEvent is not supported in iOS Safari 14.5-14.8 compat/compat` but this is not accurate according to [MDN](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent#browser_compatibility) and [caniuse.com](https://caniuse.com/?search=DragEvent). The issue was that we're using an outdated compatibility database. The update also uncovered an unrelated compatibility issue with `crypto.randomUUID`, which we started using in the editor in #4384 - this function does not meet our minimum Chrome version set in package.json, which we cannot update yet [^1], so the fix is to revert #4384. ## How to test Run `./ninja check`. [^1]: AnkiMobile [targets iOS 15.4](75e02cac40/anki.xcodeproj/project.pbxproj (L1240)), which supports the API, but AnkiDroid [targets Chrome 85](35903b666e/AnkiDroid/src/main/java/com/ichi2/utils/WebViewUtils.kt (L51)).