From 69750c74a65041764c99302cf2e80c8771b2990d Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 21 Nov 2024 13:30:57 +0100 Subject: [PATCH] Raise JavaScript version requirement So that we can use await at module top level. --- README.md | 2 +- eslint.config.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 30510858..794ff60f 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ noVNC uses many modern web technologies so a formal requirement list is not available. However these are the minimum versions we are currently aware of: -* Chrome 64, Firefox 79, Safari 13.4, Opera 51, Edge 79 +* Chrome 89, Firefox 89, Safari 15, Opera 75, Edge 89 ### Server Requirements diff --git a/eslint.config.mjs b/eslint.config.mjs index 13b1a32a..10a99ce1 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -5,11 +5,11 @@ export default [ js.configs.recommended, { languageOptions: { - ecmaVersion: 2020, + ecmaVersion: 2022, sourceType: "module", globals: { ...globals.browser, - ...globals.es2020, + ...globals.es2022, } }, ignores: ["**/xtscancodes.js"],