@swagger-api/apidom-parser-adapter-openapi-yaml-3-1 1.6.0 → 1.8.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 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
+ # [1.8.0](https://github.com/swagger-api/apidom/compare/v1.7.0...v1.8.0) (2026-03-20)
7
+
8
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-3-1
9
+
10
+ # [1.7.0](https://github.com/swagger-api/apidom/compare/v1.6.0...v1.7.0) (2026-03-17)
11
+
12
+ ### Reverts
13
+
14
+ - Revert "chore(release): cut the v1.7.0 release [skip ci]" ([1d0010f](https://github.com/swagger-api/apidom/commit/1d0010f034f88e3d72096ed2689accffdd0a490b))
15
+
6
16
  # [1.6.0](https://github.com/swagger-api/apidom/compare/v1.5.1...v1.6.0) (2026-02-27)
7
17
 
8
18
  **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-3-1
@@ -16772,6 +16772,8 @@
16772
16772
  };
16773
16773
  }
16774
16774
 
16775
+ const treeSitterYaml = (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__dirname + '/77eb67fad227c765659b848dfcc82388.wasm').href : new URL('77eb67fad227c765659b848dfcc82388.wasm', typeof document === 'undefined' ? location.href : document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI).href);
16776
+
16775
16777
  var treeSitter = {exports: {}};
16776
16778
 
16777
16779
  var hasRequiredTreeSitter;
@@ -20006,26 +20008,15 @@
20006
20008
  var treeSitterExports = requireTreeSitter();
20007
20009
  const Parser = /*@__PURE__*/getDefaultExportFromCjs(treeSitterExports);
20008
20010
 
20009
- const treeSitterYaml = (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__dirname + '/9341421b411b868e3994f2d852da162b.wasm').href : new URL('9341421b411b868e3994f2d852da162b.wasm', typeof document === 'undefined' ? location.href : document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI).href);
20010
-
20011
20011
  let parser = null;
20012
20012
  let parserInitLock = null;
20013
20013
  let currentTree = null;
20014
-
20015
- /**
20016
- * Lexical Analysis of source string using WebTreeSitter.
20017
- * This is WebAssembly version of TreeSitters Lexical Analysis.
20018
- *
20019
- * Given JavaScript doesn't support true parallelism, this
20020
- * code should be as lazy as possible and temporal safety should be fine.
20021
- * @public
20022
- */
20023
- const analyze$1 = async source => {
20014
+ const createAnalyze = treeSitterYaml => async source => {
20024
20015
  if (parser === null && parserInitLock === null) {
20025
20016
  // acquire lock
20026
- parserInitLock = Parser.init().then(() => Parser.Language.load(treeSitterYaml)).then(jsonLanguage => {
20017
+ parserInitLock = Parser.init().then(() => Parser.Language.load(treeSitterYaml)).then(yamlLanguage => {
20027
20018
  const parserInstance = new Parser();
20028
- parserInstance.setLanguage(jsonLanguage);
20019
+ parserInstance.setLanguage(yamlLanguage);
20029
20020
  return parserInstance;
20030
20021
  }).finally(() => {
20031
20022
  // release lock
@@ -20035,7 +20026,8 @@
20035
20026
  } else if (parser === null && parserInitLock !== null) {
20036
20027
  // await for lock to be released if there is one
20037
20028
  parser = await parserInitLock;
20038
- } else if (parser === null) {
20029
+ }
20030
+ if (parser === null) {
20039
20031
  throw new ApiDOMError('Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.');
20040
20032
  }
20041
20033
  currentTree = parser.parse(source);
@@ -20043,6 +20035,16 @@
20043
20035
  return currentTree;
20044
20036
  };
20045
20037
 
20038
+ /**
20039
+ * Lexical Analysis of source string using WebTreeSitter.
20040
+ * This is WebAssembly version of TreeSitters Lexical Analysis.
20041
+ *
20042
+ * Given JavaScript doesn't support true parallelism, this
20043
+ * code should be as lazy as possible and temporal safety should be fine.
20044
+ * @public
20045
+ */
20046
+ const analyze$1 = createAnalyze(treeSitterYaml);
20047
+
20046
20048
  class TreeCursorSyntaxNode {
20047
20049
  type;
20048
20050
  startPositionRow;