@speclynx/apidom-reference 2.11.0 → 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.
Files changed (33) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +4 -2
  3. package/dist/apidom-reference.browser.js +834 -157
  4. package/dist/apidom-reference.browser.min.js +1 -1
  5. package/package.json +25 -25
  6. package/src/parse/parsers/Parser.cjs +7 -0
  7. package/src/parse/parsers/Parser.mjs +7 -0
  8. package/src/parse/parsers/arazzo-json-1/index.cjs +1 -1
  9. package/src/parse/parsers/arazzo-json-1/index.mjs +1 -1
  10. package/src/parse/parsers/arazzo-yaml-1/index.cjs +1 -1
  11. package/src/parse/parsers/arazzo-yaml-1/index.mjs +1 -1
  12. package/src/parse/parsers/asyncapi-json-2/index.cjs +1 -1
  13. package/src/parse/parsers/asyncapi-json-2/index.mjs +1 -1
  14. package/src/parse/parsers/asyncapi-yaml-2/index.cjs +1 -1
  15. package/src/parse/parsers/asyncapi-yaml-2/index.mjs +1 -1
  16. package/src/parse/parsers/json/index.cjs +1 -1
  17. package/src/parse/parsers/json/index.mjs +1 -1
  18. package/src/parse/parsers/openapi-json-2/index.cjs +1 -1
  19. package/src/parse/parsers/openapi-json-2/index.mjs +1 -1
  20. package/src/parse/parsers/openapi-json-3-0/index.cjs +1 -1
  21. package/src/parse/parsers/openapi-json-3-0/index.mjs +1 -1
  22. package/src/parse/parsers/openapi-json-3-1/index.cjs +1 -1
  23. package/src/parse/parsers/openapi-json-3-1/index.mjs +1 -1
  24. package/src/parse/parsers/openapi-yaml-2/index.cjs +1 -1
  25. package/src/parse/parsers/openapi-yaml-2/index.mjs +1 -1
  26. package/src/parse/parsers/openapi-yaml-3-0/index.cjs +1 -1
  27. package/src/parse/parsers/openapi-yaml-3-0/index.mjs +1 -1
  28. package/src/parse/parsers/openapi-yaml-3-1/index.cjs +1 -1
  29. package/src/parse/parsers/openapi-yaml-3-1/index.mjs +1 -1
  30. package/src/parse/parsers/yaml-1-2/index.cjs +1 -0
  31. package/src/parse/parsers/yaml-1-2/index.mjs +1 -0
  32. package/types/apidom-reference.d.ts +6 -1
  33. package/types/parse/parsers/Parser.d.ts +6 -1
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
+ # [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
+
6
12
  # [2.11.0](https://github.com/speclynx/apidom/compare/v2.10.3...v2.11.0) (2026-02-12)
7
13
 
8
14
  **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 `sourceMap`. It's possible to **change** parser plugin
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