-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 11 🚀 #711
Merged
Merged
Angular 11 🚀 #711
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ular.io/?l=2&v=9.1-10.0 "Before Updating" section
leo@Leonardos-MacBook-Pro orcid-angular % ng update @angular/core @angular/cli --force Your global Angular CLI version (10.1.3) is greater than your local version (9.1.1). The local Angular CLI version is used. To disable this warning use "ng config -g cli.warnings.versionMismatch false". The installed local Angular CLI version is older than the latest stable version. Installing a temporary version to perform the update. Installing packages for tooling via yarn. Installed packages for tooling via yarn. Using package manager: 'yarn' Collecting installed dependencies... Found 81 dependencies. Fetching dependency metadata from registry... Package "@storybook/angular" has an incompatible peer dependency to "typescript" (requires "^3.4.0", would install "4.0.3"). Updating package.json with dependency @angular-devkit/build-angular @ "0.1001.3" (was "0.901.1")... Updating package.json with dependency @angular-devkit/core @ "10.1.3" (was "9.1.1")... Updating package.json with dependency @angular-devkit/schematics @ "10.1.3" (was "9.1.1")... Updating package.json with dependency @angular/cli @ "10.1.3" (was "9.1.1")... Updating package.json with dependency @angular/compiler-cli @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/language-service @ "10.1.3" (was "9.1.2")... Updating package.json with dependency typescript @ "4.0.3" (was "3.8.3")... Updating package.json with dependency @angular/animations @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/common @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/compiler @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/core @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/forms @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/localize @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/platform-browser @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/platform-browser-dynamic @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/router @ "10.1.3" (was "9.1.2")... Updating package.json with dependency @angular/service-worker @ "10.1.3" (was "9.1.2")... UPDATE package.json (6932 bytes) ✔ Packages installed successfully. ** Executing migrations of package '@angular/cli' ** ❯ Update tslint to version 6. tslint configuration does not extend "tslint:recommended" or it extends multiple configurations. Skipping rule changes as some rules might conflict. UPDATE package.json (6931 bytes) UPDATE tslint.json (2669 bytes) Migration completed. ** Executing migrations of package '@angular/core' ** ❯ Missing @Injectable and incomplete provider definition migration. As of Angular 9, enforcement of @Injectable decorators for DI is a bit stricter and incomplete provider definitions behave differently. Read more about this here: https://v9.angular.io/guide/migration-injectable Migration completed. ❯ ModuleWithProviders migration. As of Angular 10, the ModuleWithProviders type requires a generic. This migration adds the generic where it is missing. Read more about this here: https://v10.angular.io/guide/migration-module-with-providers Migration completed. ❯ Undecorated classes with Angular features migration. In version 10, classes that use Angular features and do not have an Angular decorator are no longer supported. Read more about this here: https://v10.angular.io/guide/migration-undecorated-classes UPDATE src/app/register/components/BaseStep.ts (439 bytes) Migration completed.
leo@Leonardos-MacBook-Pro orcid-angular % ng update @angular/material Using package manager: 'yarn' Collecting installed dependencies... Found 81 dependencies. Fetching dependency metadata from registry... Package "@material-extended/mde" has an incompatible peer dependency to "@angular/cdk" (requires "^8.0.0 || ^9.0.0-0", would install "10.2.2"). ✖ Migration failed: Incompatible peer dependencies found. Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together. You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later. See "/private/var/folders/cc/3wv4kpd571s96mq7n_1sbd740000gn/T/ng-bZ1xVl/angular-errors.log" for further details. leo@Leonardos-MacBook-Pro orcid-angular % leo@Leonardos-MacBook-Pro orcid-angular % leo@Leonardos-MacBook-Pro orcid-angular % leo@Leonardos-MacBook-Pro orcid-angular % ng update @angular/material --force Using package manager: 'yarn' Collecting installed dependencies... Found 81 dependencies. Fetching dependency metadata from registry... Package "@material-extended/mde" has an incompatible peer dependency to "@angular/cdk" (requires "^8.0.0 || ^9.0.0-0", would install "10.2.2"). Updating package.json with dependency @angular/cdk @ "10.2.2" (was "9.2.1")... Updating package.json with dependency @angular/material @ "10.2.2" (was "9.2.1")... UPDATE package.json (6933 bytes) ✔ Packages installed successfully. ** Executing migrations of package '@angular/cdk' ** ❯ Updates the Angular CDK to v10 Could not find TypeScript project for project: ng-orcid-e2e ✓ Updated Angular CDK to version 10 Migration completed. ** Executing migrations of package '@angular/material' ** ❯ Updates Angular Material to v10 Could not find TypeScript project for project: ng-orcid-e2e ⚠ General notice: The HammerJS v9 migration for Angular Components is not able to migrate tests. Please manually clean up tests in your project if they rely on HammerJS. Read more about migrating tests: https://git.io/ng-material-v9-hammer-migrate-tests ✓ Updated Angular Material to version 10 Migration completed.
# Conflicts: # .storybook/main.js # package-lock.json # package.json # src/app/authorize/pages/authorize/authorize.component.ts # src/app/cdk/pannel/panel/panel.component.ts # src/app/cdk/snackbar/snackbar.module.ts # src/app/core/affiliations-grouping/affiliations-grouping.service.spec.ts # src/app/core/inbox/inbox.service.ts # src/app/core/profile/profile.service.ts # src/app/core/record-affiliations/record-affiliations.service.spec.ts # src/app/core/record/record.service.ts # src/app/core/register/register.service.ts # src/app/guards/authorize.guard.ts # src/app/guards/register.guard.ts # src/app/guards/sign-in.guard.ts # src/app/institutional/pages/institutional/institutional.component.ts # src/app/profile/components/profile-activities-affiliation/profile-activities-affiliation.component.spec.ts # src/app/profile/components/profile-activities-affiliations/profile-activities-affiliations.component.spec.ts # src/app/profile/components/profile-activities-work/profile-activities-work.component.spec.ts # src/app/profile/components/profile-activities-works/profile-activities-works.component.spec.ts # src/app/profile/components/profile-activities/profile-activities.component.spec.ts # src/app/profile/components/profile-person-detail/profile-person-detail.component.spec.ts # src/app/profile/pages/profile-page/profile-page.component.ts # src/app/record/components/side-bar/side-bar.component.ts # src/app/register/components/step-a/step-a.component.ts # src/polyfills.ts # yarn.lock
This reverts commit 8d6ecf1.
…cid-angular into feature/angular-11-update
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Angular 11 update
Before Updating
There are no changes require to the project before running the update
Require to check on QA
Next up
Angular 10 update
Things that would require QA after the merge 🧾
Angular breaking changes checks done ✅
The following checklist can be found on the official docs
The CLI reports a warning with the new typescript no compatible with storybook, but does not throw any error after build or while using the storybook developer server.
[number](https://angular.io/api/common/DecimalPipe)
fire thevalueChanges
event only once per value change (as opposed to twice in some cases). See PR 36087.Orcid does not contain any number type input
minLength
andmaxLength
validators only validate values that have a numericlength
property. See PR 36157.Orcid does not contain any number type input
Orcid won't get break by this since we do not have third-party tools triggered if a consolo.error is printed
[UrlMatcher](https://angular.io/api/router/UrlMatcher)
can now returnnull
values. See PR 36402.UrlMatcher is never directly consumed on Orcid code
ORCID does not relay on detached actions #21324 or TemplateRef 35400
b
orB
format codes now supports time periods that cross midnight. See PR 36611Orcid does not consume formatDate functions
Orcid router does not use
resolve
functions 24195External libraries checks 📚
Storybook
Angular material
@material-extended/mde
Tslint-etc
Angular auto-update report 📃
A full result of the auto-upgrade report