Skip to content

Commit

Permalink
[Storage] Use ES2017 (#15835)
Browse files Browse the repository at this point in the history
  • Loading branch information
deyaaeldeen authored Jun 24, 2021
1 parent 1f6b914 commit d3c3f90
Show file tree
Hide file tree
Showing 33 changed files with 42 additions and 44 deletions.
5 changes: 0 additions & 5 deletions common/tools/dev-tool/src/commands/samples/prep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ async function enableLocalRun(

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

if (isTs) {
// TypeScript imports should use src directly
relativePath += "/src";
}

outputContent = fileContents.replace(
importRegex,
isTs ? `import $1 from "${relativePath}";` : `const $1 = require("${relativePath}");`
Expand Down
2 changes: 2 additions & 0 deletions sdk/core/core-http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Features Added

- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features

### Breaking Changes

- 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.
Expand Down
1 change: 0 additions & 1 deletion sdk/core/core-http/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compilerOptions": {
"module": "commonjs",
"outDir": "dist",
"target": "es5",
"declarationDir": "./types/latest"
},
"exclude": ["node_modules"],
Expand Down
3 changes: 3 additions & 0 deletions sdk/core/core-lro/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## 1.0.6 (Unreleased)

### New Features

- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features

## 1.0.5 (2021-04-12)

Expand Down
1 change: 0 additions & 1 deletion sdk/core/core-lro/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.package",
"compilerOptions": {
"target": "es5",
"outDir": "./dist-esm",
"declarationDir": "./types"
},
Expand Down
1 change: 0 additions & 1 deletion sdk/quantum/quantum-jobs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../../tsconfig.package",
"compilerOptions": {
"strict": true,
"target": "es5",
"sourceMap": true,
"lib": [
"es6",
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob-changefeed/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"sourceMap": true,
"inlineSources": true,
"newLine": "LF",
"target": "es5",
"target": "ES2017",
"moduleResolution": "node",
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
11 changes: 6 additions & 5 deletions sdk/storage/storage-blob/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Release History

## 12.6.1 (Unreleased)
## 12.7.0 (Unreleased)

### Features Added

- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features

### Breaking Changes

### Key Bugs Fixed

### Fixed


## 12.6.0 (2021-06-09)

- Includes all features released in 12.6.0-beta.1.
Expand Down Expand Up @@ -355,12 +356,12 @@
- [Breaking] The static methods to create client types are removed. The functionality is moved into new instance methods added to the parent clients.
- [Breaking] The telemetry strings have been updated.
- `Azure-Storage/${SDK_VERSION}` is updated to `azsdk-js-storagefile/${SDK_VERSION}`.
- [Breaking]  withPipeline method is removed.
- [Breaking] withPipeline method is removed.
- Async iterators with pagination support are added for listing methods
- `listContainers()`, `listBlobsFlat()` and `listBlobsByHierarchy()`
- Please refer to the samples for async iterators in the `samples` folder.
- [Breaking]  Methods that list segments(`listBlobFlatSegment()` and `listContainersSegment()`) are no longer exposed in public api.
- [Breaking]  High level convenience functions are moved into clients as their instance member function.
- [Breaking] Methods that list segments(`listBlobFlatSegment()` and `listContainersSegment()`) are no longer exposed in public api.
- [Breaking] High level convenience functions are moved into clients as their instance member function.
- `uploadFileToBlockBlob()`, `uploadStreamToBlockBlob()` and `uploadBrowserDataToBlockBlob()` -> `BlockBlobClient.uploadFile()`, `BlockBlobClient.uploadStream()` and `BlockBlobClient.uploadBrowserData()` respectively
- `downloadBlobToBuffer()` -> `BlobClient.downloadToBuffer()`
- [Breaking] `StorageClient` is no longer exposed. `StorageClient.newPipeline()` static method is moved to the top level exported function `newPipeline()`.
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@azure/storage-blob",
"sdk-type": "client",
"version": "12.6.1",
"version": "12.7.0",
"description": "Microsoft Azure Storage SDK for JavaScript - Blob",
"main": "./dist/index.js",
"module": "./dist-esm/storage-blob/src/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http";
import { StorageClientOptionalParams } from "./models";

const packageName = "azure-storage-blob";
const packageVersion = "12.6.0-beta.1";
const packageVersion = "12.7.0";

export class StorageClientContext extends coreHttp.ServiceClient {
url: string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const SDK_VERSION: string = "12.6.1";
export const SDK_VERSION: string = "12.7.0";
export const SERVICE_VERSION: string = "2020-08-04";

export const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES: number = 256 * 1024 * 1024; // 256MB
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ disable-async-iterators: true
add-credentials: false
use-extension:
"@autorest/typescript": "6.0.0-dev.20210218.1"
package-version: 12.6.0
package-version: 12.7.0
```
## Customizations for Track 2 Generator
Expand Down
1 change: 0 additions & 1 deletion sdk/storage/storage-blob/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.package",
"compilerOptions": {
"target": "es5",
"declarationDir": "./typings/latest",
"outDir": "./dist-esm",
"lib": ["dom", "es5", "es6", "es7", "esnext"]
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-datalake/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"module": "es6",
"moduleResolution": "node",
"strict": true,
"target": "es5",
"target": "ES2017",
"sourceMap": true,
"declarationMap": true,
"esModuleInterop": true,
Expand Down
5 changes: 3 additions & 2 deletions sdk/storage/storage-file-datalake/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Release History

## 12.5.1 (Unreleased)
## 12.6.0 (Unreleased)

### Features Added

- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features

### Breaking Changes

### Key Bugs Fixed

### Fixed


## 12.5.0 (2021-06-09)

- Includes all features released in 12.5.0-beta.1.
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-file-datalake/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/storage-file-datalake",
"version": "12.5.1",
"version": "12.6.0",
"description": "Microsoft Azure Storage SDK for JavaScript - DataLake",
"sdk-type": "client",
"main": "./dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http";
import { StorageClientOptionalParams } from "./models";

const packageName = "azure-storage-datalake";
const packageVersion = "12.5.1";
const packageVersion = "12.6.0";

export class StorageClientContext extends coreHttp.ServiceClient {
url: string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-file-datalake/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const SDK_VERSION: string = "12.5.1";
export const SDK_VERSION: string = "12.6.0";
export const SERVICE_VERSION: string = "2020-06-12";

export const KB: number = 1024;
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-file-datalake/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ disable-async-iterators: true
add-credentials: false
use-extension:
"@autorest/typescript": "6.0.0-dev.20210223.1"
package-version: 12.5.1
package-version: 12.6.0
```
## Customizations for Track 2 Generator
Expand Down
1 change: 0 additions & 1 deletion sdk/storage/storage-file-datalake/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.package",
"compilerOptions": {
"target": "es5",
"declarationDir": "./typings/latest",
"outDir": "./dist-esm",
"lib": ["dom", "es5", "es6", "es7", "esnext"]
Expand Down
9 changes: 5 additions & 4 deletions sdk/storage/storage-file-share/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Release History

## 12.6.1 (Unreleased)
## 12.7.0 (Unreleased)

### Features Added

- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features

### Breaking Changes

### Key Bugs Fixed

### Fixed


## 12.6.0 (2021-06-09)

- Updated Azure Storage Service API version to 2020-08-04.
Expand Down Expand Up @@ -240,8 +241,8 @@
- Async iterators with pagination support are added for listing methods
- `listFilesAndDirectories()` and `listShares()`
- Please refer to the samples for async iterators in the `samples` folder.
- [Breaking] Methods that list segments(`listFilesAndDirectoriesSegment()` and `listSharesSegment()`) are no longer exposed in public api.
- [Breaking] High level convenience functions are moved into clients as their instance member function.
- [Breaking] Methods that list segments(`listFilesAndDirectoriesSegment()` and `listSharesSegment()`) are no longer exposed in public api.
- [Breaking] High level convenience functions are moved into clients as their instance member function.
- `uploadFileToAzureFile()`, `uploadStreamToAzureFile()`, `downloadAzureFileToBuffer()` and `uploadBrowserDataToAzureFile()` -> `FileClient.uploadFile()`,
`FileClient.uploadStream()`, `FileClient.downloadToBuffer()` and `FileClient.uploadBrowserData()` respectively.
- [Breaking] `StorageClient` is no longer exposed. `StorageClient.newPipeline()` static method is moved to the top level exported function `newPipeline()`.
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-file-share/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@azure/storage-file-share",
"sdk-type": "client",
"version": "12.6.1",
"version": "12.7.0",
"description": "Microsoft Azure Storage SDK for JavaScript - File",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http";
import { StorageClientOptionalParams } from "./models";

const packageName = "azure-storage-file-share";
const packageVersion = "12.6.1";
const packageVersion = "12.7.0";

export class StorageClientContext extends coreHttp.ServiceClient {
url: string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-file-share/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const SDK_VERSION: string = "12.6.1";
export const SDK_VERSION: string = "12.7.0";
export const SERVICE_VERSION: string = "2020-08-04";

export const FILE_MAX_SIZE_BYTES: number = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-file-share/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ disable-async-iterators: true
add-credentials: false
use-extension:
"@autorest/typescript": "6.0.0-dev.20210218.1"
package-version: 12.6.1
package-version: 12.7.0
```
## Customizations for Track 2 Generator
Expand Down
1 change: 0 additions & 1 deletion sdk/storage/storage-file-share/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.package",
"compilerOptions": {
"target": "es5",
"declarationDir": "./typings/latest",
"outDir": "./dist-esm",
"lib": ["dom", "es5", "es6", "es7", "esnext"]
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-internal-avro/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"sourceMap": true,
"inlineSources": true,
"newLine": "LF",
"target": "es5",
"target": "ES2017",
"moduleResolution": "node",
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
5 changes: 3 additions & 2 deletions sdk/storage/storage-queue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Release History

## 12.5.1 (Unreleased)
## 12.6.0 (Unreleased)

### Features Added

- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features

### Breaking Changes

### Key Bugs Fixed

### Fixed


## 12.5.0 (2021-06-09)

- Updated Azure Storage Service API version to 2020-08-04.
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-queue/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@azure/storage-queue",
"sdk-type": "client",
"version": "12.5.1",
"version": "12.6.0",
"description": "Microsoft Azure Storage SDK for JavaScript - Queue",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http";
import { StorageClientOptionalParams } from "./models";

const packageName = "azure-storage-queue";
const packageVersion = "12.5.1";
const packageVersion = "12.6.0";

export class StorageClientContext extends coreHttp.ServiceClient {
url: string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-queue/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const SDK_VERSION: string = "12.5.1";
export const SDK_VERSION: string = "12.6.0";
export const SERVICE_VERSION: string = "2020-08-04";

/**
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-queue/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ disable-async-iterators: true
add-credentials: false
use-extension:
"@autorest/typescript": "6.0.0-dev.20210218.1"
package-version: 12.5.1
package-version: 12.6.0
```
## Customizations for Track 2 Generator
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-queue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"sourceMap": true,
"inlineSources": true,
"newLine": "LF",
"target": "es5",
"target": "ES2017",
"moduleResolution": "node",
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down

0 comments on commit d3c3f90

Please sign in to comment.