From 81a7207a06c73e4f771f7114da41194883ae936b Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 3 Nov 2023 13:48:26 +0100 Subject: [PATCH] Mark version 6.22.0 --- CHANGELOG.md | 16 ++++++++++++++++ package.json | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bf69b4..e2a9e22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## 6.22.0 (2023-11-03) + +### Bug fixes + +Exceptions raised by update listeners are now routed to the configured exception sink, if any. + +Fix an issue where passing large scroll margins to `scrollIntoView` would cause the measure loop to fail to terminate. + +Widgets that are draggable (and allow drag events through in their `ignoreEvent` implementation) can now use the editor's built-in drag/drop behavior. + +### New features + +The new `scrollTo` option to `EditorView` allows an initial scroll position to be provided. + +The new `EditorView.scrollSnapshot` method returns an effect that can be used to reset to a previous scroll position. + ## 6.21.4 (2023-10-24) ### Bug fixes diff --git a/package.json b/package.json index 3f27de8..5c53180 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@codemirror/view", - "version": "6.21.4", + "version": "6.22.0", "description": "DOM view component for the CodeMirror code editor", "scripts": { "test": "cm-runtests",