@azure/service-bus 1.1.8 → 1.1.9
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 +9 -0
- package/README.md +2 -2
- package/browser/service-bus.js +16 -15
- package/browser/service-bus.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist-esm/src/util/constants.js +1 -1
- package/package.json +2 -2
- package/src/util/constants.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
## 1.1.9 (2020-08-19)
|
|
4
|
+
|
|
5
|
+
- Fixes [bug 10641](https://github.com/Azure/azure-sdk-for-js/issues/10641) where parallel requests
|
|
6
|
+
on the management link would fail with a `ServiceUnavailableError`.
|
|
7
|
+
- Fixes [bug 9287](https://github.com/Azure/azure-sdk-for-js/issues/9287)
|
|
8
|
+
where operations that used the `RequestResponseLink` and encountered an error
|
|
9
|
+
would fail to cleanup their internal timer.
|
|
10
|
+
This caused exiting the process to be delayed until the timer reached its timeout.
|
|
11
|
+
|
|
3
12
|
## 1.1.8 (2020-07-15)
|
|
4
13
|
|
|
5
14
|
- Fixes [bug 9926](https://github.com/Azure/azure-sdk-for-js/issues/9926)
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Use the client library for Azure Service Bus in your Node.js application to
|
|
|
7
7
|
- Send messages to a Queue or Topic
|
|
8
8
|
- Receive messages from a Queue or Subscription
|
|
9
9
|
|
|
10
|
-
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/%40azure/service-bus_1.1.
|
|
10
|
+
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/%40azure/service-bus_1.1.9/sdk/servicebus/service-bus) | [Package (npm)](https://www.npmjs.com/package/@azure/service-bus) | [API Reference Documentation](https://docs.microsoft.com/en-us/javascript/api/%40azure/service-bus/) | [Product documentation](https://azure.microsoft.com/en-us/services/service-bus/) | [Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus/samples-v1)
|
|
11
11
|
|
|
12
12
|
## Getting Started
|
|
13
13
|
|
|
@@ -253,6 +253,6 @@ directory for detailed examples on how to use this library to send and receive m
|
|
|
253
253
|
|
|
254
254
|
## Contributing
|
|
255
255
|
|
|
256
|
-
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/tree/
|
|
256
|
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/tree/083d38dc872d6071e0951461af48a6cbe8e09bc1/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
257
257
|
|
|
258
258
|

|
package/browser/service-bus.js
CHANGED
|
@@ -1254,7 +1254,7 @@
|
|
|
1254
1254
|
// Licensed under the MIT License.
|
|
1255
1255
|
const packageJsonInfo = {
|
|
1256
1256
|
name: "@azure/service-bus",
|
|
1257
|
-
version: "1.1.
|
|
1257
|
+
version: "1.1.9"
|
|
1258
1258
|
};
|
|
1259
1259
|
const max32BitNumber = Math.pow(2, 31) - 1;
|
|
1260
1260
|
|
|
@@ -12927,24 +12927,25 @@
|
|
|
12927
12927
|
};
|
|
12928
12928
|
};
|
|
12929
12929
|
const messageCallback = (context) => {
|
|
12930
|
-
// remove the event listener as this will be registered next time when someone makes a request.
|
|
12931
|
-
this.receiver.removeListener(lib_7.message, messageCallback);
|
|
12932
12930
|
const info = getCodeDescriptionAndError(context.message.application_properties);
|
|
12933
12931
|
const responseCorrelationId = context.message.correlation_id;
|
|
12934
12932
|
reqres("[%s] %s response: ", this.connection.id, request.to || "$management", context.message);
|
|
12933
|
+
if (request.message_id !== responseCorrelationId && request.correlation_id !== responseCorrelationId) {
|
|
12934
|
+
// do not remove message listener.
|
|
12935
|
+
// parallel requests listen on the same receiver, so continue waiting until respose that matches
|
|
12936
|
+
// request via correlationId is found.
|
|
12937
|
+
error$1("[%s] request-messageId | '%s' != '%s' | response-correlationId. " +
|
|
12938
|
+
"Hence dropping this response and waiting for the next one.", this.connection.id, request.message_id, responseCorrelationId);
|
|
12939
|
+
return;
|
|
12940
|
+
}
|
|
12941
|
+
// remove the event listeners as they will be registered next time when someone makes a request.
|
|
12942
|
+
this.receiver.removeListener(lib_7.message, messageCallback);
|
|
12943
|
+
if (!timeOver) {
|
|
12944
|
+
clearTimeout(waitTimer);
|
|
12945
|
+
}
|
|
12935
12946
|
if (info.statusCode > 199 && info.statusCode < 300) {
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
if (!timeOver) {
|
|
12939
|
-
clearTimeout(waitTimer);
|
|
12940
|
-
}
|
|
12941
|
-
reqres("[%s] request-messageId | '%s' == '%s' | response-correlationId.", this.connection.id, request.message_id, responseCorrelationId);
|
|
12942
|
-
return resolve(context.message);
|
|
12943
|
-
}
|
|
12944
|
-
else {
|
|
12945
|
-
error$1("[%s] request-messageId | '%s' != '%s' | response-correlationId. " +
|
|
12946
|
-
"Hence dropping this response and waiting for the next one.", this.connection.id, request.message_id, responseCorrelationId);
|
|
12947
|
-
}
|
|
12947
|
+
reqres("[%s] request-messageId | '%s' == '%s' | response-correlationId.", this.connection.id, request.message_id, responseCorrelationId);
|
|
12948
|
+
return resolve(context.message);
|
|
12948
12949
|
}
|
|
12949
12950
|
else {
|
|
12950
12951
|
const condition = info.errorCondition ||
|