@azure/storage-blob 12.9.0-alpha.20220105.6 → 12.9.0-alpha.20220128.2
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 +7 -5
- package/README.md +11 -10
- package/dist/index.js +260 -218
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js +3 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +12 -4
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js +3 -1
- package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
- package/package.json +33 -38
- package/{typings → types}/3.1/storage-blob.d.ts +24 -0
- /package/{typings → types}/latest/storage-blob.d.ts +0 -0
package/CHANGELOG.md
CHANGED
@@ -8,6 +8,8 @@
|
|
8
8
|
|
9
9
|
### Bugs Fixed
|
10
10
|
|
11
|
+
- Fixed a bug where customized `ProxyOptions` is overwrited by a default one when initializing `BlobServiceClient`, `BlobClient`, `AppendBlobClient`, `BlockBlobClient`, `PageBlobClient` or `ContainerClient` with connection string.
|
12
|
+
|
11
13
|
### Other Changes
|
12
14
|
|
13
15
|
## 12.9.0-beta.2 (2021-12-03)
|
@@ -266,20 +268,20 @@
|
|
266
268
|
Before this change the option is specified as
|
267
269
|
```js
|
268
270
|
blobServiceClient.listContainers({
|
269
|
-
include: "metadata"
|
271
|
+
include: "metadata",
|
270
272
|
});
|
271
273
|
```
|
272
274
|
After this change:
|
273
275
|
```js
|
274
276
|
blobServiceClient.listContainers({
|
275
|
-
includeMetadata: true
|
277
|
+
includeMetadata: true,
|
276
278
|
});
|
277
279
|
```
|
278
280
|
- For listing blobs
|
279
281
|
Before this change the option is specified as
|
280
282
|
```js
|
281
283
|
containerClient.listBlobsFlat({
|
282
|
-
include: ["snapshots", "metadata", "uncommittedblobs", "copy", "deleted"]
|
284
|
+
include: ["snapshots", "metadata", "uncommittedblobs", "copy", "deleted"],
|
283
285
|
});
|
284
286
|
```
|
285
287
|
After this change:
|
@@ -289,7 +291,7 @@
|
|
289
291
|
includeDeleted: true,
|
290
292
|
includeMetadata: true,
|
291
293
|
includeSnapshots: true,
|
292
|
-
includeUncommitedBlobs: true
|
294
|
+
includeUncommitedBlobs: true,
|
293
295
|
});
|
294
296
|
```
|
295
297
|
- [Breaking] `BlobClient.setTier()` is renamed to `BlobClient.setAccessTier()`.
|
@@ -414,7 +416,7 @@
|
|
414
416
|
- Connection string method is supported only in Node.js (not browsers).
|
415
417
|
- Creation/Deletion of child resources are duplicated to parent client type.
|
416
418
|
- HTTP proxy support is added (Node.js only).
|
417
|
-
- Please refer to the `proxyAuth.ts` sample in the `samples/typescript` folder.
|
419
|
+
- Please refer to the `proxyAuth.ts` sample in the `samples/v12/typescript` folder.
|
418
420
|
- Request and response headers are now logged at INFO level, with sensitive data redacted.
|
419
421
|
- `downloadToFile()` is added to `BlobClient`.
|
420
422
|
- Exported `HttpRequestBody` type to allow implementation of a customized HTTP client.
|
package/README.md
CHANGED
@@ -13,9 +13,10 @@ Use the client libraries in this package to:
|
|
13
13
|
- Create/Read/List/Update/Delete Append Blobs
|
14
14
|
|
15
15
|
Key links
|
16
|
-
|
17
|
-
- [
|
18
|
-
- [
|
16
|
+
|
17
|
+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob)
|
18
|
+
- [Package (npm)](https://www.npmjs.com/package/@azure/storage-blob/)
|
19
|
+
- [API Reference Documentation](https://docs.microsoft.com/javascript/api/@azure/storage-blob)
|
19
20
|
- [Product documentation](https://docs.microsoft.com/azure/storage/blobs/storage-blobs-overview)
|
20
21
|
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples)
|
21
22
|
- [Azure Storage Blob REST APIs](https://docs.microsoft.com/rest/api/storageservices/blob-service-rest-api)
|
@@ -31,7 +32,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
|
|
31
32
|
|
32
33
|
### Prerequisites
|
33
34
|
|
34
|
-
- An [Azure subscription](https://azure.microsoft.com/free/)
|
35
|
+
- An [Azure subscription](https://azure.microsoft.com/free/)
|
35
36
|
- A [Storage Account](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
|
36
37
|
|
37
38
|
### Install the package
|
@@ -192,7 +193,7 @@ const blobServiceClient = new BlobServiceClient(
|
|
192
193
|
);
|
193
194
|
```
|
194
195
|
|
195
|
-
See the [Azure AD Auth sample](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/javascript/azureAdAuth.js) for a complete example using this method.
|
196
|
+
See the [Azure AD Auth sample](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/v12/javascript/azureAdAuth.js) for a complete example using this method.
|
196
197
|
|
197
198
|
[Note - Above steps are only for Node.js]
|
198
199
|
|
@@ -352,7 +353,7 @@ async function main() {
|
|
352
353
|
main();
|
353
354
|
```
|
354
355
|
|
355
|
-
For a complete sample on iterating containers please see [samples/src/
|
356
|
+
For a complete sample on iterating containers please see [samples/v12/typescript/src/listContainers.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/v12/typescript/src/listContainers.ts).
|
356
357
|
|
357
358
|
### Create a blob by uploading data
|
358
359
|
|
@@ -414,7 +415,7 @@ async function main() {
|
|
414
415
|
main();
|
415
416
|
```
|
416
417
|
|
417
|
-
For a complete sample on iterating blobs please see [samples/src/
|
418
|
+
For a complete sample on iterating blobs please see [samples/v12/typescript/src/listBlobsFlat.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/v12/typescript/src/listBlobsFlat.ts).
|
418
419
|
|
419
420
|
### Download a blob and convert it to a string (Node.js)
|
420
421
|
|
@@ -503,7 +504,7 @@ async function main() {
|
|
503
504
|
main();
|
504
505
|
```
|
505
506
|
|
506
|
-
A complete example of
|
507
|
+
A complete example of simple scenarios is at [samples/v12/typescript/src/sharedKeyAuth.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/v12/typescript/src/sharedKeyAuth.ts).
|
507
508
|
|
508
509
|
## Troubleshooting
|
509
510
|
|
@@ -519,8 +520,8 @@ setLogLevel("info");
|
|
519
520
|
|
520
521
|
More code samples:
|
521
522
|
|
522
|
-
- [Blob Storage Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples/javascript)
|
523
|
-
- [Blob Storage Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples/typescript)
|
523
|
+
- [Blob Storage Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples/v12/javascript)
|
524
|
+
- [Blob Storage Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples/v12/typescript)
|
524
525
|
- [Blob Storage Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/test/)
|
525
526
|
|
526
527
|
## Contributing
|