DEV: Deprecate `registerOption()` (#15209)

It's been a no-op for 5 years now.
This commit is contained in:
Jarek Radosz 2021-12-07 18:33:45 +01:00 committed by GitHub
parent 03b0c9f267
commit 6e8df3d66b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -3,12 +3,16 @@ import {
setup as setupIt,
} from "pretty-text/engines/discourse-markdown-it";
import { deepMerge } from "discourse-common/lib/object";
import deprecated from "discourse-common/lib/deprecated";
export function registerOption() {
// TODO next major version deprecate this
// if (window.console) {
// window.console.log("registerOption is deprecated");
// }
deprecated(
"`registerOption() from `pretty-text` is deprecated. Use `helper.registerOptions()` instead.",
{
since: "2.8.0.beta9",
dropFrom: "2.9.0.beta1",
}
);
}
export function buildOptions(state) {