@speclynx/apidom-overlay 6.0.6 → 6.1.1
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 +15 -0
- package/README.md +4 -2
- package/dist/apidom-overlay.browser.js +1303 -1162
- package/dist/apidom-overlay.browser.min.js +1 -1
- package/package.json +10 -9
- package/src/apply/realms/apidom.cjs +17 -1
- package/src/apply/realms/apidom.mjs +17 -1
- package/src/apply/realms/uri.cjs +6 -4
- package/src/apply/realms/uri.mjs +6 -4
- package/src/diff/realms/apidom.cjs +34 -7
- package/src/diff/realms/apidom.mjs +33 -7
- package/src/diff/realms/uri.cjs +2 -0
- package/src/diff/realms/uri.mjs +3 -1
- package/types/apidom-overlay.d.ts +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@
|
|
|
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.1](https://github.com/speclynx/apidom/compare/v6.1.0...v6.1.1) (2026-10-29)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **overlay:** reject overlay versions below 1.1.0 in diff ([#707](https://github.com/speclynx/apidom/issues/707)) ([c9b3a08](https://github.com/speclynx/apidom/commit/c9b3a085600fdbb8e8bacbd5a18b80ab443338b2)), closes [#606](https://github.com/speclynx/apidom/issues/606)
|
|
11
|
+
- parse empty YAML values as null elements ([#712](https://github.com/speclynx/apidom/issues/712)) ([388e842](https://github.com/speclynx/apidom/commit/388e842f3156fc94f46724f507cbf0dd92acae06)), closes [#655](https://github.com/speclynx/apidom/issues/655) [#709](https://github.com/speclynx/apidom/issues/709) [#694](https://github.com/speclynx/apidom/issues/694)
|
|
12
|
+
|
|
13
|
+
# [6.1.0](https://github.com/speclynx/apidom/compare/v6.0.6...v6.1.0) (2026-10-17)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **core:** keep element style when merging with deepmerge ([#679](https://github.com/speclynx/apidom/issues/679)) ([8b6c334](https://github.com/speclynx/apidom/commit/8b6c334e92770999e341b9229cdfc8f502f8c8c1)), closes [#678](https://github.com/speclynx/apidom/issues/678)
|
|
18
|
+
- **overlay:** keep YAML style of values added by an overlay ([#677](https://github.com/speclynx/apidom/issues/677)) ([ca38f38](https://github.com/speclynx/apidom/commit/ca38f388ae8505330d84cc6034faf9ffa03835b2)), closes [#675](https://github.com/speclynx/apidom/issues/675)
|
|
19
|
+
- serialize empty YAML nodes to null ([#655](https://github.com/speclynx/apidom/issues/655)) ([da2365b](https://github.com/speclynx/apidom/commit/da2365b0fd3287756746837cea40ab986b9d1d1d)), closes [#631](https://github.com/speclynx/apidom/issues/631)
|
|
20
|
+
|
|
6
21
|
## [6.0.6](https://github.com/speclynx/apidom/compare/v6.0.5...v6.0.6) (2026-10-15)
|
|
7
22
|
|
|
8
23
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -19,7 +19,9 @@ You can install this package via [npm CLI](https://docs.npmjs.com/cli) by runnin
|
|
|
19
19
|
### Applying from file/URL
|
|
20
20
|
|
|
21
21
|
`applyOverlay` parses an overlay document, resolves the target (from `targetURI` or the overlay's `extends` field),
|
|
22
|
-
and applies all actions.
|
|
22
|
+
and applies all actions. Both documents are parsed with style preservation for round-trip fidelity,
|
|
23
|
+
so values added by the overlay are written as they're written in the overlay when both are in the same
|
|
24
|
+
format. Anchors, aliases and comments in the overlay aren't written to the target.
|
|
23
25
|
|
|
24
26
|
```js
|
|
25
27
|
import { applyOverlay } from '@speclynx/apidom-overlay';
|
|
@@ -184,7 +186,7 @@ const overlay = await diffOverlay(
|
|
|
184
186
|
|
|
185
187
|
| Option | Type | Default | Description |
|
|
186
188
|
|---|---|---|---|
|
|
187
|
-
| `overlay` | `string` | `'1.2.0'` | Version string written to the `overlay` field. Generated overlays use no 1.2.0-only features, so pass `'1.1.0'`
|
|
189
|
+
| `overlay` | `string` | `'1.2.0'` | Version string written to the `overlay` field. Generated overlays use no 1.2.0-only features, so pass `'1.1.0'` to target an older version. Must be `>= 1.1.0` (a version known to `@speclynx/apidom-ns-overlay-1`), otherwise `OverlayError` is thrown: generated actions update primitive values and concatenate arrays, which Overlay 1.0.0 doesn't allow. |
|
|
188
190
|
| `info.title` | `string` | `'API diff'` | Title for the generated overlay's `info` object. |
|
|
189
191
|
| `info.version` | `string` | `'0.0.0'` | Version for the generated overlay's `info` object. |
|
|
190
192
|
| `info.description` | `string` | — | Optional description for the overlay's `info` object. |
|