-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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(ivy): prefix all instructions #29692
Conversation
third_party/github.com/yarnpkg/yarn/releases/download/v1.13.0/bin/yarn.js
Outdated
Show resolved
Hide resolved
3e26a6e
to
e8cb2aa
Compare
Well, I'm not sure this character is going to work out, @mhevery... here's what it looks like on github's mobile UI: |
e8cb2aa
to
f7f91f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On behalf of docs-infra
. Although I recently changed just that line, which is why there is a conflict.
f7f91f1
to
5b34c3d
Compare
5b34c3d
to
1230778
Compare
Caretaker: @mhevery is global approver. |
@@ -16,8 +16,10 @@ import {NO_CHANGE} from '../tokens'; | |||
* Allocates the necessary amount of slots for host vars. | |||
* | |||
* @param count Amount of vars to be allocated | |||
* | |||
* @publicApi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's really misleading to call these "@publicapi" - they are not. we don't want people to start using them as any other api marked as "@publicapi". Can we remove these jsdoc tags? or could we rename these to @deltaApi
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a great idea! But I think we should tackle that in a separate PR. There are places where publicApi
is checked for in our CI process, and I don't have enough context to work on those things, nor can I prioritize it at the moment, because it's not critical to reworking our instruction set.
I've added a JIRA ticket for this: https://angular-team.atlassian.net/browse/FW-1235
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed in person... we'll change this to @deltaApi in a separate PR.
export declare function ΔallocHostVars(count: number): void; | ||
|
||
export interface ΔBaseDef<T> { | ||
/** @deprecated */ readonly declaredInputs: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we just remove this? this is not a public api, so we should be able to remove rather than deprecate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. declaredInputs
was not related to this change. Just BaseDef
was renamed, which we can't remove, as it's used in generated code. If we do need to removed declaredInputs
it should probably be handled in a different commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the ℹ️ Googlers: Go here for more info. |
You can preview c0e7747 at https://pr29692-c0e7747.ngbuilds.io/. |
You can preview f42e786 at https://pr29692-f42e786.ngbuilds.io/. |
You can preview b2f38cf at https://pr29692-b2f38cf.ngbuilds.io/. |
- Updates all instructions to be prefixed with the Greek delta symbol
f42e786
to
bb929b5
Compare
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
You can preview bb929b5 at https://pr29692-bb929b5.ngbuilds.io/. |
You can preview 57d43b7 at https://pr29692-57d43b7.ngbuilds.io/. |
The delta caused issue with other infrastructure, and we are temporarily changing it to `ɵɵ`. Related angular#29692
The delta caused issue with other infrastructure, and we are temporarily changing it to `ɵɵ`. Related angular#29692
- Updates all instructions to be prefixed with the Greek delta symbol PR Close angular#29692
@benlesh @ocombe @mhevery @IgorMinar https://angular.io/api/core/InjectionToken#tree-shakable-injectiontoken class MyService {
constructor(readonly myDep: MyDep) {}
}
const MY_SERVICE_TOKEN = new InjectionToken<MyService>('Manually constructed MyService', {
providedIn: 'root',
factory: () => new MyService(inject(MyDep)), // <- HERE
});
const instance = injector.get(MY_SERVICE_TOKEN);
expect(instance instanceof MyService).toBeTruthy();
expect(instance.myDep instanceof MyDep).toBeTruthy(); EDIT: It’s not the preferred way, but the only way. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Updates all exported Ivy template instructions to be prefixed with a greek delta, per this design document