@azure/storage-blob
Advanced tools
Comparing version 12.2.0-dev.20200514.2 to 12.2.0-preview.1
# Release History | ||
## 12.1.2 (Unreleased) | ||
## 12.2.0-preview.1 (2020.07) | ||
- Updated Azure Storage Service API version to 2019-12-12. | ||
- Supported quick query. Added a new API `BlockBlobClient.query()`. | ||
- Supported blob versioning. | ||
- Supported blob tags. | ||
- Increased the maximum block size for Block Blob from 100MiB to 4000MiB(~4GB). And thereby supporting ~200TB maximum size for Block Blob. | ||
- Added convenience method `createIfNotExists` for `ContainerClient`, `AppendBlobClient` and `PageBlobClient`. | ||
- Added convenience method `deleteIfExists` for `ContainerClient` and `BlobClients`. | ||
## 12.1.2 (2020.05) | ||
- 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) | ||
- 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) | ||
- Updated to use `@opentelemetry/api` 0.6.1 via `@azure/core-tracing`. [PR #7998](https://github.com/Azure/azure-sdk-for-js/pull/7998) | ||
- Updated to use `typescript` 3.8.3. [PR #8659](https://github.com/Azure/azure-sdk-for-js/pull/8659) | ||
## 12.1.1 (2020.03) | ||
@@ -250,3 +264,3 @@ | ||
For release notes and more information please visit https://aka.ms/azure-sdk-preview1-js | ||
For release notes and more information please visit https://aka.ms/azsdk/releases/july2019preview | ||
@@ -253,0 +267,0 @@ ## 10.5.0 (2019.09) |
{ | ||
"name": "@azure/storage-blob", | ||
"sdk-type": "client", | ||
"version": "12.2.0-dev.20200514.2", | ||
"version": "12.2.0-preview.1", | ||
"description": "Microsoft Azure Storage SDK for JavaScript - Blob", | ||
"main": "./dist/index.js", | ||
"module": "./dist-esm/src/index.js", | ||
"module": "./dist-esm/storage-blob/src/index.js", | ||
"browser": { | ||
"./dist-esm/src/index.js": "./dist-esm/src/index.browser.js", | ||
"./dist-esm/src/credentials/StorageSharedKeyCredential.js": "./dist-esm/src/credentials/StorageSharedKeyCredential.browser.js", | ||
"./dist-esm/src/utils/utils.node.js": "./dist-esm/src/utils/utils.browser.js", | ||
"./dist-esm/test/utils/index.js": "./dist-esm/test/utils/index.browser.js", | ||
"./dist-esm/src/BatchUtils.js": "./dist-esm/src/BatchUtils.browser.js", | ||
"./dist-esm/src/BlobDownloadResponse.js": "./dist-esm/src/BlobDownloadResponse.browser.js", | ||
"./dist-esm/storage-blob/src/index.js": "./dist-esm/storage-blob/src/index.browser.js", | ||
"./dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js": "./dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.browser.js", | ||
"./dist-esm/storage-blob/src/utils/utils.node.js": "./dist-esm/storage-blob/src/utils/utils.browser.js", | ||
"./dist-esm/storage-blob/test/utils/index.js": "./dist-esm/storage-blob/test/utils/index.browser.js", | ||
"./dist-esm/storage-blob/src/BatchUtils.js": "./dist-esm/storage-blob/src/BatchUtils.browser.js", | ||
"./dist-esm/storage-blob/src/BlobDownloadResponse.js": "./dist-esm/storage-blob/src/BlobDownloadResponse.browser.js", | ||
"./dist-esm/storage-blob/src/BlobQueryResponse.js": "./dist-esm/storage-blob/src/BlobQueryResponse.browser.js", | ||
"fs": false, | ||
@@ -32,3 +33,3 @@ "os": false, | ||
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", | ||
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.2.0 --use=@microsoft.azure/autorest.typescript@5.0.1", | ||
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.2.0-preview.1 --use=@microsoft.azure/autorest.typescript@5.0.1", | ||
"build:es6": "tsc -p tsconfig.json", | ||
@@ -41,3 +42,3 @@ "build:nodebrowser": "rollup -c 2>&1", | ||
"build": "npm run build:es6 && npm run build:nodebrowser && api-extractor run --local && npm run build:types", | ||
"check-format": "prettier --list-different --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", | ||
"check-format": "prettier --list-different --config ../../.prettierrc.json --ignore-path ../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", | ||
"clean": "rimraf dist dist-esm dist-test typings temp dist-browser/*.js* dist-browser/*.zip statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml", | ||
@@ -47,7 +48,7 @@ "clean:samples": "rimraf samples/javascript/node_modules samples/typescript/node_modules samples/typescript/dist samples/typescript/package-lock.json samples/javascript/package-lock.json", | ||
"execute:js-samples": "node ../../../common/scripts/run-samples.js samples/javascript/", | ||
"execute:ts-samples": "node ../../../common/scripts/run-samples.js samples/typescript/dist/samples/typescript/src/", | ||
"execute:ts-samples": "node ../../../common/scripts/run-samples.js samples/typescript/dist/storage-blob/samples/typescript/src/", | ||
"execute:samples": "npm run build:samples && npm run execute:js-samples && npm run execute:ts-samples", | ||
"format": "prettier --write --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", | ||
"format": "prettier --write --config ../../.prettierrc.json --ignore-path ../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", | ||
"integration-test:browser": "karma start --single-run", | ||
"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", | ||
"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/storage-blob/test/*.spec.js dist-esm/storage-blob/test/node/*.spec.js", | ||
"integration-test": "npm run integration-test:node && npm run integration-test:browser", | ||
@@ -69,3 +70,4 @@ "lint:fix": "eslint -c ../../.eslintrc.old.json src test samples --ext .ts --fix", | ||
"dist/", | ||
"dist-esm/src/", | ||
"dist-esm/storage-blob/src/", | ||
"dist-esm/storage-internal-avro/src/", | ||
"typings/latest/storage-blob.d.ts", | ||
@@ -109,11 +111,11 @@ "typings/3.1/storage-blob.d.ts", | ||
"@azure/core-paging": "^1.1.1", | ||
"@azure/core-tracing": "^1.0.0-dev", | ||
"@azure/core-tracing": "1.0.0-preview.8", | ||
"@azure/logger": "^1.0.0", | ||
"@opentelemetry/api": "^0.6.1", | ||
"events": "^3.0.0", | ||
"tslib": "^1.10.0" | ||
"tslib": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@azure/identity": "^1.1.0-dev", | ||
"@azure/test-utils-recorder": "^1.0.0-dev", | ||
"@azure/identity": "^1.1.0-preview", | ||
"@azure/test-utils-recorder": "^1.0.0", | ||
"@microsoft/api-extractor": "7.7.11", | ||
@@ -127,3 +129,3 @@ "@rollup/plugin-multi-entry": "^3.0.0", | ||
"assert": "^1.4.1", | ||
"cross-env": "^6.0.3", | ||
"cross-env": "^7.0.2", | ||
"dotenv": "^8.2.0", | ||
@@ -156,16 +158,16 @@ "downlevel-dts": "~0.4.0", | ||
"prettier": "^1.16.4", | ||
"puppeteer": "^2.0.0", | ||
"puppeteer": "^3.3.0", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.16.3", | ||
"@rollup/plugin-commonjs": "^11.0.1", | ||
"@rollup/plugin-node-resolve": "^7.0.0", | ||
"@rollup/plugin-commonjs": "11.0.2", | ||
"@rollup/plugin-node-resolve": "^8.0.0", | ||
"rollup-plugin-shim": "^1.0.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-terser": "^5.1.1", | ||
"rollup-plugin-visualizer": "^3.1.1", | ||
"rollup-plugin-visualizer": "^4.0.4", | ||
"source-map-support": "^0.5.9", | ||
"ts-node": "^8.3.0", | ||
"typescript": "~3.8.3", | ||
"typescript": "~3.9.3", | ||
"util": "^0.12.1" | ||
} | ||
} |
@@ -7,3 +7,3 @@ # Azure Storage Blob client library for JavaScript | ||
Use the client libararies in this package to: | ||
Use the client libraries in this package to: | ||
- Get/Set Blob Service Properties | ||
@@ -63,3 +63,3 @@ - Create/List/Delete Containers | ||
- `Object.assign` | ||
- `Object.keys` (Override IE11's `Object.keys` with ES6 polyfill forcely to enable [ES6 behavior](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/keys#Notes)) | ||
- `Object.keys` (Overrides the IE11's `Object.keys` with a polyfill to enable the [ES6 behavior](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/keys#Notes)) | ||
- `Symbol` | ||
@@ -94,4 +94,16 @@ - `Symbol.iterator` | ||
To use this client library in the browser, you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). | ||
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). | ||
#### Special bundling notes for IE11 | ||
Currently only `Parcel` and `Rollup` work well with Storage client libraries for IE11. | ||
If `Parcel` is used then no further work is needed. If using Rollup, an additional step is needed to transform the bundled output to the format that IE11 supports. | ||
Assuming `bundled-output.js` is the result from `Rollup`: | ||
```bash | ||
tsc --allowJS --target es5 bundled-output.js --outfile final-output.js | ||
``` | ||
### CORS | ||
@@ -198,3 +210,3 @@ | ||
// Use StorageSharedKeyCredential with storage account and account key | ||
// StorageSharedKeyCredential is only avaiable in Node.js runtime, not in browsers | ||
// StorageSharedKeyCredential is only available in Node.js runtime, not in browsers | ||
const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey); | ||
@@ -268,4 +280,4 @@ const blobServiceClient = new BlobServiceClient( | ||
let i = 1; | ||
let iter = await blobServiceClient.listContainers(); | ||
for await (const container of iter) { | ||
let containers = blobServiceClient.listContainers(); | ||
for await (const container of containers) { | ||
console.log(`Container ${i++}: ${container.name}`); | ||
@@ -386,4 +398,4 @@ } | ||
let i = 1; | ||
let iter = await containerClient.listBlobsFlat(); | ||
for await (const blob of iter) { | ||
let blobs = containerClient.listBlobsFlat(); | ||
for await (const blob of blobs) { | ||
console.log(`Blob ${i++}: ${blob.name}`); | ||
@@ -390,0 +402,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
5840879
174
72039
521
+ Added@azure/core-tracing@1.0.0-preview.8(transitive)
- Removed@azure/core-tracing@1.0.0-preview.111.2.0(transitive)
- Removed@opentelemetry/api@1.0.0-rc.0(transitive)
Updatedtslib@^2.0.0