close
The Wayback Machine - https://web.archive.org/web/20201013221740/https://github.com/angular/components/pull/20368
Skip to content
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

refactor: add support for TypeScript 4.0 #20368

Merged
merged 3 commits into from Aug 26, 2020

Conversation

@alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Aug 20, 2020

With this change we refactor the code to support compilation using TS 4.0.

The main changes are:

  1. Refactor tests to not delete non optional properties
  2. Refactor components not to override properties with accessors and vice-versa which is now not permitted. https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#breaking-changes
@googlebot googlebot added the cla: yes label Aug 20, 2020
@alan-agius4 alan-agius4 changed the title refactor: code to support TS 4.0 compilation refactor: changes to support TS 4.0 compilation Aug 20, 2020
@alan-agius4 alan-agius4 force-pushed the alan-agius4:ts4-build-refactor branch 8 times, most recently from d65b6eb to 7a00768 Aug 20, 2020
@alan-agius4 alan-agius4 marked this pull request as ready for review Aug 20, 2020
src/material/tree/padding.ts Show resolved Hide resolved
src/material/radio/radio.ts Outdated Show resolved Hide resolved
@alan-agius4 alan-agius4 force-pushed the alan-agius4:ts4-build-refactor branch from 7a00768 to d077b50 Aug 20, 2020
@alan-agius4 alan-agius4 force-pushed the alan-agius4:ts4-build-refactor branch 4 times, most recently from ac98274 to 3ada49d Aug 20, 2020
Copy link
Member

@devversion devversion left a comment

LGTM. Nice that we were able to get rid of the duplication for both the mixins and accessors. A few minor comments

src/material-experimental/mdc-table/cell.ts Outdated Show resolved Hide resolved
src/material-experimental/selection/selection.ts Outdated Show resolved Hide resolved
src/material/core/common-behaviors/disable-ripple.ts Outdated Show resolved Hide resolved
src/material/core/common-behaviors/disable-ripple.ts Outdated Show resolved Hide resolved
src/material/tabs/tab.ts Outdated Show resolved Hide resolved
@alan-agius4 alan-agius4 force-pushed the alan-agius4:ts4-build-refactor branch 2 times, most recently from 997539c to b761cb2 Aug 21, 2020
@alan-agius4 alan-agius4 requested review from jelbourn and removed request for jelbourn Aug 21, 2020
@alan-agius4 alan-agius4 requested review from jelbourn and removed request for andrewseguin and mmalerba Aug 22, 2020
@alan-agius4
Copy link
Contributor Author

@alan-agius4 alan-agius4 commented Aug 24, 2020

Thanks @devversion & @jelbourn for the input and feedback. I’ll be doing the changes tomorrow.

@alan-agius4 alan-agius4 changed the title refactor: changes to support TS 4.0 compilation refactor: add support for TypeScript 4.0 Aug 25, 2020
@alan-agius4 alan-agius4 force-pushed the alan-agius4:ts4-build-refactor branch from 3f87438 to 5af1c73 Aug 25, 2020
@alan-agius4 alan-agius4 requested a review from angular/dev-infra-components as a code owner Aug 25, 2020
@alan-agius4 alan-agius4 force-pushed the alan-agius4:ts4-build-refactor branch 2 times, most recently from 49f9ea9 to a23eb6f Aug 25, 2020
@alan-agius4
Copy link
Contributor Author

@alan-agius4 alan-agius4 commented Aug 25, 2020

@devversion & @jelbourn PTAL. Thanks.

@alan-agius4 alan-agius4 requested review from devversion and jelbourn Aug 25, 2020
alan-agius4 added 3 commits Aug 20, 2020
With this change we refactor the code to support compilation using TS 4.0.

The main changes are:
1) Refactor tests to not delete non optional properties
2) Refactor components not to override properties with accessors and vice-versa which is now not permitted. https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#breaking-changes
@alan-agius4 alan-agius4 force-pushed the alan-agius4:ts4-build-refactor branch from 5ce6cba to 9f68ff2 Aug 25, 2020
Copy link
Member

@jelbourn jelbourn left a comment

LGTM, I'm running a google presubmit now

Copy link
Member

@devversion devversion left a comment

Still LGTM from my side. Thanks Alan!

@jelbourn jelbourn merged commit f33210c into angular:master Aug 26, 2020
15 checks passed
15 checks passed
ci/angular: merge status All checks passed!
ci/circleci: api_golden_checks Your tests passed on CircleCI!
Details
ci/circleci: bazel_build Your tests passed on CircleCI!
Details
ci/circleci: build_release_packages Your tests passed on CircleCI!
Details
ci/circleci: e2e_tests Your tests passed on CircleCI!
Details
ci/circleci: integration_tests Your tests passed on CircleCI!
Details
ci/circleci: lint Your tests passed on CircleCI!
Details
ci/circleci: ngcc_compatibility Your tests passed on CircleCI!
Details
ci/circleci: tests_browserstack Your tests passed on CircleCI!
Details
ci/circleci: tests_local_browsers Your tests passed on CircleCI!
Details
ci/circleci: tests_saucelabs Your tests passed on CircleCI!
Details
ci/circleci: upload_release_packages Your tests passed on CircleCI!
Details
ci/circleci: view_engine_build Your tests passed on CircleCI!
Details
ci/circleci: view_engine_test Your tests passed on CircleCI!
Details
cla/google All necessary CLAs are signed
@alan-agius4 alan-agius4 deleted the alan-agius4:ts4-build-refactor branch Aug 26, 2020
annieyw added a commit to annieyw/components that referenced this pull request Aug 31, 2020
With this change we refactor the code to support compilation using TS 4.0.

1) Refactor tests to not delete non optional properties
2) Refactor components not to override properties with accessors and vice-versa which is now not permitted. https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#breaking-changes
3) update typescript to 4.0, tslint to 6.1.3 and angular packages to 10.1.0-next.8
4) add ts-compat integration test for TypeScript 3.9
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Sep 26, 2020

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.