-
Notifications
You must be signed in to change notification settings - Fork 1
[Snyk] Upgrade slate-react from 0.82.2 to 0.117.1 #2001
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
base: canary
Are you sure you want to change the base?
Conversation
Snyk has created this PR to upgrade slate-react from 0.82.2 to 0.117.1. See this package in npm: slate-react See this project in Snyk: https://app.snyk.io/org/sammytezzy/project/c7aaa136-9db2-4904-b005-588141a3b273?utm_source=github&utm_medium=referral&page=upgrade-pr
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
|
Reviewer's GuideThis PR updates the slate-react dependency in the with-slate example from version 0.82.2 to 0.117.1 by modifying the package.json entry, aligning the project with the latest slate-react release and its performance and API changes. Class diagram for major API changes in slate-react (v0.82.2 → v0.117.1)classDiagram
class Editor {
+decorate(node)
+renderText
+useSlate()
+useSelected()
+useElement()
+useElementIf()
+useSlateWithV() deprecated
}
Editor : -useSlateWithV() deprecated
Editor : +useElement()
Editor : +useElementIf()
Editor : +decorate(node)
Editor : +renderText
Editor : +useSlate()
Editor : +useSelected()
note for Editor "decorate is now only recomputed when the node or decorate function changes. Decorations depending on parent nodes should be refactored."
note for Editor "useElement and useElementIf are new hooks."
note for Editor "useSlateWithV is deprecated."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Deployment failed with the following error:
|
Snyk has created this PR to upgrade slate-react from 0.82.2 to 0.117.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 218 versions ahead of your current version.
The recommended version was released a month ago.
Release notes
Package name: slate-react
Patch Changes
47da9bf4
Thanks @ zbeyens! - Fixes #5900Minor Changes
fb87646e
Thanks @ 12joan! - - Implement experimental chunking optimization (disabled by default, see https://docs.slatejs.org/walkthroughs/09-performance).useElement
anduseElementIf
hooks to get the current element.decorate
function is changed.decorate
is a pure function of the node passed into it. Depending on the node's parent may result in decorations not being recomputed when you expect them to be.decorate
function to work on the node's parent instead.decorate
function decorates acode-line
based on the parentcode-block
's language, decorate thecode-block
instead.slate-react
, the decorations of all siblings were recomputed when one sibling was modified.slate-dom
version to0.116.0
.useSlateWithV
hookuseSlate
,useSelected
and decorations to reduce re-renders.Patch Changes
ec367fb0
Thanks @ zbeyens! - FixrenderText
prop not appliedImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
Summary by Sourcery
Chores: