From f7ac35daafb032abf6e5e9661d93f40a8cd1f05a Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Fri, 22 Jul 2016 13:27:36 -0700 Subject: [PATCH] update history --- History.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/History.md b/History.md index 75a3fcf80..33d25c59f 100644 --- a/History.md +++ b/History.md @@ -7,6 +7,10 @@ This document maintains a list of changes to Slate with each new version. Until ### `0.6.0` — _July 22, 2016_ +- **Void components are no longer rendered implicity!** Previously, Slate would automatically wrap any node with `isVoid: true` in a `` component. But doing this prevented you from customizing the wrapper, like adding a `className` or `style` property. So you **must now render the wrapper yourself**, and it has been exported as `Slate.Void`. + +This, combined with a small change to the `` component's structure allows the "selected" state of void nodes to be rendered purely with CSS based on the `:focus` property of a `` element. This prevents us from having to handle this case specially when choosing whether to re-render or not when a new selection has occured, improving performance and reducing complexity. + - **`data-offset-key` is now `-` instead of `:-`.** This shouldn't actually affect anyone, unless you were specifically relying on that attribute in the DOM. This change greatly reduces the number of re-renders needed, since previously any additional characters would cause a cascading change in the `` and `` offsets of latter text ranges.