@jentic/arazzo-parser 1.0.0-alpha.21 → 1.0.0-alpha.22

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,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
+ # [1.0.0-alpha.22](https://github.com/jentic/jentic-arazzo-tools/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2026-03-10)
7
+
8
+ ### Performance Improvements
9
+
10
+ - address memory issues with SpecLynx data model ([#124](https://github.com/jentic/jentic-arazzo-tools/issues/124)) ([90ee10d](https://github.com/jentic/jentic-arazzo-tools/commit/90ee10d52dbe7314d7dc2e48e0e656fd74a97cff))
11
+
6
12
  # [1.0.0-alpha.21](https://github.com/jentic/jentic-arazzo-tools/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2026-02-24)
7
13
 
8
14
  ### Bug Fixes
package/README.md CHANGED
@@ -174,12 +174,11 @@ When parsing from a file system path or HTTP(S) URL, the `retrievalURI` metadata
174
174
 
175
175
  ```js
176
176
  import { parseArazzo } from '@jentic/arazzo-parser';
177
- import { toValue } from '@speclynx/apidom-core';
178
177
 
179
178
  const parseResult = await parseArazzo('/path/to/arazzo.json');
180
179
 
181
180
  // Get the URI from which the document was retrieved
182
- const uri = toValue(parseResult.meta.get('retrievalURI'));
181
+ const uri = parseResult.meta.get('retrievalURI');
183
182
  // '/path/to/arazzo.json'
184
183
  ```
185
184
 
@@ -362,6 +361,7 @@ ParseResultElement
362
361
 
363
362
  ```js
364
363
  import { parseArazzo } from '@jentic/arazzo-parser';
364
+ import { toValue } from '@speclynx/apidom-core';
365
365
 
366
366
  const parseResult = await parseArazzo('/path/to/arazzo.json', {
367
367
  parse: {
@@ -383,8 +383,8 @@ for (let i = 0; i < parseResult.length; i++) {
383
383
 
384
384
  if (element.classes.includes('source-description')) {
385
385
  // Source description metadata
386
- const name = element.meta.get('name')?.toValue();
387
- const type = element.meta.get('type')?.toValue();
386
+ const name = toValue(element.meta.get('name'));
387
+ const type = toValue(element.meta.get('type'));
388
388
 
389
389
  console.log(`Source description "${name}" (${type})`);
390
390
 
@@ -424,7 +424,7 @@ if (sdParseResult.errors.length === 0) {
424
424
  console.log(`API type: ${api.element}`); // e.g., 'openApi3_1'
425
425
 
426
426
  // Get the retrieval URI
427
- const retrievalURI = toValue(sdParseResult.meta.get('retrievalURI'));
427
+ const retrievalURI = sdParseResult.meta.get('retrievalURI');
428
428
  console.log(`Loaded from: ${retrievalURI}`);
429
429
  }
430
430
  ```
@@ -497,15 +497,15 @@ for (let i = 0; i < parseResult.length; i++) {
497
497
  const element = parseResult.get(i);
498
498
 
499
499
  if (element.classes.includes('source-description')) {
500
- const name = element.meta.get('name')?.toValue();
500
+ const name = toValue(element.meta.get('name'));
501
501
 
502
502
  // Use built-in accessors for errors and warnings
503
503
  element.errors.forEach((error) => {
504
- console.error(`Error in "${name}": ${error.toValue()}`);
504
+ console.error(`Error in "${name}": ${toValue(error)}`);
505
505
  });
506
506
 
507
507
  element.warnings.forEach((warning) => {
508
- console.warn(`Warning in "${name}": ${warning.toValue()}`);
508
+ console.warn(`Warning in "${name}": ${toValue(warning)}`);
509
509
  });
510
510
  }
511
511
  }