Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .changeset/modern-toolchain.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/stale-caret-restore.md

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# use-editable

## 3.0.0

### Major Changes

- [#40](https://github.com/FormidableLabs/use-editable/pull/40) [`7097f72`](https://github.com/FormidableLabs/use-editable/commit/7097f72318d8c2ac8c366a6e160df92dea8d861c) - Require React 18 or newer, and ship modern JavaScript.

- **Breaking:** the `react` peer dependency is now `>=18.0.0` (was `>=16.8.0`).
- **Breaking:** `dist/` now targets ES2022 instead of ES5. Bundlers that transpile `node_modules` for older browsers are unaffected.
- Types now live at `dist/use-editable.d.ts` (was `dist/types/index.d.ts`); the `types` field points there, so normal imports are unaffected. The `main` and `module` filenames are unchanged.
- The build moved from rollup, Babel, buble, closure-compiler and terser to tsdown; releases are published from CI with npm provenance.

### Patch Changes

- [#37](https://github.com/FormidableLabs/use-editable/pull/37) [`033a70c`](https://github.com/FormidableLabs/use-editable/commit/033a70cd746c5f869b3efeb4fbf27a792f82ee80) - Don't restore a stale caret position onto content it wasn't computed against. An unrelated re-render landing between a keystroke's `keydown` and `keyup` no longer yanks the caret to the wrong offset.

## 2.3.3

- Prevent empty text from being inserted
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "use-editable",
"description": "A small React hook to turn elements into fully renderable & editable content surfaces, like code editors, using contenteditable (and magic)",
"version": "2.3.3",
"version": "3.0.0",
"type": "commonjs",
"main": "dist/use-editable.js",
"module": "dist/use-editable.es.js",
Expand Down
Loading