You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade to Node.js v18 - this is the minimum required version from now on.
Change target JavaScript version to ES2020 (TypeScript tsconfig target property).
Remove deprecated polaris-ui project - this has been replaced with a new polaris-ui project.
Manual change required: Upgrade to Nx v16.0.3 - this requires a manual upgrade of the Nx dependencies in existing Polaris workspaces (during this process you will also update the Polaris dependencies). Please run the following commands:
# Upgrade to latest version of Nx v14 branch.
npx nx migrate 14.8.8
npm install
npx nx migrate --run-migrations
rm ./migrations.json
# Upgrade to Nx v16.0.3
npx nx migrate 16.0.3
# IMPORTANT: Before continuing the Nx upgrade, open your package.json file and set all @polaris-sloc package versions to "~0.6.0".# Continue the Nx upgrade.
npm install
npx nx migrate --run-migrations
rm ./migrations.json
# Install the Nx webpack plugin, if not present.
npm install --save-dev -E @nx/[email protected]# Search all project.json files or the angular.json file (if present) for `"executor": "@nrwl/webpack:webpack"` and replace it with `"executor": "@nx/webpack:webpack"`# If your workspace contains webpack.config.js files, apply the source maps workaround below.# Update the Dockerfiles of your applications according to the example file linked below.
Manual change required: A recent Nx version broke the generation of source maps for applications (see issue and workaround). Apps generated with the polaris-cli contain the workaround, but existing app projects require manually modifying the webpack.config.js file, if present in your project (see working webpack.config.js).
Manual change required: The changes in the structure of Nx projects and the Node.js upgrade requires changes to the Dockerfiles of existing applications. Copy this updated Dockerfile over your existing ones.
Features
Allow SLOs to trigger alternative elasticity strategies by setting the optional SloOutput.elasticityStrategy and SloOutput.staticElasticityStrategyConfig properties.