Skip to content

refactor: remove code specific to IE 9 and IE 10 support #39090

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

Closed
wants to merge 8 commits into from

Conversation

AndrewKushnir
Copy link
Contributor

This PR contains several commits that remove code specific to IE 9 and IE 10 support.
The code is no longer needed since IE 9 and IE 10 support is removed.

@AndrewKushnir AndrewKushnir added state: WIP refactoring Issue that involves refactoring or code-cleanup area: core Issues related to the framework runtime target: major This PR is targeted for the next major release area: elements Issues related to Angular Elements labels Oct 2, 2020
@ngbot ngbot bot modified the milestone: needsTriage Oct 2, 2020
@AndrewKushnir AndrewKushnir force-pushed the ie-9-10-cleanup-2 branch 3 times, most recently from 62c1cdb to 49be017 Compare October 2, 2020 19:17
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer and removed state: WIP labels Oct 5, 2020
@AndrewKushnir AndrewKushnir marked this pull request as ready for review October 5, 2020 18:26
Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

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

I'd expect there to be more stuff to remove from forms, but it might be hard to identify the code paths if they were not well documented.

Otherwise this looks great! Thank you!

Reviewed-for: global-approvers

Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

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

Yay! :shipit:

Reviewed-for: docs-infra, fw-elements, fw-upgrade

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

Reviewed-for: public-api

This commit updates core tests and removes the code needed to support IE 9 and IE 10 only.
The code is no longer needed since IE 9 and IE 10 support is removed in v11.
This commit removes IE 9 and IE 10 checks from the browser detection spec.
Also unblocks tests that were previously disabled due to issues in IE10.
This commit removes a workaround previously used for IE 9 and 10 to identify whether InjectableDef
was defined on a given class instance. Since support for IE 9 and 10 is removed, this fallback is
no longer needed.
Since support for IE 9 and IE 10 browsers is removed in v11, the code that was added to support
these browsers is no longer needed.
This commit simplifies the logic in the `setClassMetadata` function to avoid the code needed to
support IE 9 and IE 10.
This commit updates `browserslist` files to exclude IE10 references.
@AndrewKushnir
Copy link
Contributor Author

Presubmit.

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 13, 2020
@AndrewKushnir
Copy link
Contributor Author

Merge assistance: it looks like there is a GitHub UI glitch where some reviewers were added twice and I'm unable to remove them from the list (thus the ci/angular: merge status is failing).

@atscott atscott closed this in 78a33ee Oct 13, 2020
atscott pushed a commit that referenced this pull request Oct 13, 2020
This commit removes IE 9 and IE 10 checks from the browser detection spec.
Also unblocks tests that were previously disabled due to issues in IE10.

PR Close #39090
atscott pushed a commit that referenced this pull request Oct 13, 2020
)

This commit removes a workaround previously used for IE 9 and 10 to identify whether InjectableDef
was defined on a given class instance. Since support for IE 9 and 10 is removed, this fallback is
no longer needed.

PR Close #39090
atscott pushed a commit that referenced this pull request Oct 13, 2020
Since support for IE 9 and IE 10 browsers is removed in v11, the code that was added to support
these browsers is no longer needed.

PR Close #39090
atscott pushed a commit that referenced this pull request Oct 13, 2020
…on (#39090)

This commit simplifies the logic in the `setClassMetadata` function to avoid the code needed to
support IE 9 and IE 10.

PR Close #39090
atscott pushed a commit that referenced this pull request Oct 13, 2020
This commit updates `browserslist` files to exclude IE10 references.

PR Close #39090
gkalpak added a commit to gkalpak/angular that referenced this pull request Oct 14, 2020
Support for IE<11 is being removed in v11. PR angular#39090 removed some code
that was no longer needed.

Now that there are no longer multiple code-paths (which was previously
needed for IE<11 support), this commit simplifies the code further (for
example, to avoid unnecessary functions calls and to avoid iterating
over a component's inputs multiple times).
atscott pushed a commit that referenced this pull request Oct 14, 2020
Support for IE<11 is being removed in v11. PR #39090 removed some code
that was no longer needed.

Now that there are no longer multiple code-paths (which was previously
needed for IE<11 support), this commit simplifies the code further (for
example, to avoid unnecessary functions calls and to avoid iterating
over a component's inputs multiple times).

PR Close #39265
@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 Nov 13, 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 area: core Issues related to the framework runtime area: elements Issues related to Angular Elements cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note refactoring Issue that involves refactoring or code-cleanup target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants