@azure/storage-file-share 12.10.1-alpha.20220513.2 → 12.10.1-alpha.20220524.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +4 -4
  3. package/CHANGELOG.md +0 -369
package/README.md CHANGED
@@ -489,7 +489,7 @@ A complete example of simple `ShareServiceClient` scenarios is at [samples/v12/t
489
489
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
490
490
 
491
491
  ```javascript
492
- import { setLogLevel } from "@azure/logger";
492
+ const { setLogLevel } = require("@azure/logger");
493
493
 
494
494
  setLogLevel("info");
495
495
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azure/storage-file-share",
3
3
  "sdk-type": "client",
4
- "version": "12.10.1-alpha.20220513.2",
4
+ "version": "12.10.1-alpha.20220524.1",
5
5
  "description": "Microsoft Azure Storage SDK for JavaScript - File",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist-esm/src/index.js",
@@ -49,8 +49,8 @@
49
49
  "integration-test:browser": "karma start --single-run",
50
50
  "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace -t 300000 \"dist-esm/test/*.spec.js\" \"dist-esm/test/node/*.spec.js\"",
51
51
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
52
- "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix",
53
- "lint": "eslint package.json api-extractor.json src test --ext .ts",
52
+ "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix",
53
+ "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js",
54
54
  "pack": "npm pack 2>&1",
55
55
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
56
56
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
@@ -147,7 +147,7 @@
147
147
  "dotenv": "^8.2.0",
148
148
  "downlevel-dts": "^0.8.0",
149
149
  "es6-promise": "^4.2.5",
150
- "eslint": "^7.15.0",
150
+ "eslint": "^8.0.0",
151
151
  "esm": "^3.2.18",
152
152
  "inherits": "^2.0.3",
153
153
  "karma": "^6.2.0",
package/CHANGELOG.md DELETED
@@ -1,369 +0,0 @@
1
- # Release History
2
-
3
- ## 12.10.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
13
- ## 12.10.0 (2022-05-12)
14
-
15
- ### Features Added
16
-
17
- - Includes all features released in 12.10.0-beta.1.
18
-
19
- ### Bugs Fixed
20
-
21
- - Refined user-agent value to avoid failure when os information is not available on some platforms.
22
-
23
- ## 12.10.0-beta.1 (2022-04-19)
24
-
25
- ### Features Added
26
-
27
- - Added support for service version 2021-06-08.
28
- - Added ability to maintain a file's current last write time when calling ShareFileClient.uploadRange() and ShareFileClient.uploadRangeFromURL().
29
- - Added ability to specify a file or directory's change time when calling ShareFileClient.create(), ShareDirectoryClient.create(), ShareFileClient.setProperties(), ShareDirectoryClient.setProperties(), ShareFileClient.resize(), ShareFileClient.rename() and ShareDirectoryClient.rename().
30
- - Added ability to specify content-type on a file when calling ShareFileClient.rename().
31
-
32
- ### Bugs Fixed
33
-
34
- - Add `react-native` mapping to ESM entry point
35
-
36
- ## 12.9.0 (2022-03-11)
37
-
38
- ### Features Added
39
-
40
- - Includes all features released in 12.9.0-beta.1, 12.9.0-beta.2, 12.9.0-beta.3 and 12.9.0-beta.4.
41
-
42
- ## 12.9.0-beta.4 (2022-03-04)
43
-
44
- ### Bugs Fixed
45
-
46
- - Fixed bug where ShareFileClient.startCopyFromURL() was not sending the ignoreReadonly parameter correctly.
47
- - Set correct content length in requests for uploading operations to avoid unexpected failure if customized content length is incorrect.
48
-
49
- ## 12.9.0-beta.3 (2022-02-11)
50
-
51
- ### Features Added
52
-
53
- - Added support for service version 2021-04-10.
54
- - Added support for renaming a file or a directory.
55
-
56
- ## 12.9.0-beta.2 (2021-12-03)
57
-
58
- ### Features Added
59
-
60
- - Added support for service version 2021-02-12.
61
- - Added support for premium file share `provisionedBandwidthMiBps` property.
62
-
63
- ## 12.9.0-beta.1 (2021-11-09)
64
-
65
- ### Features Added
66
-
67
- - Added support for service version 2020-12-06.
68
-
69
- ## 12.8.0 (2021-09-10)
70
-
71
- ### Features Added
72
-
73
- - Includes all features released in 12.8.0-beta.1.
74
-
75
- ## 12.7.0 (2021-08-02)
76
-
77
- - Support for Node.js 8 and IE 11 has been dropped. Please see our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
78
- - Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features
79
- - Updated our internal core package dependencies to their latest versions in order to add support for Opentelemetry 1.0.0 which is compatible with the latest versions of our other client libraries.
80
-
81
- ## 12.8.0-beta.1 (2021-07-28)
82
-
83
- ### Features Added
84
-
85
- - Added support for service version 2020-10-02.
86
- - Added support for including additional information in `ShareDirectoryClient.listFilesAndDirectories()`.
87
- - Added support for OAuth in copying source in `ShareFileClient.uploadRangeFromURL()` when source is a Blob.
88
- - With the dropping of support for Node.js versions that are no longer in LTS, the dependency on `@types/node` has been updated to version 12. Read our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
89
-
90
- ## 12.6.0 (2021-06-09)
91
-
92
- - Updated Azure Storage Service API version to 2020-08-04.
93
- - Fixed bug where ShareFileClient.download, ShareFileClient.downloadToBuffer or ShareFileClient.downloadToFile could corrupt data if source is modified when retrying.
94
-
95
- ## 12.5.0 (2021-03-10)
96
-
97
- - Updated Azure Storage Service API version to 2020-06-12.
98
-
99
- ## 12.4.1 (2021-02-03)
100
-
101
- - Fixed a bug where `generateFileSASQueryParameters()` won't correctly set the resource type if `FileSASSignatureValues.permissions` is not specified. Fixed issue [13223](https://github.com/Azure/azure-sdk-for-js/issues/13223).
102
- - The `"Unclosed root tag"` XML parser error is now retriable. [PR #13076](https://github.com/Azure/azure-sdk-for-js/pull/13076).
103
-
104
- ## 12.4.0 (2021-01-12)
105
-
106
- - This release contains bug fixes to improve quality.
107
-
108
- ## 12.4.0-beta.1 (2020-12-09)
109
-
110
- - Updated Azure Storage Service API version to 2020-04-08.
111
- - Share now supports for NFS. User can specify the `protocols` when creating a Share via `ShareClient.create()`. Also added an `rootSquash` option for NFS shares.
112
- - Added `generateSasUrl` to `ShareClient` and `ShareFileClient` to generate a service-level SAS URI for the client.
113
- - Added `generateAccountSasUrl` to `ShareServiceClient` to generate an account-level SAS URI for the client.
114
- - Won't remove the first space in the `userAgentOptions.userAgentPrefix` passed to the `newPipeline()` now. Fixed bug [7536](https://github.com/Azure/azure-sdk-for-js/issues/7536).
115
-
116
- ## 12.3.0 (2020-11-10)
117
-
118
- - Removed ability to create a ShareLeaseClient for a Share or Share Snapshot. This feature has been rescheduled for future release.
119
- - Replaced `ShareClient.setAccessTier()` with `ShareClient.setProperties()`, which can be used to set both Share Tier and Share Quota.
120
- - Fixed a bug where `ShareDirectoryClient.deleteIfExists()` and `ShareFileClient.deleteIfExists()` would throw an exception if the directory or file's parent directory doesn't exist.
121
-
122
- ## 12.3.0-beta.1 (2020-10-13)
123
-
124
- - Updated Azure Storage Service API version to 2020-02-10.
125
- - Added support for SMB Multichannel.
126
- - Added support for Share and Share Snapshot Leases. Now can initialize a `ShareLeaseClient` with a `ShareClient` to manage leases for a share or share snapshot. Most operations on share now also support lease conditions.
127
- - Added support for Get File Range Diff. Added `ShareFileClient.getRangeListDiff()` for getting the list of ranges that differ between a previous share snapshot and the file.
128
- - Added support for Set Share Tier. Added `ShareClient.setAccessTier()` for setting the access tier of the share.
129
-
130
- ## 12.2.0 (2020-09-08)
131
-
132
- - Added share soft delete support. Added `undeleteShare` to `ShareServiceClient`. `listShares` now can return deleted shares. Note: share soft delete only take effect on accounts with share soft delete feature enabled.
133
- - Bug fix - `credential` parameter of `newPipeline()` function is now optional. If not specified, `AnonymousCredential` is used. Fixes bug [9628](https://github.com/Azure/azure-sdk-for-js/issues/9628).
134
- - Bug fix - Content-Length header is no more ignored. Fixes bugs [8903](https://github.com/Azure/azure-sdk-for-js/issues/8903), [9300](https://github.com/Azure/azure-sdk-for-js/issues/9300) and [10614](https://github.com/Azure/azure-sdk-for-js/issues/10614).
135
-
136
- ## 12.2.0-preview.1 (2020-07-03)
137
-
138
- - Updated Azure Storage Service API version to 2019-12-12.
139
- - Support 4 TB files.
140
- - Added `exists` and `deleteIfExists()` to `ShareClient`, `ShareDirectoryClient`, and `ShareFileClient`.
141
- - Added `createIfNotExists()` to `ShareClient` and `ShareDirectoryClient`.
142
-
143
- ## 12.1.2 (2020-05-20)
144
-
145
- - Fix data corruption failure error [issue #6411](https://github.com/Azure/azure-sdk-for-js/issues/6411) when downloading compressed files. [PR #7993](https://github.com/Azure/azure-sdk-for-js/pull/7993)
146
- - Fix un-handled TypeError [issue #8499](https://github.com/Azure/azure-sdk-for-js/issues/8499) in Electron applications. [PR #8568](https://github.com/Azure/azure-sdk-for-js/pull/8568)
147
- - Updated to use `@opentelemetry/api` 0.6.1 via `@azure/core-tracing`. [PR #7998](https://github.com/Azure/azure-sdk-for-js/pull/7998)
148
- - Updated to use `typescript` 3.8.3. [PR #8659](https://github.com/Azure/azure-sdk-for-js/pull/8659)
149
-
150
- ## 12.1.1 (2020-03-10)
151
-
152
- - Fixed unexpected hang issue when uploading empty body. Fixed bug [6904](https://github.com/Azure/azure-sdk-for-js/issues/6904).
153
-
154
- ## 12.1.0 (2020-02-11)
155
-
156
- - Updated Azure Storage Service API version to 2019-07-07.
157
- - A new type `ShareLeaseClient` is added to manage leases.
158
- - New SMB parameters for file copy.
159
- - Force Close Handles Response now includes the number of handles that failed to close.
160
- - `ShareProperties` now has 4 additional properties for premium file shares.
161
- - Fixed a bug where the package didn't work as expected when bundling web applications. [PR #7298](https://github.com/Azure/azure-sdk-for-js/pull/7298)
162
-
163
- ## 12.0.1 (2020-01-09)
164
-
165
- - Bug fix - Name properties on clients now support more kinds of endpoints(IPv4/v6 hosts, single word domains). [PR #6755](https://github.com/Azure/azure-sdk-for-js/pull/6755)
166
- - Service clients now share a single http client instance by default. [PR #6657](https://github.com/Azure/azure-sdk-for-js/pull/6657)
167
-
168
- Previously, a new http client was created for each service client if none was provided by the user. This could result in TCP port exhaustion under heavy usage with the keepAlive option enabled because each http client has its own persistent TCP connection. This change creates a single http client instance which is shared among all service clients by default.
169
-
170
- ## 12.0.0 (2019-12-04)
171
-
172
- - [Breaking] The default browser bundle has been removed from the npm package. Bundling your application with a bundler such as Webpack is the recommended approach to building a browser bundle. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
173
- - [Breaking] The `expiryTime` and `startTime` members of the `AccountSASSignatureValues` and `FileSASSignatureValues` types, as well as the `expiry` and `start` members of the `accessPolicy` field of the `SignedIdentifier` type, have all been renamed to `expiresOn` and `startsOn` respectively for consistency with `@azure/storage-blob` and `@azure/storage-queue`.
174
- - [Breaking] `forceCloseAllHandles` will return `CloseHandlesInfo` type instead of number.
175
- - [Breaking] `forceCloseHandle` will return `closedHandlesCount` property instead of `numberOfHandlesClosed` to be compatible with `CloseHandlesInfo`.
176
- - Updated to use OpenTelemetry 0.2 via `@azure/core-tracing`
177
- - Bug Fix - Convert empty prefixes (`""`) to `undefined` when passed as options to the `listFiles` or `listShares` methods to avoid sending an invalid request to the service. Fixes bug [5817](https://github.com/Azure/azure-sdk-for-js/issues/5817).
178
- - The `ShareFileClient.downloadToBuffer()` helper method has a new overload where it is not required to pass a `Buffer`. The attributes `offset` and `count` are optional, and it downloads the entire file if they are not provided.
179
- - [Breaking] `shareName` on `ShareClient` has been renamed to `name`. [PR 6135](https://github.com/Azure/azure-sdk-for-js/pull/6135)
180
- - `ShareFileClient` and `ShareDirectoryClient` now have a `name` property that returns the file or directory name respectively. [PR 6135](https://github.com/Azure/azure-sdk-for-js/pull/6135)
181
- - [Breaking] In browsers, `blobBody` on `FileDownloadResponse` has been renamed to `contentAsBlob` in order to avoid naming confusion between browser `Blob` objects and `Blob`s from `@azure/storage-blob`. [PR 6183](https://github.com/Azure/azure-sdk-for-js/pull/6183)
182
- - [Breaking] Removed `uploadBrowserData` from `ShareFileClient` in favor of a unified method `uploadData` that accepts both browser `Blob` objects as well as Node.js `Buffer` objects.
183
- - Added a warning to the documentation of `downloadToBuffer` that explains the limitations of Node.js `Buffer` sizes to around 2GB on 64-bit architectures and 1GB on 32-bit architectures.
184
- - Documented the behavior of `getProperties` methods with respect to metadata keys and their casing inconsistency when compared to the metadata keys returned through corresponding "list" methods with the `includeMetadata` option.
185
-
186
- ## 12.0.0-preview.6 (2019-10-30)
187
-
188
- - [Breaking] `@azure/storage-file` package is renamed to `@azure/storage-file-share` to better align with the upcoming new package for Azure Storage Files DataLake. As a consequence,
189
- - `FileServiceClient` becomes `ShareServiceClient`
190
- - `DirectoryClient` becomes `ShareDirectoryClient`
191
- - `FileClient` becomes `ShareFileClient`
192
- - Bug Fix - Previous versions of `@azure/storage-file` library failed for the react-apps because of the usage of `fs.stat` method which is not available in browsers. The issue is fixed in this new release.
193
- - [Breaking] The custom browser and retry policies that are specific to the Storage libraries have been
194
- renamed to have the `Storage` prefix. [PR 5862](https://github.com/Azure/azure-sdk-for-js/pull/5862).
195
- Below are the entities that now have the Storage prefix
196
- - BrowserPolicy
197
- - BrowserPolicyFactory
198
- - RetryPolicy
199
- - RetryPolicyType
200
- - RetryOptions
201
- - RetryPolicyFactory
202
- - [Breaking] The properties in the StoragePipelineOptions interface have been updated as below:
203
- - The `proxy` property of type `ProxySettings | string` has been renamed to `proxyOptions` and
204
- will be of type `ProxyOptions`. If you have been passing url directly, split the value into `host`
205
- and `port` then pass it as a json object.
206
- - The `telemetry` property of type `TelemetryOptions` has been renamed to `userAgentOptions` of
207
- type `UserAgentOptions`. - The `logger` is no longer a property available to configure. To enable logging, please see the
208
- [Troubleshooting](https://github.com/Azure/azure-sdk-for-js/blob/0ddc2f3c3d4658b20d96910acc37a77e5209e5e3/sdk/storage/storage-queue/README.md#troubleshooting) section of our readme.
209
- - [Breaking] The `UniqueRequestIdPolicy` and `KeepAlivePolicy` are no longer exported from this library. The
210
- corresponding policies from the `@azure/core-http` library are meant to be used instead.
211
- - Bug Fix - Previous versions of `@azure/storage-file` library failed for the react-apps because of the usage of `fs.stat` method which is not available in browsers. The issue is fixed in this new release.
212
-
213
- ## 12.0.0-preview.5 (2019-10-22)
214
-
215
- - [Breaking] `IPRange` is renamed to `SasIPRange`. [PR #5551](https://github.com/Azure/azure-sdk-for-js/pull/5551)
216
- - Created new interface `CommonOptions`. This interface is for standard options that apply to all methods that invoke remote operations. This interface currently contains options that enable client-side tracing of the SDK. [PR #5550](https://github.com/Azure/azure-sdk-for-js/pull/5550)
217
- - `offset` parameter is optional in `downloadToBuffer` method of `FileClient`. [PR #5592](https://github.com/Azure/azure-sdk-for-js/pull/5592)
218
- - Async iterator with pagination support is added to list Handles - `listHandles` [PR #5536](https://github.com/Azure/azure-sdk-for-js/pull/5536)
219
- - [Breaking] `Models` is no longer exported in public API surface. Instead generated model types required by the public API are explicitly re-exported. [PR #5532](https://github.com/Azure/azure-sdk-for-js/pull/5532)
220
- - [Breaking] Cancelling an operation now throws a standardized error with the name `AbortError`. [PR #5633](https://github.com/Azure/azure-sdk-for-js/pull/5663)
221
- - [Breaking] `filePath` is on `FileClient` is renamed to `path`. `dirPath` is added to `DirectoryClient` is renamed to `path`. [PR #5613](https://github.com/Azure/azure-sdk-for-js/pull/5613)
222
- - [Breaking] `body` field from `RestError` Object in core-http Library is removed, the `response` property on the error will now have the `parsedBody` & `headers` along with raw body & headers that are already present. PRs [#5670](https://github.com/Azure/azure-sdk-for-js/pull/5670), [#5437](https://github.com/Azure/azure-sdk-for-js/pull/5437)
223
- - Errors from the storage service can be seen in an extra field `details` with the expected error code. [#5688](https://github.com/Azure/azure-sdk-for-js/pull/5688)
224
- - [Breaking] `progress` callback in the option bags of all the helper methods is renamed to `onProgress`. [PR #5676](https://github.com/Azure/azure-sdk-for-js/pull/5676)
225
- - [Breaking] Type of the `permissions` attribute in the options bag `FileSASSignatureValues` to be passed into `generateFileSASQueryParameters` is changed to `FileSASPermissions` from type `string`. [PR #5626](https://github.com/Azure/azure-sdk-for-js/pull/5626)
226
- - Similarly, `AccountSASPermissions` for `generateAccountSASQueryParameters` instead of type `string`.
227
- - Example - permissions attribute in `generateFileSASQueryParameters`
228
- - `permissions: FileSASPermissions.parse("racwd").toString()` changes to `FileSASPermissions.parse("racwd")`
229
- - [Breaking] `sourceModifiedAccessConditions` attribute in `FileUploadRangeFromURLOptions` is renamed to `sourceConditions`. [PR #5682](https://github.com/Azure/azure-sdk-for-js/pull/5682)
230
- - Renames for following Options interfaces. [PR #5650](https://github.com/Azure/azure-sdk-for-js/pull/5650)
231
- - `UploadStreamToAzureFileOptions` -> `FileUploadStreamOptions`,
232
- - `UploadToAzureFileOptions` -> `FileParallelUploadOptions`,
233
- - `DownloadFromAzureFileOptions` -> `FileDownloadToBufferOptions`
234
- - [Breaking] Appropriate attribute renames in all the interfaces [PR #5610](https://github.com/Azure/azure-sdk-for-js/pull/5610)
235
- - Example - `nextMarker` -> `continuationToken`, `HTTPClient` -> `HttpClient`, `permission` -> `permissions`, `parallelism` -> `concurrency`
236
- - [Breaking] `forceCloseHandlesSegment` is not exposed from the library in favour of the new method `forceCloseAllHandles` on `FileClient` and `DirectoryClient`. [PR #5620](https://github.com/Azure/azure-sdk-for-js/pull/5620)
237
- - [Breaking] IE11 needs `Object.assign` polyfill loaded. [PR #5727](https://github.com/Azure/azure-sdk-for-js/pull/5727)
238
-
239
- ## 12.0.0-preview.4 (2019-10-09)
240
-
241
- - Library tries to load the proxy settings from the environment variables like HTTP_PROXY if the proxy settings are not provided when clients like `FileServiceClient` or `FileClient` are instantiated.
242
- - Added name properties on all the clients for convenience.
243
- - `accountName` is added for `DirectoryClient`, `FileClient`, `FileServiceClient` and `ShareClient`.
244
- - `shareName` is added to `DirectoryClient`, `FileClient` and `ShareClient`.
245
- - `filePath` is added to `FileClient`.
246
- - `dirPath` is added to `DirectoryClient`.
247
- - [Breaking] `Models.StorageServiceProperties` is renamed into `Models.FileServiceProperties`.
248
- - [Breaking] Replace string array with boolean flags to specify dataset to include when listing shares.
249
- Before this change the option is specified as
250
- ```js
251
- fileServiceClient.listShares({
252
- include: ["metadata", "snapshots"],
253
- });
254
- ```
255
- After this change:
256
- ```js
257
- fileServiceClient.listShares({
258
- includeMetadata: true,
259
- includeSnapshots: true,
260
- });
261
- ```
262
-
263
- ## 10.3.0 (2019-09-01)
264
-
265
- - Updated Azure Storage Service API version to 2019-02-02.
266
- - Added a new API `ShareURL.createPermission()` which allows for the creation of a security descriptor at the Azure File share level. This descriptor can be used for files and directories in the share.
267
- - Added a new API `ShareURL.getPermission()` which allows for the retrieval of the security descriptor set on a share.
268
- - Added APIs `DirectoryURL.setProperties()` and `FileURL.setProperties()`, and updated APIs `DirectoryURL.create()` and `FileURL.create()` for setting file permission, attributes, creation time, and last write time.
269
- - Added a new API `FileURL.uploadRangeFromURL()` which allows range in a file to be written using a range of another file as a source. This permits synchronous server-side copies to be orchestrated for files of any size.
270
-
271
- ## 12.0.0-preview.3 (2019-08-01)
272
-
273
- - Updated Azure Storage Service API version to 2019-02-02.
274
- - Added a new API `ShareClient.createPermission()` which allows for the creation of a security descriptor at the Azure File share level. This descriptor can be used for files and directories in the share.
275
- - Added a new API `ShareClient.getPermission()` which allows for the retrieval of the security descriptor set on a share.
276
- - Added APIs `DirectoryClient.setProperties()` and `FileClient.setProperties()`, and updated APIs `DirectoryClient.create()` and `FileClient.create()` for setting file permission, attributes, creation time, and last write time.
277
- - Added a new API `FileClient.uploadRangeFromURL()` which allows range in a file to be written using a range of another file as a source. This permits synchronous server-side copies to be orchestrated for files of any size.
278
- - Fixed a bug of `FileClient.downloadToBuffer()` when provided offset is not 0.
279
- - Fixed a bug that `Aborter` cannot work during retry interval.
280
- - Fixed a bug that `Aborter` throws timeout error even though it succeeds of `FileClient.download()`.
281
- - Fixed a bug that "err.code.toUpperCase is not a function" when retries in browser.
282
- - `Aborter` doesn't require `dom` as tsconfig lib requirement anymore for `Event` type.
283
- - Export `RetryPolicyType`.
284
- - Updated HTTP client from axios to node-fetch in Node.js runtime.
285
- - A new option `keepAliveOptions` added to parameter of `newPipeline()` which controls keep-alive configurations. Keep-alive is enabled by default.
286
- - The `ShareClient.getStatistics()` now returns the approximate size in bytes with `shareUsageBytes`.
287
- - Added `DirectoryClient.listHandlesSegment()` and `FileClient.listHandlesSegment()` to returns a list of open handles on a directory or a file.
288
- - Added `DirectoryClient.forceCloseHandlesSegment()`, `FileClient.forceCloseHandlesSegment()`, `DirectoryClient.forceCloseHandle()` and `FileClient.forceCloseHandle()` to close handles.
289
- - Pass through `options.abortSignal` to the optional `abortSignal` attribute in option bags instead of using `AbortSignal.none` as the default value when `options.abortSignal` is not specified.
290
- - Basic HTTP proxy authentication support is added. Proxy settings can be passed in the options while creating a new client. Example - [proxyAuth.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples-dev/proxyAuth.ts)
291
- - Connection strings for explicit storage endpoints are supported. - [Configure Azure Storage connection strings](https://docs.microsoft.com/azure/storage/common/storage-configure-connection-string#create-a-connection-string-for-an-explicit-storage-endpoint)
292
-
293
- ## 12.0.0-preview.2 (2019-08-01)
294
-
295
- - [Breaking] Aborter class is no longer exposed from the package. Use the package [@azure/abort-controller](https://www.npmjs.com/package/@azure/abort-controller) to pass an abort signal to any of the async operations.
296
- `AbortController.timeout(<milliseconds>)` can be utitlized as an abort signal.
297
- - Storage service allows SAS connection string with SAS string and endpoints along with the Account connection string(account name, key and endpoint).
298
- In this preview, SAS connection string support is added to the existing connection string client constructors and static methods.
299
- - Account connection string example - `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
300
- - SAS connection string example - `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
301
- - SAS connection string is supported in both NodeJS and browser runtimes unlike the Account Connection String which is supported only in the NodeJS runtime.
302
-
303
- ## 12.0.0-preview.1 (2019-07-01)
304
-
305
- - [Breaking] Client types are renamed from *URL to *Client.
306
- - ServiceURL, ShareURL, DirectoryURL and FileURL to FileServiceClient, ShareClient, DirectoryClient and FileClient respectively.
307
- - [Breaking] Aborter parameters are now moved into option bags.
308
- - `abortSignal` attrubute(optional) in the option-bag of respective module has to be utitlized for the `Aborter.timeout(<milliseconds>)` functionality.
309
- - `Aborter.none` is the default value.
310
- - [Breaking] I- prefixes are removed from interface names.
311
- - Example- `IDirectoryCreateOptions` is updated to `DirectoryCreateOptions`, the new names must to be used.
312
- - [Breaking] The static methods to create client types are removed. The functionality is moved into new instance methods added to the parent clients.
313
- - [Breaking] The telemetry strings have been updated.
314
- - `Azure-Storage/${SDK_VERSION}` is updated to `azsdk-js-storageblob/${SDK_VERSION}`.
315
- - [Breaking] `withPipeline()` method is removed.
316
- - Async iterators with pagination support are added for listing methods
317
- - `listFilesAndDirectories()` and `listShares()`
318
- - Please refer to the samples for async iterators in the `samples` folder.
319
- - [Breaking] Methods that list segments(`listFilesAndDirectoriesSegment()` and `listSharesSegment()`) are no longer exposed in public api.
320
- - [Breaking] High level convenience functions are moved into clients as their instance member function.
321
- - `uploadFileToAzureFile()`, `uploadStreamToAzureFile()`, `downloadAzureFileToBuffer()` and `uploadBrowserDataToAzureFile()` -> `FileClient.uploadFile()`,
322
- `FileClient.uploadStream()`, `FileClient.downloadToBuffer()` and `FileClient.uploadBrowserData()` respectively.
323
- - [Breaking] `StorageClient` is no longer exposed. `StorageClient.newPipeline()` static method is moved to the top level exported function `newPipeline()`.
324
- - Updated dependency `@azure/ms-rest-js` to `@azure/core-http`.
325
- - Constructor overloads added into client types so they can be constructed from a url and a pipeline/credential and connection string.
326
- - Constructors with overloads - `FileServiceClient` and `ShareClient`
327
- - Connection string method is supported only in Node.js (not browsers).
328
- - Creation/Deletion of child resources are duplicated to parent client type.
329
- - HTTP proxy support is added (Node.js only).
330
-
331
- - Please refer to the `proxyAuth.ts` sample in the `samples/v12/typescript` folder.
332
-
333
- - Request and response headers are now logged at INFO level, with sensitive data redacted.
334
- - `downloadToFile()` is added to `FileClient`.
335
-
336
- For release notes and more information please visit https://aka.ms/azsdk/releases/july2019preview
337
-
338
- ## 10.2.0 (2019-06-01)
339
-
340
- - Fixed a bug of `downloadBlobToBuffer()` and `downloadAzureFileToBuffer()` when provided offset is not 0.
341
- - Fixed a bug that `Aborter` cannot work during retry interval.
342
- - Fixed a bug that `Aborter` throws timeout error even though it succeeds of `FileURL.download()`.
343
- - Fixed a bug that "err.code.toUpperCase is not a function" when retries in browser.
344
- - `Aborter` doesn't require `dom` as tsconfig lib requirement anymore for `Event` type.
345
- - Export `RetryPolicyType`.
346
- - Updated HTTP client from axios to node-fetch in Node.js runtime.
347
- - A new option `keepAliveOptions` added to parameter of `StorageURL.newPipeline()` which controls keep-alive configurations. Keep-alive is enabled by default.
348
- - Updated Azure Storage Service API version to [2018-11-09](https://docs.microsoft.com/rest/api/storageservices/version-2018-11-09).
349
- - The `ShareURL.getStatistics()` now returns the approximate size in bytes with `shareUsageBytes`.
350
- - Added `DirectoryURL.listHandlesSegment()` and `FileURL.listHandlesSegment()` to returns a list of open handles on a directory or a file.
351
- - Added `DirectoryURL.forceCloseHandlesSegment()`, `FileURL.forceCloseHandlesSegment()`, `DirectoryURL.forceCloseHandle()` and `FileURL.forceCloseHandle()` to close handles.
352
- - Updated Azure Storage Service API version to [2018-11-09](https://docs.microsoft.com/rest/api/storageservices/version-2018-11-09).
353
-
354
- ## 10.1.0 (2019-01-01)
355
-
356
- - [Breaking] Updated convenience layer methods enum type parameters into typescript union types, this will help reducing bundle footprint.
357
- - [Breaking] Updated URL encoding strategy for `url` parameters of `new XXXURL(url, pipeline)` methods, such as `new FileURL(url, pipeline)`.
358
- - URL will accept both encoded or non-encoded URL string. It will escape non-escaped special characters, like Chinese characters. However, if directory/file name includes `%`, `url` must be encoded manually.
359
- - [Breaking] `SASQueryParameters` is not going to be exported in browser bundle, and will be exported in Node.js runtime.
360
- - [Breaking] IE11 needs `Array.prototype.includes` and `Object.keys` polyfills loaded.
361
- - Updated dependency `ms-rest-js` to `@azure/ms-rest-js`.
362
- - Fixed `Aborter.timeout()` misleading scale description.
363
- - Removed default 60s server timeout value for retry options `tryTimeoutInMs` to avoid large blob download stream unexpected ending.
364
- - Fixed an issue that when body is string with special characters, `FileURL.uploadRange` will fail to upload.
365
- - Exported `HttpRequestBody` type for who wants to implement a customized HTTP client.
366
-
367
- ## 10.0.0-preview (2018-12-01)
368
-
369
- - Initial Release. API version 2018-03-28 supported. Please see the README for information on the new design.