DEV: Show select-kit deprecations in non-dev envs (#21297)

We should have them in CI ;) (silenced for now, fixing them is not a priority)
This commit is contained in:
Jarek Radosz 2023-04-28 17:58:41 +02:00 committed by GitHub
parent a67c96438c
commit 4a08c23965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 11 deletions

View File

@ -8,5 +8,6 @@ globalThis.deprecationWorkflow.config = {
{ handler: "silence", matchId: "routing.transition-methods" },
{ handler: "silence", matchId: "route-disconnect-outlet" },
{ handler: "silence", matchId: "this-property-fallback" },
{ handler: "silence", matchId: "discourse.select-kit" },
],
};

View File

@ -1083,17 +1083,11 @@ export default Component.extend(
},
_deprecated(text) {
const discourseSetup = document.getElementById("data-discourse-setup");
if (
discourseSetup &&
discourseSetup.getAttribute("data-environment") === "development"
) {
deprecated(text, {
since: "v2.4.0",
dropFrom: "2.9.0.beta1",
id: "discourse.select-kit",
});
}
deprecated(text, {
since: "v2.4.0",
dropFrom: "2.9.0.beta1",
id: "discourse.select-kit",
});
},
_deprecateValueAttribute() {