Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lexical-link][lexical-react] Chore: Fix deprecated usage of toggleLink with $toggleLink #6081

Merged
merged 1 commit into from
May 11, 2024

Conversation

etrepum
Copy link
Collaborator

@etrepum etrepum commented May 10, 2024

Description

Follow-up to #5979

Somehow I missed some of the toggleLink usages in that big PR, could have been rebase related or just a mistake.

Test plan

Before

  • A test and a LexicalLinkModule were still using the deprecated toggleLink (not an error, just clean-up)

After

  • No files in the monorepo have references to toggleLink
  • There should be no difference in observable behavior

Follow-up considerations

It could make sense to use something like eslint-plugin-deprecation to catch these more easily but it is a big hammer (will also catch many other deprecations in the browser, environment, JSX->React.JSX, etc.)

Copy link

vercel bot commented May 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 11:08pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 11:08pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 10, 2024
@ivailop7 ivailop7 merged commit 157b77c into facebook:main May 11, 2024
45 checks passed
@etrepum etrepum deleted the toggleLink-deprecation branch May 11, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants