@swagger-api/apidom-parser-adapter-asyncapi-json-3 1.9.0 → 1.10.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,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.1](https://github.com/swagger-api/apidom/compare/v1.10.0...v1.10.1) (2026-04-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-json-3
|
|
9
|
+
|
|
10
|
+
# [1.10.0](https://github.com/swagger-api/apidom/compare/v1.9.0...v1.10.0) (2026-04-01)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-json-3
|
|
13
|
+
|
|
6
14
|
# [1.9.0](https://github.com/swagger-api/apidom/compare/v1.8.0...v1.9.0) (2026-03-30)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-json-3
|
|
@@ -5610,7 +5610,7 @@
|
|
|
5610
5610
|
* @name has
|
|
5611
5611
|
* @memberOf SetCache
|
|
5612
5612
|
* @param {*} value The value to search for.
|
|
5613
|
-
* @returns {
|
|
5613
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
5614
5614
|
*/
|
|
5615
5615
|
|
|
5616
5616
|
var _setCacheHas;
|
|
@@ -18276,14 +18276,12 @@
|
|
|
18276
18276
|
|
|
18277
18277
|
let parser = null;
|
|
18278
18278
|
let parserInitLock = null;
|
|
18279
|
-
|
|
18279
|
+
const activeTrees = new Set();
|
|
18280
|
+
const MAX_ACTIVE_TREES = 10;
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
|
|
18995
|
-
|
|
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
|
}
|
|
@@ -23627,6 +23657,12 @@
|
|
|
23627
23657
|
set replicas(replicas) {
|
|
23628
23658
|
this.set('replicas', replicas);
|
|
23629
23659
|
}
|
|
23660
|
+
get topicConfiguration() {
|
|
23661
|
+
return this.get('topicConfiguration');
|
|
23662
|
+
}
|
|
23663
|
+
set topicConfiguration(topicConfiguration) {
|
|
23664
|
+
this.set('topicConfiguration', topicConfiguration);
|
|
23665
|
+
}
|
|
23630
23666
|
get bindingVersion() {
|
|
23631
23667
|
return this.get('bindingVersion');
|
|
23632
23668
|
}
|
|
@@ -23798,6 +23834,30 @@
|
|
|
23798
23834
|
this.element = 'mqttMessageBinding';
|
|
23799
23835
|
this.classes.push('message-binding');
|
|
23800
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
|
+
}
|
|
23801
23861
|
get bindingVersion() {
|
|
23802
23862
|
return this.get('bindingVersion');
|
|
23803
23863
|
}
|
|
@@ -23827,6 +23887,12 @@
|
|
|
23827
23887
|
set retain(retain) {
|
|
23828
23888
|
this.set('retain', retain);
|
|
23829
23889
|
}
|
|
23890
|
+
get messageExpiryInterval() {
|
|
23891
|
+
return this.get('messageExpiryInterval');
|
|
23892
|
+
}
|
|
23893
|
+
set messageExpiryInterval(messageExpiryInterval) {
|
|
23894
|
+
this.set('messageExpiryInterval', messageExpiryInterval);
|
|
23895
|
+
}
|
|
23830
23896
|
get bindingVersion() {
|
|
23831
23897
|
return this.get('bindingVersion');
|
|
23832
23898
|
}
|
|
@@ -23868,6 +23934,18 @@
|
|
|
23868
23934
|
set keepAlive(keepAlive) {
|
|
23869
23935
|
this.set('keepAlive', keepAlive);
|
|
23870
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
|
+
}
|
|
23871
23949
|
get bindingVersion() {
|
|
23872
23950
|
return this.get('bindingVersion');
|
|
23873
23951
|
}
|
|
@@ -24145,6 +24223,36 @@
|
|
|
24145
24223
|
this.element = 'snsChannelBinding';
|
|
24146
24224
|
this.classes.push('channel-binding');
|
|
24147
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
|
+
}
|
|
24148
24256
|
};
|
|
24149
24257
|
|
|
24150
24258
|
/**
|
|
@@ -24167,6 +24275,30 @@
|
|
|
24167
24275
|
this.element = 'snsOperationBinding';
|
|
24168
24276
|
this.classes.push('operation-binding');
|
|
24169
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
|
+
}
|
|
24170
24302
|
};
|
|
24171
24303
|
|
|
24172
24304
|
/**
|
|
@@ -29024,6 +29156,9 @@
|
|
|
29024
29156
|
$visitor: HttpMessageBindingVisitor,
|
|
29025
29157
|
fixedFields: {
|
|
29026
29158
|
headers: SchemaOrReferenceVisitor,
|
|
29159
|
+
statusCode: {
|
|
29160
|
+
$ref: '#/visitors/value'
|
|
29161
|
+
},
|
|
29027
29162
|
bindingVersion: {
|
|
29028
29163
|
$ref: '#/visitors/value'
|
|
29029
29164
|
}
|
|
@@ -29081,6 +29216,9 @@
|
|
|
29081
29216
|
replicas: {
|
|
29082
29217
|
$ref: '#/visitors/value'
|
|
29083
29218
|
},
|
|
29219
|
+
topicConfiguration: {
|
|
29220
|
+
$ref: '#/visitors/value'
|
|
29221
|
+
},
|
|
29084
29222
|
bindingVersion: {
|
|
29085
29223
|
$ref: '#/visitors/value'
|
|
29086
29224
|
}
|
|
@@ -29250,6 +29388,8 @@
|
|
|
29250
29388
|
keepAlive: {
|
|
29251
29389
|
$ref: '#/visitors/value'
|
|
29252
29390
|
},
|
|
29391
|
+
sessionExpiryInterval: SchemaOrReferenceVisitor,
|
|
29392
|
+
maximumPacketSize: SchemaOrReferenceVisitor,
|
|
29253
29393
|
bindingVersion: {
|
|
29254
29394
|
$ref: '#/visitors/value'
|
|
29255
29395
|
}
|
|
@@ -29267,6 +29407,7 @@
|
|
|
29267
29407
|
retain: {
|
|
29268
29408
|
$ref: '#/visitors/value'
|
|
29269
29409
|
},
|
|
29410
|
+
messageExpiryInterval: SchemaOrReferenceVisitor,
|
|
29270
29411
|
bindingVersion: {
|
|
29271
29412
|
$ref: '#/visitors/value'
|
|
29272
29413
|
}
|
|
@@ -29275,6 +29416,14 @@
|
|
|
29275
29416
|
MessageBinding: {
|
|
29276
29417
|
$visitor: MqttMessageBindingVisitor,
|
|
29277
29418
|
fixedFields: {
|
|
29419
|
+
payloadFormatIndicator: {
|
|
29420
|
+
$ref: '#/visitors/value'
|
|
29421
|
+
},
|
|
29422
|
+
correlationData: SchemaOrReferenceVisitor,
|
|
29423
|
+
contentType: {
|
|
29424
|
+
$ref: '#/visitors/value'
|
|
29425
|
+
},
|
|
29426
|
+
responseTopic: SchemaOrReferenceVisitor,
|
|
29278
29427
|
bindingVersion: {
|
|
29279
29428
|
$ref: '#/visitors/value'
|
|
29280
29429
|
}
|
|
@@ -29421,10 +29570,41 @@
|
|
|
29421
29570
|
$visitor: SnsServerBindingVisitor
|
|
29422
29571
|
},
|
|
29423
29572
|
ChannelBinding: {
|
|
29424
|
-
$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
|
+
}
|
|
29425
29591
|
},
|
|
29426
29592
|
OperationBinding: {
|
|
29427
|
-
$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
|
+
}
|
|
29428
29608
|
},
|
|
29429
29609
|
MessageBinding: {
|
|
29430
29610
|
$visitor: SnsMessageBindingVisitor
|