This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/config/deprecation-workflow.js
David Taylor 327dd0beb3
DEV: Install ember-modifier and @ember/render-modifiers (#17595)
`ember-modifier` provides APIs to write our own modifiers. `@ember/render-modifiers` provides some simple `did-insert`, `did-update` and `will-destroy` modifiers.

Upcoming `ember-modifier` deprecations have been set to 'throw' in our deprecation-workflow config to ensure we don't accidently start using deprecated behaviour.
2022-07-21 18:12:29 +01:00

52 lines
1.7 KiB
JavaScript

globalThis.deprecationWorkflow = globalThis.deprecationWorkflow || {};
globalThis.deprecationWorkflow.config = {
// We're using RAISE_ON_DEPRECATION in environment.js instead of
// `throwOnUnhandled` here since it is easier to toggle.
workflow: [
{ handler: "silence", matchId: "ember-global" },
{ handler: "silence", matchId: "ember-string.prototype-extensions" },
{ handler: "silence", matchId: "ember.built-in-components.reopen" },
{ handler: "silence", matchId: "ember.built-in-components.import" },
{ handler: "silence", matchId: "implicit-injections" },
{ handler: "silence", matchId: "route-render-template" },
{ handler: "silence", matchId: "routing.transition-methods" },
{ handler: "silence", matchId: "route-disconnect-outlet" },
{ handler: "silence", matchId: "setting-on-hash" },
{ handler: "silence", matchId: "this-property-fallback" },
{ handler: "silence", matchId: "ember.globals-resolver" },
{ handler: "silence", matchId: "globals-resolver" },
{
handler: "silence",
matchId: "deprecated-run-loop-and-computed-dot-access",
},
{
handler: "silence",
matchId: "ember.built-in-components.legacy-arguments",
},
{
handler: "throw",
matchId: "ember-modifier.use-modify",
},
{
handler: "throw",
matchId: "ember-modifier.use-destroyables",
},
{
handler: "throw",
matchId: "ember-modifier.no-args-property",
},
{
handler: "throw",
matchId: "ember-modifier.no-element-property",
},
{
handler: "throw",
matchId: "ember-modifier.function-based-options",
},
{
handler: "throw",
matchId: "ember-modifier.function-based-options",
},
],
};