@speclynx/apidom-parser 1.12.1 → 2.0.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 CHANGED
@@ -3,6 +3,25 @@
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.0.1](https://github.com/speclynx/apidom/compare/v2.0.0...v2.0.1) (2026-01-14)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-parser
9
+
10
+ # [2.0.0](https://github.com/speclynx/apidom/compare/v1.12.2...v2.0.0) (2026-01-14)
11
+
12
+ ### Features
13
+
14
+ - add support for strict mode in JSON/YAML parser adapters ([#22](https://github.com/speclynx/apidom/issues/22)) ([a9c5f11](https://github.com/speclynx/apidom/commit/a9c5f11e8748135e7ba578b61d2f1807e11d34aa))
15
+ - apply innovations learned during last 3 years ([#11](https://github.com/speclynx/apidom/issues/11)) ([cfdbbfc](https://github.com/speclynx/apidom/commit/cfdbbfc2721b0dadc77eeba31dd4e8768c078d22))
16
+
17
+ ### BREAKING CHANGES
18
+
19
+ - breaking changes introduced to every package public API
20
+
21
+ ## [1.12.2](https://github.com/speclynx/apidom/compare/v1.12.1...v1.12.2) (2025-12-23)
22
+
23
+ **Note:** Version bump only for package @speclynx/apidom-parser
24
+
6
25
  ## [1.12.1](https://github.com/speclynx/apidom/compare/v1.12.0...v1.12.1) (2025-12-23)
7
26
 
8
27
  **Note:** Version bump only for package @speclynx/apidom-parser
package/NOTICE CHANGED
@@ -5,11 +5,6 @@ This distribution includes modifications by SpecLynx.
5
5
  All such modifications are licensed under the Apache License, Version 2.0.
6
6
  A copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt`.
7
7
 
8
- ApiDOM
9
- Copyright 2020 SmartBear Software Inc.
10
- ApiDOM is licensed under Apache 2.0 license.
11
- Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
12
-
13
8
  json-schema-ref-parser
14
9
  Copyright (c) 2015 James Messinger
15
10
  File packages/apidom-reference/src/util/url.ts (the file) was originally created under MIT license in https://github.com/APIDevTools/json-schema-ref-parser repository.
@@ -18,8 +13,8 @@ Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
18
13
 
19
14
  graphql-js
20
15
  Copyright (c) GraphQL Contributors
21
- File packages/apidom-ast/src/traversal/visitor.ts (the file) was originally created under MIT license in https://github.com/graphql/graphql-js repository.
22
- The file has been copied into this project and modified. All modifications are licensed under Apache 2.0 License.
16
+ File packages/apidom-traverse/src/traversal.ts (the file) was originally inspired by https://github.com/graphql/graphql-js repository.
17
+ All modifications are licensed under Apache 2.0 License.
23
18
  Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
24
19
 
25
20
  babel-plugin-add-import-extension
@@ -54,6 +49,20 @@ Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
54
49
  Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
55
50
  All modifications are licensed under Apache 2.0 License.
56
51
 
52
+ ApiDOM
53
+ Copyright 2020 SmartBear Software Inc.
54
+ ApiDOM is licensed under Apache 2.0 license.
55
+ Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
56
+
57
+ minim
58
+ Copyright (c) 2014 Stephen Mizell
59
+ The apidom-datamodel package contains code originally created under the MIT
60
+ License as part of the Minim project (https://github.com/refractproject/minim).
61
+ This code has been copied into this project and modified.
62
+ The original portions remain licensed under the MIT License. Our modifications
63
+ to that code are licensed under the Apache License 2.0.
64
+ Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
65
+
57
66
  ---
58
67
 
59
68
  If the SPDX-FileCopyrightText and SPDX-License-Identifier tags are not present in the file,
@@ -2886,6 +2886,22 @@ __webpack_require__.r(__webpack_exports__);
2886
2886
 
2887
2887
 
2888
2888
 
2889
+ /**
2890
+ * @public
2891
+ */
2892
+
2893
+ /**
2894
+ * @public
2895
+ */
2896
+
2897
+ /**
2898
+ * @public
2899
+ */
2900
+
2901
+ /**
2902
+ * @public
2903
+ */
2904
+
2889
2905
  /**
2890
2906
  * @public
2891
2907
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speclynx/apidom-parser",
3
- "version": "1.12.1",
3
+ "version": "2.0.1",
4
4
  "description": "Parser consumes parser adapters and provides unified API for parsing.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -26,7 +26,7 @@
26
26
  "lint:fix": "eslint ./ --fix",
27
27
  "clean": "rimraf --glob 'src/**/*.mjs' 'src/**/*.cjs' 'test/**/*.mjs' ./dist ./types",
28
28
  "typescript:check-types": "tsc --noEmit",
29
- "typescript:declaration": "copyfiles -u 1 'src/**/*.d.ts' ./types && tsc -p tsconfig.declaration.json && api-extractor run -l -c ./config/api-extractor/api-extractor.json",
29
+ "typescript:declaration": "tsc -p tsconfig.declaration.json && api-extractor run -l -c ./config/api-extractor/api-extractor.json",
30
30
  "test": "npm run build:es && cross-env BABEL_ENV=es babel test --out-dir test --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward' && cross-env NODE_ENV=test mocha",
31
31
  "prepack": "copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .",
32
32
  "postpack": "rimraf NOTICE LICENSES"
@@ -39,9 +39,9 @@
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
41
  "@babel/runtime-corejs3": "^7.28.4",
42
- "@speclynx/apidom-core": "^1.12.1",
43
- "@speclynx/apidom-error": "^1.12.1",
44
- "@types/ramda": "~0.30.0",
42
+ "@speclynx/apidom-core": "^2.0.1",
43
+ "@speclynx/apidom-datamodel": "^2.0.1",
44
+ "@speclynx/apidom-error": "^2.0.1",
45
45
  "ramda": "~0.32.0",
46
46
  "ramda-adjunct": "^6.0.0"
47
47
  },
@@ -55,5 +55,5 @@
55
55
  "README.md",
56
56
  "CHANGELOG.md"
57
57
  ],
58
- "gitHead": "49be88493f922c4ace2e4ebc0f23387ccb62c4fc"
58
+ "gitHead": "6a9caf87f445f76ffd69afa760990ffa784bc82d"
59
59
  }
package/src/parser.cjs CHANGED
@@ -8,6 +8,22 @@ var _ramdaAdjunct = require("ramda-adjunct");
8
8
  var _apidomCore = require("@speclynx/apidom-core");
9
9
  var _ParserError = _interopRequireDefault(require("./errors/ParserError.cjs"));
10
10
  exports.ParserError = _ParserError.default;
11
+ /**
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * @public
17
+ */
18
+
19
+ /**
20
+ * @public
21
+ */
22
+
23
+ /**
24
+ * @public
25
+ */
26
+
11
27
  /**
12
28
  * @public
13
29
  */
package/src/parser.mjs CHANGED
@@ -4,6 +4,22 @@ import { MediaTypes } from '@speclynx/apidom-core';
4
4
  import ParserError from "./errors/ParserError.mjs";
5
5
  export { ParserError };
6
6
 
7
+ /**
8
+ * @public
9
+ */
10
+
11
+ /**
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * @public
17
+ */
18
+
19
+ /**
20
+ * @public
21
+ */
22
+
7
23
  /**
8
24
  * @public
9
25
  */
@@ -1,8 +1,8 @@
1
1
  import { ApiDOMErrorOptions } from '@speclynx/apidom-error';
2
2
  import { ApiDOMStructuredError } from '@speclynx/apidom-error';
3
3
  import { MediaTypes } from '@speclynx/apidom-core';
4
- import { Namespace } from '@speclynx/apidom-core';
5
- import { ParseResultElement } from '@speclynx/apidom-core';
4
+ import { Namespace } from '@speclynx/apidom-datamodel';
5
+ import { ParseResultElement } from '@speclynx/apidom-datamodel';
6
6
 
7
7
  /**
8
8
  * @public
@@ -35,6 +35,7 @@ export declare interface ApiDOMParserAdapter {
35
35
  export declare interface ApiDOMParserOptions {
36
36
  readonly mediaType?: string;
37
37
  readonly sourceMap?: boolean;
38
+ readonly strict?: boolean;
38
39
  [key: string]: unknown;
39
40
  }
40
41