diff --git a/.vscode/launch.json b/.vscode/launch.json index 5de4cdf..18240b5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -58,7 +58,9 @@ "name": "Debug Current Test File", "program": "${workspaceFolder}/node_modules/jest/bin/jest", "args": [ - "${fileBasename}" + "${fileBasename}", + "--config", + "${workspaceFolder}/jest.config.json" ], "cwd": "${fileDirname}", "console": "integratedTerminal", diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b4d392..8d26899 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Patching: Editing a multiline basic string that uses a line ending backslash now preserves the original line-break structure and indentation ([#131](https://github.com/DecimalTurn/toml-patch/pull/131)). +- Patching: When the new value cannot be faithfully represented with a line ending backslash (e.g., values with leading or trailing whitespace), the format falls back to a regular multiline basic string to preserve content integrity ([#131](https://github.com/DecimalTurn/toml-patch/pull/131)). + ## [1.0.7] - 2026-04-08 ### Fixed diff --git a/demo.html b/demo.html index 1d68011..f521142 100644 --- a/demo.html +++ b/demo.html @@ -4,6 +4,7 @@
Patch, parse, and stringify TOML while preserving comments and formatting
+Install via npm or use directly in the browser with unpkg.
+Or use in the browser with a module script:
++ Key features: comment & formatting preservation during patches, + full TOML v1.1 support, zero dependencies, works in Node.js and browsers. +
+