Skip to content

Releases: roast-cms/french-press-editor

Modernizing React methods and upgrading dependencies

20 Jan 23:27
Compare
Choose a tag to compare

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

20 Oct 07:58
Compare
Choose a tag to compare

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

29 Sep 18:52
35e8ab2
Compare
Choose a tag to compare

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 updated README.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 and src/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-caps SCHEMA
  • 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 to constants/rules-serialze.js and constants/rules-deserialize.js)
    • src/schema.js moved to constants/schema.js
    • Deleted utils/README.MD
    • utils/actions-format.js has been renamed to utils/format.js
    • utils/events-focus.js has been renamed to utils/focus.js
    • utils/actions-image.js has been renamed to utils/image.js
    • utils/actions-storage.js has been renamed to utils/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 with schema rules.

Breaking changes

01 Aug 08:47
9d623fc
Compare
Choose a tag to compare
  • 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 as data-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

28 Jul 22:51
93aa953
Compare
Choose a tag to compare
Merge pull request #89 from roast-cms/develop

Version bump & remove width restriction for button strip width

Remove predefined width from buttonStrip component

07 Jul 14:58
93aa953
Compare
Choose a tag to compare
Merge pull request #89 from roast-cms/develop

Version bump & remove width restriction for button strip width

Fix context menu CSS

07 Jul 14:26
Compare
Choose a tag to compare
v0.7.3

Revert to remove heroku

Fix drag&drop functionality

05 Jul 10:06
47ba7b0
Compare
Choose a tag to compare
  • Fix the function
  • Write tests
  • Upgrade dependencies

Refactor, CI & smoke tests (breaking changes)

28 Jun 17:01
c11aea5
Compare
Choose a tag to compare

Changes

Migration

  • See #66 and #64 for the lists of all changed filepaths and exports. Most likely you will need to change how you import <Reader /> component from @roast-cms/french-press-editor/dist/components/Reader to @roast-cms/french-press-editor/dist/components/vignettes/Reader

Tighten up image button rules

18 May 12:22
557fb1b
Compare
Choose a tag to compare

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.