Breaking changes mentioned for v5.0.0

This commit is contained in:
Raviraj Bahirsheth
2023-04-13 18:26:07 +05:30
committed by GitHub
parent bd4c311f74
commit cb7550c835
+36 -1
View File
@@ -73,7 +73,42 @@ After starting the app, if everything is working fine, that's all and you don't
2. Clean your old distribution and dependencies by deleting `node_modules` and `package-lock.json`.
3. Reinstall your dependencies
3. This is a major release of the Alfresco Application Development Framework containing upgrade to Angular 14.
With the current upgrade of the Angular framework, the suggested stack has also being updated:
| Name | Version |
| --- | --- |
| Node | 14.15.0 |
| npm | 6.14.8 |
| Angular | 14 |
| Typescript | 4.6 |
For a complete list of changes, supported browsers and new feature please refer to the official documentation
| Angular version | link |
| --- | --- |
| v11 | [Changes & Deprecations](https://v11.angular.io/guide/updating-to-version-11)|
| v12 | [Changes & Deprecations](https://v12.angular.io/guide/updating-to-version-12)|
| v13 | [Changes & Deprecations](https://v13.angular.io/guide/update-to-latest-version)|
| v14 | [Changes & Deprecations](https://angular.io/guide/update-to-latest-version) |
## Upgrade
To migrate custom code and application to Angular 14, please refer to the [offcial documentation](https://angular.io/).
**Note:**: Consider the possibility of leveraging [ADF v5.0.0-angular.13.2](https://www.npmjs.com/package/@alfresco/adf-core/v/5.0.0-angular.13.2), a version of ADF compatible with Angular 13 that is meant to be used as intermediate step towards ADF v5. with angular v14.
4. A breaking change worth mentioning is related to style import. with ADF v5.0.0 an extra ```\lib``` is required.
**example**:
previous versions of ADF : ```@import '~@alfresco/adf-core/prebuilt-themes/adf-blue-orange.css';```
starting ADF 5.0.0 : ```@import '~@alfresco/adf-core/lib/prebuilt-themes/adf-blue-orange.css';```
5. Reinstall your dependencies
```sh
npm install
```