mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
DEV: Add drop-date to drop-dateless deprecations (#15133)
This commit is contained in:
parent
c0781d7d23
commit
7ce6971539
|
@ -65,7 +65,7 @@ export function buildResolver(baseName) {
|
|||
if (fullName === "app-events:main") {
|
||||
deprecated(
|
||||
"`app-events:main` has been replaced with `service:app-events`",
|
||||
{ since: "2.4.0" }
|
||||
{ since: "2.4.0", dropFrom: "2.9.0.beta1" }
|
||||
);
|
||||
return "service:app-events";
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ export default Component.extend({
|
|||
if (this.currentPath) {
|
||||
deprecated("{{mobile-nav}} no longer requires the currentPath property", {
|
||||
since: "2.7.0.beta4",
|
||||
dropFrom: "2.9.0.beta1",
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
@ -55,6 +55,7 @@ export function updateRelativeAge(elems) {
|
|||
elems = elems.toArray();
|
||||
deprecated("updateRelativeAge now expects a DOM NodeList", {
|
||||
since: "2.8.0.beta7",
|
||||
dropFrom: "2.9.0.beta1",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ export function linkSeenHashtags(elem) {
|
|||
|
||||
deprecated("linkSeenHashtags now expects a DOM node as first parameter", {
|
||||
since: "2.8.0.beta7",
|
||||
dropFrom: "2.9.0.beta1",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -73,6 +73,7 @@ export function linkSeenMentions(elem, siteSettings) {
|
|||
|
||||
deprecated("linkSeenMentions now expects a DOM node as first parameter", {
|
||||
since: "2.8.0.beta7",
|
||||
dropFrom: "2.9.0.beta1",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -5,5 +5,6 @@ deprecated(
|
|||
`"discourse/models/store" import is deprecated, use "discourse/services/store" instead`,
|
||||
{
|
||||
since: "2.8.0.beta8",
|
||||
dropFrom: "2.9.0.beta1",
|
||||
}
|
||||
);
|
||||
|
|
|
@ -37,6 +37,7 @@ export default {
|
|||
create() {
|
||||
deprecated(`"store:main" is deprecated, use "service:store" instead`, {
|
||||
since: "2.8.0.beta8",
|
||||
dropFrom: "2.9.0.beta1",
|
||||
});
|
||||
|
||||
return container.lookup("service:store");
|
||||
|
@ -85,6 +86,7 @@ export default {
|
|||
`"search-service:main" is deprecated, use "service:search" instead`,
|
||||
{
|
||||
since: "2.8.0.beta8",
|
||||
dropFrom: "2.9.0.beta1",
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -204,7 +204,7 @@ export function acceptance(name, optionsOrCallback) {
|
|||
} else if (typeof optionsOrCallback === "object") {
|
||||
deprecated(
|
||||
`${name}: The second parameter to \`acceptance\` should be a function that encloses your tests.`,
|
||||
{ since: "2.6.0" }
|
||||
{ since: "2.6.0", dropFrom: "2.9.0.beta1" }
|
||||
);
|
||||
options = optionsOrCallback;
|
||||
}
|
||||
|
|
|
@ -1042,7 +1042,7 @@ export default Component.extend(
|
|||
discourseSetup &&
|
||||
discourseSetup.getAttribute("data-environment") === "development"
|
||||
) {
|
||||
deprecated(text, { since: "v2.4.0" });
|
||||
deprecated(text, { since: "v2.4.0", dropFrom: "2.9.0.beta1" });
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user