@azure/storage-file-share 12.9.1-alpha.20220418.2 → 12.10.0-alpha.20220509.3

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
@@ -1,6 +1,6 @@
1
1
  # Release History
2
2
 
3
- ## 12.9.1 (Unreleased)
3
+ ## 12.10.0-beta.2 (Unreleased)
4
4
 
5
5
  ### Features Added
6
6
 
@@ -8,10 +8,23 @@
8
8
 
9
9
  ### Bugs Fixed
10
10
 
11
- - Add `react-native` mapping to ESM entry point
11
+ - Refined user-agent value to avoid failure when os information is not available on some platforms.
12
12
 
13
13
  ### Other Changes
14
14
 
15
+ ## 12.10.0-beta.1 (2022-04-19)
16
+
17
+ ### Features Added
18
+
19
+ - Added support for service version 2021-06-08.
20
+ - Added ability to maintain a file's current last write time when calling ShareFileClient.uploadRange() and ShareFileClient.uploadRangeFromURL().
21
+ - 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().
22
+ - Added ability to specify content-type on a file when calling ShareFileClient.rename().
23
+
24
+ ### Bugs Fixed
25
+
26
+ - Add `react-native` mapping to ESM entry point
27
+
15
28
  ## 12.9.0 (2022-03-11)
16
29
 
17
30
  ### Features Added
package/dist/index.js CHANGED
@@ -334,7 +334,7 @@ function ipRangeToString(ipRange) {
334
334
 
335
335
  // Copyright (c) Microsoft Corporation.
336
336
  // Licensed under the MIT license.
337
- const SDK_VERSION = "12.10.0-beta.1";
337
+ const SDK_VERSION = "12.10.0-beta.2";
338
338
  const SERVICE_VERSION = "2021-06-08";
339
339
  const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
340
340
  const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
@@ -10006,7 +10006,10 @@ class TelemetryPolicyFactory {
10006
10006
  userAgentInfo.push(libInfo);
10007
10007
  }
10008
10008
  // e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
10009
- const runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
10009
+ let runtimeInfo = `(NODE-VERSION ${process.version})`;
10010
+ if (os__namespace) {
10011
+ runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
10012
+ }
10010
10013
  if (userAgentInfo.indexOf(runtimeInfo) === -1) {
10011
10014
  userAgentInfo.push(runtimeInfo);
10012
10015
  }
@@ -10390,7 +10393,7 @@ function convertTracingToRequestOptionsBase(options) {
10390
10393
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10391
10394
  */
10392
10395
  const packageName = "azure-storage-file-share";
10393
- const packageVersion = "12.9.1";
10396
+ const packageVersion = "12.10.0-beta.2";
10394
10397
  class StorageClientContext extends coreHttp__namespace.ServiceClient {
10395
10398
  /**
10396
10399
  * Initializes a new instance of the StorageClientContext class.