mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +00:00
* chore: migrate to Angular 20, TypeScript 5.9, and supporting packages chore: migrate to Angular 20, TypeScript 5.9, and supporting packages This commit migrates the Nx monorepo from Angular 19 to Angular 20 and updates all related dependencies to their compatible versions. - @angular/core: 19.2.18 → 20.3.9 - @angular/material: 19.2.19 → 20.2.14 - @angular/cdk: 19.2.19 → 20.2.14 - @angular/material-date-fns-adapter: 19.2.19 → 20.2.14 - typescript: 5.8.3 → 5.9.3 - ng-packagr: 19.2.2 → 20.3.2 - @angular-devkit/build-angular: 19.2.19 → 20.3.16 - @angular-devkit/architect: 0.1902.19 → 0.2003.16 - @angular-devkit/core: 19.2.19 → 20.3.16 - @angular-devkit/schematics: 19.2.19 → 20.3.16 - @schematics/angular: 19.2.7 → 20.3.16 - @angular-eslint/eslint-plugin: 19.3.0 → 20.7.0 - @angular-eslint/eslint-plugin-template: 19.3.0 → 20.7.0 - @angular-eslint/template-parser: 19.3.0 → 20.7.0 - @typescript-eslint/eslint-plugin: 6.21.0 → 8.55.0 - @typescript-eslint/parser: 6.21.0 → 8.55.0 - @typescript-eslint/typescript-estree: 8.41.0 → 8.55.0 - @typescript-eslint/utils: ^8.51.0 → 8.55.0 - nx: 22.4.1 → 22.5.1 - @nx/angular: 22.1.3 → 22.5.1 - @nx/eslint-plugin: 22.3.3 → 22.5.1 - @nx/js: 22.1.3 → 22.5.1 - @nx/node: 22.1.3 → 22.5.1 - @nx/storybook: ^20.8.4 → 22.5.1 - @nx/workspace: 22.4.5 → 22.5.1 - @nx/webpack: 22.3.3 → 22.5.1 - storybook: ^10.2.0 → 10.2.8 - @storybook/angular: ^10.2.0 → 10.2.8 - @storybook/addon-themes: ^10.2.0 → 10.2.8 1. **PortalInjector Removal (Angular CDK 20)** - Replaced PortalInjector usage with Injector.create() - Updated context-menu-overlay.service.ts to use new API 2. **ESLint Configuration** - Removed deprecated @typescript-eslint/brace-style rule - This rule was removed in @typescript-eslint v8 All libraries build successfully: - ✅ js-api - ✅ extensions - ✅ core - ✅ content-services - ✅ process-services - ✅ process-services-cloud - ✅ insights Dependencies were installed using npm install --legacy-peer-deps due to peer dependency conflicts with @mat-datetimepicker/core which requires Angular CDK ^19.0.0 but we are using 20.2.14. - ESLint warnings about @angular-eslint/prefer-inject are expected - this is a new recommendation in Angular 20 to use inject() function instead of constructor injection. These can be addressed in a follow-up PR. chore: migrate to Angular 20, TypeScript 5.9, and supporting packages This commit migrates the Nx monorepo from Angular 19 to Angular 20 and updates all related dependencies to their compatible versions. - @angular/core: 19.2.18 → 20.3.9 - @angular/material: 19.2.19 → 20.2.14 - @angular/cdk: 19.2.19 → 20.2.14 - @angular/material-date-fns-adapter: 19.2.19 → 20.2.14 - typescript: 5.8.3 → 5.9.3 - ng-packagr: 19.2.2 → 20.3.2 - @angular-devkit/build-angular: 19.2.19 → 20.3.16 - @angular-devkit/architect: 0.1902.19 → 0.2003.16 - @angular-devkit/core: 19.2.19 → 20.3.16 - @angular-devkit/schematics: 19.2.19 → 20.3.16 - @schematics/angular: 19.2.7 → 20.3.16 - @angular-eslint/eslint-plugin: 19.3.0 → 20.7.0 - @angular-eslint/eslint-plugin-template: 19.3.0 → 20.7.0 - @angular-eslint/template-parser: 19.3.0 → 20.7.0 - @typescript-eslint/eslint-plugin: 6.21.0 → 8.55.0 - @typescript-eslint/parser: 6.21.0 → 8.55.0 - @typescript-eslint/typescript-estree: 8.41.0 → 8.55.0 - @typescript-eslint/utils: ^8.51.0 → 8.55.0 - nx: 22.4.1 → 22.5.1 - @nx/angular: 22.1.3 → 22.5.1 - @nx/eslint-plugin: 22.3.3 → 22.5.1 - @nx/js: 22.1.3 → 22.5.1 - @nx/node: 22.1.3 → 22.5.1 - @nx/storybook: ^20.8.4 → 22.5.1 - @nx/workspace: 22.4.5 → 22.5.1 - @nx/webpack: 22.3.3 → 22.5.1 - storybook: ^10.2.0 → 10.2.8 - @storybook/angular: ^10.2.0 → 10.2.8 - @storybook/addon-themes: ^10.2.0 → 10.2.8 1. **PortalInjector Removal (Angular CDK 20)** - Replaced PortalInjector usage with Injector.create() - Updated context-menu-overlay.service.ts to use new API 2. **ESLint Configuration** - Removed deprecated @typescript-eslint/brace-style rule - This rule was removed in @typescript-eslint v8 All libraries build successfully: - ✅ js-api - ✅ extensions - ✅ core - ✅ content-services - ✅ process-services - ✅ process-services-cloud - ✅ insights Dependencies were installed using npm install --legacy-peer-deps due to peer dependency conflicts with @mat-datetimepicker/core which requires Angular CDK ^19.0.0 but we are using 20.2.14. - ESLint warnings about @angular-eslint/prefer-inject are expected - this is a new recommendation in Angular 20 to use inject() function instead of constructor injection. These can be addressed in a follow-up PR. To fix these automatically, run: ng generate @angular/core:inject --path=lib fix: resolve peer dependency conflicts for CI/CD - Update @mat-datetimepicker/core from 15.0.2 to 16.0.1 (supports Angular 20) - Update webpack override to 5.104.1 for consistency - Add .npmrc with legacy-peer-deps=true for npm ci compatibility - Fixes npm ci failures in CI/CD pipeline fix: update webpack to 5.105.0 for Storybook compatibility - Align webpack version with @angular-devkit/build-angular bundled version - Fixes Storybook compilation error with webpack instance mismatch - Removes unnecessary webpack overrides chore: finalize Angular 20 migration and improve migration prompt - Marked all migration tasks as completed in the migration plan. - Added a comprehensive summary of the migration process, including phases, completed tasks, and known issues. - Introduced an improved migration prompt that addresses critical considerations and provides a detailed migration strategy for Angular 20 and related packages. fix: update migration prompt and tests for Angular 20 breaking changes - Enhanced migration prompt with specific instructions for handling Angular CDK Directionality API changes and removal of ng-reflect-* attributes. - Updated unit tests to replace deprecated ng-reflect-* attribute checks with appropriate Angular testing patterns. - Adjusted user preferences service to utilize the new directionality API method for setting text direction. fix: enhance ImgViewerComponent to handle cleanup and prevent errors after destruction - Added a `destroyed` flag to manage component lifecycle and prevent operations on a destroyed instance. - Implemented `afterEach` hooks in tests to ensure proper fixture cleanup. - Updated key event handlers and methods to check for the `destroyed` state before executing actions, improving stability and preventing errors. feat: update ESLint configuration to include @angular-eslint/prefer-inject rule - Added the @angular-eslint/prefer-inject rule to .eslintrc.json files in content-services, process-services, and process-services-cloud, promoting the use of the inject() function for dependency injection. - Made minor adjustments to comments in search-logical-filter.component.ts for clarity. chore: update ESLint configuration to include @angular-eslint/prefer-inject rule - Added the @angular-eslint/prefer-inject rule to .eslintrc.json files in extensions, insights, and js-api, promoting the use of the inject() function for dependency injection. - Removed unnecessary eslint-disable comments in process-list-cloud.component.ts and base-task-list-cloud.component.ts for cleaner code. remove unnecessary changes remove useless changes cleanup useless changes remove useless changes Update package.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> chore: update version of @ngx-translate/core to 17.0.0 in package.json and package-lock.json Update package.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Update package.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Update .npmrc Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> chore: upgrade apollo-angular and jest packages to support Angular 20 - Upgrade apollo-angular from 10.0.3 to 13.0.0 - Upgrade @apollo/client from 3.13.1 to ^4.0.1 - Upgrade jest packages to v30 (jest, jest-environment-jsdom) - Upgrade jest-preset-angular from 14.4.2 to 16.1.1 - Add overrides for Angular 20 peer dependency compatibility chore: downgrade @apollo/client and apollo-angular to compatible versions chore: downgrade @apollo/client and apollo-angular to compatible versions chore: remove unused configuration options from jest and tsconfig chore: refactor window.location mock in oauth2 tests for improved clarity and functionality chore: enhance oauth2Auth tests and improve hash handling logic chore: remove @typescript-eslint/brace-style rule from ESLint configuration chore: add prefer-optional-chain rule to ESLint configuration chore: update ESLint rules for optional chaining and refactor type definitions chore: refactor tests to use TestBed for dependency injection in FileViewer and ProcessFormRendering services chore: update AttachFileWidgetComponent to ensure early return after download chore: update AttachFileWidgetComponent to ensure early return after download chore: update unselectFacetBucket method to use optional chaining for safer property access * chore: clean up package-lock.json and update webpack version in package.json * [ACS-11306] Corrected main for eslint-angular * [ACS-11306] Reverted unwanted change * [ACS-11306] Fixed importing issue on ACA * [ACS-11306] Updated node-fetch * [ACS-11306] Reverted last commit * [ACS-11306] Fixed rendering issue with pdf viewer * [ACS-11306] Corrected storybook related versions * Updating dependencies and fixing conflict * [ACS-11306] Fixed cannot find name Buffer occurred in ACA * chore: Updating pnpm lock file * chore: Fixing ESLint issue * chore: Upgrading to version 20.3.24 to avoid security issue * chore: Fixing unit test * chore: Fixing type and exporting missing model * chore: Fixing type * Chore: Migrating to Angular 20.3.25 to mitigate security issues * Fix after rebase * Removing unused deps * Aligning deps * fix create dialog name field hint (#12007) --------- Co-authored-by: Aleksander Sklorz <Aleksander.Sklorz@hyland.com> Co-authored-by: Ehsan Rezaei <ehsan.rezaei@hyland.com> Co-authored-by: Grzegorz Jaśkowski <138671284+g-jaskowski@users.noreply.github.com>
163 lines
5.1 KiB
JSON
163 lines
5.1 KiB
JSON
{
|
|
"name": "alfresco-ng2-components",
|
|
"description": "Alfresco Angular components",
|
|
"version": "9.0.0",
|
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
"scripts": {
|
|
"preinstall": "npx only-allow pnpm",
|
|
"prepare": "husky && nx run eslint-angular:build && pnpm audit --audit-level=critical",
|
|
"bundle:js-api": "nx run js-api:bundle",
|
|
"bundle:cli": "nx run cli:bundle",
|
|
"test:affected": "nx affected:test",
|
|
"lint:affected": "nx affected:lint",
|
|
"build:affected": "nx affected:build",
|
|
"affected:libs": "nx affected:libs",
|
|
"build:libs": "nx run-many -t build --prod --skip-nx-cache",
|
|
"build:schematics": "nx run-many -t build-schematics",
|
|
"publish": "nx run-many -t npm-publish",
|
|
"clean": "rimraf dist node_modules dist/libs",
|
|
"nx:run-target": "nx run",
|
|
"nx:run-many": "nx run-many",
|
|
"storybook": "nx run stories:storybook",
|
|
"build-storybook": "nx run stories:build-storybook"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/Alfresco/alfresco-ng2-components.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
|
|
},
|
|
"keywords": [
|
|
"alfresco-components",
|
|
"angular",
|
|
"typescript",
|
|
"alfresco",
|
|
"activiti",
|
|
"content services",
|
|
"process services",
|
|
"process services-cloud"
|
|
],
|
|
"dependencies": {
|
|
"@angular-eslint/utils": "20.7.0",
|
|
"@angular/animations": "20.3.25",
|
|
"@angular/cdk": "20.2.14",
|
|
"@angular/common": "20.3.25",
|
|
"@angular/compiler": "20.3.25",
|
|
"@angular/core": "20.3.25",
|
|
"@angular/forms": "20.3.25",
|
|
"@angular/material": "20.2.14",
|
|
"@angular/material-date-fns-adapter": "20.2.14",
|
|
"@angular/platform-browser": "20.3.25",
|
|
"@angular/platform-browser-dynamic": "20.3.25",
|
|
"@angular/router": "20.3.25",
|
|
"@apollo/client": "3.13.1",
|
|
"@babel/runtime": "7.26.10",
|
|
"@cspell/eslint-plugin": "10.0.0",
|
|
"@mat-datetimepicker/core": "16.0.1",
|
|
"@ngx-translate/core": "17.0.0",
|
|
"angular-oauth2-oidc": "19.0.0",
|
|
"apollo-angular": "11.0.0",
|
|
"chart.js": "4.4.4",
|
|
"cropperjs": "1.6.2",
|
|
"date-fns": "2.30.0",
|
|
"dotenv-expand": "5.1.0",
|
|
"editorjs-html": "4.0.5",
|
|
"eventemitter3": "5.0.4",
|
|
"graphql-ws": "6.0.8",
|
|
"material-icons": "1.13.14",
|
|
"minimatch": "5.1.9",
|
|
"minimatch-browser": "1.0.0",
|
|
"ng2-charts": "4.1.1",
|
|
"node-fetch": "3.3.2",
|
|
"pdfjs-dist": "5.1.91",
|
|
"raphael": "2.3.0",
|
|
"rxjs": "7.8.2",
|
|
"tslib": "2.8.1",
|
|
"uuid": "11.1.1",
|
|
"zone.js": "0.15.0"
|
|
},
|
|
"devDependencies": {
|
|
"@alfresco/eslint-plugin-eslint-angular": "workspace:*",
|
|
"@angular-devkit/architect": "0.2003.16",
|
|
"@angular-devkit/build-angular": "20.3.16",
|
|
"@angular-devkit/core": "20.3.16",
|
|
"@angular-devkit/schematics": "20.3.16",
|
|
"@angular-eslint/eslint-plugin": "20.7.0",
|
|
"@angular-eslint/eslint-plugin-template": "20.7.0",
|
|
"@angular-eslint/template-parser": "20.7.0",
|
|
"@angular/compiler-cli": "20.3.25",
|
|
"@chromatic-com/storybook": "4.1.3",
|
|
"@nx/angular": "22.7.4",
|
|
"@nx/eslint-plugin": "22.7.4",
|
|
"@nx/jest": "22.7.4",
|
|
"@nx/js": "22.7.4",
|
|
"@nx/storybook": "22.7.4",
|
|
"@nx/workspace": "22.7.4",
|
|
"@schematics/angular": "20.3.16",
|
|
"@storybook/addon-themes": "10.4.0",
|
|
"@storybook/angular": "10.4.0",
|
|
"@types/ejs": "3.1.5",
|
|
"@types/jasmine": "4.0.3",
|
|
"@types/jasminewd2": "2.0.13",
|
|
"@types/jest": "29.5.14",
|
|
"@types/jsdom": "27.0.0",
|
|
"@types/minimatch": "5.1.2",
|
|
"@types/node": "25.9.1",
|
|
"@typescript-eslint/eslint-plugin": "8.59.4",
|
|
"@typescript-eslint/parser": "8.59.4",
|
|
"@typescript-eslint/typescript-estree": "8.59.4",
|
|
"@typescript-eslint/utils": "8.59.4",
|
|
"ajv": "8.20.0",
|
|
"dotenv": "16.4.7",
|
|
"ejs": "3.1.10",
|
|
"eslint": "8.57.1",
|
|
"eslint-config-prettier": "10.1.8",
|
|
"eslint-plugin-ban": "1.6.0",
|
|
"eslint-plugin-import": "2.32.0",
|
|
"eslint-plugin-jsdoc": "50.3.1",
|
|
"eslint-plugin-license-header": "0.8.0",
|
|
"eslint-plugin-prettier": "5.5.6",
|
|
"eslint-plugin-rxjs": "5.0.3",
|
|
"eslint-plugin-storybook": "10.4.0",
|
|
"eslint-plugin-unicorn": "49.0.0",
|
|
"graphql": "16.14.0",
|
|
"husky": "9.1.7",
|
|
"jasmine-core": "5.13.0",
|
|
"jasmine-reporters": "2.5.2",
|
|
"jest": "30.0.0",
|
|
"jest-environment-jsdom": "30.0.0",
|
|
"jest-preset-angular": "16.1.5",
|
|
"jsdom": "27.4.0",
|
|
"karma": "6.4.4",
|
|
"karma-chrome-launcher": "3.2.0",
|
|
"karma-coverage": "2.2.1",
|
|
"karma-jasmine": "5.1.0",
|
|
"karma-jasmine-html-reporter": "2.2.0",
|
|
"lint-staged": "17.0.5",
|
|
"ng-packagr": "20.3.2",
|
|
"nx": "22.7.4",
|
|
"prettier": "3.8.3",
|
|
"react": "19.2.6",
|
|
"react-dom": "19.2.6",
|
|
"rimraf": "6.1.3",
|
|
"sass-loader": "16.0.8",
|
|
"semver": "7.6.3",
|
|
"spdx-license-list": "6.11.0",
|
|
"storybook": "10.4.0",
|
|
"stylelint": "16.20.0",
|
|
"stylelint-config-standard-scss": "13.1.0",
|
|
"ts-node": "10.9.2",
|
|
"typescript": "5.9.3",
|
|
"undici": "8.5.0",
|
|
"webpack": "5.107.2"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"engines": {
|
|
"node": ">=24.14.0"
|
|
},
|
|
"packageManager": "pnpm@11.8.0",
|
|
"module": "./index.js",
|
|
"typings": "./index.d.ts"
|
|
}
|