From c5583bf7a4d0fc0f4bb98c86b174e8df0e6ec437 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Fri, 1 Mar 2024 10:24:27 +0100 Subject: [PATCH] chore(release): 0.22.0 --- CHANGELOG.md | 21 +++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 396b4e8a..58e7a5db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,27 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [0.22.0](https://github.com/josdejong/svelte-jsoneditor/compare/v0.21.6...v0.22.0) (2024-03-01) + + +### ⚠ BREAKING CHANGES + +* The `onChange` callback is no longer triggered on programmatic changes via a +two-way binded `content` or via methods `.update()`, `.set()`, and `.patch()`. + +### Features + +* do not trigger onChange on programmatic changes ([#410](https://github.com/josdejong/svelte-jsoneditor/issues/410)) ([201f602](https://github.com/josdejong/svelte-jsoneditor/commit/201f6020c4022001b41b7c459e2d809808828543)) +* document the requirement for immutable changes in `content` (see [#318](https://github.com/josdejong/svelte-jsoneditor/issues/318)) ([0545e64](https://github.com/josdejong/svelte-jsoneditor/commit/0545e647b9c0e68edecbaf7c8f65d51d64de99a4)) +* update dependencies (a.o. fixing an issue with wrapping tab indented lines) ([1bd92e7](https://github.com/josdejong/svelte-jsoneditor/commit/1bd92e73fb95bb2cd0ded15d1fa0fd02b5959303)) + + +### Bug Fixes + +* add missing property `onSelect` to interface `JSONEditorPropsOptional` ([4087e3f](https://github.com/josdejong/svelte-jsoneditor/commit/4087e3fa9e2f9243c95e8ff6fb7c46c4c67fb61f)) +* improve the logic to determine whether a JSON document needs formatting ([bb15bd1](https://github.com/josdejong/svelte-jsoneditor/commit/bb15bd1d30998d7490a53cf58a03cfc7b95f8935)) +* onCreateMenu and onCreateContextMenu possibly applying mutated changes without returning ([da8fd60](https://github.com/josdejong/svelte-jsoneditor/commit/da8fd6093de81daff47847cb1c50992b3f23fdbd)) + ### [0.21.6](https://github.com/josdejong/svelte-jsoneditor/compare/v0.21.5...v0.21.6) (2024-02-15) diff --git a/package-lock.json b/package-lock.json index 8070073e..62ad6f47 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "svelte-jsoneditor", - "version": "0.21.6", + "version": "0.22.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "svelte-jsoneditor", - "version": "0.21.6", + "version": "0.22.0", "license": "ISC", "dependencies": { "@codemirror/autocomplete": "^6.13.0", diff --git a/package.json b/package.json index 6194d4e0..fcc1d6bc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "svelte-jsoneditor", "description": "A web-based tool to view, edit, format, transform, and validate JSON", - "version": "0.21.6", + "version": "0.22.0", "homepage": "https://github.com/josdejong/svelte-jsoneditor", "repository": { "type": "git",