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
Merged

refactor: add support for TypeScript 4.0 #20368

merged 3 commits into from Aug 26, 2020

Conversation

alan-agius4
Copy link
Contributor

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 PR author has agreed to Google's Contributor License Agreement 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 marked this pull request as ready for review August 20, 2020 11:47
src/youtube-player/youtube-player.spec.ts Show resolved Hide resolved
src/material/tree/padding.ts Show resolved Hide resolved
src/material/radio/radio.ts Outdated Show resolved Hide resolved
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 requested review from jelbourn and removed request for jelbourn, andrewseguin and mmalerba August 21, 2020 20:21
@alan-agius4 alan-agius4 added the target: minor This PR is targeted for the next minor release label Aug 22, 2020
@alan-agius4
Copy link
Contributor Author

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 requested a review from a team as a code owner August 25, 2020 07:29
@alan-agius4
Copy link
Contributor Author

@devversion & @jelbourn PTAL. Thanks.

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
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I'm running a google presubmit now

@jelbourn jelbourn added action: merge The PR is ready for merge by the caretaker P2 The issue is important to a large percentage of users, with a workaround labels Aug 25, 2020
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM from my side. Thanks Alan!

@jelbourn jelbourn merged commit f33210c into angular:master Aug 26, 2020
@alan-agius4 alan-agius4 deleted the ts4-build-refactor branch August 26, 2020 14:32
annieyw pushed 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

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.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants