Skip to content

refactor(http): fix a strictBindCallApply issue. - #34817

Closed
mprobst wants to merge 1 commit into
masterfrom
mprobst-patch-1
Closed

mprobst wants to merge 1 commit into
masterfrom
mprobst-patch-1

Conversation

@mprobst

@mprobst mprobst commented Jan 16, 2020

Copy link
Copy Markdown
Contributor

String.fromCharCode's type signature requires a regular number[].

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

@mprobst
mprobst requested review from a team January 16, 2020 18:35
`String.fromCharCode`'s type signature requires a regular `number[]`.
@CaerusKaru

Copy link
Copy Markdown
Member

The HTTP package is no longer published or supported, and I'd hate to set a precedent that we're still updating it. If this is a blocker for strict support elsewhere, my vote is for finally deleting this package via #27038.

cc @IgorMinar

@kapunahelewong

Copy link
Copy Markdown
Contributor

Thank you for requesting my review, @mprobst. I'd like to wait until engineering has had a chance to review and then come to check it from a docs perspective. Will you tag me once the engineering review process is done (in case I miss it)?

@mprobst

mprobst commented Jan 17, 2020

Copy link
Copy Markdown
Contributor Author

@CaerusKaru this PR fixes a trivial compilation issue with a (not that) new TS strictness flag. I understand that a more general cleanup is planned, but given this is a one line essentially, I don't think we should block on the more general cleanup (which I suspect is hard - we'd need to remove all users of the code, not just the code itself!).

@kapunahelewong ack, but I think there's no docs impact in this PR.

@mprobst mprobst added action: merge The PR is ready for merge by the caretaker action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 17, 2020
@CaerusKaru

Copy link
Copy Markdown
Member

@mprobst HTTP hasn’t been updated since v7, and that won’t change. The users of HTTP (granted, only those outside g3) have already been dealt with. I very strongly believe we should just continue with the removal, especially since most of the work has been done to do so (in the PR linked above)

@mprobst

mprobst commented Jan 17, 2020

Copy link
Copy Markdown
Contributor Author

@CaerusKaru sure. What I'm fixing is that currently Angular does not compile with strictBindCallApply. I think that's orthogonal to whether or not to remove this code. Given that the timeline to remove the code as I understand it is not on the order of this week, I think it's worth landing this and then deleting the code later.

@CaerusKaru

Copy link
Copy Markdown
Member

@mprobst I totally understand your point of view, which is why I’d like @IgorMinar to weigh in before we merge this. I don’t think the work is on the order of a week (unless you mean google3 work), but that’s just my opinion.

@kapunahelewong

Copy link
Copy Markdown
Contributor

@mprobst ah yes, thank you! This was the first one that auto requested me. I'm catching on to the new notifications. Never mind! 🙃

@mprobst mprobst added the target: major This PR is targeted for the next major release label Jan 20, 2020
@IgorMinar

Copy link
Copy Markdown
Contributor

@CaerusKaru this change is needed in g3 to compile the monorepo with this flag. External users/programs are not affected because they don't compile this package from sources.

In short, we should merge this and sync it to g3 but not release it on npm.

@IgorMinar IgorMinar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lgtm.

I'll create a kanban task for us to delete this code and stop syncing it. For g3, we should make g3 the source of truth of this code.

@IgorMinar IgorMinar removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Jan 20, 2020
@matsko matsko closed this in 11a4370 Jan 21, 2020
AndrewKushnir pushed a commit to AndrewKushnir/angular that referenced this pull request Jan 24, 2020
`String.fromCharCode`'s type signature requires a regular `number[]`.

PR Close angular#34817
AndrewKushnir pushed a commit that referenced this pull request Jan 24, 2020
`String.fromCharCode`'s type signature requires a regular `number[]`.

PR Close #34817

PR Close #34960
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Feb 21, 2020
@IgorMinar
IgorMinar deleted the mprobst-patch-1 branch June 9, 2020 20:12
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 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