@speclynx/apidom-datamodel 2.10.3 → 2.12.0
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 +12 -0
- package/README.md +1 -0
- package/dist/apidom-datamodel.browser.js +390 -69
- package/dist/apidom-datamodel.browser.min.js +1 -1
- package/package.json +3 -3
- package/src/clone/index.cjs +4 -0
- package/src/clone/index.mjs +5 -1
- package/src/elements/Style.cjs +54 -0
- package/src/elements/Style.mjs +48 -0
- package/src/index.cjs +3 -1
- package/src/index.mjs +2 -2
- package/src/predicates/index.cjs +10 -1
- package/src/predicates/index.mjs +8 -0
- package/src/primitives/Element.cjs +43 -9
- package/src/primitives/Element.mjs +43 -9
- package/src/registration.cjs +2 -0
- package/src/registration.mjs +2 -1
- package/src/serialisers/JSONSerialiser.cjs +23 -2
- package/src/serialisers/JSONSerialiser.mjs +23 -2
- package/types/apidom-datamodel.d.ts +56 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
# [2.12.0](https://github.com/speclynx/apidom/compare/v2.11.0...v2.12.0) (2026-02-18)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add support for lossless JSON/YAML roundtrips ([#97](https://github.com/speclynx/apidom/issues/97)) ([dc17c9a](https://github.com/speclynx/apidom/commit/dc17c9a78fbc7df07a91e8f35b12be6409117d91))
|
|
11
|
+
|
|
12
|
+
# [2.11.0](https://github.com/speclynx/apidom/compare/v2.10.3...v2.11.0) (2026-02-12)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **datamodel:** introduce side-effect free element accessors ([#87](https://github.com/speclynx/apidom/issues/87)) ([f93b066](https://github.com/speclynx/apidom/commit/f93b066836f04570fa5781aea176885175a35ef4))
|
|
17
|
+
|
|
6
18
|
## [2.10.3](https://github.com/speclynx/apidom/compare/v2.10.2...v2.10.3) (2026-02-10)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @speclynx/apidom-datamodel
|
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ Primitive elements are the building blocks of ApiDOM. Each element has:
|
|
|
24
24
|
- `content` - The element's value
|
|
25
25
|
- `meta` - Metadata (id, classes, title, description, links)
|
|
26
26
|
- `attributes` - Element-specific properties
|
|
27
|
+
- `style` - Optional format-specific style information for round-trip preservation (e.g., `{ yaml: { scalarStyle: 'DoubleQuoted' } }`)
|
|
27
28
|
|
|
28
29
|
### Element
|
|
29
30
|
|