diff --git a/packages/e2e-playwright/package.json b/packages/e2e-playwright/package.json index 46abe882f5..9de7e57a19 100644 --- a/packages/e2e-playwright/package.json +++ b/packages/e2e-playwright/package.json @@ -26,6 +26,6 @@ "webpack-dev-server": "4.15.1" }, "dependencies": { - "@adyen/adyen-web": "6.0.0-alpha.6" + "@adyen/adyen-web": "6.0.0-alpha.7" } } diff --git a/packages/e2e/app/src/pages/Address/Address.js b/packages/e2e/app/src/pages/Address/Address.js index 499941a8ee..17510f7c15 100644 --- a/packages/e2e/app/src/pages/Address/Address.js +++ b/packages/e2e/app/src/pages/Address/Address.js @@ -4,7 +4,14 @@ import '../../style.scss'; import { countryCode } from '../../services/commonConfig'; const initCheckout = async () => { - window.checkout = await AdyenCheckout({ countryCode }); + window.checkout = await AdyenCheckout({ + countryCode, + _environmentUrls: { + cdn: { + translations: '/' + } + } + }); window.address = new Address(checkout).mount('.address-field'); }; diff --git a/packages/e2e/package.json b/packages/e2e/package.json index 79ee1e0d4d..bccbcb7222 100644 --- a/packages/e2e/package.json +++ b/packages/e2e/package.json @@ -41,6 +41,6 @@ "whatwg-fetch": "^3.6.2" }, "dependencies": { - "@adyen/adyen-web": "6.0.0-alpha.6" + "@adyen/adyen-web": "6.0.0-alpha.7" } } diff --git a/packages/lib/.size-limit.cjs b/packages/lib/.size-limit.cjs index 6202ace4fa..9176cad299 100644 --- a/packages/lib/.size-limit.cjs +++ b/packages/lib/.size-limit.cjs @@ -5,7 +5,7 @@ module.exports = [ { name: 'UMD', path: 'dist/umd/adyen.js', - limit: '230 KB', + limit: '100 KB', running: false, }, /** @@ -15,7 +15,7 @@ module.exports = [ name: 'Auto', path: 'auto/auto.js', import: "{ AdyenCheckout, Dropin }", - limit: '135 KB', + limit: '105 KB', running: false, }, /** @@ -25,21 +25,21 @@ module.exports = [ name: 'ESM - Core', path: 'dist/es/index.js', import: "{ AdyenCheckout }", - limit: '30 KB', + limit: '25 KB', running: false, }, { name: 'ESM - Core + Card', path: 'dist/es/index.js', import: "{ AdyenCheckout, Card }", - limit: '75 KB', + limit: '62 KB', running: false, }, { name: 'ESM - Core + Dropin with Card and Ideal', path: 'dist/es/index.js', import: "{ AdyenCheckout, Dropin, Card, Ideal }", - limit: '80 KB', + limit: '68 KB', running: false, }, ] diff --git a/packages/lib/package.json b/packages/lib/package.json index a9e2cbeb78..e3501b74c3 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -1,13 +1,11 @@ { "name": "@adyen/adyen-web", - "version": "6.0.0-alpha.6", + "version": "6.0.0-alpha.7", "license": "MIT", "homepage": "https://docs.adyen.com/checkout", "type": "module", "sideEffects": [ - "./auto/auto.js", - "./auto/auto.cjs", - "**/*.css" + "*.css" ], "main": "dist/cjs/index.cjs", "module": "dist/es-legacy/index.js", @@ -136,11 +134,11 @@ "whatwg-fetch": "3.6.20" }, "dependencies": { - "@adyen/bento-design-tokens": "0.5.4", + "@adyen/bento-design-tokens": "1.5.0", "@types/applepayjs": "14.0.8", "@types/googlepay": "0.7.6", "classnames": "2.5.1", - "preact": "10.20.2" + "preact": "10.21.0" }, "lint-staged": { "*.{js,jsx,ts,tsx}": "eslint", diff --git a/packages/lib/src/core/core.registry.ts b/packages/lib/src/core/core.registry.ts index b30e2b0727..37780bd07f 100644 --- a/packages/lib/src/core/core.registry.ts +++ b/packages/lib/src/core/core.registry.ts @@ -74,5 +74,4 @@ class Registry implements IRegistry { } } -// singleton instance -export default /* #__PURE__ */ new Registry(); +export default new Registry(); diff --git a/packages/playground/package.json b/packages/playground/package.json index 252263a882..01ba9b2751 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -41,6 +41,6 @@ "whatwg-fetch": "^3.6.2" }, "dependencies": { - "@adyen/adyen-web": "6.0.0-alpha.6" + "@adyen/adyen-web": "6.0.0-alpha.7" } } diff --git a/yarn.lock b/yarn.lock index 24ef7ab074..a4e751508b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7,10 +7,10 @@ resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.3.3.tgz#90749bde8b89cd41764224f5aac29cd4138f75ff" integrity sha512-rE0Pygv0sEZ4vBWHlAgJLGDU7Pm8xoO6p3wsEceb7GYAjScrOHpEo8KK/eVkAcnSM+slAEtXjA2JpdjLp4fJQQ== -"@adyen/bento-design-tokens@0.5.4": - version "0.5.4" - resolved "https://registry.yarnpkg.com/@adyen/bento-design-tokens/-/bento-design-tokens-0.5.4.tgz#07584bed6c4f1cb121ddf5d2dc085aa63989059c" - integrity sha512-62/Ivmg4rxoqs2nWaVcNHX/BQO01p2ZALdszncGnWj048kZ+3Gm7+XVqG3bOJq2Gxavwl2EcFSRwwnyQThFnig== +"@adyen/bento-design-tokens@1.5.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@adyen/bento-design-tokens/-/bento-design-tokens-1.5.0.tgz#d3b0dc8c3c9cecdcda40d2075742cddd0dbbfb2a" + integrity sha512-XC3dBol2uEIG2rsdNbNuzxeIlV78L9P7QMzXYHhEoOvI337s5djr55CGtJ7I2KpXpdiXeuTgrGneHT/fKj+DvQ== "@ampproject/remapping@^2.2.0": version "2.3.0" @@ -11110,10 +11110,10 @@ postcss@8.4.38, postcss@^8.4.31, postcss@^8.4.33, postcss@^8.4.38: picocolors "^1.0.0" source-map-js "^1.2.0" -preact@10.20.2: - version "10.20.2" - resolved "https://registry.yarnpkg.com/preact/-/preact-10.20.2.tgz#0b343299a8c020562311cc25db93b3d832ec5e71" - integrity sha512-S1d1ernz3KQ+Y2awUxKakpfOg2CEmJmwOP+6igPx6dgr6pgDvenqYviyokWso2rhHvGtTlWWnJDa7RaPbQerTg== +preact@10.21.0: + version "10.21.0" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.21.0.tgz#5b0335c873a1724deb66e517830db4fd310c24f6" + integrity sha512-aQAIxtzWEwH8ou+OovWVSVNlFImL7xUCwJX3YMqA3U8iKCNC34999fFOnWjYNsylgfPgMexpbk7WYOLtKr/mxg== preferred-pm@^3.0.0: version "3.1.3"