@swagger-api/apidom-parser-adapter-asyncapi-json-2 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-2
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-2
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-2
@@ -18150,14 +18150,12 @@
18150
18150
 
18151
18151
  let parser = null;
18152
18152
  let parserInitLock = null;
18153
- let currentTree = null;
18153
+ const activeTrees = new Set();
18154
+ const MAX_ACTIVE_TREES = 5;
18154
18155
 
18155
18156
  /**
18156
18157
  * Lexical Analysis of source string using WebTreeSitter.
18157
18158
  * This is WebAssembly version of TreeSitters Lexical Analysis.
18158
- *
18159
- * Given JavaScript doesn't support true parallelism, this
18160
- * code should be as lazy as possible and temporal safety should be fine.
18161
18159
  * @public
18162
18160
  */
18163
18161
  const analyze$2 = async source => {
@@ -18178,9 +18176,28 @@
18178
18176
  } else if (parser === null) {
18179
18177
  throw new ApiDOMError('Error while initializing web-tree-sitter and loading tree-sitter-json grammar.');
18180
18178
  }
18181
- currentTree = parser.parse(source);
18179
+
18180
+ // prevent WASM OOM during concurrency spikes by evicting oldest trees
18181
+ // when the pool exceeds threshold; tree.delete() is idempotent so
18182
+ // callers that still hold a reference can safely call delete() again
18183
+ if (activeTrees.size >= MAX_ACTIVE_TREES) {
18184
+ const treesToEvict = [...activeTrees];
18185
+ activeTrees.clear();
18186
+ for (const oldTree of treesToEvict) {
18187
+ oldTree.delete();
18188
+ }
18189
+ }
18190
+ const tree = parser.parse(source);
18191
+ activeTrees.add(tree);
18192
+
18193
+ // remove from tracking when caller deletes
18194
+ const originalDelete = tree.delete;
18195
+ tree.delete = function deleteAndUntrack() {
18196
+ activeTrees.delete(this);
18197
+ originalDelete.call(this);
18198
+ };
18182
18199
  parser.reset();
18183
- return currentTree;
18200
+ return tree;
18184
18201
  };
18185
18202
 
18186
18203
  class TreeCursorSyntaxNode {
@@ -18834,13 +18851,17 @@
18834
18851
  if (!detectionRegExp$1.test(source)) {
18835
18852
  return false;
18836
18853
  }
18854
+ let cst = null;
18837
18855
  try {
18838
- const cst = await analyze$2(source);
18856
+ cst = await analyze$2(source);
18839
18857
  const isError = cst.rootNode.type !== 'ERROR';
18840
- cst.delete();
18841
18858
  return isError;
18842
18859
  } catch {
18843
18860
  return false;
18861
+ } finally {
18862
+ if (cst !== null) {
18863
+ cst.delete();
18864
+ }
18844
18865
  }
18845
18866
  };
18846
18867
 
@@ -18859,19 +18880,22 @@
18859
18880
  sourceMap = false,
18860
18881
  syntacticAnalysis = 'direct'
