From 2cbf72d3d8f3d9d4301ddeacc12c278a6f370553 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 26 Oct 2022 10:39:57 +0200 Subject: [PATCH] useAnchorRef: update deprecation message --- packages/rich-text/CHANGELOG.md | 4 ++++ packages/rich-text/src/component/use-anchor-ref.js | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/rich-text/CHANGELOG.md b/packages/rich-text/CHANGELOG.md index 95af2d6d979fb6..7c0ae63993c7a6 100644 --- a/packages/rich-text/CHANGELOG.md +++ b/packages/rich-text/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Deprecations + +- Update deprecation message for the `useAnchorRef` hook ([#45195](https://github.com/WordPress/gutenberg/pull/45195)). + ## 5.18.0 (2022-10-19) ## 5.17.0 (2022-10-05) diff --git a/packages/rich-text/src/component/use-anchor-ref.js b/packages/rich-text/src/component/use-anchor-ref.js index a66a7bbbeb2de3..b8452b874f4404 100644 --- a/packages/rich-text/src/component/use-anchor-ref.js +++ b/packages/rich-text/src/component/use-anchor-ref.js @@ -30,7 +30,6 @@ import { getActiveFormat } from '../get-active-format'; export function useAnchorRef( { ref, value, settings = {} } ) { deprecated( '`useAnchorRef` hook', { since: '6.1', - version: '6.3', alternative: '`useAnchor` hook', } );