DEV: Replace current-user:main with service:current-user

This will allow consumers to inject it using `currentUser: service()` in preparation for the removal of implicit injections in Ember 4.0. `current-user:main` is still available and will print a deprecation notice.
This commit is contained in:
David Taylor
2022-07-30 18:15:43 +01:00
parent 2463a8d568
commit 4c2f08b6e2
21 changed files with 72 additions and 44 deletions

View File

@ -68,6 +68,11 @@ const DEPRECATED_MODULES = new Map(
since: "2.9.0.beta7",
dropFrom: "3.0.0",
},
"current-user:main": {
newName: "service:current-user",
since: "2.9.0.beta7",
dropFrom: "3.0.0",
},
})
);