18861
18882
  } = {}) => {
18862
- const cst = await analyze$2(source);
18863
- let apiDOM;
18864
- if (syntacticAnalysis === 'indirect') {
18865
- apiDOM = analyze(cst, {
18866
- sourceMap
18867
- });
18868
- } else {
18869
- apiDOM = analyze$1(cst, {
18883
+ let cst = null;
18884
+ try {
18885
+ cst = await analyze$2(source);
18886
+ if (syntacticAnalysis === 'indirect') {
18887
+ return analyze(cst, {
18888
+ sourceMap
18889
+ });
18890
+ }
18891
+ return analyze$1(cst, {
18870
18892
  sourceMap
18871
18893
  });
18894
+ } finally {
18895
+ if (cst !== null) {
18896
+ cst.delete();
18897
+ }
18872
18898
  }
18873
- cst.delete();
18874
- return apiDOM;
18875
18899
  };
18876
18900
 
18877
18901
  /**
@@ -23155,6 +23179,12 @@
23155
23179
  set headers(headers) {
23156
23180
  this.set('headers', headers);
23157
23181
  }
23182
+ get statusCode() {
23183
+ return this.get('statusCode');
23184
+ }
23185
+ set statusCode(statusCode) {
23186
+ this.set('statusCode', statusCode);
23187
+ }
23158
23188
  get bindingVersion() {
23159
23189
  return this.get('bindingVersion');
23160
23190
  }
@@ -23358,6 +23388,24 @@
23358
23388
  this.element = 'jmsChannelBinding';
23359
23389
  this.classes.push('channel-binding');
23360
23390
  }
23391
+ get destination() {
23392
+ return this.get('destination');
23393
+ }
23394
+ set destination(destination) {
23395
+ this.set('destination', destination);
23396
+ }
23397
+ get destinationType() {
23398
+ return this.get('destinationType');
23399
+ }
23400
+ set destinationType(destinationType) {
23401
+ this.set('destinationType', destinationType);
23402
+ }
23403
+ get bindingVersion() {
23404
+ return this.get('bindingVersion');
23405
+ }
23406
+ set bindingVersion(bindingVersion) {
23407
+ this.set('bindingVersion', bindingVersion);
23408
+ }
23361
23409
  }
23362
23410
 
23363
23411
  /**
@@ -23369,6 +23417,18 @@
23369
23417
  this.element = 'jmsMessageBinding';
23370
23418
  this.classes.push('message-binding');
23371
23419
  }
23420
+ get headers() {
23421
+ return this.get('headers');
23422
+ }
23423
+ set headers(headers) {
23424
+ this.set('headers', headers);
23425
+ }
23426
+ get bindingVersion() {
23427
+ return this.get('bindingVersion');
23428
+ }
23429
+ set bindingVersion(bindingVersion) {
23430
+ this.set('bindingVersion', bindingVersion);
23431
+ }
23372
23432
  }
23373
23433
 
23374
23434
  /**
@@ -23391,6 +23451,30 @@
23391
23451
  this.element = 'jmsServerBinding';
23392
23452
  this.classes.push('server-binding');
23393
23453
  }
23454
+ get jmsConnectionFactory() {
23455
+ return this.get('jmsConnectionFactory');
23456
+ }
23457
+ set jmsConnectionFactory(jmsConnectionFactory) {
23458
+ this.set('jmsConnectionFactory', jmsConnectionFactory);
23459
+ }
23460
+ get properties() {
23461
+ return this.get('properties');
23462
+ }
23463
+ set properties(properties) {
23464
+ this.set('properties', properties);
23465
+ }
23466
+ get clientID() {
23467
+ return this.get('clientID');
23468
+ }
23469
+ set clientID(clientID) {
23470
+ this.set('clientID', clientID);
23471
+ }
23472
+ get bindingVersion() {
23473
+ return this.get('bindingVersion');
23474
+ }
23475
+ set bindingVersion(bindingVersion) {
23476
+ this.set('bindingVersion', bindingVersion);
23477
+ }
23394
23478
  }
23395
23479
 
23396
23480
  /**
@@ -23420,6 +23504,12 @@
23420
23504
  set replicas(replicas) {
23421
23505
  this.set('replicas', replicas);
23422
23506
  }
23507
+ get topicConfiguration() {
23508
+ return this.get('topicConfiguration');
23509
+ }
23510
+ set topicConfiguration(topicConfiguration) {
23511
+ this.set('topicConfiguration', topicConfiguration);
23512
+ }
23423
23513
  get bindingVersion() {
23424
23514
  return this.get('bindingVersion');
23425
23515
  }
@@ -23591,6 +23681,30 @@
23591
23681
  this.element = 'mqttMessageBinding';
23592
23682
  this.classes.push('message-binding');
23593
23683
  }
23684
+ get payloadFormatIndicator() {
23685
+ return this.get('payloadFormatIndicator');
23686
+ }
23687
+ set payloadFormatIndicator(payloadFormatIndicator) {
23688
+ this.set('payloadFormatIndicator', payloadFormatIndicator);
23689
+ }
23690
+ get correlationData() {
23691
+ return this.get('correlationData');
23692
+ }
23693
+ set correlationData(correlationData) {
23694
+ this.set('correlationData', correlationData);
23695
+ }
23696
+ get contentType() {
23697
+ return this.get('contentType');
23698
+ }
23699
+ set contentType(contentType) {
23700
+ this.set('contentType', contentType);
23701
+ }
23702
+ get responseTopic() {
23703
+ return this.get('responseTopic');
23704
+ }
23705
+ set responseTopic(responseTopic) {
23706
+ this.set('responseTopic', responseTopic);
23707
+ }
23594
23708
  get bindingVersion() {
23595
23709
  return this.get('bindingVersion');
23596
23710
  }
@@ -23620,6 +23734,12 @@
23620
23734
  set retain(retain) {
23621
23735
  this.set('retain', retain);
23622
23736
  }
23737
+ get messageExpiryInterval() {
23738
+ return this.get('messageExpiryInterval');
23739
+ }
23740
+ set messageExpiryInterval(messageExpiryInterval) {
23741
+ this.set('messageExpiryInterval', messageExpiryInterval);
23742
+ }
23623
23743
  get bindingVersion() {
23624
23744
  return this.get('bindingVersion');
23625
23745
  }
@@ -23661,6 +23781,18 @@
23661
23781
  set keepAlive(keepAlive) {
23662
23782
  this.set('keepAlive', keepAlive);
23663
23783
  }
23784
+ get sessionExpiryInterval() {
23785
+ return this.get('sessionExpiryInterval');
23786
+ }
23787
+ set sessionExpiryInterval(sessionExpiryInterval) {
23788
+ this.set('sessionExpiryInterval', sessionExpiryInterval);
23789
+ }
23790
+ get maximumPacketSize() {
23791
+ return this.get('maximumPacketSize');
23792
+ }
23793
+ set maximumPacketSize(maximumPacketSize) {
23794
+ this.set('maximumPacketSize', maximumPacketSize);
23795
+ }
23664
23796
  get bindingVersion() {
23665
23797
  return this.get('bindingVersion');
23666
23798
  }
@@ -23938,6 +24070,36 @@
23938
24070
  this.element = 'snsChannelBinding';
23939
24071
  this.classes.push('channel-binding');
23940
24072
  }
24073
+ get name() {
24074
+ return this.get('name');
24075
+ }
24076
+ set name(name) {
24077
+ this.set('name', name);
24078
+ }
24079
+ get ordering() {
24080
+ return this.get('ordering');
24081
+ }
24082
+ set ordering(ordering) {
24083
+ this.set('ordering', ordering);
24084
+ }
24085
+ get policy() {
24086
+ return this.get('policy');
24087
+ }
24088
+ set policy(policy) {
24089
+ this.set('policy', policy);
24090
+ }
24091
+ get tags() {
24092
+ return this.get('tags');
24093
+ }
24094
+ set tags(tags) {
24095
+ this.set('tags', tags);
24096
+ }
24097
+ get bindingVersion() {
24098
+ return this.get('bindingVersion');
24099
+ }
24100
+ set bindingVersion(bindingVersion) {
24101
+ this.set('bindingVersion', bindingVersion);
24102
+ }
23941
24103
  }
23942
24104
 
23943
24105
  /**
@@ -23960,6 +24122,30 @@
23960
24122
  this.element = 'snsOperationBinding';
23961
24123
  this.classes.push('operation-binding');
23962
24124
  }
24125
+ get topic() {
24126
+ return this.get('topic');
24127
+ }
24128
+ set topic(topic) {
24129
+ this.set('topic', topic);
24130
+ }
24131
+ get consumers() {
24132
+ return this.get('consumers');
24133
+ }
24134
+ set consumers(consumers) {
24135
+ this.set('consumers', consumers);
24136
+ }
24137
+ get deliveryPolicy() {
24138
+ return this.get('deliveryPolicy');
24139
+ }
24140
+ set deliveryPolicy(deliveryPolicy) {
24141
+ this.set('deliveryPolicy', deliveryPolicy);
24142
+ }
24143
+ get bindingVersion() {
24144
+ return this.get('bindingVersion');
24145
+ }
24146
+ set bindingVersion(bindingVersion) {
24147
+ this.set('bindingVersion', bindingVersion);
24148
+ }
23963
24149
  }
23964
24150
 
23965
24151
  /**
@@ -24016,6 +24202,24 @@
24016
24202
  set destinations(destinations) {
24017
24203
  this.set('destinations', destinations);
24018
24204
  }
24205
+ get timeToLive() {
24206
+ return this.get('timeToLive');
24207
+ }
24208
+ set timeToLive(timeToLive) {
24209
+ this.set('timeToLive', timeToLive);
24210
+ }
24211
+ get priority() {
24212
+ return this.get('priority');
24213
+ }
24214
+ set priority(priority) {
24215
+ this.set('priority', priority);
24216
+ }
24217
+ get dmqEligible() {
24218
+ return this.get('dmqEligible');
24219
+ }
24220
+ set dmqEligible(dmqEligible) {
24221
+ this.set('dmqEligible', dmqEligible);
24222
+ }
24019
24223
  }
24020
24224
 
24021
24225
  /**
@@ -24039,6 +24243,12 @@
24039
24243
  set msgVpn(msgVpn) {
24040
24244
  this.set('msgVpn', msgVpn);
24041
24245
  }
24246
+ get clientName() {
24247
+ return this.get('clientName');
24248
+ }
24249
+ set clientName(clientName) {
24250
+ this.set('clientName', clientName);
24251
+ }
24042
24252
  }
24043
24253
 
24044
24254
  /**
@@ -24050,6 +24260,24 @@
24050
24260
  this.element = 'sqsChannelBinding';
24051
24261
  this.classes.push('channel-binding');
24052
24262
  }
24263
+ get queue() {
24264
+ return this.get('queue');
24265
+ }
24266
+ set queue(queue) {
24267
+ this.set('queue', queue);
24268
+ }
24269
+ get deadLetterQueue() {
24270
+ return this.get('deadLetterQueue');
24271
+ }
24272
+ set deadLetterQueue(deadLetterQueue) {
24273
+ this.set('deadLetterQueue', deadLetterQueue);
24274
+ }
24275
+ get bindingVersion() {
24276
+ return this.get('bindingVersion');
24277
+ }
24278
+ set bindingVersion(bindingVersion) {
24279
+ this.set('bindingVersion', bindingVersion);
24280
+ }
24053
24281
  }
24054
24282
 
24055
24283
  /**
@@ -24072,6 +24300,18 @@
24072
24300
  this.element = 'sqsOperationBinding';
24073
24301
  this.classes.push('operation-binding');
24074
24302
  }
24303
+ get queues() {
24304
+ return this.get('queues');
24305
+ }
24306
+ set queues(queues) {
24307
+ this.set('queues', queues);
24308
+ }
24309
+ get bindingVersion() {
24310
+ return this.get('bindingVersion');
24311
+ }
24312
+ set bindingVersion(bindingVersion) {
24313
+ this.set('bindingVersion', bindingVersion);
24314
+ }
24075
24315
  }
24076
24316
 
24077
24317
  /**