Skip to content

v3.0.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jpdriver jpdriver released this 03 Feb 20:27

This release contains significant internal changes.

Prior to v3.0.0, earlier versions of the library used different internals. We recommend using the latest version you can.

Version Supported React version Editor Transpiler
v3.x.x v17.x.x use-editable Sucrase
v2.x.x v16.x.x react-simple-code-editor Bublé

Additionally, several members of the community reported an issue introduced in 2.3.0 which threw the following Invariant error:

Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.

This appears to have been cause by differing React versions between React Live and projects targeting React 17.

Upgrading to this new release should address that issue.


🚨 Breaking 🚨

  • swap Buble for Sucrase by @jpdriver in #295
    • this removes the transpileOptions prop as Sucrase does not require additional options

✨ Features ✨

🐛 Bugfixes 🐛

introduced in v2.4.1 or earlier

  • fix updating code prop for Editor component by @andgra in #271

introduced in RC releases for v3.0.0

🔐 Security 🔐

📖 Documentation 📖

👩🏻‍💻New Contributors 👨🏿‍💻

Full Changelog: v2.4.1...v3.0.0