@swagger-api/apidom-parser-adapter-asyncapi-json-3 1.8.0 → 1.10.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,14 @@
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.10.0](https://github.com/swagger-api/apidom/compare/v1.9.0...v1.10.0) (2026-04-01)
7
+
8
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-json-3
9
+
10
+ # [1.9.0](https://github.com/swagger-api/apidom/compare/v1.8.0...v1.9.0) (2026-03-30)
11
+
12
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-json-3
13
+
6
14
  # [1.8.0](https://github.com/swagger-api/apidom/compare/v1.7.0...v1.8.0) (2026-03-20)
7
15
 
8
16
  **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-json-3
@@ -18276,14 +18276,12 @@
18276
18276
 
18277
18277
  let parser = null;
18278
18278
  let parserInitLock = null;
18279
- let currentTree = null;
18279
+ const activeTrees = new Set();
18280
+ const MAX_ACTIVE_TREES = 5;
18280
18281
 
18281
18282
  /**
18282
18283
  * Lexical Analysis of source string using WebTreeSitter.
18283
18284
  * This is WebAssembly version of TreeSitters Lexical Analysis.
18284
- *
18285
- * Given JavaScript doesn't support true parallelism, this
18286
- * code should be as lazy as possible and temporal safety should be fine.
18287
18285
  * @public
18288
18286
  */
18289
18287
  const analyze$2 = async source => {
@@ -18304,9 +18302,28 @@
18304
18302
  } else if (parser === null) {
18305
18303
  throw new ApiDOMError('Error while initializing web-tree-sitter and loading tree-sitter-json grammar.');
18306
18304
  }
18307
- currentTree = parser.parse(source);
18305
+
18306
+ // prevent WASM OOM during concurrency spikes by evicting oldest trees
18307
+ // when the pool exceeds threshold; tree.delete() is idempotent so
18308
+ // callers that still hold a reference can safely call delete() again
18309
+ if (activeTrees.size >= MAX_ACTIVE_TREES) {
18310
+ const treesToEvict = [...activeTrees];
18311
+ activeTrees.clear();
18312
+ for (const oldTree of treesToEvict) {
18313
+ oldTree.delete();
18314
+ }
18315
+ }
18316
+ const tree = parser.parse(source);
18317
+ activeTrees.add(tree);
18318
+
18319
+ // remove from tracking when caller deletes
18320
+ const originalDelete = tree.delete;
18321
+ tree.delete = function deleteAndUntrack() {
18322
+ activeTrees.delete(this);
18323
+ originalDelete.call(this);
18324
+ };
18308
18325
  parser.reset();
18309
- return currentTree;
18326
+ return tree;
18310
18327
  };
18311
18328
 
18312
18329
  class TreeCursorSyntaxNode {
@@ -18960,13 +18977,17 @@
18960
18977
  if (!detectionRegExp$1.test(source)) {
18961
18978
  return false;
18962
18979
  }
18980
+ let cst = null;
18963
18981
  try {
18964
- const cst = await analyze$2(source);
18982
+ cst = await analyze$2(source);
18965
18983
  const isError = cst.rootNode.type !== 'ERROR';
18966
- cst.delete();
18967
18984
  return isError;
18968
18985
  } catch {
18969
18986
  return false;
18987
+ } finally {
18988
+ if (cst !== null) {
18989
+ cst.delete();
18990
+ }
18970
18991
  }
18971
18992
  };
18972
18993
 
@@ -18985,19 +19006,22 @@
18985
19006
  sourceMap = false,
18986
19007
  syntacticAnalysis = 'direct'
