Skip to content

Commit

Permalink
Merge pull request #702 from EmmaZhu/master
Browse files Browse the repository at this point in the history
Upgrade json-schema to 0.4.0 and fix an issue where customized retry interval doesn't take effact.
  • Loading branch information
EmmaZhu committed Dec 17, 2021
2 parents 7a42c7b + ddc7e8b commit ad8472f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.md
@@ -1,6 +1,12 @@
Note: This is an Azure Storage only package. The all up Azure node sdk still has the old storage bits in there. In a future release, those storage bits will be removed and an npm dependency to this storage node sdk will
be taken. This is a GA release and the changes described below indicate the changes from the Azure node SDK 0.9.8 available here - https://github.com/Azure/azure-sdk-for-node.

2021.12 Version 2.10.6

* Upgraded `validator` to 13.7.0.
* Upgraded `json-schema` to 0.4.0.
* Fixed an issue where customized retry interval doesn't take effact.

2021.09 Version 2.10.5

* Upgraded `validator` to 13.6.0.
Expand Down
1 change: 0 additions & 1 deletion lib/common/filters/retrypolicyfilter.js
Expand Up @@ -75,7 +75,6 @@ RetryPolicyFilter.prototype.handle = function (requestOptions, next) {
RetryPolicyFilter._handle = function (self, requestOptions, next) {

var retryRequestOptions = extend({}, requestOptions);
retryRequestOptions.retryInterval = 0;

// Initialize retryContext because that will be passed to the shouldRetry method which users will implement
retryRequestOptions.retryContext = {
Expand Down
1 change: 1 addition & 0 deletions lib/common/services/storageserviceclient.js
Expand Up @@ -551,6 +551,7 @@ StorageServiceClient.prototype._performRequest = function (webResource, body, op
// filter -> operation -> process response
if(postFiltersRequestOptions.retryContext) {
var func = function() {
postFiltersRequestOptions.retryInterval = 0;
operation(postFiltersRequestOptions, nextPostCallback);
};

Expand Down
2 changes: 1 addition & 1 deletion lib/common/util/constants.js
Expand Up @@ -37,7 +37,7 @@ var Constants = {
* @const
* @type {string}
*/
USER_AGENT_PRODUCT_VERSION: '2.10.5',
USER_AGENT_PRODUCT_VERSION: '2.10.6',

/**
* The number of default concurrent requests for parallel operation.
Expand Down
15 changes: 11 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "azure-storage",
"author": "Microsoft Corporation",
"version": "2.10.5",
"version": "2.10.6",
"description": "Microsoft Azure Storage Client Library for Node.js",
"typings": "typings/azure-storage/azure-storage.d.ts",
"tags": [
Expand Down Expand Up @@ -33,7 +33,8 @@
"uuid": "^3.0.0",
"validator": "~13.7.0",
"xml2js": "0.2.8",
"xmlbuilder": "^9.0.7"
"xmlbuilder": "^9.0.7",
"json-schema": "^0.4.0"
},
"devDependencies": {
"batchflow": "0.4.0",
Expand Down

0 comments on commit ad8472f

Please sign in to comment.