Skip to content

refactor(compiler): implement ngDeclareInjectable() - #41316

Closed
petebacondarwin wants to merge 4 commits into
angular:masterfrom
petebacondarwin:linker-declare-injectables
Closed

petebacondarwin wants to merge 4 commits into
angular:masterfrom
petebacondarwin:linker-declare-injectables

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented Mar 22, 2021 •

Copy link
Copy Markdown
Contributor

This PR sits on top of #41231, so you only need to start your review from refactor(compiler): fix typo.

@petebacondarwin petebacondarwin added state: WIP target: major This PR is targeted for the next major release area: compiler Issues related to `ngc`, Angular's template compiler compiler: linker labels Mar 22, 2021
@ngbot ngbot Bot modified the milestone: Backlog Mar 22, 2021
@google-cla google-cla Bot added the cla: yes label Mar 22, 2021
@petebacondarwin
petebacondarwin force-pushed the linker-declare-injectables branch 5 times, most recently from d34f64e to dcd8472 Compare March 25, 2021 18:13

@JoostK JoostK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a lot simpler than I was expecting it to be. Most stuff has already been done in the factory PR.

Can we also extend the compliance tests a bit, I haven't seen useValue nor useExisting.

@JoostK JoostK mentioned this pull request Mar 25, 2021
5 tasks done
@petebacondarwin
petebacondarwin force-pushed the linker-declare-injectables branch 4 times, most recently from 2e3ebb8 to b177644 Compare March 26, 2021 17:56
Comment thread packages/compiler/src/identifiers.ts Resolved
@petebacondarwin
petebacondarwin force-pushed the linker-declare-injectables branch 3 times, most recently from c7ecac7 to ba0b632 Compare March 28, 2021 18:05
@petebacondarwin petebacondarwin added action: review The PR is still awaiting reviews from at least one requested reviewer and removed state: WIP labels Mar 28, 2021
@petebacondarwin
petebacondarwin marked this pull request as ready for review March 28, 2021 18:38
@pullapprove
pullapprove Bot requested review from IgorMinar and atscott March 28, 2021 18:38
@petebacondarwin
petebacondarwin force-pushed the linker-declare-injectables branch from ba0b632 to 8a1ea42 Compare March 28, 2021 20:09
@petebacondarwin
petebacondarwin requested review from AndrewKushnir and removed request for atscott April 6, 2021 20:10
@petebacondarwin petebacondarwin added the action: presubmit The PR is in need of a google3 presubmit label Apr 6, 2021

@AndrewKushnir AndrewKushnir 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 👍

Comment thread packages/core/src/di/jit/injectable.ts Resolved

@AndrewKushnir AndrewKushnir 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.

Reviewed-for: public-api

@AndrewKushnir

Copy link
Copy Markdown
Contributor

Presubmit.

@jessicajaniuk jessicajaniuk 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 🍪

Just one loose suggestion that can be ignored.

reviewed-for: public-api

@pullapprove
pullapprove Bot requested a review from atscott April 7, 2021 00:24
@petebacondarwin petebacondarwin added action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 7, 2021

@alxhub alxhub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed-for: public-api

@petebacondarwin petebacondarwin removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 7, 2021
@AndrewKushnir

Copy link
Copy Markdown
Contributor

Presubmit #2.

@AndrewKushnir

Copy link
Copy Markdown
Contributor

@petebacondarwin FYI, presubmits look good.

@AndrewKushnir AndrewKushnir removed the action: presubmit The PR is in need of a google3 presubmit label Apr 7, 2021
@petebacondarwin petebacondarwin added the action: merge The PR is ready for merge by the caretaker label Apr 7, 2021
@zarend zarend closed this in 71d3b24 Apr 7, 2021
zarend pushed a commit that referenced this pull request Apr 7, 2021
…claration` (#41316)

The other similar interfaces were renamed in #41119,
but this one was left since it had existed before Ivy. It looks like the interface was
never actually exposed on npm so it is safe to rename this one too.

PR Close #41316
zarend pushed a commit that referenced this pull request Apr 7, 2021
This commit changes the partial compilation so that it outputs declarations
rather than definitions for injectables.

The JIT compiler and the linker are updated to be able to handle these
new declarations.

PR Close #41316
@petebacondarwin
petebacondarwin deleted the linker-declare-injectables branch April 8, 2021 08:01
@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 May 9, 2021
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: compiler Issues related to `ngc`, Angular's template compiler cla: yes compiler: linker 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