diff --git a/src/api/transaction.ts b/src/api/transaction.ts index bfc1c5c6c..19c6a6f55 100644 --- a/src/api/transaction.ts +++ b/src/api/transaction.ts @@ -1,6 +1,5 @@ import { deprecated } from "../utils/utils" import { executeAction } from "../core/action" -import { getMessage } from "../utils/messages" /** * @deprecated @@ -13,7 +12,6 @@ import { getMessage } from "../utils/messages" * @returns any value that was returned by the 'action' parameter. */ export function transaction(action: () => T, thisArg = undefined): T { - deprecated(getMessage("m023")) return runInTransaction.apply(undefined, arguments) } diff --git a/src/utils/messages.ts b/src/utils/messages.ts index 47a088e80..4ea75e6cd 100644 --- a/src/utils/messages.ts +++ b/src/utils/messages.ts @@ -30,7 +30,6 @@ const messages = { m020: "modifiers can only be used for individual object properties", m021: "observable expects zero or one arguments", m022: "@observable can not be used on getters, use @computed instead", - m023: "Using `transaction` is deprecated, use `runInAction` or `(@)action` instead.", m024: "whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.", m025: "whyRun can only be used on reactions and computed values",