18987
19008
  } = {}) => {
18988
- const cst = await analyze$2(source);
18989
- let apiDOM;
18990
- if (syntacticAnalysis === 'indirect') {
18991
- apiDOM = analyze(cst, {
18992
- sourceMap
18993
- });
18994
- } else {
18995
- apiDOM = analyze$1(cst, {
19009
+ let cst = null;
19010
+ try {
19011
+ cst = await analyze$2(source);
19012
+ if (syntacticAnalysis === 'indirect') {
19013
+ return analyze(cst, {
19014
+ sourceMap
19015
+ });
19016
+ }
19017
+ return analyze$1(cst, {
18996
19018
  sourceMap
18997
19019
  });
19020
+ } finally {
19021
+ if (cst !== null) {
19022
+ cst.delete();
19023
+ }
18998
19024
  }
18999
- cst.delete();
19000
- return apiDOM;
19001
19025
  };
19002
19026
 
19003
19027
  /**
@@ -23308,6 +23332,12 @@
23308
23332
  set headers(headers) {
23309
23333
  this.set('headers', headers);
23310
23334
  }
23335
+ get statusCode() {
23336
+ return this.get('statusCode');
23337
+ }
23338
+ set statusCode(statusCode) {
23339
+ this.set('statusCode', statusCode);
23340
+ }
23311
23341
  get bindingVersion() {
23312
23342
  return this.get('bindingVersion');
23313
23343
  }
@@ -23511,6 +23541,24 @@
23511
23541
  this.element = 'jmsChannelBinding';
23512
23542
  this.classes.push('channel-binding');
23513
23543
  }
23544
+ get destination() {
23545
+ return this.get('destination');
23546
+ }
23547
+ set destination(destination) {
23548
+ this.set('destination', destination);
23549
+ }
23550
+ get destinationType() {
23551
+ return this.get('destinationType');
23552
+ }
23553
+ set destinationType(destinationType) {
23554
+ this.set('destinationType', destinationType);
23555
+ }
23556
+ get bindingVersion() {
23557
+ return this.get('bindingVersion');
23558
+ }
23559
+ set bindingVersion(bindingVersion) {
23560
+ this.set('bindingVersion', bindingVersion);
23561
+ }
23514
23562
  };
23515
23563
 
23516
23564
  /**
@@ -23522,6 +23570,18 @@
23522
23570
  this.element = 'jmsMessageBinding';
23523
23571
  this.classes.push('message-binding');
23524
23572
  }
23573
+ get headers() {
23574
+ return this.get('headers');
23575
+ }
23576
+ set headers(headers) {
23577
+ this.set('headers', headers);
23578
+ }
23579
+ get bindingVersion() {
23580
+ return this.get('bindingVersion');
23581
+ }
23582
+ set bindingVersion(bindingVersion) {
23583
+ this.set('bindingVersion', bindingVersion);
23584
+ }
23525
23585
  };
23526
23586
 
23527
23587
  /**
@@ -23544,6 +23604,30 @@
23544
23604
  this.element = 'jmsServerBinding';
23545
23605
  this.classes.push('server-binding');
23546
23606
  }
23607
+ get jmsConnectionFactory() {
23608
+ return this.get('jmsConnectionFactory');
23609
+ }
23610
+ set jmsConnectionFactory(jmsConnectionFactory) {
23611
+ this.set('jmsConnectionFactory', jmsConnectionFactory);
23612
+ }
23613
+ get properties() {
23614
+ return this.get('properties');
23615
+ }
23616
+ set properties(properties) {
23617
+ this.set('properties', properties);
23618
+ }
23619
+ get clientID() {
23620
+ return this.get('clientID');
23621
+ }
23622
+ set clientID(clientID) {
23623
+ this.set('clientID', clientID);
23624
+ }
23625
+ get bindingVersion() {
23626
+ return this.get('bindingVersion');
23627
+ }
23628
+ set bindingVersion(bindingVersion) {
23629
+ this.set('bindingVersion', bindingVersion);
23630
+ }
23547
23631
  };
23548
23632
 
23549
23633
  /**
@@ -23573,6 +23657,12 @@
23573
23657
  set replicas(replicas) {
23574
23658
  this.set('replicas', replicas);
23575
23659
  }
23660
+ get topicConfiguration() {
23661
+ return this.get('topicConfiguration');
23662
+ }
23663
+ set topicConfiguration(topicConfiguration) {
23664
+ this.set('topicConfiguration', topicConfiguration);
23665
+ }
23576
23666
  get bindingVersion() {
23577
23667
  return this.get('bindingVersion');
23578
23668
  }
@@ -23744,6 +23834,30 @@
23744
23834
  this.element = 'mqttMessageBinding';
23745
23835
  this.classes.push('message-binding');
23746
23836
  }
23837
+ get payloadFormatIndicator() {
23838
+ return this.get('payloadFormatIndicator');
23839
+ }
23840
+ set payloadFormatIndicator(payloadFormatIndicator) {
23841
+ this.set('payloadFormatIndicator', payloadFormatIndicator);
23842
+ }
23843
+ get correlationData() {
23844
+ return this.get('correlationData');
23845
+ }
23846
+ set correlationData(correlationData) {
23847
+ this.set('correlationData', correlationData);
23848
+ }
23849
+ get contentType() {
23850
+ return this.get('contentType');
23851
+ }
23852
+ set contentType(contentType) {
23853
+ this.set('contentType', contentType);
23854
+ }
23855
+ get responseTopic() {
23856
+ return this.get('responseTopic');
23857
+ }
23858
+ set responseTopic(responseTopic) {
23859
+ this.set('responseTopic', responseTopic);
23860
+ }
23747
23861
  get bindingVersion() {
23748
23862
  return this.get('bindingVersion');
23749
23863
  }
@@ -23773,6 +23887,12 @@
23773
23887
  set retain(retain) {
23774
23888
  this.set('retain', retain);
23775
23889
  }
23890
+ get messageExpiryInterval() {
23891
+ return this.get('messageExpiryInterval');
23892
+ }
23893
+ set messageExpiryInterval(messageExpiryInterval) {
23894
+ this.set('messageExpiryInterval', messageExpiryInterval);
23895
+ }
23776
23896
  get bindingVersion() {
23777
23897
  return this.get('bindingVersion');
23778
23898
  }
@@ -23814,6 +23934,18 @@
23814
23934
  set keepAlive(keepAlive) {
23815
23935
  this.set('keepAlive', keepAlive);
23816
23936
  }
23937
+ get sessionExpiryInterval() {
23938
+ return this.get('sessionExpiryInterval');
23939
+ }
23940
+ set sessionExpiryInterval(sessionExpiryInterval) {
23941
+ this.set('sessionExpiryInterval', sessionExpiryInterval);
23942
+ }
23943
+ get maximumPacketSize() {
23944
+ return this.get('maximumPacketSize');
23945
+ }
23946
+ set maximumPacketSize(maximumPacketSize) {
23947
+ this.set('maximumPacketSize', maximumPacketSize);
23948
+ }
23817
23949
  get bindingVersion() {
23818
23950
  return this.get('bindingVersion');
23819
23951
  }
@@ -24091,6 +24223,36 @@
24091
24223
  this.element = 'snsChannelBinding';
24092
24224
  this.classes.push('channel-binding');
24093
24225
  }
24226
+ get name() {
24227
+ return this.get('name');
24228
+ }
24229
+ set name(name) {
24230
+ this.set('name', name);
24231
+ }
24232
+ get ordering() {
24233
+ return this.get('ordering');
24234
+ }
24235
+ set ordering(ordering) {
24236
+ this.set('ordering', ordering);
24237
+ }
24238
+ get policy() {
24239
+ return this.get('policy');
24240
+ }
24241
+ set policy(policy) {
24242
+ this.set('policy', policy);
24243
+ }
24244
+ get tags() {
24245
+ return this.get('tags');
24246
+ }
24247
+ set tags(tags) {
24248
+ this.set('tags', tags);
24249
+ }
24250
+ get bindingVersion() {
24251
+ return this.get('bindingVersion');
24252
+ }
24253
+ set bindingVersion(bindingVersion) {
24254
+ this.set('bindingVersion', bindingVersion);
24255
+ }
24094
24256
  };
24095
24257
 
24096
24258
  /**
@@ -24113,6 +24275,30 @@
24113
24275
  this.element = 'snsOperationBinding';
24114
24276
  this.classes.push('operation-binding');
24115
24277
  }
24278
+ get topic() {
24279
+ return this.get('topic');
24280
+ }
24281
+ set topic(topic) {
24282
+ this.set('topic', topic);
24283
+ }
24284
+ get consumers() {
24285
+ return this.get('consumers');
24286
+ }
24287
+ set consumers(consumers) {
24288
+ this.set('consumers', consumers);
24289
+ }
24290
+ get deliveryPolicy() {
24291
+ return this.get('deliveryPolicy');
24292
+ }
24293
+ set deliveryPolicy(deliveryPolicy) {
24294
+ this.set('deliveryPolicy', deliveryPolicy);
24295
+ }
24296
+ get bindingVersion() {
24297
+ return this.get('bindingVersion');
24298
+ }
24299
+ set bindingVersion(bindingVersion) {
24300
+ this.set('bindingVersion', bindingVersion);
24301
+ }
24116
24302
  };
24117
24303
 
24118
24304
  /**
@@ -24169,6 +24355,24 @@
24169
24355
  set destinations(destinations) {
24170
24356
  this.set('destinations', destinations);
24171
24357
  }
24358
+ get timeToLive() {
24359
+ return this.get('timeToLive');
24360
+ }
24361
+ set timeToLive(timeToLive) {
24362
+ this.set('timeToLive', timeToLive);
24363
+ }
24364
+ get priority() {
24365
+ return this.get('priority');
24366
+ }
24367
+ set priority(priority) {
24368
+ this.set('priority', priority);
24369
+ }
24370
+ get dmqEligible() {
24371
+ return this.get('dmqEligible');
24372
+ }
24373
+ set dmqEligible(dmqEligible) {
24374
+ this.set('dmqEligible', dmqEligible);
24375
+ }
24172
24376
  };
24173
24377
 
24174
24378
  /**
@@ -24192,6 +24396,12 @@
24192
24396
  set msgVpn(msgVpn) {
24193
24397
  this.set('msgVpn', msgVpn);
24194
24398
  }
24399
+ get clientName() {
24400
+ return this.get('clientName');
24401
+ }
24402
+ set clientName(clientName) {
24403
+ this.set('clientName', clientName);
24404
+ }
24195
24405
  };
24196
24406
 
24197
24407
  /**
@@ -24203,6 +24413,24 @@
24203
24413
  this.element = 'sqsChannelBinding';
24204
24414
  this.classes.push('channel-binding');
24205
24415
  }
24416
+ get queue() {
24417
+ return this.get('queue');
24418
+ }
24419
+ set queue(queue) {
24420
+ this.set('queue', queue);
24421
+ }
24422
+ get deadLetterQueue() {
24423
+ return this.get('deadLetterQueue');
24424
+ }
24425
+ set deadLetterQueue(deadLetterQueue) {
24426
+ this.set('deadLetterQueue', deadLetterQueue);
24427
+ }
24428
+ get bindingVersion() {
24429
+ return this.get('bindingVersion');
24430
+ }
24431
+ set bindingVersion(bindingVersion) {
24432
+ this.set('bindingVersion', bindingVersion);
24433
+ }
24206
24434
  };
24207
24435
 
24208
24436
  /**
@@ -24225,6 +24453,18 @@
24225
24453
  this.element = 'sqsOperationBinding';
24226
24454
  this.classes.push('operation-binding');
24227
24455
  }
24456
+ get queues() {
24457
+ return this.get('queues');
24458
+ }
24459
+ set queues(queues) {
24460
+ this.set('queues', queues);
24461
+ }
24462
+ get bindingVersion() {
24463
+ return this.get('bindingVersion');
24464
+ }
24465
+ set bindingVersion(bindingVersion) {
24466
+ this.set('bindingVersion', bindingVersion);
24467
+ }
24228
24468
  };
24229
24469
 
24230
24470
  /**
@@ -28916,6 +29156,9 @@
28916
29156
  $visitor: HttpMessageBindingVisitor,
28917
29157
  fixedFields: {
28918
29158
  headers: SchemaOrReferenceVisitor,
29159
+ statusCode: {
29160
+ $ref: '#/visitors/value'
29161
+ },
28919
29162
  bindingVersion: {
28920
29163
  $ref: '#/visitors/value'
28921
29164
  }
@@ -28973,6 +29216,9 @@
28973
29216
  replicas: {
28974
29217
  $ref: '#/visitors/value'
28975
29218
  },
29219
+ topicConfiguration: {
29220
+ $ref: '#/visitors/value'
29221
+ },
28976
29222
  bindingVersion: {
28977
29223
  $ref: '#/visitors/value'
28978
29224
  }
@@ -29142,6 +29388,8 @@
29142
29388
  keepAlive: {
29143
29389
  $ref: '#/visitors/value'
29144
29390
  },
29391
+ sessionExpiryInterval: SchemaOrReferenceVisitor,
29392
+ maximumPacketSize: SchemaOrReferenceVisitor,
29145
29393
  bindingVersion: {
29146
29394
  $ref: '#/visitors/value'
29147
29395
  }
@@ -29159,6 +29407,7 @@
29159
29407
  retain: {
29160
29408
  $ref: '#/visitors/value'
29161
29409
  },
29410
+ messageExpiryInterval: SchemaOrReferenceVisitor,
29162
29411
  bindingVersion: {
29163
29412
  $ref: '#/visitors/value'
29164
29413
  }
@@ -29167,6 +29416,14 @@
29167
29416
  MessageBinding: {
29168
29417
  $visitor: MqttMessageBindingVisitor,
29169
29418
  fixedFields: {
29419
+ payloadFormatIndicator: {
29420
+ $ref: '#/visitors/value'
29421
+ },
29422
+ correlationData: SchemaOrReferenceVisitor,
29423
+ contentType: {
29424
+ $ref: '#/visitors/value'
29425
+ },
29426
+ responseTopic: SchemaOrReferenceVisitor,
29170
29427
  bindingVersion: {
29171
29428
  $ref: '#/visitors/value'
29172
29429
  }
@@ -29265,16 +29522,47 @@
29265
29522
  },
29266
29523
  jms: {
29267
29524
  ServerBinding: {
29268
- $visitor: JmsServerBindingVisitor
29525
+ $visitor: JmsServerBindingVisitor,
29526
+ fixedFields: {
29527
+ jmsConnectionFactory: {
29528
+ $ref: '#/visitors/value'
29529
+ },
29530
+ properties: {
29531
+ $ref: '#/visitors/value'
29532
+ },
29533
+ clientID: {
29534
+ $ref: '#/visitors/value'
29535
+ },
29536
+ bindingVersion: {
29537
+ $ref: '#/visitors/value'
29538
+ }
29539
+ }
29269
29540
  },
29270
29541
  ChannelBinding: {
29271
- $visitor: JmsChannelBindingVisitor
29542
+ $visitor: JmsChannelBindingVisitor,
29543
+ fixedFields: {
29544
+ destination: {
29545
+ $ref: '#/visitors/value'
29546
+ },
29547
+ destinationType: {
29548
+ $ref: '#/visitors/value'
29549
+ },
29550
+ bindingVersion: {
29551
+ $ref: '#/visitors/value'
29552
+ }
29553
+ }
29272
29554
  },
29273
29555
  OperationBinding: {
29274
29556
  $visitor: JmsOperationBindingVisitor
29275
29557
  },
29276
29558
  MessageBinding: {
29277
- $visitor: JmsMessageBindingVisitor
29559
+ $visitor: JmsMessageBindingVisitor,
29560
+ fixedFields: {
29561
+ headers: SchemaVisitor$1,
29562
+ bindingVersion: {
29563
+ $ref: '#/visitors/value'
29564
+ }
29565
+ }
29278
29566
  }
29279
29567
  },
29280
29568
  sns: {
@@ -29282,10 +29570,41 @@
29282
29570
  $visitor: SnsServerBindingVisitor
29283
29571
  },
29284
29572
  ChannelBinding: {
29285
- $visitor: SnsChannelBindingVisitor
29573
+ $visitor: SnsChannelBindingVisitor,
29574
+ fixedFields: {
29575
+ name: {
29576
+ $ref: '#/visitors/value'
29577
+ },
29578
+ ordering: {
29579
+ $ref: '#/visitors/value'
29580
+ },
29581
+ policy: {
29582
+ $ref: '#/visitors/value'
29583
+ },
29584
+ tags: {
29585
+ $ref: '#/visitors/value'
29586
+ },
29587
+ bindingVersion: {
29588
+ $ref: '#/visitors/value'
29589
+ }
29590
+ }
29286
29591
  },
29287
29592
  OperationBinding: {
29288
- $visitor: SnsOperationBindingVisitor
29593
+ $visitor: SnsOperationBindingVisitor,
29594
+ fixedFields: {
29595
+ topic: {
29596
+ $ref: '#/visitors/value'
29597
+ },
29598
+ consumers: {
29599
+ $ref: '#/visitors/value'
29600
+ },
29601
+ deliveryPolicy: {
29602
+ $ref: '#/visitors/value'
29603
+ },
29604
+ bindingVersion: {
29605
+ $ref: '#/visitors/value'
29606
+ }
29607
+ }
29289
29608
  },
29290
29609
  MessageBinding: {
29291
29610
  $visitor: SnsMessageBindingVisitor
@@ -29300,6 +29619,9 @@
29300
29619
  },
29301
29620
  msgVpn: {
29302
29621
  $ref: '#/visitors/value'
29622
+ },
29623
+ clientName: {
29624
+ $ref: '#/visitors/value'
29303
29625
  }
29304
29626
  }
29305
29627
  },
@@ -29314,6 +29636,11 @@
29314
29636
  },
29315
29637
  destinations: {
29316
29638
  $ref: '#/visitors/value'
29639
+ },
29640
+ timeToLive: SchemaOrReferenceVisitor,
29641
+ priority: SchemaOrReferenceVisitor,
29642
+ dmqEligible: {
29643
+ $ref: '#/visitors/value'
29317
29644
  }
29318
29645
  }
29319
29646
  },
@@ -29326,10 +29653,29 @@
29326
29653
  $visitor: SqsServerBindingVisitor
29327
29654
  },
29328
29655
  ChannelBinding: {
29329
- $visitor: SqsChannelBindingVisitor
29656
+ $visitor: SqsChannelBindingVisitor,
29657
+ fixedFields: {
29658
+ queue: {
29659
+ $ref: '#/visitors/value'
29660
+ },
29661
+ deadLetterQueue: {
29662
+ $ref: '#/visitors/value'
29663
+ },
29664
+ bindingVersion: {
29665
+ $ref: '#/visitors/value'
29666
+ }
29667
+ }
29330
29668
  },
29331
29669
  OperationBinding: {
29332
- $visitor: SqsOperationBindingVisitor
29670
+ $visitor: SqsOperationBindingVisitor,
29671
+ fixedFields: {
29672
+ queues: {
29673
+ $ref: '#/visitors/value'
29674
+ },
29675
+ bindingVersion: {
29676
+ $ref: '#/visitors/value'
29677
+ }
29678
+ }
29333
29679
  },
29334
29680
  MessageBinding: {
29335
29681
  $visitor: SqsMessageBindingVisitor