Releases: roast-cms/french-press-editor
Chore updates and accept custom `<H3 />` component, breaking: removed child `<span />` components.
- Package updates
- Can now accept
H3
component constant to modify static render only views insrc/components/vignettes/Reader.js
- Removes children
<span/>
wrappers. This is the breaking change. This should help with bloated HTML in long documents but can break CSS styles.
Updates 3rd party packages (minor changes)
v14.0.9 v14.0.9
Fixes logic for v14.0.7
v14.0.8 v14.0.8
Bugfix headings with no alphanumeric text
Fixes an issue that breaks the reader if you set your heading to an emoji.
cd0b6f9
Chore: Update dependencies
Applied dependency patches.
Fix peer dependencies
React 16 and 17 is now supported.
Chore: upgrades
Upgraded key dependencies for best speed/security
`lscache`
This project now uses lscache
that helps with serializing/deserializing JSON data and is also able to free up space if there are other entries present in localStorage written with lscache
with expiration.
This is a major version update because french-press-editor
won't be able to read the previously saved content on your user's browsers since the localStorage keys have changed. You may want to migrate your keys as follows:
"composer-content-text"
to"lscache-composer-content-text"
"composer-content-state"
to"lscache-composer-content-state"
Anchored Headings
- All headings now have an
id
so that they could be linked to using anchor tags - Dependency upgrades
Breaking
You will now have to rewrite plugins that use slate-react
to use slate-react-legacy
to be compatible with the upgrades to the stable legacy code. If you aren't using incompatible plugins, this should be a safe upgrade.
Note that this package also relies on styled-components@5