diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 70adea7fe..7aab9e9ad 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -72,5 +72,5 @@ jobs: test $lines -eq 204 - name: JavaScript code compatibility run: | - npx check-es-compat www/*.js --polyfills="\{Array,String,TypedArray\}.prototype.at,Array.prototype.flatMap,Array.prototype.flat,Array.prototype.includes,globalThis,Object.fromEntries,Object.hasOwn,Promise.prototype.finally,String.prototype.matchAll,String.prototype.trimRight" | grep "No issues found. Files are compatible with the target runtimes." + npx check-es-compat www/*.js --polyfills="\{Array,String,TypedArray\}.prototype.at,Object.hasOwn" npx check-es-compat cordova-plugin-moodleapp/www/*.js diff --git a/browserslist b/browserslist index 1868614c8..936a95628 100644 --- a/browserslist +++ b/browserslist @@ -10,6 +10,6 @@ # # More info: https://github.com/browserslist/browserslist -Android >= 5.1 +Android >= 7 iOS >= 14 Chrome >= 79 diff --git a/package-lock.json b/package-lock.json index 1fe48f259..24393154b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9560,9 +9560,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001616", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001616.tgz", - "integrity": "sha512-RHVYKov7IcdNjVHJFNY/78RdG4oGVjbayxv8u5IO74Wv7Hlq4PnJE6mo/OjFijjVFNy5ijnCt6H3IIo4t+wfEw==", + "version": "1.0.30001640", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001640.tgz", + "integrity": "sha512-lA4VMpW0PSUrFnkmVuEKBUovSWKhj7puyCg8StBChgu298N1AtuF1sKWEvfDuimSEDbhlb/KqPKC3fs1HbuQUA==", "funding": [ { "type": "opencollective", diff --git a/src/polyfills.ts b/src/polyfills.ts index 8debdd9b3..d597621f2 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -20,16 +20,8 @@ import 'zone.js'; // Platform polyfills import 'core-js/es/array/at'; -import 'core-js/es/array/flat-map'; -import 'core-js/es/array/flat'; -import 'core-js/es/array/includes'; -import 'core-js/es/global-this'; -import 'core-js/es/object/from-entries'; import 'core-js/es/object/has-own'; -import 'core-js/es/promise/finally'; import 'core-js/es/string/at'; -import 'core-js/es/string/match-all'; -import 'core-js/es/string/trim-right'; import 'core-js/es/typed-array/at'; polyfillEventComposedPath();