-
#3615
f234d49
Thanks @tylermorrisford! - We're introducing a change the waybuild
command works in terms of bundles generation. We've updated the configuration in order to reduce the size of the application's entry point bundle in favor of three four smaller bundles (which can be downloaded in parallel by the browser).This change has been applied to the build process no matter if you use
webpack
orvite
. Rememberwebpack
is used by default and you can opt-in tovite
by using this environment variable:ENABLE_EXPERIMENTAL_VITE_BUNDLER=true
Also, if you are using
vite
, we've also added a couple of plugins you can use to analyze the built bundle sizes:- vite-bundle-analyzer
- rollup-plugin-visualizer (tree visualization)
You can use them by setting this environment variables:
# vite-bundle-analyzer ANALYZE_BUNDLE=true # rollup-plugin-visualizer ANALYZE_BUNDLE_TREE=true
- Updated dependencies [
be08ecc
,8e5b0cf
]:- @commercetools-frontend/application-components@22.35.0
- @commercetools-frontend/constants@22.35.0
- @commercetools-frontend/application-config@22.35.0
- @commercetools-frontend/mc-html-template@22.35.0
- @commercetools-frontend/mc-dev-authentication@22.35.0
- @commercetools-frontend/assets@22.35.0
- @commercetools-frontend/babel-preset-mc-app@22.35.0
-
#3619
5d55a50
Thanks @ragafus! - Usedefer
when loading main application JavaScript chunks. -
Updated dependencies [
e27a447
,5d55a50
]:- @commercetools-frontend/constants@22.34.0
- @commercetools-frontend/mc-html-template@22.34.0
- @commercetools-frontend/application-components@22.34.0
- @commercetools-frontend/application-config@22.34.0
- @commercetools-frontend/mc-dev-authentication@22.34.0
- @commercetools-frontend/assets@22.34.0
- @commercetools-frontend/babel-preset-mc-app@22.34.0
- Updated dependencies [
c699f1b
]:- @commercetools-frontend/application-config@22.33.0
- @commercetools-frontend/application-components@22.33.0
- @commercetools-frontend/mc-dev-authentication@22.33.0
- @commercetools-frontend/mc-html-template@22.33.0
- @commercetools-frontend/assets@22.33.0
- @commercetools-frontend/babel-preset-mc-app@22.33.0
- @commercetools-frontend/constants@22.33.0
-
#3598
c9d0d03
Thanks @renovate! - Bump security dependencies -
Updated dependencies [
c9d0d03
]:- @commercetools-frontend/mc-html-template@22.32.2
- @commercetools-frontend/application-components@22.32.2
- @commercetools-frontend/application-config@22.32.2
- @commercetools-frontend/assets@22.32.2
- @commercetools-frontend/babel-preset-mc-app@22.32.2
- @commercetools-frontend/constants@22.32.2
- @commercetools-frontend/mc-dev-authentication@22.32.2
- Updated dependencies [
eb756ff
]:- @commercetools-frontend/assets@22.32.1
- @commercetools-frontend/application-components@22.32.1
- @commercetools-frontend/application-config@22.32.1
- @commercetools-frontend/babel-preset-mc-app@22.32.1
- @commercetools-frontend/constants@22.32.1
- @commercetools-frontend/mc-dev-authentication@22.32.1
- @commercetools-frontend/mc-html-template@22.32.1
- Updated dependencies [
6fc21a8
]:- @commercetools-frontend/application-components@22.32.0
- @commercetools-frontend/assets@22.32.0
- @commercetools-frontend/application-config@22.32.0
- @commercetools-frontend/babel-preset-mc-app@22.32.0
- @commercetools-frontend/constants@22.32.0
- @commercetools-frontend/mc-dev-authentication@22.32.0
- @commercetools-frontend/mc-html-template@22.32.0
- Updated dependencies [
2fe2e11
,d4a26cd
,d37e74e
]:- @commercetools-frontend/application-config@22.31.0
- @commercetools-frontend/constants@22.31.0
- @commercetools-frontend/application-components@22.31.0
- @commercetools-frontend/mc-dev-authentication@22.31.0
- @commercetools-frontend/mc-html-template@22.31.0
- @commercetools-frontend/assets@22.31.0
- @commercetools-frontend/babel-preset-mc-app@22.31.0
- Updated dependencies [
1f325ac
]:- @commercetools-frontend/application-components@22.30.3
- @commercetools-frontend/application-config@22.30.3
- @commercetools-frontend/assets@22.30.3
- @commercetools-frontend/babel-preset-mc-app@22.30.3
- @commercetools-frontend/constants@22.30.3
- @commercetools-frontend/mc-dev-authentication@22.30.3
- @commercetools-frontend/mc-html-template@22.30.3
- Updated dependencies []:
- @commercetools-frontend/application-components@22.30.2
- @commercetools-frontend/application-config@22.30.2
- @commercetools-frontend/assets@22.30.2
- @commercetools-frontend/babel-preset-mc-app@22.30.2
- @commercetools-frontend/constants@22.30.2
- @commercetools-frontend/mc-dev-authentication@22.30.2
- @commercetools-frontend/mc-html-template@22.30.2
- Updated dependencies []:
- @commercetools-frontend/application-components@22.30.1
- @commercetools-frontend/application-config@22.30.1
- @commercetools-frontend/assets@22.30.1
- @commercetools-frontend/babel-preset-mc-app@22.30.1
- @commercetools-frontend/constants@22.30.1
- @commercetools-frontend/mc-dev-authentication@22.30.1
- @commercetools-frontend/mc-html-template@22.30.1
- Updated dependencies [
113bace
]:- @commercetools-frontend/application-components@22.30.0
- @commercetools-frontend/application-config@22.30.0
- @commercetools-frontend/assets@22.30.0
- @commercetools-frontend/babel-preset-mc-app@22.30.0
- @commercetools-frontend/constants@22.30.0
- @commercetools-frontend/mc-dev-authentication@22.30.0
- @commercetools-frontend/mc-html-template@22.30.0
-
#3541
df253eb
Thanks @CarlosCortizasCT! - Included a new command (deployment-previews:set
) which allows to create deployment previews for Custom Applications. -
#3556
c63fd6a
Thanks @dogayuksel! -ENABLE_I18N_MESSAGE_COMPILATION
has been renamed toDISABLE_I18N_MESSAGE_COMPILATION
. With this change, the build command will now attempt to compile translation files located in the/i18n/data
directory by default. If an error occurs during this process, the original files will be used for the bundle instead. Additionally, a warning message will be displayed in non-CI environments.
-
Updated dependencies [
fcc8ce7
,03ae4b2
,4bd0fb6
,5363548
]:- @commercetools-frontend/application-components@22.29.0
- @commercetools-frontend/application-config@22.29.0
- @commercetools-frontend/mc-html-template@22.29.0
- @commercetools-frontend/mc-dev-authentication@22.29.0
- @commercetools-frontend/assets@22.29.0
- @commercetools-frontend/babel-preset-mc-app@22.29.0
- @commercetools-frontend/constants@22.29.0
-
Updated dependencies [
6eb78a4
]:- @commercetools-frontend/application-components@22.28.0
- @commercetools-frontend/application-config@22.28.0
- @commercetools-frontend/assets@22.28.0
- @commercetools-frontend/babel-preset-mc-app@22.28.0
- @commercetools-frontend/constants@22.28.0
- @commercetools-frontend/mc-dev-authentication@22.28.0
- @commercetools-frontend/mc-html-template@22.28.0
-
#3511
bcdd553
Thanks @dogayuksel! - Adds avite
plugin to compile i18n messages when buildingWhen both
ENABLE_EXPERIMENTAL_VITE_BUNDLER
andENABLE_I18N_MESSAGE_COMPILATION
are set totrue
on theprocess.env
,vite-plugin-i18n-message-compilation
will transform any file matching**/i18n/data/*.json
using thecompile
function from@formatjs/cli-lib
when building.Previously added
ENABLE_WEBPACK_LOADER_I18N_MESSAGE_COMPILATION
has been renamed toENABLE_I18N_MESSAGE_COMPILATION
for consistency.
-
Updated dependencies [
11eb32f
,4ab4bf6
,4f00d48
]:- @commercetools-frontend/application-components@22.27.0
- @commercetools-frontend/application-config@22.27.0
- @commercetools-frontend/constants@22.27.0
- @commercetools-frontend/mc-dev-authentication@22.27.0
- @commercetools-frontend/mc-html-template@22.27.0
- @commercetools-frontend/assets@22.27.0
- @commercetools-frontend/babel-preset-mc-app@22.27.0
- Updated dependencies [
179da9a
]:- @commercetools-frontend/assets@22.26.0
- @commercetools-frontend/application-components@22.26.0
- @commercetools-frontend/application-config@22.26.0
- @commercetools-frontend/babel-preset-mc-app@22.26.0
- @commercetools-frontend/constants@22.26.0
- @commercetools-frontend/mc-dev-authentication@22.26.0
- @commercetools-frontend/mc-html-template@22.26.0
- Updated dependencies []:
- @commercetools-frontend/application-components@22.25.1
- @commercetools-frontend/application-config@22.25.1
- @commercetools-frontend/assets@22.25.1
- @commercetools-frontend/babel-preset-mc-app@22.25.1
- @commercetools-frontend/constants@22.25.1
- @commercetools-frontend/mc-dev-authentication@22.25.1
- @commercetools-frontend/mc-html-template@22.25.1
-
#3496
4b5b680
Thanks @dogayuksel! - Adds awebpack
loader to compile i18n messages when buildingWhen setting
ENABLE_WEBPACK_LOADER_I18N_MESSAGE_COMPILATION
totrue
on theprocess.env
ai18n-message-compilation-loader
will transform any file matching/i18n\/data\/.*\.json$/
using thecompile
function from@formatjs/cli-lib
when building.
-
#3502
b55d4e6
Thanks @Rombelirk! - Replace fs.exists with fs.access -
Updated dependencies [
b5e797f
,b55d4e6
,a4cfaf1
]:- @commercetools-frontend/constants@22.25.0
- @commercetools-frontend/application-config@22.25.0
- @commercetools-frontend/application-components@22.25.0
- @commercetools-frontend/assets@22.25.0
- @commercetools-frontend/mc-html-template@22.25.0
- @commercetools-frontend/mc-dev-authentication@22.25.0
- @commercetools-frontend/babel-preset-mc-app@22.25.0
-
Updated dependencies [
d16ebd9
,d92d890
,6a7900d
,2431917
,c2bba1d
]:- @commercetools-frontend/application-components@22.24.0
- @commercetools-frontend/mc-html-template@22.24.0
- @commercetools-frontend/constants@22.24.0
- @commercetools-frontend/mc-dev-authentication@22.24.0
- @commercetools-frontend/babel-preset-mc-app@22.24.0
- @commercetools-frontend/application-config@22.24.0
- @commercetools-frontend/assets@22.24.0
- Updated dependencies [
f1144f9
]:- @commercetools-frontend/application-components@22.23.3
- @commercetools-frontend/application-config@22.23.3
- @commercetools-frontend/assets@22.23.3
- @commercetools-frontend/babel-preset-mc-app@22.23.3
- @commercetools-frontend/constants@22.23.3
- @commercetools-frontend/mc-dev-authentication@22.23.3
- @commercetools-frontend/mc-html-template@22.23.3
- Updated dependencies []:
- @commercetools-frontend/application-components@22.23.2
- @commercetools-frontend/application-config@22.23.2
- @commercetools-frontend/assets@22.23.2
- @commercetools-frontend/babel-preset-mc-app@22.23.2
- @commercetools-frontend/constants@22.23.2
- @commercetools-frontend/mc-dev-authentication@22.23.2
- @commercetools-frontend/mc-html-template@22.23.2
- Updated dependencies [
f2cec38
]:- @commercetools-frontend/application-components@22.23.1
- @commercetools-frontend/application-config@22.23.1
- @commercetools-frontend/assets@22.23.1
- @commercetools-frontend/babel-preset-mc-app@22.23.1
- @commercetools-frontend/constants@22.23.1
- @commercetools-frontend/mc-dev-authentication@22.23.1
- @commercetools-frontend/mc-html-template@22.23.1
-
#3473
4708993
Thanks @renovate! - Update vite dependency.Fixes this vulnerability.
-
Updated dependencies [
e7299e2
,5fa5dd6
,aa60c8e
]:- @commercetools-frontend/application-components@22.23.0
- @commercetools-frontend/application-config@22.23.0
- @commercetools-frontend/mc-html-template@22.23.0
- @commercetools-frontend/constants@22.23.0
- @commercetools-frontend/mc-dev-authentication@22.23.0
- @commercetools-frontend/assets@22.23.0
- @commercetools-frontend/babel-preset-mc-app@22.23.0
- Updated dependencies []:
- @commercetools-frontend/application-components@22.22.0
- @commercetools-frontend/application-config@22.22.0
- @commercetools-frontend/assets@22.22.0
- @commercetools-frontend/babel-preset-mc-app@22.22.0
- @commercetools-frontend/constants@22.22.0
- @commercetools-frontend/mc-dev-authentication@22.22.0
- @commercetools-frontend/mc-html-template@22.22.0
- Updated dependencies [
a3c5849ae
,463a10122
,9c817efc4
]:- @commercetools-frontend/application-components@22.21.0
- @commercetools-frontend/assets@22.21.0
- @commercetools-frontend/application-config@22.21.0
- @commercetools-frontend/babel-preset-mc-app@22.21.0
- @commercetools-frontend/constants@22.21.0
- @commercetools-frontend/mc-dev-authentication@22.21.0
- @commercetools-frontend/mc-html-template@22.21.0
- Updated dependencies []:
- @commercetools-frontend/application-components@22.20.0
- @commercetools-frontend/application-config@22.20.0
- @commercetools-frontend/assets@22.20.0
- @commercetools-frontend/babel-preset-mc-app@22.20.0
- @commercetools-frontend/constants@22.20.0
- @commercetools-frontend/mc-dev-authentication@22.20.0
- @commercetools-frontend/mc-html-template@22.20.0
- Updated dependencies [
e076438da
,dc2b492db
,325224ea5
]:- @commercetools-frontend/application-components@22.19.0
- @commercetools-frontend/assets@22.19.0
- @commercetools-frontend/constants@22.19.0
- @commercetools-frontend/application-config@22.19.0
- @commercetools-frontend/mc-html-template@22.19.0
- @commercetools-frontend/mc-dev-authentication@22.19.0
- @commercetools-frontend/babel-preset-mc-app@22.19.0
- Updated dependencies [
16de26adb
,d575e8402
]:- @commercetools-frontend/application-components@22.18.0
- @commercetools-frontend/application-config@22.18.0
- @commercetools-frontend/assets@22.18.0
- @commercetools-frontend/babel-preset-mc-app@22.18.0
- @commercetools-frontend/constants@22.18.0
- @commercetools-frontend/mc-dev-authentication@22.18.0
- @commercetools-frontend/mc-html-template@22.18.0
- Updated dependencies [
17c246a84
]:- @commercetools-frontend/application-components@22.17.2
- @commercetools-frontend/application-config@22.17.2
- @commercetools-frontend/assets@22.17.2
- @commercetools-frontend/babel-preset-mc-app@22.17.2
- @commercetools-frontend/constants@22.17.2
- @commercetools-frontend/mc-dev-authentication@22.17.2
- @commercetools-frontend/mc-html-template@22.17.2
- Updated dependencies [
8ad52e2c9
]:- @commercetools-frontend/assets@22.17.1
- @commercetools-frontend/application-components@22.17.1
- @commercetools-frontend/application-config@22.17.1
- @commercetools-frontend/babel-preset-mc-app@22.17.1
- @commercetools-frontend/constants@22.17.1
- @commercetools-frontend/mc-dev-authentication@22.17.1
- @commercetools-frontend/mc-html-template@22.17.1
- #3379
d2e3a2236
Thanks @tylermorrisford! - Update all logos inassets/logos/
, all logos inassets/images/
and embedded logo inapplication.html
.
-
#3381
628b81086
Thanks @renovate! - chore(deps): update dependency vite to v4.5.2 [security] -
Updated dependencies [
047e44e01
,d2e3a2236
,fe6314779
]:- @commercetools-frontend/application-config@22.17.0
- @commercetools-frontend/application-components@22.17.0
- @commercetools-frontend/mc-dev-authentication@22.17.0
- @commercetools-frontend/babel-preset-mc-app@22.17.0
- @commercetools-frontend/mc-html-template@22.17.0
- @commercetools-frontend/constants@22.17.0
- @commercetools-frontend/assets@22.17.0
- Updated dependencies [
97d102879
,05dfdefd5
]:- @commercetools-frontend/application-components@22.16.0
- @commercetools-frontend/application-config@22.16.0
- @commercetools-frontend/assets@22.16.0
- @commercetools-frontend/babel-preset-mc-app@22.16.0
- @commercetools-frontend/constants@22.16.0
- @commercetools-frontend/mc-dev-authentication@22.16.0
- @commercetools-frontend/mc-html-template@22.16.0
- Updated dependencies []:
- @commercetools-frontend/application-components@22.15.1
- @commercetools-frontend/application-config@22.15.1
- @commercetools-frontend/assets@22.15.1
- @commercetools-frontend/babel-preset-mc-app@22.15.1
- @commercetools-frontend/constants@22.15.1
- @commercetools-frontend/mc-dev-authentication@22.15.1
- @commercetools-frontend/mc-html-template@22.15.1
- Updated dependencies [
48f11f9dd
,48f11f9dd
,72ae1d305
,72ae1d305
]:- @commercetools-frontend/application-components@22.15.0
- @commercetools-frontend/constants@22.15.0
- @commercetools-frontend/application-config@22.15.0
- @commercetools-frontend/mc-html-template@22.15.0
- @commercetools-frontend/mc-dev-authentication@22.15.0
- @commercetools-frontend/assets@22.15.0
- @commercetools-frontend/babel-preset-mc-app@22.15.0
- Updated dependencies [
96a050a18
]:- @commercetools-frontend/application-components@22.14.3
- @commercetools-frontend/application-config@22.14.3
- @commercetools-frontend/assets@22.14.3
- @commercetools-frontend/babel-preset-mc-app@22.14.3
- @commercetools-frontend/constants@22.14.3
- @commercetools-frontend/mc-dev-authentication@22.14.3
- @commercetools-frontend/mc-html-template@22.14.3
-
#3342
5314f169e
Thanks @ByronDWall! - Avoid implementing 2 separate ID's for ID's that are declared and consumed in the same SVG file in webpack's SVGR loader and Vite SVGR plugin.More information about the approach can be found here.
-
Updated dependencies [
483fae792
,483fae792
,e7b84b1fb
]:- @commercetools-frontend/application-components@22.14.2
- @commercetools-frontend/constants@22.14.2
- @commercetools-frontend/application-config@22.14.2
- @commercetools-frontend/mc-html-template@22.14.2
- @commercetools-frontend/mc-dev-authentication@22.14.2
- @commercetools-frontend/assets@22.14.2
- @commercetools-frontend/babel-preset-mc-app@22.14.2
-
#3334
225c110b4
Thanks @emmenko! - Avoid collisions of SVG IDs in webpack's SVGR loader and Vite SVGR plugin.More information about the approach can be found here.
-
#3327
0d0b5330d
Thanks @renovate! - chore(deps): update dependency vite to v4.4.12 [security] -
Updated dependencies [
7e62ee10c
]:- @commercetools-frontend/application-components@22.14.1
- @commercetools-frontend/application-config@22.14.1
- @commercetools-frontend/assets@22.14.1
- @commercetools-frontend/babel-preset-mc-app@22.14.1
- @commercetools-frontend/constants@22.14.1
- @commercetools-frontend/mc-dev-authentication@22.14.1
- @commercetools-frontend/mc-html-template@22.14.1
- Updated dependencies []:
- @commercetools-frontend/application-components@22.14.0
- @commercetools-frontend/application-config@22.14.0
- @commercetools-frontend/assets@22.14.0
- @commercetools-frontend/babel-preset-mc-app@22.14.0
- @commercetools-frontend/constants@22.14.0
- @commercetools-frontend/mc-dev-authentication@22.14.0
- @commercetools-frontend/mc-html-template@22.14.0
- Updated dependencies [
13aa6ae2f
,13aa6ae2f
]:- @commercetools-frontend/application-components@22.13.2
- @commercetools-frontend/application-config@22.13.2
- @commercetools-frontend/assets@22.13.2
- @commercetools-frontend/babel-preset-mc-app@22.13.2
- @commercetools-frontend/constants@22.13.2
- @commercetools-frontend/mc-dev-authentication@22.13.2
- @commercetools-frontend/mc-html-template@22.13.2
- Updated dependencies [
44834670b
,e68b9f876
,4662db514
,4662db514
,a567e137c
,ceb1b741f
]:- @commercetools-frontend/application-components@22.13.1
- @commercetools-frontend/mc-html-template@22.13.1
- @commercetools-frontend/application-config@22.13.1
- @commercetools-frontend/assets@22.13.1
- @commercetools-frontend/babel-preset-mc-app@22.13.1
- @commercetools-frontend/constants@22.13.1
- @commercetools-frontend/mc-dev-authentication@22.13.1
- Updated dependencies [
db6e172ce
]:- @commercetools-frontend/application-components@22.13.0
- @commercetools-frontend/application-config@22.13.0
- @commercetools-frontend/assets@22.13.0
- @commercetools-frontend/babel-preset-mc-app@22.13.0
- @commercetools-frontend/constants@22.13.0
- @commercetools-frontend/mc-dev-authentication@22.13.0
- @commercetools-frontend/mc-html-template@22.13.0
- #3291
d3f4c91f1
Thanks @kark! - Enhance the functionality of themc-scripts config:sync
command to support custom views.
- Updated dependencies [
5de8c88ed
,f49adc33b
,41b15c7cb
,d3f4c91f1
]:- @commercetools-frontend/application-config@22.12.0
- @commercetools-frontend/application-components@22.12.0
- @commercetools-frontend/constants@22.12.0
- @commercetools-frontend/mc-dev-authentication@22.12.0
- @commercetools-frontend/mc-html-template@22.12.0
- @commercetools-frontend/assets@22.12.0
- @commercetools-frontend/babel-preset-mc-app@22.12.0
- Updated dependencies [
0c4936402
,0375328b1
,0375328b1
]:- @commercetools-frontend/application-components@22.11.0
- @commercetools-frontend/constants@22.11.0
- @commercetools-frontend/application-config@22.11.0
- @commercetools-frontend/mc-html-template@22.11.0
- @commercetools-frontend/mc-dev-authentication@22.11.0
- @commercetools-frontend/assets@22.11.0
- @commercetools-frontend/babel-preset-mc-app@22.11.0
- Updated dependencies [
deed7bafc
,669a46bf7
]:- @commercetools-frontend/application-config@22.10.0
- @commercetools-frontend/application-components@22.10.0
- @commercetools-frontend/mc-dev-authentication@22.10.0
- @commercetools-frontend/mc-html-template@22.10.0
- @commercetools-frontend/assets@22.10.0
- @commercetools-frontend/babel-preset-mc-app@22.10.0
- @commercetools-frontend/constants@22.10.0
- Updated dependencies []:
- @commercetools-frontend/application-components@22.9.1
- @commercetools-frontend/application-config@22.9.1
- @commercetools-frontend/assets@22.9.1
- @commercetools-frontend/babel-preset-mc-app@22.9.1
- @commercetools-frontend/constants@22.9.1
- @commercetools-frontend/mc-dev-authentication@22.9.1
- @commercetools-frontend/mc-html-template@22.9.1
- Updated dependencies [
fe0b5f7f5
,6023ff29e
]:- @commercetools-frontend/application-components@22.9.0
- @commercetools-frontend/constants@22.9.0
- @commercetools-frontend/application-config@22.9.0
- @commercetools-frontend/mc-html-template@22.9.0
- @commercetools-frontend/mc-dev-authentication@22.9.0
- @commercetools-frontend/assets@22.9.0
- @commercetools-frontend/babel-preset-mc-app@22.9.0
-
#3254
3a0e42017
Thanks @renovate! - fix(deps): update dependency postcss to v8.4.31 [security] -
Updated dependencies []:
- @commercetools-frontend/application-components@22.8.4
- @commercetools-frontend/application-config@22.8.4
- @commercetools-frontend/assets@22.8.4
- @commercetools-frontend/babel-preset-mc-app@22.8.4
- @commercetools-frontend/constants@22.8.4
- @commercetools-frontend/mc-dev-authentication@22.8.4
- @commercetools-frontend/mc-html-template@22.8.4
- Updated dependencies []:
- @commercetools-frontend/application-components@22.8.3
- @commercetools-frontend/application-config@22.8.3
- @commercetools-frontend/assets@22.8.3
- @commercetools-frontend/babel-preset-mc-app@22.8.3
- @commercetools-frontend/constants@22.8.3
- @commercetools-frontend/mc-dev-authentication@22.8.3
- @commercetools-frontend/mc-html-template@22.8.3
-
#3238
11a7cdecd
Thanks @kark! - Upgradevite
tov4.4.9
fix issues with local development mode in the playground app -
Updated dependencies []:
- @commercetools-frontend/application-components@22.8.2
- @commercetools-frontend/application-config@22.8.2
- @commercetools-frontend/assets@22.8.2
- @commercetools-frontend/babel-preset-mc-app@22.8.2
- @commercetools-frontend/constants@22.8.2
- @commercetools-frontend/mc-dev-authentication@22.8.2
- @commercetools-frontend/mc-html-template@22.8.2
- Updated dependencies [
ec2c26677
]:- @commercetools-frontend/application-config@22.8.1
- @commercetools-frontend/mc-dev-authentication@22.8.1
- @commercetools-frontend/mc-html-template@22.8.1
- @commercetools-frontend/application-components@22.8.1
- @commercetools-frontend/assets@22.8.1
- @commercetools-frontend/babel-preset-mc-app@22.8.1
- @commercetools-frontend/constants@22.8.1
- #3175
bd9df94b5
Thanks @CarlosCortizasCT! - Support loading and parsing of new config for Custom Views
-
#3157
b920f424c
Thanks @renovate! - chore(deps): update dependency vite to v4.1.5 [security] -
#3224
bef02f8ac
Thanks @renovate! - fix(deps): update dependency graphql to v16.8.1 [security] -
Updated dependencies [
cf560fbd4
,bd9df94b5
,e29ab64b6
,bd9df94b5
,e29ab64b6
,1986d18d1
]:- @commercetools-frontend/application-components@22.8.0
- @commercetools-frontend/application-config@22.8.0
- @commercetools-frontend/mc-html-template@22.8.0
- @commercetools-frontend/constants@22.8.0
- @commercetools-frontend/babel-preset-mc-app@22.8.0
- @commercetools-frontend/mc-dev-authentication@22.8.0
- @commercetools-frontend/assets@22.8.0
- Updated dependencies []:
- @commercetools-frontend/application-components@22.7.1
- @commercetools-frontend/application-config@22.7.1
- @commercetools-frontend/assets@22.7.1
- @commercetools-frontend/babel-preset-mc-app@22.7.1
- @commercetools-frontend/constants@22.7.1
- @commercetools-frontend/mc-dev-authentication@22.7.1
- @commercetools-frontend/mc-html-template@22.7.1
-
#3178
e301f79f9
Thanks @emmenko! - Adjust the dev auth server compat with HTTP request / response options -
Updated dependencies [
a6ebc4d1b
,c3a7893c0
,bf2df5683
,9224192b8
,69667013c
,69667013c
,e301f79f9
]:- @commercetools-frontend/application-components@22.7.0
- @commercetools-frontend/application-config@22.7.0
- @commercetools-frontend/constants@22.7.0
- @commercetools-frontend/mc-dev-authentication@22.7.0
- @commercetools-frontend/mc-html-template@22.7.0
- @commercetools-frontend/assets@22.7.0
- @commercetools-frontend/babel-preset-mc-app@22.7.0
- Updated dependencies [
34c2e4e06
,2fef66247
]:- @commercetools-frontend/mc-html-template@22.6.0
- @commercetools-frontend/constants@22.6.0
- @commercetools-frontend/application-components@22.6.0
- @commercetools-frontend/application-config@22.6.0
- @commercetools-frontend/assets@22.6.0
- @commercetools-frontend/babel-preset-mc-app@22.6.0
- @commercetools-frontend/mc-dev-authentication@22.6.0
-
#3154
4343c8392
Thanks @emmenko! - Send thex-application-id
header when using the MC API -
#3152
064bb2fa8
Thanks @kark! - Fix playground in dev mode by downgradingvite
tov4.1.4
-
#3135
6c4094e0e
Thanks @renovate! - Update@tsconfig/node16
dependency. -
Updated dependencies [
a90891658
,bcfe23393
,6c4094e0e
,6cef91c8e
,6b6f15623
]:- @commercetools-frontend/application-components@22.5.0
- @commercetools-frontend/application-config@22.5.0
- @commercetools-frontend/mc-dev-authentication@22.5.0
- @commercetools-frontend/mc-html-template@22.5.0
- @commercetools-frontend/constants@22.5.0
- @commercetools-frontend/assets@22.5.0
- @commercetools-frontend/babel-preset-mc-app@22.5.0
- Updated dependencies []:
- @commercetools-frontend/application-components@22.4.0
- @commercetools-frontend/application-config@22.4.0
- @commercetools-frontend/assets@22.4.0
- @commercetools-frontend/babel-preset-mc-app@22.4.0
- @commercetools-frontend/constants@22.4.0
- @commercetools-frontend/mc-dev-authentication@22.4.0
- @commercetools-frontend/mc-html-template@22.4.0
- Updated dependencies [
439abfe18
]:- @commercetools-frontend/application-components@22.3.4
- @commercetools-frontend/application-config@22.3.4
- @commercetools-frontend/assets@22.3.4
- @commercetools-frontend/babel-preset-mc-app@22.3.4
- @commercetools-frontend/constants@22.3.4
- @commercetools-frontend/mc-dev-authentication@22.3.4
- @commercetools-frontend/mc-html-template@22.3.4
- Updated dependencies [
0918b4620
]:- @commercetools-frontend/application-components@22.3.3
- @commercetools-frontend/application-config@22.3.3
- @commercetools-frontend/assets@22.3.3
- @commercetools-frontend/babel-preset-mc-app@22.3.3
- @commercetools-frontend/constants@22.3.3
- @commercetools-frontend/mc-dev-authentication@22.3.3
- @commercetools-frontend/mc-html-template@22.3.3
-
Updated dependencies [
7d2221314
,14f31aae4
]:- @commercetools-frontend/application-components@22.3.2
- @commercetools-frontend/application-config@22.3.2
- @commercetools-frontend/assets@22.3.2
- @commercetools-frontend/babel-preset-mc-app@22.3.2
- @commercetools-frontend/constants@22.3.2
- @commercetools-frontend/mc-dev-authentication@22.3.2
- @commercetools-frontend/mc-html-template@22.3.2
- Updated dependencies [
8e814adfb
,e21250f2a
,b38784748
,0c391fba4
,d8b48486a
]:- @commercetools-frontend/application-components@22.3.1
- @commercetools-frontend/assets@22.3.1
- @commercetools-frontend/application-config@22.3.1
- @commercetools-frontend/mc-dev-authentication@22.3.1
- @commercetools-frontend/mc-html-template@22.3.1
- @commercetools-frontend/babel-preset-mc-app@22.3.1
- @commercetools-frontend/constants@22.3.1
- #2976
9add8f46b
Thanks @emmenko! - We migrate from Yarn to Pnpm as the package manager for the App Kit repository. As a result of it there were several packages that didn't specify all the needed dependencies. This is fixed now.
-
Updated dependencies [
448774957
,9add8f46b
]:- @commercetools-frontend/application-components@22.3.0
- @commercetools-frontend/mc-dev-authentication@22.3.0
- @commercetools-frontend/application-config@22.3.0
- @commercetools-frontend/mc-html-template@22.3.0
- @commercetools-frontend/assets@22.3.0
- @commercetools-frontend/babel-preset-mc-app@22.3.0
- @commercetools-frontend/constants@22.3.0
- Updated dependencies []:
- @commercetools-frontend/application-config@22.2.1
- @commercetools-frontend/assets@22.2.1
- @commercetools-frontend/babel-preset-mc-app@22.2.1
- @commercetools-frontend/constants@22.2.1
- @commercetools-frontend/mc-dev-authentication@22.2.1
- @commercetools-frontend/mc-html-template@22.2.1
-
#2924
21242a2b9
Thanks @emmenko! - Add opt-in support for production sourcemaps when using Vite, by defining the environment variableENABLE_EXPERIMENTAL_VITE_BUNDLER_SOURCEMAP=true
. -
Updated dependencies []:
- @commercetools-frontend/application-config@22.2.0
- @commercetools-frontend/assets@22.2.0
- @commercetools-frontend/babel-preset-mc-app@22.2.0
- @commercetools-frontend/constants@22.2.0
- @commercetools-frontend/mc-dev-authentication@22.2.0
- @commercetools-frontend/mc-html-template@22.2.0
- Updated dependencies [
0df1cb8e1
]:- @commercetools-frontend/assets@22.1.0
- @commercetools-frontend/application-config@22.1.0
- @commercetools-frontend/babel-preset-mc-app@22.1.0
- @commercetools-frontend/constants@22.1.0
- @commercetools-frontend/mc-dev-authentication@22.1.0
- @commercetools-frontend/mc-html-template@22.1.0
-
Updated dependencies [
6629d8470
]:- @commercetools-frontend/mc-html-template@22.0.1
- @commercetools-frontend/application-config@22.0.1
- @commercetools-frontend/assets@22.0.1
- @commercetools-frontend/babel-preset-mc-app@22.0.1
- @commercetools-frontend/constants@22.0.1
- @commercetools-frontend/mc-dev-authentication@22.0.1
- #3039
76ba54c16
Thanks @emmenko! - Drop support for Node.jsv14
. Make sure you use Node.jsv16
or>=v18
.
- Updated dependencies [
968c3c4d2
,76ba54c16
,1f64ec6bd
]:- @commercetools-frontend/application-config@22.0.0
- @commercetools-frontend/mc-dev-authentication@22.0.0
- @commercetools-frontend/babel-preset-mc-app@22.0.0
- @commercetools-frontend/mc-html-template@22.0.0
- @commercetools-frontend/constants@22.0.0
- @commercetools-frontend/assets@22.0.0
- Updated dependencies []:
- @commercetools-frontend/application-config@21.25.2
- @commercetools-frontend/assets@21.25.2
- @commercetools-frontend/babel-preset-mc-app@21.25.2
- @commercetools-frontend/constants@21.25.2
- @commercetools-frontend/mc-dev-authentication@21.25.2
- @commercetools-frontend/mc-html-template@21.25.2
- Updated dependencies []:
- @commercetools-frontend/application-config@21.25.1
- @commercetools-frontend/assets@21.25.1
- @commercetools-frontend/babel-preset-mc-app@21.25.1
- @commercetools-frontend/constants@21.25.1
- @commercetools-frontend/mc-dev-authentication@21.25.1
- @commercetools-frontend/mc-html-template@21.25.1
- Updated dependencies []:
- @commercetools-frontend/application-config@21.25.0
- @commercetools-frontend/assets@21.25.0
- @commercetools-frontend/babel-preset-mc-app@21.25.0
- @commercetools-frontend/constants@21.25.0
- @commercetools-frontend/mc-dev-authentication@21.25.0
- @commercetools-frontend/mc-html-template@21.25.0
- Updated dependencies [
dbacb0541
]:- @commercetools-frontend/assets@21.24.3
- @commercetools-frontend/application-config@21.24.3
- @commercetools-frontend/babel-preset-mc-app@21.24.3
- @commercetools-frontend/constants@21.24.3
- @commercetools-frontend/mc-dev-authentication@21.24.3
- @commercetools-frontend/mc-html-template@21.24.3
- Updated dependencies []:
- @commercetools-frontend/application-config@21.24.2
- @commercetools-frontend/assets@21.24.2
- @commercetools-frontend/babel-preset-mc-app@21.24.2
- @commercetools-frontend/constants@21.24.2
- @commercetools-frontend/mc-dev-authentication@21.24.2
- @commercetools-frontend/mc-html-template@21.24.2
- Updated dependencies [
ec7abe2cb
]:- @commercetools-frontend/assets@21.24.1
- @commercetools-frontend/application-config@21.24.1
- @commercetools-frontend/babel-preset-mc-app@21.24.1
- @commercetools-frontend/constants@21.24.1
- @commercetools-frontend/mc-dev-authentication@21.24.1
- @commercetools-frontend/mc-html-template@21.24.1
-
Updated dependencies [
e42f8d903
,007cb8a04
,a78e9684d
,7074d035c
,da89fae2b
,0cd9bf7dc
,9b20f5c15
]:- @commercetools-frontend/mc-dev-authentication@21.24.0
- @commercetools-frontend/application-config@21.24.0
- @commercetools-frontend/mc-html-template@21.24.0
- @commercetools-frontend/babel-preset-mc-app@21.24.0
- @commercetools-frontend/assets@21.24.0
- @commercetools-frontend/constants@21.24.0
- Updated dependencies []:
- @commercetools-frontend/application-config@21.23.10
- @commercetools-frontend/assets@21.23.10
- @commercetools-frontend/babel-preset-mc-app@21.23.10
- @commercetools-frontend/constants@21.23.10
- @commercetools-frontend/mc-dev-authentication@21.23.10
- @commercetools-frontend/mc-html-template@21.23.10
-
#2979
6dcd48525
Thanks @emmenko! - Refine engine version requirements for Nodejs to be14.x || >=16.0.0
-
Updated dependencies [
6dcd48525
]:- @commercetools-frontend/mc-dev-authentication@21.23.9
- @commercetools-frontend/babel-preset-mc-app@21.23.9
- @commercetools-frontend/application-config@21.23.9
- @commercetools-frontend/mc-html-template@21.23.9
- @commercetools-frontend/assets@21.23.9
- @commercetools-frontend/constants@21.23.9
- Updated dependencies [
bca4133da
,78c6ad44c
]:- @commercetools-frontend/mc-dev-authentication@21.23.8
- @commercetools-frontend/constants@21.23.8
- @commercetools-frontend/mc-html-template@21.23.8
- @commercetools-frontend/application-config@21.23.8
- @commercetools-frontend/assets@21.23.8
- @commercetools-frontend/babel-preset-mc-app@21.23.8
-
#2958
c8069d85d
Thanks @kark! - Replacercfile
for reading Prettier config with Prettier API -
Updated dependencies [
4377b3642
]:- @commercetools-frontend/mc-dev-authentication@21.23.7
- @commercetools-frontend/babel-preset-mc-app@21.23.7
- @commercetools-frontend/application-config@21.23.7
- @commercetools-frontend/mc-html-template@21.23.7
- @commercetools-frontend/constants@21.23.7
- @commercetools-frontend/assets@21.23.7
- Updated dependencies []:
- @commercetools-frontend/application-config@21.23.6
- @commercetools-frontend/assets@21.23.6
- @commercetools-frontend/babel-preset-mc-app@21.23.6
- @commercetools-frontend/constants@21.23.6
- @commercetools-frontend/mc-dev-authentication@21.23.6
- @commercetools-frontend/mc-html-template@21.23.6
- Updated dependencies [
ff5542f5d
]:- @commercetools-frontend/assets@21.23.5
- @commercetools-frontend/application-config@21.23.5
- @commercetools-frontend/babel-preset-mc-app@21.23.5
- @commercetools-frontend/constants@21.23.5
- @commercetools-frontend/mc-dev-authentication@21.23.5
- @commercetools-frontend/mc-html-template@21.23.5
- Updated dependencies []:
- @commercetools-frontend/application-config@21.23.4
- @commercetools-frontend/assets@21.23.4
- @commercetools-frontend/babel-preset-mc-app@21.23.4
- @commercetools-frontend/constants@21.23.4
- @commercetools-frontend/mc-dev-authentication@21.23.4
- @commercetools-frontend/mc-html-template@21.23.4
- Updated dependencies []:
- @commercetools-frontend/application-config@21.23.3
- @commercetools-frontend/assets@21.23.3
- @commercetools-frontend/babel-preset-mc-app@21.23.3
- @commercetools-frontend/constants@21.23.3
- @commercetools-frontend/mc-dev-authentication@21.23.3
- @commercetools-frontend/mc-html-template@21.23.3
- Updated dependencies [
3c8431579
]:- @commercetools-frontend/assets@21.23.2
- @commercetools-frontend/application-config@21.23.2
- @commercetools-frontend/babel-preset-mc-app@21.23.2
- @commercetools-frontend/constants@21.23.2
- @commercetools-frontend/mc-dev-authentication@21.23.2
- @commercetools-frontend/mc-html-template@21.23.2
- Updated dependencies [
233c7edfc
]:- @commercetools-frontend/assets@21.23.1
- @commercetools-frontend/application-config@21.23.1
- @commercetools-frontend/babel-preset-mc-app@21.23.1
- @commercetools-frontend/constants@21.23.1
- @commercetools-frontend/mc-dev-authentication@21.23.1
- @commercetools-frontend/mc-html-template@21.23.1
- Updated dependencies []:
- @commercetools-frontend/application-config@21.23.0
- @commercetools-frontend/assets@21.23.0
- @commercetools-frontend/babel-preset-mc-app@21.23.0
- @commercetools-frontend/constants@21.23.0
- @commercetools-frontend/mc-dev-authentication@21.23.0
- @commercetools-frontend/mc-html-template@21.23.0
- Updated dependencies []:
- @commercetools-frontend/application-config@21.22.1
- @commercetools-frontend/assets@21.22.1
- @commercetools-frontend/babel-preset-mc-app@21.22.1
- @commercetools-frontend/constants@21.22.1
- @commercetools-frontend/mc-dev-authentication@21.22.1
- @commercetools-frontend/mc-html-template@21.22.1
-
#2911
5db3e57a7
Thanks @emmenko! - Upgrade Vite to v4 and Rollup to v5 -
Updated dependencies [
caee9e27e
]:- @commercetools-frontend/assets@21.22.0
- @commercetools-frontend/application-config@21.22.0
- @commercetools-frontend/babel-preset-mc-app@21.22.0
- @commercetools-frontend/constants@21.22.0
- @commercetools-frontend/mc-dev-authentication@21.22.0
- @commercetools-frontend/mc-html-template@21.22.0
-
#2918
e52e8a782
Thanks @emmenko! - Revert usingworkspace:
protocol -
Updated dependencies [
e52e8a782
]:- @commercetools-frontend/application-config@21.21.2
- @commercetools-frontend/mc-dev-authentication@21.21.2
- @commercetools-frontend/mc-html-template@21.21.2
- @commercetools-frontend/assets@21.21.2
- @commercetools-frontend/babel-preset-mc-app@21.21.2
- @commercetools-frontend/constants@21.21.2
-
#2881
e3ffe6c11
Thanks @emmenko! - Useworkspace:
version syntax for link workspace packages -
Updated dependencies [
63dc7cd5f
,e3ffe6c11
]:- @commercetools-frontend/application-config@21.21.1
- @commercetools-frontend/mc-html-template@21.21.1
- @commercetools-frontend/mc-dev-authentication@21.21.1
- @commercetools-frontend/assets@21.21.1
- @commercetools-frontend/babel-preset-mc-app@21.21.1
- @commercetools-frontend/constants@21.21.1
-
#2799
033d95e08
Thanks @kark! - Enable configuring granular permissions in Custom Applications.Additional permissions are defined by adding permission groups in the Custom Application config. See docs.
- Updated dependencies [
033d95e08
]:- @commercetools-frontend/application-config@21.21.0
- @commercetools-frontend/constants@21.21.0
- @commercetools-frontend/mc-dev-authentication@21.21.0
- @commercetools-frontend/mc-html-template@21.21.0
- @commercetools-frontend/assets@21.21.0
- @commercetools-frontend/babel-preset-mc-app@21.21.0
- Updated dependencies []:
- @commercetools-frontend/application-config@21.20.5
- @commercetools-frontend/assets@21.20.5
- @commercetools-frontend/babel-preset-mc-app@21.20.5
- @commercetools-frontend/constants@21.20.5
- @commercetools-frontend/mc-dev-authentication@21.20.5
- @commercetools-frontend/mc-html-template@21.20.5
-
#2903
3d46e9fb7
Thanks @emmenko! - Add@babel/plugin-proposal-do-expressions
plugin to Vite config -
Updated dependencies []:
- @commercetools-frontend/application-config@21.20.4
- @commercetools-frontend/assets@21.20.4
- @commercetools-frontend/babel-preset-mc-app@21.20.4
- @commercetools-frontend/constants@21.20.4
- @commercetools-frontend/mc-dev-authentication@21.20.4
- @commercetools-frontend/mc-html-template@21.20.4
- Updated dependencies []:
- @commercetools-frontend/application-config@21.20.3
- @commercetools-frontend/assets@21.20.3
- @commercetools-frontend/babel-preset-mc-app@21.20.3
- @commercetools-frontend/constants@21.20.3
- @commercetools-frontend/mc-dev-authentication@21.20.3
- @commercetools-frontend/mc-html-template@21.20.3
- Updated dependencies [
66acf9b96
]:- @commercetools-frontend/mc-html-template@21.20.2
- @commercetools-frontend/application-config@21.20.2
- @commercetools-frontend/assets@21.20.2
- @commercetools-frontend/babel-preset-mc-app@21.20.2
- @commercetools-frontend/constants@21.20.2
- @commercetools-frontend/mc-dev-authentication@21.20.2
-
#2887
b0a35ec80
Thanks @emmenko! - Treat*.css
imports as side effects in Webpack loaders -
Updated dependencies []:
- @commercetools-frontend/application-config@21.20.1
- @commercetools-frontend/assets@21.20.1
- @commercetools-frontend/babel-preset-mc-app@21.20.1
- @commercetools-frontend/constants@21.20.1
- @commercetools-frontend/mc-dev-authentication@21.20.1
- @commercetools-frontend/mc-html-template@21.20.1
- Updated dependencies [
403e072b7
]:- @commercetools-frontend/mc-html-template@21.20.0
- @commercetools-frontend/application-config@21.20.0
- @commercetools-frontend/assets@21.20.0
- @commercetools-frontend/babel-preset-mc-app@21.20.0
- @commercetools-frontend/constants@21.20.0
- @commercetools-frontend/mc-dev-authentication@21.20.0
- #2864
bbfdd8478
Thanks @emmenko! - The CLI commandconfig:sync
now attempts to automatically refresh the access token.
- Updated dependencies []:
- @commercetools-frontend/application-config@21.19.0
- @commercetools-frontend/assets@21.19.0
- @commercetools-frontend/babel-preset-mc-app@21.19.0
- @commercetools-frontend/constants@21.19.0
- @commercetools-frontend/mc-dev-authentication@21.19.0
- @commercetools-frontend/mc-html-template@21.19.0
- Updated dependencies []:
- @commercetools-frontend/application-config@21.18.1
- @commercetools-frontend/assets@21.18.1
- @commercetools-frontend/babel-preset-mc-app@21.18.1
- @commercetools-frontend/constants@21.18.1
- @commercetools-frontend/mc-dev-authentication@21.18.1
- @commercetools-frontend/mc-html-template@21.18.1
-
#2862
836c86aa1
Thanks @emmenko! - Sanitize SVG icon only when comparing diffs, as the icon is sanitized in the API. Expose thesanitizeSvg
logic from the@commercetools-frontend/application-config
. -
Updated dependencies [
84c29cebe
,836c86aa1
,3959ed2a0
,53d2c287f
]:- @commercetools-frontend/application-config@21.18.0
- @commercetools-frontend/mc-dev-authentication@21.18.0
- @commercetools-frontend/mc-html-template@21.18.0
- @commercetools-frontend/assets@21.18.0
- @commercetools-frontend/babel-preset-mc-app@21.18.0
- @commercetools-frontend/constants@21.18.0
-
#2839
f5eb8d77c
Thanks @CarlosCortizasCT! - Updateui-kit
dependencies -
Updated dependencies []:
- @commercetools-frontend/application-config@21.17.0
- @commercetools-frontend/assets@21.17.0
- @commercetools-frontend/babel-preset-mc-app@21.17.0
- @commercetools-frontend/constants@21.17.0
- @commercetools-frontend/mc-dev-authentication@21.17.0
- @commercetools-frontend/mc-html-template@21.17.0
-
#2580
1c40c40c9
Thanks @renovate! - Update@testing-library/react-hooks
package to version8.0.0
. -
Updated dependencies [
11192ad4b
]:- @commercetools-frontend/mc-html-template@21.16.0
- @commercetools-frontend/application-config@21.16.0
- @commercetools-frontend/assets@21.16.0
- @commercetools-frontend/babel-preset-mc-app@21.16.0
- @commercetools-frontend/constants@21.16.0
- @commercetools-frontend/mc-dev-authentication@21.16.0
-
Updated dependencies []:
- @commercetools-frontend/application-config@21.15.0
- @commercetools-frontend/assets@21.15.0
- @commercetools-frontend/babel-preset-mc-app@21.15.0
- @commercetools-frontend/constants@21.15.0
- @commercetools-frontend/mc-dev-authentication@21.15.0
- @commercetools-frontend/mc-html-template@21.15.0
- Updated dependencies []:
- @commercetools-frontend/application-config@21.14.3
- @commercetools-frontend/assets@21.14.3
- @commercetools-frontend/babel-preset-mc-app@21.14.3
- @commercetools-frontend/constants@21.14.3
- @commercetools-frontend/mc-dev-authentication@21.14.3
- @commercetools-frontend/mc-html-template@21.14.3
-
Updated dependencies [
00d9edcb4
]:- @commercetools-frontend/application-config@21.14.2
- @commercetools-frontend/babel-preset-mc-app@21.14.2
- @commercetools-frontend/constants@21.14.2
- @commercetools-frontend/mc-dev-authentication@21.14.2
- @commercetools-frontend/mc-html-template@21.14.2
- @commercetools-frontend/assets@21.14.2
- Updated dependencies [
91c0da4f9
]:- @commercetools-frontend/application-config@21.14.1
- @commercetools-frontend/mc-dev-authentication@21.14.1
- @commercetools-frontend/mc-html-template@21.14.1
- @commercetools-frontend/assets@21.14.1
- @commercetools-frontend/babel-preset-mc-app@21.14.1
- @commercetools-frontend/constants@21.14.1
- Updated dependencies []:
- @commercetools-frontend/application-config@21.14.0
- @commercetools-frontend/assets@21.14.0
- @commercetools-frontend/babel-preset-mc-app@21.14.0
- @commercetools-frontend/constants@21.14.0
- @commercetools-frontend/mc-dev-authentication@21.14.0
- @commercetools-frontend/mc-html-template@21.14.0
-
482ad98ee
Thanks @emmenko! - Nothing changed, the previous release21.13.0
had an issue publishing to NPM so we're bumping versions to trigger a new release. -
Updated dependencies [
482ad98ee
]:- @commercetools-frontend/application-config@21.13.1
- @commercetools-frontend/assets@21.13.1
- @commercetools-frontend/babel-preset-mc-app@21.13.1
- @commercetools-frontend/constants@21.13.1
- @commercetools-frontend/mc-dev-authentication@21.13.1
- @commercetools-frontend/mc-html-template@21.13.1
- #2761
d012420e5
Thanks @CarlosCortizasCT! - Update all dependencies
-
#2767
5614ec9d8
Thanks @emmenko! - Avoid using deprecated fields when fetching application menu links -
Updated dependencies [
d012420e5
,7d97b459e
]:- @commercetools-frontend/application-config@21.13.0
- @commercetools-frontend/mc-html-template@21.13.0
- @commercetools-frontend/mc-dev-authentication@21.13.0
- @commercetools-frontend/assets@21.13.0
- @commercetools-frontend/babel-preset-mc-app@21.13.0
- @commercetools-frontend/constants@21.13.0
- Updated dependencies []:
- @commercetools-frontend/application-config@21.12.0
- @commercetools-frontend/assets@21.12.0
- @commercetools-frontend/babel-preset-mc-app@21.12.0
- @commercetools-frontend/constants@21.12.0
- @commercetools-frontend/mc-dev-authentication@21.12.0
- @commercetools-frontend/mc-html-template@21.12.0
- Updated dependencies []:
- @commercetools-frontend/application-config@21.11.0
- @commercetools-frontend/assets@21.11.0
- @commercetools-frontend/babel-preset-mc-app@21.11.0
- @commercetools-frontend/constants@21.11.0
- @commercetools-frontend/mc-dev-authentication@21.11.0
- @commercetools-frontend/mc-html-template@21.11.0
-
#2666
f1ac3f0b
Thanks @emmenko! - Improve commands usage help text -
Updated dependencies [
73977f3f
]:- @commercetools-frontend/constants@21.10.0
- @commercetools-frontend/mc-html-template@21.10.0
- @commercetools-frontend/application-config@21.10.0
- @commercetools-frontend/assets@21.10.0
- @commercetools-frontend/babel-preset-mc-app@21.10.0
- @commercetools-frontend/mc-dev-authentication@21.10.0
- #2687
2f414585
Thanks @CarlosCortizasCT! - Fix loading missingmoment
locale metadata for certain user locales. Now dates are correctly formatted according to the selected locale.
-
#2691
8367e1b7
Thanks @emmenko! - Add support in Vite config (experimental feature) to load.react.svg
files as React components using the SVGR plugin. -
Updated dependencies [
22fcb200
,69a1fe13
,8367e1b7
]:- @commercetools-frontend/application-config@21.9.0
- @commercetools-frontend/babel-preset-mc-app@21.9.0
- @commercetools-frontend/constants@21.9.0
- @commercetools-frontend/mc-dev-authentication@21.9.0
- @commercetools-frontend/mc-html-template@21.9.0
- @commercetools-frontend/assets@21.9.0
-
#2680
3c15d48c
Thanks @emmenko! - Fix parsing of CLI options casing -
Updated dependencies []:
- @commercetools-frontend/application-config@21.8.1
- @commercetools-frontend/assets@21.8.1
- @commercetools-frontend/babel-preset-mc-app@21.8.1
- @commercetools-frontend/constants@21.8.1
- @commercetools-frontend/mc-dev-authentication@21.8.1
- @commercetools-frontend/mc-html-template@21.8.1
-
#2613
20e648d2
Thanks @emmenko! - Migrate CLI to TypeScript.Internally, the CLI now uses cac to handle CLI commands and options.
Importing the function
createPostcssConfig
from the main entry point@commercetools-frontend/mc-scripts
is now deprecated. Use the entry point@commercetools-frontend/mc-scripts/postcss
instead.const { createPostcssConfig, -} = require('@commercetools-frontend/mc-scripts'); +} = require('@commercetools-frontend/mc-scripts/postcss');
Importing the functions
createWebpackConfigForDevelopment
andcreateWebpackConfigForProduction
from the main entry point@commercetools-frontend/mc-scripts
is now deprecated. Use the entry point@commercetools-frontend/mc-scripts/webpack
instead.const { createWebpackConfigForDevelopment, createWebpackConfigForProduction, -} = require('@commercetools-frontend/mc-scripts'); +} = require('@commercetools-frontend/mc-scripts/webpack');
-
#2661
43a9df21
Thanks @emmenko! - Drop the copyright year from the license files -
Updated dependencies [
d6bfecf1
,43a9df21
,20e648d2
,81df396d
]:- @commercetools-frontend/application-config@21.8.0
- @commercetools-frontend/assets@21.8.0
- @commercetools-frontend/babel-preset-mc-app@21.8.0
- @commercetools-frontend/constants@21.8.0
- @commercetools-frontend/mc-html-template@21.8.0
- @commercetools-frontend/mc-dev-authentication@21.8.0
- #2626
eea4f5fa
Thanks @emmenko! - Fix dev middleware usage for local login flow (internal usage only)"
-
#2630
c0516c5b
Thanks @emmenko! - > These changes are only relevant when using the experimental Vite bundler (ENABLE_EXPERIMENTAL_VITE_BUNDLER=true
).Allow to load a Vite config in addition to the default config. This is useful for using extra Rollup/Vite plugins, or other Vite options.
-
Updated dependencies [
0b3ea758
,eea4f5fa
]:- @commercetools-frontend/application-config@21.7.0
- @commercetools-frontend/mc-dev-authentication@21.7.0
- @commercetools-frontend/mc-html-template@21.7.0
- #2535
dc5b02eb
Thanks @Rhotimee! - Theconfig:sync
command now shows the diff changes before updating an existing Custom Application config.
- #2585
8d3b7dd5
Thanks @Rhotimee! - Remove automatically updating local config application ID after a Custom Application is created. Instruct users to update the application ID themselves. - Updated dependencies [
b1515054
,5d0a461d
,dc5b02eb
]:- @commercetools-frontend/mc-dev-authentication@21.6.0
- @commercetools-frontend/application-config@21.6.0
- @commercetools-frontend/mc-html-template@21.6.0
- Updated dependencies [
3094da2f
,b38854ec
,3180de7f
,3180de7f
]:- @commercetools-frontend/application-config@21.5.0
- @commercetools-frontend/mc-html-template@21.5.0
- @commercetools-frontend/mc-dev-authentication@21.5.0
-
#2568
5bcf106a
Thanks @emmenko! - Enable opt-in support for using Vite.js bundler. To enable it, set the environment variableENABLE_EXPERIMENTAL_VITE_BUNDLER="true"
in your dotenv file.Vite (French word for "quick", pronounced /vit/, like "veet") is a build tool that aims to provide a faster and leaner development experience for modern web projects.
You can learn more about the rationale behind the project in the Why Vite documentation.
Vite is optimized for using native ES Modules via
<script type="module">
tags and ES Modules dynamic import.All the
mc-scripts
CLI commands are fully compatible with the new bundler, so you can continue using them as before.The
cdnUrl
value is not supported at the moment when using Vite.Vite relies on the file extensions to determine how to process the file in the best possible way. For example, a file using JSX should use the extension
.jsx
, or.tsx
for TypeScript.Up until now we didn't enforce this with Webpack, so using
.js
or.jsx
works in both cases. If you are still using.js
for files including the JSX syntax, you need to rename the file to.jsx
.To help with the renaming, you can use our codemod
rename-js-to-jsx
:npx @commercetools-frontend/codemod rename-js-to-jsx 'src/**/*.js'
- Updated dependencies [
5bcf106a
,5bcf106a
,5bcf106a
]:- @commercetools-frontend/mc-dev-authentication@21.4.0
- @commercetools-frontend/mc-html-template@21.4.0
- #2544
08a689bb
Thanks @emmenko! - Fix problem with file name in Windows when name contains characters like:
.
-
Updated dependencies [
dc76e5a9
]:- @commercetools-frontend/application-config@21.3.4
- @commercetools-frontend/babel-preset-mc-app@21.3.4
- @commercetools-frontend/constants@21.3.4
- @commercetools-frontend/mc-html-template@21.3.4
- Updated dependencies [
602822c0
]:- @commercetools-frontend/application-config@21.3.3
- @commercetools-frontend/mc-html-template@21.3.3
- Updated dependencies [
cc7c19d0
]:- @commercetools-frontend/babel-preset-mc-app@21.3.2
- @commercetools-frontend/application-config@21.3.2
- @commercetools-frontend/mc-html-template@21.3.2
- #2534
6b25e4ee
Thanks @emmenko! - Downgradereact-refresh
tov0.11.0
. This fixes a problem with starting the development server.
-
#2524
ea1bee4c
Thanks @Rhotimee! - Add new CLI commandmc-script config:sync
This command allows users to synchronize the local Custom Application config with the Merchant Center. The sync implies that a new Custom Application will be created or an existing one will be updated.
Developers can use the
config:sync
command to automatically manage the configuration of a Custom Application from the config file instead of having to manually fill out the information in the Merchant Center.If a new Custom Application needs to be created, an interactive prompt will ask the user to select the Organization where the Custom Application should be configured to.
Additionally, the Custom Application ID is automatically synced when running the
config:sync
command.Note that this command requires a valid API token. You can get one by using the
mc-scripts login
command.The command also supports a
--dry-run
option. If enabled, the command is exectured but does not send any mutation request. Instead, the request payload is logged.
-
#2506
b842c498
Thanks @Rhotimee! - Add a new CLI commandmc-scripts login
.This command enables users to log in to their Merchant Center account through the CLI. An interactive prompt will be displayed asking the user to enter the login credentials.
Upon login, an API token is stored in the user's home directory
$HOME/.commercetools/mc-credentials.json
. The API token will be used by other CLI commands that require a valid API token.
-
Updated dependencies [
bf57dc32
,6f3a2083
,ea1bee4c
]:- @commercetools-frontend/application-config@21.3.0
- @commercetools-frontend/babel-preset-mc-app@21.3.0
- @commercetools-frontend/constants@21.3.0
- @commercetools-frontend/mc-html-template@21.3.0
-
#2510
50232472
Thanks @emmenko! - Updatedotenv
dependencies -
Updated dependencies [
dc02733d
]:- @commercetools-frontend/application-config@21.2.1
- @commercetools-frontend/mc-html-template@21.2.1
- Updated dependencies [
78ab6456
]:- @commercetools-frontend/application-config@21.1.2
- @commercetools-frontend/mc-html-template@21.1.2
- Updated dependencies [
e4eeccb1
]:- @commercetools-frontend/application-config@21.0.1
- @commercetools-frontend/mc-html-template@21.0.1
-
#2430
bb1f7d75
Thanks @emmenko! - Following breaking changes were introduced:- In
mc-scripts
, thebuild
command additionally compiles theindex.html
by default. - Running the
compile-html
command by default should not be necessary anymore. However, you can pass--build-only
to thebuild
command to opt-out of the compilation step, in case you want to run it separately, for example to use the--transformer
. - Running the
compile-html
command by default does not print tostdout
the JSON string with the security headers. You can opt into the old behavior by passing the--print-security-headers
option. - The
--inline-csp
ofcompile-html
has been dropped, as it's now the built-in behavior. - The
dist
folder created by thebuild
command has been removed. Instead, thebuild
command writes the production bundles directly into thepublic
folder.
For more information see Release notes v21.
- In
-
#2430
bb1f7d75
Thanks @emmenko! - Upgrade Stylelint and PostCSS dependencies.The peer dependency min version for
stylelint
is now14
. If your project has a Stylelint config file, we recommend to follow the Migrating to 14.0.0 guide.Note that the syntax support for CSS-in-JS languages has been removed from Stylelint and therefore is not available by default in the
jest-stylelint-runner
.Moreover, the
postcss-color-mod-function
dependency has been removed, as thecolor-mod()
function is not part of the CSS Color spec anymore. If you were relying on this function you need to find another solution.
- #2430
bb1f7d75
Thanks @emmenko! - Updatecss-loader
tov6
. Support both.mod.css
and.module.css
for CSS module files.
- #2430
bb1f7d75
Thanks @emmenko! - Include fallback polyfills in Webpack config forurl
andquerystring
.
-
#2430
bb1f7d75
Thanks @emmenko! - Adjust webpack dev server error message for/api/graphql
endpoint. -
Updated dependencies [
bb1f7d75
,eb8f5b2c
,bb1f7d75
,bb1f7d75
,bb1f7d75
,bb1f7d75
,bb1f7d75
,bb1f7d75
,bb1f7d75
]:- @commercetools-frontend/babel-preset-mc-app@21.0.0
- @commercetools-frontend/application-config@21.0.0
- @commercetools-frontend/mc-html-template@21.0.0
- @commercetools-frontend/mc-dev-authentication@21.0.0
- @commercetools-frontend/assets@21.0.0
- #2467
1763f30b
Thanks @emmenko! - Updatecss-loader
tov6
. Support both.mod.css
and.module.css
for CSS module files.
-
#2465
91331314
Thanks @emmenko! - Upgrade Stylelint and PostCSS dependencies.The peer dependency min version for
stylelint
is now14
. If your project has a Stylelint config file, we recommend to follow the Migrating to 14.0.0 guide.Note that the syntax support for CSS-in-JS languages has been removed from Stylelint and therefore is not available by default in the
jest-stylelint-runner
.Moreover, the
postcss-color-mod-function
dependency has been removed, as thecolor-mod()
function is not part of the CSS Color spec anymore. If you were relying on this function you need to find another solution.
-
#2430
504fe229
Thanks @emmenko! - Adjust webpack dev server error message for/api/graphql
endpoint. -
Updated dependencies [
71171d65
]:- @commercetools-frontend/babel-preset-mc-app@21.0.0-rc.7
- @commercetools-frontend/application-config@21.0.0-rc.7
- @commercetools-frontend/mc-html-template@21.0.0-rc.7
- Updated dependencies [
8c189ad3
]:- @commercetools-frontend/babel-preset-mc-app@21.0.0-rc.5
- @commercetools-frontend/application-config@21.0.0-rc.5
- @commercetools-frontend/mc-html-template@21.0.0-rc.5
-
#2430
6d3b7ba3
Thanks @emmenko! - Fix WebpackDevServer deprecation warnings -
Updated dependencies [
5e3ee854
]:- @commercetools-frontend/application-config@21.0.0-rc.4
- @commercetools-frontend/mc-html-template@21.0.0-rc.4
- Updated dependencies []:
- @commercetools-frontend/mc-html-template@21.0.0-rc.3
- #2430
d8e36891
Thanks @emmenko! - Include fallback polyfills in Webpack config forurl
andquerystring
.
-
#2430
5ea8baf1
Thanks @emmenko! - Use version range for Babel packages. -
Updated dependencies [
5ea8baf1
,1bee4f25
]:- @commercetools-frontend/application-config@21.0.0-rc.1
- @commercetools-frontend/babel-preset-mc-app@21.0.0-rc.1
- @commercetools-frontend/mc-dev-authentication@21.0.0-rc.1
- @commercetools-frontend/mc-html-template@21.0.0-rc.1
- @commercetools-frontend/assets@21.0.0-rc.1
-
#2430
07f5b00f
Thanks @emmenko! - Following breaking changes were introduced:- In
mc-scripts
, thebuild
command additionally compiles theindex.html
by default. - Running the
compile-html
command by default should not be necessary anymore. However, you can pass--build-only
to thebuild
command to opt-out of the compilation step, in case you want to run it separately, for example to use the--transformer
. - Running the
compile-html
command by default does not print tostdout
the JSON string with the security headers. You can opt into the old behavior by passing the--print-security-headers
option. - The
--inline-csp
ofcompile-html
has been dropped, as it's now the built-in behavior. - The
dist
folder created by thebuild
command has been removed. Instead, thebuild
command writes the production bundles directly into thepublic
folder.
For more information see Release notes v21.
- In
-
Updated dependencies [
eb8f5b2c
,b8fb4cbb
,1c363fad
,07f5b00f
]:- @commercetools-frontend/application-config@21.0.0-rc.0
- @commercetools-frontend/babel-preset-mc-app@21.0.0-rc.0
- @commercetools-frontend/mc-html-template@21.0.0-rc.0
- @commercetools-frontend/mc-dev-authentication@21.0.0-rc.0
- #2433
d65e29e4
Thanks @emmenko! - Replacets-jest/utils
withjest-mock
, for using themocked
function.
-
Updated dependencies [
630ee1b5
,d65e29e4
,d65e29e4
]:- @commercetools-frontend/application-config@20.12.3
- @commercetools-frontend/assets@20.12.3
- @commercetools-frontend/babel-preset-mc-app@20.12.3
- @commercetools-frontend/mc-html-template@20.12.3
-
Updated dependencies [
6f02335c
,cf914004
]:- @commercetools-frontend/assets@20.12.1
- @commercetools-frontend/application-config@20.12.1
- @commercetools-frontend/babel-preset-mc-app@20.12.1
- @commercetools-frontend/mc-html-template@20.12.1
- Updated dependencies [
f549637b
]:- @commercetools-frontend/application-config@20.12.0
- @commercetools-frontend/assets@20.12.0
- @commercetools-frontend/mc-html-template@20.12.0
-
#2400
fc7f62ba
Thanks @emmenko! - Add experimental flag--inline-csp
tocompile-html
command. If defined, theContent-Security-Policy
header is injected in theindex.html
as a meta tag. -
Updated dependencies [
fc7f62ba
,59b72adf
,fc7f62ba
]:- @commercetools-frontend/mc-html-template@20.11.0
- @commercetools-frontend/application-config@20.11.0
-
#2386
d7fcf6fc
Thanks @emmenko! - Allow to pass a relative path for transformer option -
Updated dependencies [
d7fcf6fc
]:- @commercetools-frontend/application-config@20.10.6
- @commercetools-frontend/assets@20.10.6
- @commercetools-frontend/babel-preset-mc-app@20.10.6
- @commercetools-frontend/mc-dev-authentication@20.10.6
- @commercetools-frontend/mc-html-template@20.10.6
-
Updated dependencies [
7fa4d7d0
]:- @commercetools-frontend/application-config@20.10.4
- @commercetools-frontend/babel-preset-mc-app@20.10.4
- @commercetools-frontend/mc-html-template@20.10.4
-
#2376
9d879503
Thanks @emmenko! - > For commercetools only.Allow to use OIDC login when developing against a local running MC API.
-
Updated dependencies [
9d879503
,f6b3ae02
]:- @commercetools-frontend/application-config@20.10.3
- @commercetools-frontend/mc-dev-authentication@20.10.3
- @commercetools-frontend/babel-preset-mc-app@20.10.3
- @commercetools-frontend/mc-html-template@20.10.3
-
#2356
e34fe076
Thanks @ByronDWall! - set node version to 16.8 in nvmrc to avoid a bug in node/v8 -
Updated dependencies [
3247e604
,91ba0910
,e34fe076
]:- @commercetools-frontend/application-config@20.10.1
- @commercetools-frontend/babel-preset-mc-app@20.10.1
- @commercetools-frontend/mc-html-template@20.10.1
- @commercetools-frontend/assets@20.10.1
- @commercetools-frontend/mc-dev-authentication@20.10.1
- #2331
670ec977
Thanks @emmenko! - Upgrade to Apollo Client v3.4.
-
Updated dependencies [
d7b712e4
,8c6c13a7
]:- @commercetools-frontend/application-config@20.9.4
- @commercetools-frontend/babel-preset-mc-app@20.9.4
- @commercetools-frontend/mc-html-template@20.9.4
-
#2334
869a3b6d
Thanks @emmenko! - Fix web socket configuration to make HMR work. -
Updated dependencies [
83f2add2
]:- @commercetools-frontend/application-config@20.9.3
- @commercetools-frontend/babel-preset-mc-app@20.9.3
- @commercetools-frontend/mc-html-template@20.9.3
- Updated dependencies [
9e6e31f4
]:- @commercetools-frontend/application-config@20.9.2
- @commercetools-frontend/mc-html-template@20.9.2
- Updated dependencies [
b2d58de3
]:- @commercetools-frontend/application-config@20.9.1
- @commercetools-frontend/mc-html-template@20.9.1
- Updated dependencies [
487fcca6
]:- @commercetools-frontend/application-config@20.9.0
- @commercetools-frontend/babel-preset-mc-app@20.9.0
- @commercetools-frontend/mc-html-template@20.9.0
-
#2300
b3437eab
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
ca4e1441
,ca4e1441
,ca4e1441
,b3437eab
]:- @commercetools-frontend/mc-html-template@20.8.0
- @commercetools-frontend/assets@20.8.0
- @commercetools-frontend/application-config@20.8.0
- @commercetools-frontend/babel-preset-mc-app@20.8.0
-
#2289
af5d6c3d
Thanks @renovate! - fix(deps): update dependency mini-css-extract-plugin to v2 -
Updated dependencies [
f5aa350a
]:- @commercetools-frontend/application-config@20.7.0
- @commercetools-frontend/babel-preset-mc-app@20.7.0
- @commercetools-frontend/mc-html-template@20.7.0
-
#2273
b96d4f3d
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
bdc1330f
,b96d4f3d
]:- @commercetools-frontend/mc-html-template@20.5.2
- @commercetools-frontend/application-config@20.5.2
- @commercetools-frontend/babel-preset-mc-app@20.5.2
-
#2268
c370f242
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
e0ea1333
,c370f242
]:- @commercetools-frontend/application-config@20.5.1
- @commercetools-frontend/babel-preset-mc-app@20.5.1
- @commercetools-frontend/mc-html-template@20.5.1
-
#2261
481fb8f8
Thanks @tdeekens! - Adds the ability to explicitly disable core-js formc-scripts
and the webpack configsSome environments or build targets might not require core-js. In order to opt-out of it you can specify a
disableCoreJs
option.
-
#2247
f8f759b6
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
f8f759b6
]:- @commercetools-frontend/application-config@20.4.0
- @commercetools-frontend/babel-preset-mc-app@20.4.0
- @commercetools-frontend/mc-html-template@20.4.0
- Updated dependencies [
dc994692
,118efedd
]:- @commercetools-frontend/mc-html-template@20.3.3
- @commercetools-frontend/application-config@20.3.3
-
#2234
4dd3398a
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
4dd3398a
]:- @commercetools-frontend/application-config@20.3.1
- @commercetools-frontend/babel-preset-mc-app@20.3.1
- @commercetools-frontend/mc-html-template@20.3.1
-
#2213
665961f8
Thanks @renovate! - fix(deps): update dependency css-minimizer-webpack-plugin to v3 -
Updated dependencies [
6de28034
,5961c019
]:- @commercetools-frontend/application-config@20.3.0
- @commercetools-frontend/babel-preset-mc-app@20.3.0
- @commercetools-frontend/mc-html-template@20.3.0
-
#2200
9b9cf924
Thanks @renovate! - fix(deps): update dependency dotenv to v9 -
Updated dependencies [
0bfa1613
,99ea52d3
]:- @commercetools-frontend/application-config@20.1.2
- @commercetools-frontend/babel-preset-mc-app@20.1.2
- @commercetools-frontend/mc-html-template@20.1.2
-
#2191
b5058130
Thanks @emmenko! - New CLI options! 🎉The
mc-script
CLI now supports loading environment variables from dotenv files.Previously, we recommended to use
dotenv-cli
to load environment variables before executing themc-scripts
command. For example:dotenv -c development -- mc-scripts start NODE_ENV=production dotenv -- mc-scripts compile-html NODE_ENV=production dotenv -e .env.gcp-production-eu -- mc-scripts compile-html
Now the
mc-scripts
CLI has the dotenv features built-in, so you don't need to install and usedotenv-cli
anymore.By default, the following dotenv files are loaded according to the current environment values specified on each command:
process.MC_APP_ENV
orprocess.NODE_ENV
. The priority of how the files are merged and overwritten goes from top to bottom (highest defined variable overrides lower)..env.development.local
,.env.test.local
,.env.production.local
: Local overrides of environment-specific settings..env.development
,.env.test
,.env.production
: Environment-specific settings..env.local
: Local overrides. This file is loaded for all environments except test..env
Please refer to the dotenv documentation for more details.
Furthermore, you can pass additional dotenv files by using the following option:
--env <path>
: Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.
These files will take higher priority over the standard environment dotenv files.
The example above can then be refactored as following:
-dotenv -c development -- mc-scripts start +mc-scripts start -NODE_ENV=production dotenv -- mc-scripts compile-html +NODE_ENV=production mc-scripts compile-html -NODE_ENV=production dotenv -e .env.gcp-production-eu -- mc-scripts compile-html +NODE_ENV=production mc-scripts --env .env.gcp-production-eu compile-html
If you are developing multiple Custom Applications in the same repository, chances are that you use a mono-repository setup.
If that's the case, you can now run the
mc-scripts start
command from the workspace root folder and pass the option--match <glob>
. The option will attempt to gather a list of packages in the repository that match the glob pattern and show it as a prompt. You can then select the application that you want to start from that list.We hope you find it useful.
- #2189
b8cc7c9f
Thanks @dgoemans! - Temporary fix for parsing Webpack error messages untilreact-dev-utils
supports Webpack v5.
- Updated dependencies [
6c951d70
]:- @commercetools-frontend/mc-html-template@20.0.2
-
#2178
26d4487a
Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
149af138
,26d4487a
]:- @commercetools-frontend/mc-html-template@20.0.1
- @commercetools-frontend/application-config@20.0.1
- @commercetools-frontend/babel-preset-mc-app@20.0.1
- Updated dependencies [
4d4b1f9f
]:- @commercetools-frontend/mc-html-template@19.4.1
-
#2165
d019bc54
Thanks @tdeekens! - Adds support for the*.mjs
and*.cjs
JavaScript file extensions.Updates the webpack configurations, Jest and ESLint presets to support the
*.mjs
and*.cjs
extensions. This allows better integration with packages using ES modules.
-
#2157
e757dd2b
Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
e757dd2b
]:- @commercetools-frontend/application-config@19.3.1
- @commercetools-frontend/babel-preset-mc-app@19.3.1
- @commercetools-frontend/mc-html-template@19.3.1
-
#2143
53b27b0b
Thanks @tdeekens! - Adds support for specifying thePermissions-Policy
header supported in Chrome 90.Similar to the
Feature-Policies
header an application config now support apermissionsPolicies
field.headers: { permissionPolicies: { mircophone: '()'; } }
More information about supported permission policies can be found here.
- Updated dependencies [
53b27b0b
]:- @commercetools-frontend/application-config@19.1.0
- @commercetools-frontend/mc-html-template@19.1.0
-
Updated dependencies [
598d3bb5
]:- @commercetools-frontend/application-config@19.0.1
- @commercetools-frontend/babel-preset-mc-app@19.0.1
- @commercetools-frontend/mc-html-template@19.0.1
- #2041
a240f657
Thanks @emmenko! - - Changes required Node.js engine version to>=12 || >=14
inpackage.json
.- Uses
webpack@5
.
- Uses
- Updated dependencies [
a240f657
,a240f657
,a240f657
,a240f657
]:- @commercetools-frontend/mc-html-template@19.0.0
- @commercetools-frontend/mc-dev-authentication@19.0.0
- @commercetools-frontend/application-config@19.0.0
-
#2110
c850d6dc
Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
8eed86e9
,c850d6dc
]:- @commercetools-frontend/application-config@18.7.0
- @commercetools-frontend/babel-preset-mc-app@18.7.0
- @commercetools-frontend/mc-html-template@18.7.0
-
Updated dependencies [
d09a154b
]:- @commercetools-frontend/application-config@18.6.0
- @commercetools-frontend/babel-preset-mc-app@18.6.0
- @commercetools-frontend/mc-html-template@18.6.0
- Updated dependencies [
88e2b817
]:- @commercetools-frontend/mc-html-template@18.5.8
b48e11d8
#2094 Thanks @renovate! - fix(deps): update dependency react-dev-utils to v11.0.4 [security]
-
ca4ea6eb
#2085 Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
ca4ea6eb
]:- @commercetools-frontend/application-config@18.5.6
- @commercetools-frontend/babel-preset-mc-app@18.5.6
- @commercetools-frontend/mc-html-template@18.5.6
- Updated dependencies [
d44f5b69
]:- @commercetools-frontend/assets@18.5.4
- @commercetools-frontend/babel-preset-mc-app@18.5.4
- @commercetools-frontend/mc-dev-authentication@18.5.4
-
7514a4f3
#2072 Thanks @tdeekens! - fix(webpack): to pass parallelism to thread-loader -
Updated dependencies [
7f26c54e
]:- @commercetools-frontend/application-config@18.5.2
- @commercetools-frontend/babel-preset-mc-app@18.5.2
- @commercetools-frontend/mc-dev-authentication@18.5.2
- @commercetools-frontend/mc-html-template@18.5.2
-
bb2ceac2
#2062 Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
bb2ceac2
]:- @commercetools-frontend/application-config@18.5.1
- @commercetools-frontend/babel-preset-mc-app@18.5.1
- @commercetools-frontend/mc-html-template@18.5.1
-
Updated dependencies [
074ec33d
]:- @commercetools-frontend/application-config@18.4.1
- @commercetools-frontend/babel-preset-mc-app@18.4.1
- @commercetools-frontend/mc-html-template@18.4.1
-
f940273d
#2042 Thanks @emmenko! - Improve the Webpack configuration ofmc-scripts
.If you are using the
createWebpackConfigForDevelopment
andcreateWebpackConfigForProduction
functions, the following options are now optional:distPath
: it defaults to the./dist
folder.entryPoint
: it defaults to the file./src/index
, with the file extension being one ofjs | jsx | ts | tsx
.sourceFolders
: it defaults to the folders[./src]
.
All paths are relative to the Custom Application folder.
Additionally, there is a new option that can be used to enhance the Postcss configuration:
postcssOptions
postcssOptions.postcssImportPaths
: a list of paths where to look for files used by the@import
statements.postcssOptions.postcssCustomMediaPaths
: a list of paths where to look for files with custom media queries.postcssOptions.postcssCustomPropertiesPaths
: a list of paths where to look for files with custom properties.postcssOptions.postcssColorModPaths
: a list of paths where to look for files with color-mod properties.
Furthermore, the
postcss.config.js
file that was shipped with themc-scripts
package has been removed in favor of the factory functioncreatePostcssConfig
, which accepts the samepostcssOptions
described above.In case you have your own
postcss.config.js
file in the root of your repository, you can use thecreatePostcssConfig
function to have a pre-configured setup.# postcss.config.js -const postcssConfig = require('@commercetools-frontend/mc-scripts/postcss.config.js'); +const { createPostcssConfig } = require('@commercetools-frontend/mc-scripts'); -module.exports = postcssConfig; +module.exports = createPostcssConfig();
-
Updated dependencies [
eb2fbb22
]:- @commercetools-frontend/application-config@18.4.0
- @commercetools-frontend/babel-preset-mc-app@18.4.0
- @commercetools-frontend/mc-html-template@18.4.0
7fbe0c71
#2018 Thanks @emmenko! - Include apostcss.config.js
, which is used by thepostcss-loader
Webpack plugin.
-
c9589f5e
#2020 Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
c9589f5e
]:- @commercetools-frontend/application-config@18.1.4
- @commercetools-frontend/mc-html-template@18.1.4
-
3bf32993
#1971 Thanks @tdeekens! - Add internal opt-in support for combining feature flag adapters. -
Updated dependencies [
3bf32993
]:- @commercetools-frontend/application-config@18.1.0
- @commercetools-frontend/assets@18.1.0
- @commercetools-frontend/babel-preset-mc-app@18.1.0
- @commercetools-frontend/mc-dev-authentication@18.1.0
- @commercetools-frontend/mc-html-template@18.1.0
-
b38cb57f
#1991 Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
fa151b6a
]:- @commercetools-frontend/mc-html-template@18.0.2
- Updated dependencies [
7f8b219
]:- @commercetools-frontend/mc-html-template@18.0.0
-
Updated dependencies [
5557c5c
]:- @commercetools-frontend/application-config@17.10.1
- @commercetools-frontend/babel-preset-mc-app@17.10.1
- @commercetools-frontend/mc-html-template@17.10.1
-
d86c2e8
#1934 Thanks @emmenko! - Introduce a new experimental opt-in feature to authenticate the application for local development, using an OIDC-like workflow.Disclaimer: this is an opt-in experimental feature. Use it at your own risk. We want to test this feature internally first. Until then, we discourage you to try it out.
The feature can be enabled by setting the
ENABLE_OIDC_FOR_DEVELOPMENT=true
environment variable.In addition to that, we have a new package
@commercetools-frontend/cypress
, to include some useful commands for testing Custom Applications.
- Updated dependencies [
d86c2e8
,2d6dbaa
,dc7a443
]:- @commercetools-frontend/application-config@17.10.0
- @commercetools-frontend/babel-preset-mc-app@17.10.0
- @commercetools-frontend/mc-html-template@17.10.0
- Updated dependencies [
4f7e081
]:- @commercetools-frontend/application-config@17.9.0
- @commercetools-frontend/mc-html-template@17.9.0
-
bb65fa1
#1949 Thanks @emmenko! - Thewebpack.config.dev.js
andwebpack.config.prod.js
files are not required anymore to be defined in the application folder and can be removed. The default behavior is now implicitly implemented in case the config file is not found. The default behavior requires the following paths to exist:<application_folder>/dist
<application_folder>/src
<application_folder>/src/index.js
You can still use the config files if you need to configure more specific behaviors.
-
4971a78
#1952 Thanks @tdeekens! - chore: add and apply fixes via manypkg for automatic mono-repo validation -
Updated dependencies [
48a9886
,4971a78
]:- @commercetools-frontend/application-config@17.8.0
- @commercetools-frontend/babel-preset-mc-app@17.8.0
- @commercetools-frontend/mc-html-template@17.8.0
- Updated dependencies [
9cbebcf
]:- @commercetools-frontend/application-config@17.7.3
- @commercetools-frontend/mc-html-template@17.7.3
- Updated dependencies [
fab682b
]:- @commercetools-frontend/babel-preset-mc-app@17.7.2
-
f6f3c5e
#1935 Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
99558e7
,f6f3c5e
]:- @commercetools-frontend/babel-preset-mc-app@17.7.1
- @commercetools-frontend/application-config@17.7.1
- @commercetools-frontend/mc-html-template@17.7.1
-
1ec4379
#1923 Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
d74addd
,1ec4379
]:- @commercetools-frontend/application-config@17.7.0
- @commercetools-frontend/babel-preset-mc-app@17.7.0
- @commercetools-frontend/mc-html-template@17.7.0
-
63440c4
#1825 Thanks @renovate! - fix(deps): update dependency postcss-import to v13 -
Updated dependencies [
1a96e83
,e4dc8f8
,c7b321a
]:- @commercetools-frontend/application-config@17.6.2
- @commercetools-frontend/babel-preset-mc-app@17.6.2
- @commercetools-frontend/mc-html-template@17.6.2
-
2287813
#1871 Thanks @emmenko! - Compile and bundle packages using preconstruct -
Updated dependencies [
2287813
]:- @commercetools-frontend/application-config@17.6.0
- @commercetools-frontend/babel-preset-mc-app@17.6.0
- @commercetools-frontend/mc-html-template@17.6.0
-
Updated dependencies [
d832bd4
,ec9e10f
]:- @commercetools-frontend/babel-preset-mc-app@17.4.1
- @commercetools-frontend/application-config@17.4.1
- @commercetools-frontend/mc-html-template@17.4.1
- Updated dependencies [
09cc4b4
]:- @commercetools-frontend/application-config@17.4.0
- @commercetools-frontend/mc-html-template@17.4.0
-
89c4464
#1872 Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
89c4464
]:- @commercetools-frontend/babel-preset-mc-app@17.3.1
-
Updated dependencies [
71c9111
]:- @commercetools-frontend/application-config@17.3.0
- @commercetools-frontend/assets@17.3.0
- @commercetools-frontend/babel-preset-mc-app@17.3.0
- @commercetools-frontend/mc-dev-authentication@17.3.0
- @commercetools-frontend/mc-html-template@17.3.0
-
Updated dependencies [
310e98c
,9003354
]:- @commercetools-frontend/application-config@17.2.1
- @commercetools-frontend/babel-preset-mc-app@17.2.1
- @commercetools-frontend/mc-html-template@17.2.1
-
Updated dependencies [
e0ec004
]:- @commercetools-frontend/application-config@17.2.0
- @commercetools-frontend/assets@17.2.0
- @commercetools-frontend/babel-preset-mc-app@17.2.0
- @commercetools-frontend/mc-dev-authentication@17.2.0
- @commercetools-frontend/mc-html-template@17.2.0
- Updated dependencies [
56d4361
]:- @commercetools-frontend/babel-preset-mc-app@17.1.4
-
Updated dependencies [
016f84c
]:- @commercetools-frontend/mc-html-template@17.1.2
-
eb545e0
#1819 Thanks @tdeekens! - feat: adds the ability to opt into the newautomatic
JSX runtimeRecent React versions support a new JSX runtime. Read more about it here.
You may opt into the new runtime in
automatic
mode by setting theENABLE_NEW_JSX_TRANSFORM
environment variable totrue
. Please note you need at least React v17 or v16.14 in your application. Opting into the new JSX transform automatically also changes the Babel, Jest and ESLint configurations. As a consequence ESLint will warn whenever it discovers React being in scope by importing it asimport React from 'react
'. You have to remove those imports using the respective codemod by runningnpx react-codemod update-react-imports
.Lastly, all code of the Merchant Center Application Kit will continue to be bundled in
classic
mode to support older versions of React.
da0b4aa
#1818 Thanks @emmenko! - Add support for experimental Fast Refresh for React. To enable it, set the enviornment variableFAST_REFRESH=true
. More info here.
-
e824e89
#1797 Thanks @renovate! - update dependency postcss-safe-parser to v5 -
Updated dependencies [
05672a2
,eb545e0
]:- @commercetools-frontend/mc-html-template@17.1.0
- @commercetools-frontend/babel-preset-mc-app@17.1.0
-
Updated dependencies [
71c5f78
]:- @commercetools-frontend/application-config@17.0.1
- @commercetools-frontend/babel-preset-mc-app@17.0.1
- @commercetools-frontend/mc-html-template@17.0.1
-
e706232
#1805 Thanks @emmenko! - Removemc-scripts extract-intl
command in favor of the official@formatjs/cli
package. We recommend to update your script to extract Intl messages to use theformatjs extract
command.See full release notes: https://docs.commercetools.com/custom-applications/releases/2020-10-14-custom-applications-v17
-
633d8c7
#1805 Thanks @emmenko! - Remove the CLI flag--use-local-assets
. The default behavior ofmc-scripts compile-html
now is to compile the assets locally, which is the only reasonable thing to do.Furthermore, the
@commercetools-frontend/mc-http-server
package has been deprecated and won't be published anymore. With thecompile-html
command there is no need to have a pre-configured HTTP server anymore.When running the
mc-scripts compile-html
command, theindex.html
is compiled for production usage and it lives in thepublic
folder, together with the other static assets. This is all you need to deploy your application. You can decide to deploy the Custom Application statically to one of the popular cloud providers, or serve the files on your own using a static server.For example, to run locally the Custom Application using the production bundles:
NODE_ENV=production MC_APP_ENV=development dotenv -- \ mc-scripts compile-html \ --transformer @commercetools-frontend/mc-dev-authentication/transformer-local.js mc-scripts serve
-
Updated dependencies [
0e0efc6
,e706232
,633d8c7
]:- @commercetools-frontend/application-config@17.0.0
- @commercetools-frontend/mc-html-template@17.0.0
- @commercetools-frontend/mc-dev-authentication@17.0.0
- Updated dependencies [
57be02b
]:- @commercetools-frontend/mc-html-template@16.17.4
-
9bc8558
#1704 Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
178ff31
,9bc8558
,1fdde03
]:- @commercetools-frontend/application-config@16.17.0
- @commercetools-frontend/babel-preset-mc-app@16.17.0
- @commercetools-frontend/mc-html-template@16.17.0
9d62b85
#1703 Thanks @mohib0306! - Fix console warning. Replacedconsole.warning
withconsole.warn
-
f23655a
#1552 Thanks @renovate! - chore(deps): update dependency graphql-cli to v4 -
Updated dependencies [
bc15ac2
]:- @commercetools-frontend/application-config@16.16.1
- @commercetools-frontend/babel-preset-mc-app@16.16.1
- @commercetools-frontend/mc-html-template@16.16.1
-
4216b92
#1685 Thanks @emmenko! - Refactor i18n package to consume compiled data from ui-kit translation messages. Furthermore, the@commercetools-frontend/i18n
now exposes acompiled-data
folder as well:@commercetools-frontend/i18n/compiled-data
. This can be used the load pre-compiled messages and thus improving the runtime performance.Furthermore, the
mc-scripts extract-intl
command has been deprecated in favor of the more official message extraction with the@formatjs/cli
: https://formatjs.io/docs/getting-started/message-extraction.
-
f144292
#1673 Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
879b4d6
,f144292
]:- @commercetools-frontend/mc-html-template@16.16.0
- @commercetools-frontend/application-config@16.16.0
- @commercetools-frontend/babel-preset-mc-app@16.16.0
-
c62261f
#1653 Thanks @renovate! - Update dependencies and regenerate l10n data based on CLDR v37 -
Updated dependencies [
43fdb3d
]:- @commercetools-frontend/application-config@16.15.8
- @commercetools-frontend/mc-html-template@16.15.8
- Updated dependencies [
0182cd3
]:- @commercetools-frontend/application-config@16.15.4
- @commercetools-frontend/mc-html-template@16.15.4
-
6d98245
#1643 Thanks @emmenko! - Update copyright date to 2020 in LICENSE files -
Updated dependencies [
6d98245
]:- @commercetools-frontend/assets@16.15.3
- @commercetools-frontend/babel-preset-mc-app@16.15.3
- @commercetools-frontend/mc-html-template@16.15.3
-
77eb38a
#1641 Thanks @emmenko! - Unify login/logout dev routes for http servers -
Updated dependencies [
0f3dcc3
,77eb38a
]:- @commercetools-frontend/application-config@16.15.2
- @commercetools-frontend/babel-preset-mc-app@16.15.2
- @commercetools-frontend/mc-html-template@16.15.2
- @commercetools-frontend/mc-dev-authentication@16.15.2
- Updated dependencies [
96b3af7
]:- @commercetools-frontend/application-config@16.15.1
- @commercetools-frontend/mc-html-template@16.15.1
-
728024c
#1626 Thanks @emmenko! - This release introduces the usage of a new configuration file format and marks the deprecation of theenv.json
andheaders.json
files.For all the necessary information about migrating to the new configuration file, please read the release notes.
-
cc8b37b
#1627 Thanks @renovate! - chore: update dependencies -
Updated dependencies [
72c42f4
,33baf25
,394380d
,728024c
]:- @commercetools-frontend/babel-preset-mc-app@16.15.0
- @commercetools-frontend/application-config@16.15.0
- @commercetools-frontend/mc-html-template@16.15.0
-
4168061
#1618 Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
4168061
]:- @commercetools-frontend/babel-preset-mc-app@16.14.0
- @commercetools-frontend/mc-html-template@16.14.0
-
fa6386c
#1587 Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
fa6386c
]:- @commercetools-frontend/babel-preset-mc-app@16.12.0
- @commercetools-frontend/mc-html-template@16.12.0
-
f8f8609
#1573 Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
58b1b26
]:- @commercetools-frontend/mc-html-template@16.10.0
-
f92ec54
#1551 Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
f92ec54
]:- @commercetools-frontend/assets@16.9.1
- @commercetools-frontend/babel-preset-mc-app@16.9.1
- @commercetools-frontend/mc-dev-authentication@16.9.1
- @commercetools-frontend/mc-html-template@16.9.1
-
96ab311
#1533 Thanks @emmenko! - Upgrade toreact-intl
v4. See also https://formatjs.io/docs/react-intl/upgrade-guide-4xWe updated the peer dependency range to support both
v3
andv4
.
-
0925da6
#1537 Thanks @renovate! - chore(deps): update all dependencies -
Updated dependencies [
0925da6
,8600676
]:- @commercetools-frontend/babel-preset-mc-app@16.8.8
- @commercetools-frontend/mc-html-template@16.8.8
- @commercetools-frontend/mc-dev-authentication@16.8.8
-
9391762
#1530 Thanks @emmenko! - Update@commercetools-uikit/*
packages to10.21.0
-
Updated dependencies [
9391762
]:- @commercetools-frontend/assets@16.8.6
- @commercetools-frontend/babel-preset-mc-app@16.8.6
- @commercetools-frontend/mc-dev-authentication@16.8.6
- @commercetools-frontend/mc-html-template@16.8.6