|
2 | 2 |
|
3 | 3 | ### 2.27.0
|
4 | 4 |
|
5 |
| -- `New` — *Toolbar API* — Toolbox toggling method added. |
6 |
| -- `Refactoring` — Popover class refactored. |
| 5 | +- `New` — *Toolbar API* — Added a new method for toggling the toolbox. |
| 6 | +- `New` — Added types for block mutation events |
| 7 | +- `New` — Batching added to the `onChange` callback. Now the second argument can contain an array of CustomEvents as well as a single one. Multiple changes made in a short period of time will be batched under a single `onChange` call. |
7 | 8 | - `Improvement` — *Toolbox* — Number of `close()` method calls optimized.
|
8 |
| -- `Improvement` — The `onChange` callback won't be triggered only if all mutations contain nodes with the `data-mutation-free` attributes. |
9 |
| -- `Improvement` — **Breaking Change** — Batching added to the `onChange` callback. Now the second argument can contain an array of CustomEvents as well as a single one. If several changes will be made in short period of time, they will be batched under the single `onChange` call |
| 9 | +- `Improvement` — The `onChange` callback can be muted if all mutations contain nodes with the `data-mutation-free` attribute. |
10 | 10 | - `Improvement` — Pressing "Enter" at the end of a Block won't lead to redundant `block-changed` event triggering. Only `block-added` event will be dispatched.
|
11 |
| -- `Fix` — The `onChange` won't be triggered with Block Tunes opening and closing. |
12 |
| -- `Refactoring` — `EventDispatcher` types improved. Now we can pass `EventsMap` via generic to specify a map of event names and their payloads that can be used in a particular EventDispatcher instance. |
13 |
| -- `Refactoring` — All events in common editor Event Bus now have own type declarations. |
14 |
| -- `Refactoring` — Now Blocks don't have own Mutation Observer. The single observer attached to the editor's blocks wrapper element. `ModificationsObserver` listens blocks wrapper changes, then emits an event into the common editor Event Bus. Each Block subscribes to such events and handle those who related to a particular Block. |
15 |
| -- `Improvement` — Block's mutation handler now will be called on every block change (including background changes). Previously, it have worked only if a particular Block have been focused. |
16 |
| -- `Refactoring` — Debounce have been removed from Block's mutation handler. The batching in `ModificationObserver` used instead. |
| 11 | +- `Improvement` — The block mutation handler is now called on every block change (including background changes), instead of only when a block is focused |
17 | 12 | - `Improvement` — Number of caret saving method calls optimized for Block Tunes opening/closing.
|
18 |
| -- `New` — Types for Block mutation events added. |
19 |
| -- `Fix` — Resolve compiler error from importing the BlockToolData type. |
20 |
| -- `Fix` — Resolved a problem when document was being scrolled to the beginning after moving up a Block above the viewport. |
21 | 13 | - `Improvement` — Package size reduced by removing redundant files.
|
22 |
| -- `Fix`- Several bugs caused by random browser extensions. Now we are not searching for a block's container in the DOM on saving. Instead, we keep it in memory and update it when the tool changes a container element. |
23 |
| -- `Improvement` — *Dependencies* — Upgrade TypeScript to v5. |
| 14 | +- `Refactoring` — Switched from Webpack to Vite as the build system. |
| 15 | +- `Refactoring` — *Dependencies* — Upgraded Cypress to v12 and related libraries to the latest versions. |
| 16 | +- `Refactoring` — *Dependencies* — Upgraded TypeScript to v5. |
| 17 | +- `Refactoring` — `EventDispatcher` types improved. Now we can pass `EventsMap` via generic to specify a map of event names and their payloads that can be used in a particular EventDispatcher instance. |
| 18 | +- `Refactoring` — All events in common editor Event Bus now have own type declarations. |
| 19 | +- `Refactoring` — Removed the block mutation observer from blocks and attached a single observer to the editor's blocks wrapper element. |
| 20 | +- `Refactoring` — Removed the debounce from the block mutation handler and used batching instead. |
| 21 | +- `Refactoring` — Refactored the popover class for better performance and maintenance. |
| 22 | +- `Fix` — The `onChange` callback won't trigger when block tunes are opened or closed. |
| 23 | +- `Fix` — Resolved a compiler error caused by importing the `BlockToolData` type. |
| 24 | +- `Fix` — Resolved a problem where the document would scroll to the beginning after moving a block above the viewport. |
| 25 | +- `Fix`- Fixed several bugs caused by browser extensions — Removed the search for a block's container in the DOM on saving and kept it in memory instead, updating it when the tool changes a container element. |
24 | 26 | - `Fix` — *ToolsAPI* — `pasteConfig` getter with `false` value could be used to disable paste handling by Editor.js core. Could be useful if your tool has its own paste handler.
|
25 |
| -- `Improvement` — *Dependencies* — Upgrade Cypress to v12, upgrade related libraries to latest versions. |
26 |
| -- `CI` — Use Ubuntu container for Edge tests runner. |
27 |
| -- `Improvement` — Use Vite as build system instead of Webpack. |
| 27 | +- `CI` — Ubuntu container is now used for Edge tests runner. |
| 28 | +- `CI` — Node 16 is used for GitHib Actions. |
28 | 29 |
|
29 | 30 | ### 2.26.5
|
30 | 31 |
|
|
0 commit comments