Skip to content

Commit d3c3f90

Browse files
authored
[Storage] Use ES2017 (Azure#15835)
1 parent 1f6b914 commit d3c3f90

File tree

33 files changed

+42
-44
lines changed

33 files changed

+42
-44
lines changed

common/tools/dev-tool/src/commands/samples/prep.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ async function enableLocalRun(
6868

6969
let relativePath = new Array(depth).fill("..").join("/");
7070

71-
if (isTs) {
72-
// TypeScript imports should use src directly
73-
relativePath += "/src";
74-
}
75-
7671
outputContent = fileContents.replace(
7772
importRegex,
7873
isTs ? `import $1 from "${relativePath}";` : `const $1 = require("${relativePath}");`

sdk/core/core-http/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Features Added
66

7+
- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features
8+
79
### Breaking Changes
810

911
- Updated @azure/core-tracing to version `1.0.0-preview.12`. See [@azure/core-tracing CHANGELOG](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-tracing/CHANGELOG.md) for details about breaking changes with tracing.

sdk/core/core-http/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
"module": "commonjs",
55
"outDir": "dist",
6-
"target": "es5",
76
"declarationDir": "./types/latest"
87
},
98
"exclude": ["node_modules"],

sdk/core/core-lro/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## 1.0.6 (Unreleased)
44

5+
### New Features
6+
7+
- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features
58

69
## 1.0.5 (2021-04-12)
710

sdk/core/core-lro/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "../../../tsconfig.package",
33
"compilerOptions": {
4-
"target": "es5",
54
"outDir": "./dist-esm",
65
"declarationDir": "./types"
76
},

sdk/quantum/quantum-jobs/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "../../../tsconfig.package",
33
"compilerOptions": {
44
"strict": true,
5-
"target": "es5",
65
"sourceMap": true,
76
"lib": [
87
"es6",

sdk/storage/storage-blob-changefeed/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"sourceMap": true,
77
"inlineSources": true,
88
"newLine": "LF",
9-
"target": "es5",
9+
"target": "ES2017",
1010
"moduleResolution": "node",
1111
"noUnusedLocals": true,
1212
"noUnusedParameters": true,

sdk/storage/storage-blob/CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# Release History
22

3-
## 12.6.1 (Unreleased)
3+
## 12.7.0 (Unreleased)
44

55
### Features Added
66

7+
- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features
8+
79
### Breaking Changes
810

911
### Key Bugs Fixed
1012

1113
### Fixed
1214

13-
1415
## 12.6.0 (2021-06-09)
1516

1617
- Includes all features released in 12.6.0-beta.1.
@@ -355,12 +356,12 @@
355356
- [Breaking] The static methods to create client types are removed. The functionality is moved into new instance methods added to the parent clients.
356357
- [Breaking] The telemetry strings have been updated.
357358
- `Azure-Storage/${SDK_VERSION}` is updated to `azsdk-js-storagefile/${SDK_VERSION}`.
358-
- [Breaking]  withPipeline method is removed.
359+
- [Breaking] withPipeline method is removed.
359360
- Async iterators with pagination support are added for listing methods
360361
- `listContainers()`, `listBlobsFlat()` and `listBlobsByHierarchy()`
361362
- Please refer to the samples for async iterators in the `samples` folder.
362-
- [Breaking]  Methods that list segments(`listBlobFlatSegment()` and `listContainersSegment()`) are no longer exposed in public api.
363-
- [Breaking]  High level convenience functions are moved into clients as their instance member function.
363+
- [Breaking] Methods that list segments(`listBlobFlatSegment()` and `listContainersSegment()`) are no longer exposed in public api.
364+
- [Breaking] High level convenience functions are moved into clients as their instance member function.
364365
- `uploadFileToBlockBlob()`, `uploadStreamToBlockBlob()` and `uploadBrowserDataToBlockBlob()` -> `BlockBlobClient.uploadFile()`, `BlockBlobClient.uploadStream()` and `BlockBlobClient.uploadBrowserData()` respectively
365366
- `downloadBlobToBuffer()` -> `BlobClient.downloadToBuffer()`
366367
- [Breaking] `StorageClient` is no longer exposed. `StorageClient.newPipeline()` static method is moved to the top level exported function `newPipeline()`.

sdk/storage/storage-blob/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@azure/storage-blob",
33
"sdk-type": "client",
4-
"version": "12.6.1",
4+
"version": "12.7.0",
55
"description": "Microsoft Azure Storage SDK for JavaScript - Blob",
66
"main": "./dist/index.js",
77
"module": "./dist-esm/storage-blob/src/index.js",

sdk/storage/storage-blob/src/generated/src/storageClientContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http";
1010
import { StorageClientOptionalParams } from "./models";
1111

1212
const packageName = "azure-storage-blob";
13-
const packageVersion = "12.6.0-beta.1";
13+
const packageVersion = "12.7.0";
1414

1515
export class StorageClientContext extends coreHttp.ServiceClient {
1616
url: string;

0 commit comments

Comments
 (0)