-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[CHORE]: Eliminate default injections in favor of re-export #6450
Conversation
yes but for the adapter package |
Is there an RFC for this or is it mentioned in another RFC? I think we need to deprecate access to the explicit registration but keep explicit registration working until 4.0, there are many applications that depend on it. |
Registration of these is an intimate API at most. We'll do the same thing here we did for the deprecation of the explicit serializer registration and target 3.17 removal https://github.com/emberjs/data/blob/master/packages/store/addon/-private/system/core-store.ts#L3314 |
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.
There is no current -rest
or -default
adapter (-rest
did exist recently but was never accessible in userland so we were able to drop is already). We shouldn't add them back nor auto-register them.
FWIW, I was confused by the title here. When I saw "default injections" I thought that this was talking about the default injection of Overall 👍👍 from me on this change... |
@rwjblue agree, but the naming is my fault I worded it this way in the project-trim task list. I have a bad habit of using registration and injection interchangeably due to how most of the time in initializers we were calling "inject" :( |
Oh, ya, no worries here at all, I was just confused until I read the diff (which looks great). |
@runspired Do we also need this?
ref #6166