DEV: Add drop-date to drop-dateless deprecations (#15133)

This commit is contained in:
Jarek Radosz 2021-11-30 17:41:04 +01:00 committed by GitHub
parent c0781d7d23
commit 7ce6971539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 10 additions and 3 deletions

View File

@ -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";
}

View File

@ -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",
});
}
},

View File

@ -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",
});
}

View File

@ -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",
});
}

View File

@ -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",
});
}

View File

@ -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",
}
);

View File

@ -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",
}
);

View File

@ -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;
}

View File

@ -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" });
}
},