@swagger-api/apidom-parser-adapter-asyncapi-yaml-3 1.9.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,10 @@
|
|
|
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-yaml-3
|
|
9
|
+
|
|
6
10
|
# [1.9.0](https://github.com/swagger-api/apidom/compare/v1.8.0...v1.9.0) (2026-03-30)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-yaml-3
|
|
@@ -19807,7 +19807,8 @@
|
|
|
19807
19807
|
|
|
19808
19808
|
let parser = null;
|
|
19809
19809
|
let parserInitLock = null;
|
|
19810
|
-
|
|
19810
|
+
const activeTrees = new Set();
|
|
19811
|
+
const MAX_ACTIVE_TREES = 5;
|
|
19811
19812
|
const createAnalyze = treeSitterYaml => async source => {
|
|
19812
19813
|
if (parser === null && parserInitLock === null) {
|
|
19813
19814
|
// acquire lock
|
|
@@ -19827,12 +19828,28 @@
|
|
|
19827
19828
|
if (parser === null) {
|
|
19828
19829
|
throw new ApiDOMError('Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.');
|
|
19829
19830
|
}
|
|
19830
|
-
|
|
19831
|
-
|
|
19831
|
+
|
|
19832
|
+
// prevent WASM OOM during concurrency spikes by evicting oldest trees
|
|
19833
|
+
// when the pool exceeds threshold; tree.delete() is idempotent so
|
|
19834
|
+
// callers that still hold a reference can safely call delete() again
|
|
19835
|
+
if (activeTrees.size >= MAX_ACTIVE_TREES) {
|
|
19836
|
+
const treesToEvict = [...activeTrees];
|
|
19837
|
+
activeTrees.clear();
|
|
19838
|
+
for (const oldTree of treesToEvict) {
|
|
19839
|
+
oldTree.delete();
|
|
19840
|
+
}
|
|
19832
19841
|
}
|
|
19833
|
-
|
|
19842
|
+
const tree = parser.parse(source);
|
|
19843
|
+
activeTrees.add(tree);
|
|
19844
|
+
|
|
19845
|
+
// remove from tracking when caller deletes
|
|
19846
|
+
const originalDelete = tree.delete;
|
|
19847
|
+
tree.delete = function deleteAndUntrack() {
|
|
19848
|
+
activeTrees.delete(this);
|
|
19849
|
+
originalDelete.call(this);
|
|
19850
|
+
};
|
|
19834
19851
|
parser.reset();
|
|
19835
|
-
return
|
|
19852
|
+
return tree;
|
|
19836
19853
|
};
|
|
19837
19854
|
|
|
19838
19855
|
/**
|
|
@@ -20693,13 +20710,16 @@
|
|
|
20693
20710
|
* @public
|
|
20694
20711
|
*/
|
|
20695
20712
|
const detect$1 = async source => {
|
|
20713
|
+
let cst = null;
|
|
20696
20714
|
try {
|
|
20697
|
-
|
|
20698
|
-
|
|
20699
|
-
cst.delete();
|
|
20700
|
-
return isError;
|
|
20715
|
+
cst = await analyze$1(source);
|
|
20716
|
+
return !cst.rootNode.isError;
|
|
20701
20717
|
} catch {
|
|
20702
20718
|
return false;
|
|
20719
|
+
} finally {
|
|
20720
|
+
if (cst !== null) {
|
|
20721
|
+
cst.delete();
|
|
20722
|
+
}
|
|
20703
20723
|
}
|
|
20704
20724
|
};
|
|
20705
20725
|
|
|
@@ -20717,12 +20737,17 @@
|
|
|
20717
20737
|
const parse$1 = async (source, {
|
|
20718
20738
|
sourceMap = false
|
|
20719
20739
|
} = {}) => {
|
|
20720
|
-
|
|
20721
|
-
|
|
20722
|
-
|
|
20723
|
-
|
|
20724
|
-
|
|
20725
|
-
|
|
20740
|
+
let cst = null;
|
|
20741
|
+
try {
|
|
20742
|
+
cst = await analyze$1(source);
|
|
20743
|
+
return analyze(cst, {
|
|
20744
|
+
sourceMap
|
|
20745
|
+
});
|
|
20746
|
+
} finally {
|
|
20747
|
+
if (cst !== null) {
|
|
20748
|
+
cst.delete();
|
|
20749
|
+
}
|
|
20750
|
+
}
|
|
20726
20751
|
};
|
|
20727
20752
|
|
|
20728
20753
|
/**
|
|
@@ -25033,6 +25058,12 @@
|
|
|
25033
25058
|
set headers(headers) {
|
|
25034
25059
|
this.set('headers', headers);
|
|
25035
25060
|
}
|
|
25061
|
+
get statusCode() {
|
|
25062
|
+
return this.get('statusCode');
|
|
25063
|
+
}
|
|
25064
|
+
set statusCode(statusCode) {
|
|
25065
|
+
this.set('statusCode', statusCode);
|
|
25066
|
+
}
|
|
25036
25067
|
get bindingVersion() {
|
|
25037
25068
|
return this.get('bindingVersion');
|
|
25038
25069
|
}
|
|
@@ -25352,6 +25383,12 @@
|
|
|
25352
25383
|
set replicas(replicas) {
|
|
25353
25384
|
this.set('replicas', replicas);
|
|
25354
25385
|
}
|
|
25386
|
+
get topicConfiguration() {
|
|
25387
|
+
return this.get('topicConfiguration');
|
|
25388
|
+
}
|
|
25389
|
+
set topicConfiguration(topicConfiguration) {
|
|
25390
|
+
this.set('topicConfiguration', topicConfiguration);
|
|
25391
|
+
}
|
|
25355
25392
|
get bindingVersion() {
|
|
25356
25393
|
return this.get('bindingVersion');
|
|
25357
25394
|
}
|
|
@@ -25523,6 +25560,30 @@
|
|
|
25523
25560
|
this.element = 'mqttMessageBinding';
|
|
25524
25561
|
this.classes.push('message-binding');
|
|
25525
25562
|
}
|
|
25563
|
+
get payloadFormatIndicator() {
|
|
25564
|
+
return this.get('payloadFormatIndicator');
|
|
25565
|
+
}
|
|
25566
|
+
set payloadFormatIndicator(payloadFormatIndicator) {
|
|
25567
|
+
this.set('payloadFormatIndicator', payloadFormatIndicator);
|
|
25568
|
+
}
|
|
25569
|
+
get correlationData() {
|
|
25570
|
+
return this.get('correlationData');
|
|
25571
|
+
}
|
|
25572
|
+
set correlationData(correlationData) {
|
|
25573
|
+
this.set('correlationData', correlationData);
|
|
25574
|
+
}
|
|
25575
|
+
get contentType() {
|
|
25576
|
+
return this.get('contentType');
|
|
25577
|
+
}
|
|
25578
|
+
set contentType(contentType) {
|
|
25579
|
+
this.set('contentType', contentType);
|
|
25580
|
+
}
|
|
25581
|
+
get responseTopic() {
|
|
25582
|
+
return this.get('responseTopic');
|
|
25583
|
+
}
|
|
25584
|
+
set responseTopic(responseTopic) {
|
|
25585
|
+
this.set('responseTopic', responseTopic);
|
|
25586
|
+
}
|
|
25526
25587
|
get bindingVersion() {
|
|
25527
25588
|
return this.get('bindingVersion');
|
|
25528
25589
|
}
|
|
@@ -25552,6 +25613,12 @@
|
|
|
25552
25613
|
set retain(retain) {
|
|
25553
25614
|
this.set('retain', retain);
|
|
25554
25615
|
}
|
|
25616
|
+
get messageExpiryInterval() {
|
|
25617
|
+
return this.get('messageExpiryInterval');
|
|
25618
|
+
}
|
|
25619
|
+
set messageExpiryInterval(messageExpiryInterval) {
|
|
25620
|
+
this.set('messageExpiryInterval', messageExpiryInterval);
|
|
25621
|
+
}
|
|
25555
25622
|
get bindingVersion() {
|
|
25556
25623
|
return this.get('bindingVersion');
|
|
25557
25624
|
}
|
|
@@ -25593,6 +25660,18 @@
|
|
|
25593
25660
|
set keepAlive(keepAlive) {
|
|
25594
25661
|
this.set('keepAlive', keepAlive);
|
|
25595
25662
|
}
|
|
25663
|
+
get sessionExpiryInterval() {
|
|
25664
|
+
return this.get('sessionExpiryInterval');
|
|
25665
|
+
}
|
|
25666
|
+
set sessionExpiryInterval(sessionExpiryInterval) {
|
|
25667
|
+
this.set('sessionExpiryInterval', sessionExpiryInterval);
|
|
25668
|
+
}
|
|
25669
|
+
get maximumPacketSize() {
|
|
25670
|
+
return this.get('maximumPacketSize');
|
|
25671
|
+
}
|
|
25672
|
+
set maximumPacketSize(maximumPacketSize) {
|
|
25673
|
+
this.set('maximumPacketSize', maximumPacketSize);
|
|
25674
|
+
}
|
|
25596
25675
|
get bindingVersion() {
|
|
25597
25676
|
return this.get('bindingVersion');
|
|
25598
25677
|
}
|
|
@@ -25870,6 +25949,36 @@
|
|
|
25870
25949
|
this.element = 'snsChannelBinding';
|
|
25871
25950
|
this.classes.push('channel-binding');
|
|
25872
25951
|
}
|
|
25952
|
+
get name() {
|
|
25953
|
+
return this.get('name');
|
|
25954
|
+
}
|
|
25955
|
+
set name(name) {
|
|
25956
|
+
this.set('name', name);
|
|
25957
|
+
}
|
|
25958
|
+
get ordering() {
|
|
25959
|
+
return this.get('ordering');
|
|
25960
|
+
}
|
|
25961
|
+
set ordering(ordering) {
|
|
25962
|
+
this.set('ordering', ordering);
|
|
25963
|
+
}
|
|
25964
|
+
get policy() {
|
|
25965
|
+
return this.get('policy');
|
|
25966
|
+
}
|
|
25967
|
+
set policy(policy) {
|
|
25968
|
+
this.set('policy', policy);
|
|
25969
|
+
}
|
|
25970
|
+
get tags() {
|
|
25971
|
+
return this.get('tags');
|
|
25972
|
+
}
|
|
25973
|
+
set tags(tags) {
|
|
25974
|
+
this.set('tags', tags);
|
|
25975
|
+
}
|
|
25976
|
+
get bindingVersion() {
|
|
25977
|
+
return this.get('bindingVersion');
|
|
25978
|
+
}
|
|
25979
|
+
set bindingVersion(bindingVersion) {
|
|
25980
|
+
this.set('bindingVersion', bindingVersion);
|
|
25981
|
+
}
|
|
25873
25982
|
};
|
|
25874
25983
|
|
|
25875
25984
|
/**
|
|
@@ -25892,6 +26001,30 @@
|
|
|
25892
26001
|
this.element = 'snsOperationBinding';
|
|
25893
26002
|
this.classes.push('operation-binding');
|
|
25894
26003
|
}
|
|
26004
|
+
get topic() {
|
|
26005
|
+
return this.get('topic');
|
|
26006
|
+
}
|
|
26007
|
+
set topic(topic) {
|
|
26008
|
+
this.set('topic', topic);
|
|
26009
|
+
}
|
|
26010
|
+
get consumers() {
|
|
26011
|
+
return this.get('consumers');
|
|
26012
|
+
}
|
|
26013
|
+
set consumers(consumers) {
|
|
26014
|
+
this.set('consumers', consumers);
|
|
26015
|
+
}
|
|
26016
|
+
get deliveryPolicy() {
|
|
26017
|
+
return this.get('deliveryPolicy');
|
|
26018
|
+
}
|
|
26019
|
+
set deliveryPolicy(deliveryPolicy) {
|
|
26020
|
+
this.set('deliveryPolicy', deliveryPolicy);
|
|
26021
|
+
}
|
|
26022
|
+
get bindingVersion() {
|
|
26023
|
+
return this.get('bindingVersion');
|
|
26024
|
+
}
|
|
26025
|
+
set bindingVersion(bindingVersion) {
|
|
26026
|
+
this.set('bindingVersion', bindingVersion);
|
|
26027
|
+
}
|
|
25895
26028
|
};
|
|
25896
26029
|
|
|
25897
26030
|
/**
|
|
@@ -30749,6 +30882,9 @@
|
|
|
30749
30882
|
$visitor: HttpMessageBindingVisitor,
|
|
30750
30883
|
fixedFields: {
|
|
30751
30884
|
headers: SchemaOrReferenceVisitor,
|
|
30885
|
+
statusCode: {
|
|
30886
|
+
$ref: '#/visitors/value'
|
|
30887
|
+
},
|
|
30752
30888
|
bindingVersion: {
|
|
30753
30889
|
$ref: '#/visitors/value'
|
|
30754
30890
|
}
|
|
@@ -30806,6 +30942,9 @@
|
|
|
30806
30942
|
replicas: {
|
|
30807
30943
|
$ref: '#/visitors/value'
|
|
30808
30944
|
},
|
|
30945
|
+
topicConfiguration: {
|
|
30946
|
+
$ref: '#/visitors/value'
|
|
30947
|
+
},
|
|
30809
30948
|
bindingVersion: {
|
|
30810
30949
|
$ref: '#/visitors/value'
|
|
30811
30950
|
}
|
|
@@ -30975,6 +31114,8 @@
|
|
|
30975
31114
|
keepAlive: {
|
|
30976
31115
|
$ref: '#/visitors/value'
|
|
30977
31116
|
},
|
|
31117
|
+
sessionExpiryInterval: SchemaOrReferenceVisitor,
|
|
31118
|
+
maximumPacketSize: SchemaOrReferenceVisitor,
|
|
30978
31119
|
bindingVersion: {
|
|
30979
31120
|
$ref: '#/visitors/value'
|
|
30980
31121
|
}
|
|
@@ -30992,6 +31133,7 @@
|
|
|
30992
31133
|
retain: {
|
|
30993
31134
|
$ref: '#/visitors/value'
|
|
30994
31135
|
},
|
|
31136
|
+
messageExpiryInterval: SchemaOrReferenceVisitor,
|
|
30995
31137
|
bindingVersion: {
|
|
30996
31138
|
$ref: '#/visitors/value'
|
|
30997
31139
|
}
|
|
@@ -31000,6 +31142,14 @@
|
|
|
31000
31142
|
MessageBinding: {
|
|
31001
31143
|
$visitor: MqttMessageBindingVisitor,
|
|
31002
31144
|
fixedFields: {
|
|
31145
|
+
payloadFormatIndicator: {
|
|
31146
|
+
$ref: '#/visitors/value'
|
|
31147
|
+
},
|
|
31148
|
+
correlationData: SchemaOrReferenceVisitor,
|
|
31149
|
+
contentType: {
|
|
31150
|
+
$ref: '#/visitors/value'
|
|
31151
|
+
},
|
|
31152
|
+
responseTopic: SchemaOrReferenceVisitor,
|
|
31003
31153
|
bindingVersion: {
|
|
31004
31154
|
$ref: '#/visitors/value'
|
|
31005
31155
|
}
|
|
@@ -31146,10 +31296,41 @@
|
|
|
31146
31296
|
$visitor: SnsServerBindingVisitor
|
|
31147
31297
|
},
|
|
31148
31298
|
ChannelBinding: {
|
|
31149
|
-
$visitor: SnsChannelBindingVisitor
|
|
31299
|
+
$visitor: SnsChannelBindingVisitor,
|
|
31300
|
+
fixedFields: {
|
|
31301
|
+
name: {
|
|
31302
|
+
$ref: '#/visitors/value'
|
|
31303
|
+
},
|
|
31304
|
+
ordering: {
|
|
31305
|
+
$ref: '#/visitors/value'
|
|
31306
|
+
},
|
|
31307
|
+
policy: {
|
|
31308
|
+
$ref: '#/visitors/value'
|
|
31309
|
+
},
|
|
31310
|
+
tags: {
|
|
31311
|
+
$ref: '#/visitors/value'
|
|
31312
|
+
},
|
|
31313
|
+
bindingVersion: {
|
|
31314
|
+
$ref: '#/visitors/value'
|
|
31315
|
+
}
|
|
31316
|
+
}
|
|
31150
31317
|
},
|
|
31151
31318
|
OperationBinding: {
|
|
31152
|
-
$visitor: SnsOperationBindingVisitor
|
|
31319
|
+
$visitor: SnsOperationBindingVisitor,
|
|
31320
|
+
fixedFields: {
|
|
31321
|
+
topic: {
|
|
31322
|
+
$ref: '#/visitors/value'
|
|
31323
|
+
},
|
|
31324
|
+
consumers: {
|
|
31325
|
+
$ref: '#/visitors/value'
|
|
31326
|
+
},
|
|
31327
|
+
deliveryPolicy: {
|
|
31328
|
+
$ref: '#/visitors/value'
|
|
31329
|
+
},
|
|
31330
|
+
bindingVersion: {
|
|
31331
|
+
$ref: '#/visitors/value'
|
|
31332
|
+
}
|
|
31333
|
+
}
|
|
31153
31334
|
},
|
|
31154
31335
|
MessageBinding: {
|
|
31155
31336
|
$visitor: SnsMessageBindingVisitor
|