From 45296917522078792e08692a4faf25b537357374 Mon Sep 17 00:00:00 2001 From: Ferran Simon Date: Thu, 4 Jul 2024 11:02:36 +0200 Subject: [PATCH] feat(packages/sui-polyfills): Added polyfills for Array.prototype.at, Promise.allSettled and Promise --- package-lock.json | 11 ++++------- packages/sui-polyfills/src/index.js | 4 ++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 111434710..9255ad6fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10770,7 +10770,6 @@ "version": "6.2.2", "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-6.2.2.tgz", "integrity": "sha512-1E94YOTUDnOjSLyvOwmbVDzQi/WkKm3WVrMXu6SmBr6DN95xTGZmI6HJ/eOkSXh/DlheRsxaPsJvZByDBhWLVQ==", - "dev": true, "dependencies": { "@typescript-eslint/utils": "^5.58.0" }, @@ -23611,7 +23610,7 @@ } }, "packages/eslint-plugin-sui": { - "version": "1.6.0", + "version": "1.9.0", "license": "ISC", "dependencies": { "fast-glob": "3.3.2", @@ -24424,7 +24423,7 @@ }, "packages/sui-lint": { "name": "@s-ui/lint", - "version": "4.44.0", + "version": "4.45.0", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -24453,6 +24452,7 @@ "eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-simple-import-sort": "7.0.0", "eslint-plugin-sui": "1", + "eslint-plugin-testing-library": "6.2.2", "fast-glob": "3.3.2", "js-yaml": "4.1.0", "lint-repository-sui": "1", @@ -24465,9 +24465,6 @@ }, "bin": { "sui-lint": "bin/sui-lint.js" - }, - "devDependencies": { - "eslint-plugin-testing-library": "^6.2.2" } }, "packages/sui-lint/node_modules/@babel/core": { @@ -24667,7 +24664,7 @@ }, "packages/sui-pde": { "name": "@s-ui/pde", - "version": "2.24.0", + "version": "2.25.0", "license": "MIT", "dependencies": { "@optimizely/optimizely-sdk": "4.9.4", diff --git a/packages/sui-polyfills/src/index.js b/packages/sui-polyfills/src/index.js index 081d423a6..21cd58450 100644 --- a/packages/sui-polyfills/src/index.js +++ b/packages/sui-polyfills/src/index.js @@ -35,6 +35,10 @@ require('core-js/proposals/well-formed-unicode-strings') require('element-polyfill/polyfills/element.parent-node.append.js') +require('core-js/features/array/at.js') +require('core-js/features/promise/all-settled.js') +require('core-js/proposals/promise-with-resolvers.js') + require('./element-closest.js') require('./globalThis.js')