mirror of
https://github.com/ankitects/anki.git
synced 2026-10-21 06:39:46 +08: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](https://github.com/ankitects/ankimobile/blob/75e02cac4010e7bff5c705a69a65d2397678cd77/anki.xcodeproj/project.pbxproj#L1240), which supports the API, but AnkiDroid [targets Chrome 85](https://github.com/ankidroid/Anki-Android/blob/35903b666e05c66eec1418849d34123f3d356b8a/AnkiDroid/src/main/java/com/ichi2/utils/WebViewUtils.kt#L51).