DEV: Replace topic-tracking-state:main with service:topic-tracking-state (#17802)

This will allow consumers to inject it using `topicTrackingState: service()` in preparation for the removal of implicit injections in Ember 4.0. `topic-tracking-state:main` is still available and will print a deprecation notice.

Ideally we would convert topic-tracking-state into a true service, rather than registering a model instance into the registry. However, inter-dependencies between service injections make this very difficult to achieve. We don't want to block Glimmer Component work, so this commit does the minimum for now.
This commit is contained in:
David Taylor
2022-08-05 08:48:55 +08:00
committed by GitHub
parent 199d9ccb69
commit c1cdb6bc51
12 changed files with 37 additions and 33 deletions
@@ -83,6 +83,11 @@ const DEPRECATED_MODULES = new Map(
since: "2.9.0.beta7",
dropFrom: "3.0.0",
},
"topic-tracking-state:main": {
newName: "service:topic-tracking-state",
since: "2.9.0.beta7",
dropFrom: "3.0.0",
},
})
);