@speclynx/apidom-reference 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 +10 -0
- package/README.md +4 -2
- package/dist/apidom-reference.browser.js +871 -166
- package/dist/apidom-reference.browser.min.js +1 -1
- package/package.json +25 -25
- package/src/parse/parsers/Parser.cjs +7 -0
- package/src/parse/parsers/Parser.mjs +7 -0
- package/src/parse/parsers/arazzo-json-1/index.cjs +1 -1
- package/src/parse/parsers/arazzo-json-1/index.mjs +1 -1
- package/src/parse/parsers/arazzo-yaml-1/index.cjs +1 -1
- package/src/parse/parsers/arazzo-yaml-1/index.mjs +1 -1
- package/src/parse/parsers/asyncapi-json-2/index.cjs +1 -1
- package/src/parse/parsers/asyncapi-json-2/index.mjs +1 -1
- package/src/parse/parsers/asyncapi-yaml-2/index.cjs +1 -1
- package/src/parse/parsers/asyncapi-yaml-2/index.mjs +1 -1
- package/src/parse/parsers/json/index.cjs +1 -1
- package/src/parse/parsers/json/index.mjs +1 -1
- package/src/parse/parsers/openapi-json-2/index.cjs +1 -1
- package/src/parse/parsers/openapi-json-2/index.mjs +1 -1
- package/src/parse/parsers/openapi-json-3-0/index.cjs +1 -1
- package/src/parse/parsers/openapi-json-3-0/index.mjs +1 -1
- package/src/parse/parsers/openapi-json-3-1/index.cjs +1 -1
- package/src/parse/parsers/openapi-json-3-1/index.mjs +1 -1
- package/src/parse/parsers/openapi-yaml-2/index.cjs +1 -1
- package/src/parse/parsers/openapi-yaml-2/index.mjs +1 -1
- package/src/parse/parsers/openapi-yaml-3-0/index.cjs +1 -1
- package/src/parse/parsers/openapi-yaml-3-0/index.mjs +1 -1
- package/src/parse/parsers/openapi-yaml-3-1/index.cjs +1 -1
- package/src/parse/parsers/openapi-yaml-3-1/index.mjs +1 -1
- package/src/parse/parsers/yaml-1-2/index.cjs +1 -0
- package/src/parse/parsers/yaml-1-2/index.mjs +1 -0
- package/types/apidom-reference.d.ts +6 -1
- package/types/parse/parsers/Parser.d.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
**Note:** Version bump only for package @speclynx/apidom-reference
|
|
15
|
+
|
|
6
16
|
## [2.10.3](https://github.com/speclynx/apidom/compare/v2.10.2...v2.10.3) (2026-02-10)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @speclynx/apidom-reference
|
package/README.md
CHANGED
|
@@ -667,7 +667,7 @@ await parse('/home/user/oas.json', {
|
|
|
667
667
|
|
|
668
668
|
#### Parser plugin options
|
|
669
669
|
|
|
670
|
-
Parser plugins accept additional options like `allowEmpty` or `
|
|
670
|
+
Parser plugins accept additional options like `allowEmpty`, `sourceMap`, or `style`. It's possible to **change** parser plugin
|
|
671
671
|
**options globally** by mutating global `parse` options:
|
|
672
672
|
|
|
673
673
|
```js
|
|
@@ -676,6 +676,7 @@ import { options, parse } from '@speclynx/apidom-reference';
|
|
|
676
676
|
options.parser.parserOpts = {
|
|
677
677
|
allowEmpty: false,
|
|
678
678
|
sourceMap: true,
|
|
679
|
+
style: true,
|
|
679
680
|
};
|
|
680
681
|
|
|
681
682
|
await parse('/home/user/oas.json', {
|
|
@@ -691,7 +692,7 @@ import { parse } from '@speclynx/apidom-reference';
|
|
|
691
692
|
await parse('/home/user/oas.json', {
|
|
692
693
|
parse: {
|
|
693
694
|
mediaType: 'application/vnd.oai.openapi+json;version=3.1.2',
|
|
694
|
-
parserOpts: { allowEmpty: false, sourceMap: true },
|
|
695
|
+
parserOpts: { allowEmpty: false, sourceMap: true, style: true },
|
|
695
696
|
},
|
|
696
697
|
});
|
|
697
698
|
```
|
|
@@ -707,6 +708,7 @@ interface ParserPlugin {
|
|
|
707
708
|
readonly name: string;
|
|
708
709
|
allowEmpty: boolean;
|
|
709
710
|
sourceMap: boolean;
|
|
711
|
+
style: boolean;
|
|
710
712
|
fileExtensions: string[];
|
|
711
713
|
mediaTypes: string[];
|
|
712
714
|
|