Skip to content

Commit

Permalink
Merge pull request #360 from XiaoningLiu/2.6.0_afs
Browse files Browse the repository at this point in the history
v2.6.0
  • Loading branch information
vinjiang authored Oct 12, 2017
2 parents a2a26c7 + 5dba8f8 commit 752d786
Show file tree
Hide file tree
Showing 12 changed files with 2,421 additions and 47 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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.

2017.10 Version 2.6.0

FILE

* Added support for file share snapshot.

2017.09 Version 2.5.0

ALL
Expand Down
4 changes: 4 additions & 0 deletions browser/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Note: This is the change log file for Azure Storage JavaScript Client Library.

2017.10 Version 0.2.6-preview.12

* Generated browser compatible JavaScript files based on Microsoft Azure Storage SDK for Node.js 2.6.0.

2017.09 Version 0.2.5-preview.11

* Generated browser compatible JavaScript files based on Microsoft Azure Storage SDK for Node.js 2.5.0.
Expand Down
2 changes: 1 addition & 1 deletion browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Compatibility with mobile browsers have not been fully validated, please open is

| Chrome | Firefox | Internet Explorer | Microsoft Edge |
|------------|----------|--------------------|-----------------|
| v60 | v55 | v11 | v40 |
| v61 | v56 | v11 | v40 |

## Generating a Custom Azure Storage JavaScript Client Library

Expand Down
12 changes: 10 additions & 2 deletions lib/common/util/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var Constants = {
* @const
* @type {string}
*/
USER_AGENT_PRODUCT_VERSION: '2.5.0',
USER_AGENT_PRODUCT_VERSION: '2.6.0',

/**
* The number of default concurrent requests for parallel operation.
Expand Down Expand Up @@ -1874,13 +1874,21 @@ var Constants = {
COPY_ID: 'copyid',

/**
* The Snapshot value.
* The snapshot value.
*
* @const
* @type {string}
*/
SNAPSHOT: 'snapshot',

/**
* The share snapshot value.
*
* @const
* @type {string}
*/
SHARE_SNAPSHOT: 'sharesnapshot',

/**
* The previous snapshot value.
*
Expand Down
159 changes: 137 additions & 22 deletions lib/services/file/fileservice.core.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/services/file/fileservice.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var validate = azureCommon.validate;
* @param {string} file The file name. File names may not start or end with the delimiter '/'.
* @param {string} localFileName The local path to the file to be downloaded.
* @param {object} [options] The request options.
* @param {string} [options.shareSnapshotId] The snapshot identifier of the share.
* @param {boolean} [options.skipSizeCheck] Skip the size check to perform direct download.
* Set the option to true for small files.
* Parallel download and speed summary won't work with this option on.
Expand Down
12 changes: 11 additions & 1 deletion lib/services/file/fileutilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,17 @@ var FileUtilities = {
OFF: null,
SHARE: 'share',
FILE: 'file'
}
},

/**
* Deletion options for share snapshots
*
* @const
* @enum {string}
*/
ShareSnapshotDeleteOptions: {
SHARE_AND_SNAPSHOTS: 'include'
},
};

module.exports = FileUtilities;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "azure-storage",
"author": "Microsoft Corporation",
"version": "2.5.0",
"version": "2.6.0",
"description": "Microsoft Azure Storage Client Library for Node.js",
"typings": "typings/azure-storage/azure-storage.d.ts",
"tags": [
Expand Down
Loading

0 comments on commit 752d786

Please sign in to comment.