From 96601f7c9944596aa33426233947526b8b64eebd Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Wed, 7 Aug 2024 06:30:46 +0200 Subject: [PATCH] refactor(placeholder): deprecate `considerAnyAsEmpty` --- .changeset/big-wolves-design.md | 5 +++++ packages/extension-placeholder/src/placeholder.ts | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 .changeset/big-wolves-design.md diff --git a/.changeset/big-wolves-design.md b/.changeset/big-wolves-design.md new file mode 100644 index 000000000..087895266 --- /dev/null +++ b/.changeset/big-wolves-design.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extension-placeholder": major +--- + +Officially remove the `considerAnyAsEmpty` which has not been used since version 2.5 diff --git a/packages/extension-placeholder/src/placeholder.ts b/packages/extension-placeholder/src/placeholder.ts index 08427a257..ad0fb8638 100644 --- a/packages/extension-placeholder/src/placeholder.ts +++ b/packages/extension-placeholder/src/placeholder.ts @@ -31,12 +31,6 @@ export interface PlaceholderOptions { }) => string) | string - /** - * See https://github.com/ueberdosis/tiptap/pull/5278 for more information. - * @deprecated This option is no longer respected and this type will be removed in the next major version. - */ - considerAnyAsEmpty?: boolean - /** * **Checks if the placeholder should be only shown when the editor is editable.** *