From 1695f5a20c1a99bc7411c02f00d4664e0010b36d Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Fri, 3 Aug 2018 15:19:18 -0700 Subject: [PATCH] update changelog --- packages/slate/Changelog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/slate/Changelog.md b/packages/slate/Changelog.md index dbb0c4906..9312e3ae8 100644 --- a/packages/slate/Changelog.md +++ b/packages/slate/Changelog.md @@ -59,6 +59,8 @@ const anchor = document.createPoint({ **`Range.set` and `Range.merge` are dangerous.** If you were previously using the super low-level Immutable.js methods `range.set` or `range.merge` with any of the now-removed properties of ranges, these invocations will fail. Instead, you should use the `range.set*` helpers going forward which can be migrated with deprecations warnings instead of failing outright. +**The `offset` property of points defaults to `null`.** Previously it would default to `0` but that could be confusing because it made no distinction from a "set" or "unset" offset. Now they default to `null` instead. This shouldn't really affect any real-world usage of Slate. + **The `Range.toJSON()` structure has changed.** With the introduction of points, the range now returns its `anchor` and `focus` properties as nested point JSON objects instead of directly as properties. For example: ```json