Releases: roast-cms/french-press-editor
Modernizing React methods and upgrading dependencies
This release consists of few major, minor, and patch bumps to dependencies, a custom slate-react-legacy
package that updates deprecated React lifecycle methods in slate-react
and aliases all slate-react
dependencies to slate-react-legacy
and bumps styled-components
to v5.
Security updates
This release adds security updates on top of 12.4.3
To upgrade from v0.9.0 please se README.md for full integration instructions (they have changed, as the breaking semver implies).
New features and breaking changes
There are breaking changes in this version of french-press-editor
, please read the below list carefully to make sure your project isn't affected and/or upgraded properly.
New features.
- Added
<Reader />
component, which is a light-weight (save up to 200KB!) document parser that you can use instead of having the user download an entire library for read-only access. See updatedREADME.md
for implementation details. - You can now pass
value
prop to<Editor />
to have a default content for first-time users ready.
Fixes.
- Example app has been updated to include
<Reader />
component demo. - Corrected bindings for utils functions. This is internal logic and shouldn't affect implementation. Details could be found in
docs/UTILS.md
. - Final linter and prettier rules have been implemented.
- Fixed focused and selected editor behaviour for format menu. 5290d5c fbd1a16
- Image data now stored as text rather than blob to deal with Safari's new bug that crashes local DB.
- Modified schema and added
src/constants/rules-serialize.js
andsrc/constants/rules-deserialize.js
to correctly parse documents, including better copy-paste handling. - Added more tests to the pipeline.
- The underlying Slate library has been updated to
0.41.2
- please keep in mind this is a few cycles above previous version which have introduced a lot of breaking changes in Slate. This isn't likely to affect your project, however. - Minor behaviour change: when inserting
<hr />
(typing***
on a new line and then pressing enter) will move the cursor to a next block but will not create an empty paragraph block if blow the<hr />
component there's another bock. c2b6fc1
Breaking changes.
- Moved in
src
folder:schema.js
to./constants/schema.js
and renamed the constant to all-capsSCHEMA
- Moved in
src
folder:render.js
to./utils/render.js
- Created helper function in
src
folder:./utils/deserialize-html
that exports{html}
object, previously available in./render.js
. - Note the removed util files:
src/rules.js
(moved and split to toconstants/rules-serialze.js
andconstants/rules-deserialize.js
)src/schema.js
moved toconstants/schema.js
- Deleted
utils/README.MD
utils/actions-format.js
has been renamed toutils/format.js
utils/events-focus.js
has been renamed toutils/focus.js
utils/actions-image.js
has been renamed toutils/image.js
utils/actions-storage.js
has been renamed toutils/storage.js
utils/inde.js
has been removed (if you use those functions in your project you'll need to import them directly from named files in that folder).
utils/squish-to-plaintext.js
has been removed as it is now replaced withschema
rules.
Breaking changes
- Tests
- Updated dependencies
- Added size-limit tool
- Added testing capacity for mobile (ngrok)
- Change storage schema to
data-uri
strings BREAKING: images are going to be stored in local DB asdata-uri
strings and not file blobs. The script is compatible with earlier DB schema and will read old entries with no problem, however they will need to be converted back to File blobs when used as form uploads.
Updated dependencies & test suites
Merge pull request #89 from roast-cms/develop Version bump & remove width restriction for button strip width
Remove predefined width from buttonStrip component
Merge pull request #89 from roast-cms/develop Version bump & remove width restriction for button strip width
Fix context menu CSS
v0.7.3 Revert to remove heroku
Fix drag&drop functionality
- Fix the function
- Write tests
- Upgrade dependencies
Refactor, CI & smoke tests (breaking changes)
Changes
- Restructured directory and file naming structures in accordance to https://medium.com/archieai/structuring-react-js-web-applications-11271643e941
- Substantial refactor
- Added smoke tests
- Implemented jsdoc to automatically create API docs from within the code base
- Implemented Travis CI
Migration
Tighten up image button rules
This release fixes image button behaviour which caused it to remain on-screen even if the user is within another text block or has selected a text block above an empty paragraph block.
A part of this release (v0.6.7
) fixed fatal JS error caused by a typo.