Skip to content

Commit

Permalink
v6 - Removing 'auto' from 'sideEffects' config (#2671)
Browse files Browse the repository at this point in the history
* new alpha. cleaned side-effects

* reducing size-limit kb bundles

* updated bento tokens

* updated preact
  • Loading branch information
ribeiroguilherme authored May 3, 2024
1 parent 825bae8 commit faa09b8
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
9 changes: 8 additions & 1 deletion packages/e2e/app/src/pages/Address/Address.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
};

Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
10 changes: 5 additions & 5 deletions packages/lib/.size-limit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = [
{
name: 'UMD',
path: 'dist/umd/adyen.js',
limit: '230 KB',
limit: '100 KB',
running: false,
},
/**
Expand All @@ -15,7 +15,7 @@ module.exports = [
name: 'Auto',
path: 'auto/auto.js',
import: "{ AdyenCheckout, Dropin }",
limit: '135 KB',
limit: '105 KB',
running: false,
},
/**
Expand All @@ -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,
},
]
10 changes: 4 additions & 6 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions packages/lib/src/core/core.registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ class Registry implements IRegistry {
}
}

// singleton instance
export default /* #__PURE__ */ new Registry();
export default new Registry();
2 changes: 1 addition & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -11110,10 +11110,10 @@ [email protected], 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"
Expand Down

0 comments on commit faa09b8

Please sign in to comment.