1 July 2022
DevelopmentConfiguration
The Application Kit packages have been released with a minor version
v21.8.This release includes several new features that we would like to present:
- Official support for developing Custom Applications in TypeScript, including a new starter template. Read more about TypeScript in the Adding TypeScript page.
- New policy option for configuring the
audiencefield when integrating your Custom Application with an external API. - Improved accessibility of different elements using ARIA attributes.
- Simpler and more readable list of time zone data, available from the
@commercetools-frontend/l10npackage. - New React hook
useProjectExtensionImageRegexfor accessing the project images configuration, available from the@commercetools-frontend/application-shell-connectorspackage.
Deprecations
The
mc-scripts CLI has deprecated some entry points.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 and createWebpackConfigForProduction 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');