@speclynx/apidom-overlay 6.1.1 → 6.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.1.2](https://github.com/speclynx/apidom/compare/v6.1.1...v6.1.2) (2026-10-29)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **core:** drop empty lines after clip and strip block scalars ([#726](https://github.com/speclynx/apidom/issues/726)) ([ee8815f](https://github.com/speclynx/apidom/commit/ee8815fc5054a8ed34d07f94d7882cfd504f1734)), closes [#681](https://github.com/speclynx/apidom/issues/681) [speclynx/speclynx-cli#199](https://github.com/speclynx/speclynx-cli/issues/199)
11
+
6
12
  ## [6.1.1](https://github.com/speclynx/apidom/compare/v6.1.0...v6.1.1) (2026-10-29)
7
13
 
8
14
  ### Bug Fixes
@@ -43304,7 +43304,10 @@ const toYAMLNode = (element, context) => {
43304
43304
  }
43305
43305
  }
43306
43306
  if ((style.scalarStyle === 'Literal' || style.scalarStyle === 'Folded') && typeof style.rawContent === 'string' && typeof scalar.value === 'string') {
43307
- const text = style.rawContent.replace(/\r\n/g, '\n').replace(/\n$/, '');
43307
+ const raw = style.rawContent.replace(/\r\n/g, '\n');
43308
+ // the empty lines after a clip or strip block aren't part of its value, but separate it from
43309
+ // what follows in its source, so they're dropped; a keep block's are part of its value
43310
+ const text = raw.replace(/^[|>][1-9]?\+/.test(raw) ? /\n$/ : /\n+$/, '');
43308
43311
  scalar.value = new RawBlockScalar(scalar.value, text);
43309
43312
  }
43310
43313
  if (style.styleGroup === 'Flow' && typeof style.rawContent === 'string' && typeof scalar.value === 'string' && scalar.value !== '') {