diff --git a/sdk/core/core-client/CHANGELOG.md b/sdk/core/core-client/CHANGELOG.md index 677786e316fb..a566e0dbe6c8 100644 --- a/sdk/core/core-client/CHANGELOG.md +++ b/sdk/core/core-client/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.3.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.3.1 (2021-09-30) ### Other Changes diff --git a/sdk/core/core-client/package.json b/sdk/core/core-client/package.json index e1f8fc11e48f..d89d5469eff5 100644 --- a/sdk/core/core-client/package.json +++ b/sdk/core/core-client/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-client", - "version": "1.3.1", + "version": "1.3.2", "description": "Core library for interfacing with AutoRest generated code", "sdk-type": "client", "main": "dist/index.js", diff --git a/sdk/core/core-http/CHANGELOG.md b/sdk/core/core-http/CHANGELOG.md index 464c47614976..527c0d90cf57 100644 --- a/sdk/core/core-http/CHANGELOG.md +++ b/sdk/core/core-http/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 2.2.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 2.2.1 (2021-09-30) ### Bugs Fixed diff --git a/sdk/core/core-http/package.json b/sdk/core/core-http/package.json index bb1d12cd3a9e..d23f03a3b1ff 100644 --- a/sdk/core/core-http/package.json +++ b/sdk/core/core-http/package.json @@ -2,7 +2,7 @@ "name": "@azure/core-http", "sdk-type": "client", "author": "Microsoft Corporation", - "version": "2.2.1", + "version": "2.2.2", "description": "Isomorphic client Runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest", "tags": [ "isomorphic", diff --git a/sdk/core/core-http/src/util/constants.ts b/sdk/core/core-http/src/util/constants.ts index 2fdbf2032adc..66a8c9cd174b 100644 --- a/sdk/core/core-http/src/util/constants.ts +++ b/sdk/core/core-http/src/util/constants.ts @@ -5,7 +5,7 @@ export const Constants = { /** * The core-http version */ - coreHttpVersion: "2.2.1", + coreHttpVersion: "2.2.2", /** * Specifies HTTP. diff --git a/sdk/core/core-lro/CHANGELOG.md b/sdk/core/core-lro/CHANGELOG.md index eda1141bac5f..6a93b91d6618 100644 --- a/sdk/core/core-lro/CHANGELOG.md +++ b/sdk/core/core-lro/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 2.2.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 2.2.1 (2021-09-30) ### Bugs Fixed diff --git a/sdk/core/core-lro/package.json b/sdk/core/core-lro/package.json index 7ffc2cbfebc7..31da43c0b862 100644 --- a/sdk/core/core-lro/package.json +++ b/sdk/core/core-lro/package.json @@ -2,7 +2,7 @@ "name": "@azure/core-lro", "author": "Microsoft Corporation", "sdk-type": "client", - "version": "2.2.1", + "version": "2.2.2", "description": "Isomorphic client library for supporting long-running operations in node.js and browser.", "tags": [ "isomorphic", diff --git a/sdk/core/core-rest-pipeline/CHANGELOG.md b/sdk/core/core-rest-pipeline/CHANGELOG.md index 54dd0e69f1a7..d1b5e4f640b6 100644 --- a/sdk/core/core-rest-pipeline/CHANGELOG.md +++ b/sdk/core/core-rest-pipeline/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.3.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.3.1 (2021-09-30) ### Bugs Fixed diff --git a/sdk/core/core-rest-pipeline/package.json b/sdk/core/core-rest-pipeline/package.json index db277892b28c..ea3aaf978d3a 100644 --- a/sdk/core/core-rest-pipeline/package.json +++ b/sdk/core/core-rest-pipeline/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-rest-pipeline", - "version": "1.3.1", + "version": "1.3.2", "description": "Isomorphic client library for making HTTP requests in node.js and browser.", "sdk-type": "client", "main": "dist/index.js", diff --git a/sdk/core/core-rest-pipeline/samples/v1/javascript/README.md b/sdk/core/core-rest-pipeline/samples/v1/javascript/README.md index 39d0ab3f8a34..ec650a2ab9b4 100644 --- a/sdk/core/core-rest-pipeline/samples/v1/javascript/README.md +++ b/sdk/core/core-rest-pipeline/samples/v1/javascript/README.md @@ -1,12 +1,3 @@ ---- -page_type: sample -languages: - - javascript -products: - - azure -urlFragment: core-rest-pipeline-javascript ---- - # Azure SDK Core client library samples for JavaScript These sample programs show how to use the JavaScript client libraries for Azure SDK Core in some common scenarios. @@ -17,7 +8,13 @@ These sample programs show how to use the JavaScript client libraries for Azure ## Prerequisites -The sample programs are compatible with Node.js >=12.0.0. +The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. ## Setup @@ -29,16 +26,25 @@ To run the samples using the published version of the package: npm install ``` -2. Run whichever samples you like (note that some samples may require additional setup, see the table above): +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash node node-sample.js ``` +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env node node-sample.js +``` + ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. [node-sample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/samples/v1/javascript/node-sample.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/core-rest-pipeline +[freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-rest-pipeline/README.md diff --git a/sdk/core/core-rest-pipeline/samples/v1/javascript/package.json b/sdk/core/core-rest-pipeline/samples/v1/javascript/package.json index 5b13979b381e..f95d083b2fd4 100644 --- a/sdk/core/core-rest-pipeline/samples/v1/javascript/package.json +++ b/sdk/core/core-rest-pipeline/samples/v1/javascript/package.json @@ -3,7 +3,7 @@ "private": true, "version": "1.0.0", "description": "Azure SDK Core client library samples for JavaScript", - "engine": { + "engines": { "node": ">=12.0.0" }, "repository": { @@ -22,7 +22,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-rest-pipeline", "dependencies": { - "@azure/core-rest-pipeline": "next", + "@azure/core-rest-pipeline": "latest", "dotenv": "latest" } } diff --git a/sdk/core/core-rest-pipeline/samples/v1/javascript/sample.env b/sdk/core/core-rest-pipeline/samples/v1/javascript/sample.env new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sdk/core/core-rest-pipeline/samples/v1/typescript/README.md b/sdk/core/core-rest-pipeline/samples/v1/typescript/README.md index 58bcc920b6cc..d5f6ed0fe6db 100644 --- a/sdk/core/core-rest-pipeline/samples/v1/typescript/README.md +++ b/sdk/core/core-rest-pipeline/samples/v1/typescript/README.md @@ -1,12 +1,3 @@ ---- -page_type: sample -languages: - - typescript -products: - - azure -urlFragment: core-rest-pipeline-typescript ---- - # Azure SDK Core client library samples for TypeScript These sample programs show how to use the TypeScript client libraries for Azure SDK Core in some common scenarios. @@ -17,7 +8,7 @@ These sample programs show how to use the TypeScript client libraries for Azure ## Prerequisites -The sample programs are compatible with Node.js >=12.0.0. +The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/). Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: @@ -25,6 +16,12 @@ Before running the samples in Node, they must be compiled to JavaScript using th npm install -g typescript ``` +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + ## Setup To run the samples using the published version of the package: @@ -41,17 +38,26 @@ npm install npm run build ``` -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash node dist/node-sample.js ``` +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env node dist/node-sample.js +``` + ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. [node-sample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/samples/v1/typescript/src/node-sample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/core-rest-pipeline +[freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-rest-pipeline/README.md [typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/core/core-rest-pipeline/samples/v1/typescript/package.json b/sdk/core/core-rest-pipeline/samples/v1/typescript/package.json index 8da5e6dddd63..4e7dc7d5075e 100644 --- a/sdk/core/core-rest-pipeline/samples/v1/typescript/package.json +++ b/sdk/core/core-rest-pipeline/samples/v1/typescript/package.json @@ -3,7 +3,7 @@ "private": true, "version": "1.0.0", "description": "Azure SDK Core client library samples for TypeScript", - "engine": { + "engines": { "node": ">=12.0.0" }, "scripts": { @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-rest-pipeline", "dependencies": { - "@azure/core-rest-pipeline": "next", + "@azure/core-rest-pipeline": "latest", "dotenv": "latest" }, "devDependencies": { diff --git a/sdk/core/core-rest-pipeline/samples/v1/typescript/sample.env b/sdk/core/core-rest-pipeline/samples/v1/typescript/sample.env new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sdk/core/core-rest-pipeline/samples/v1/typescript/tsconfig.json b/sdk/core/core-rest-pipeline/samples/v1/typescript/tsconfig.json index 71d1d0fb1f54..416c2dd82e00 100644 --- a/sdk/core/core-rest-pipeline/samples/v1/typescript/tsconfig.json +++ b/sdk/core/core-rest-pipeline/samples/v1/typescript/tsconfig.json @@ -11,5 +11,7 @@ "outDir": "dist", "rootDir": "src" }, - "include": ["src/**.ts"] + "include": [ + "src/**.ts" + ] } diff --git a/sdk/core/core-rest-pipeline/src/constants.ts b/sdk/core/core-rest-pipeline/src/constants.ts index 771dba52fb37..f7c989d223a0 100644 --- a/sdk/core/core-rest-pipeline/src/constants.ts +++ b/sdk/core/core-rest-pipeline/src/constants.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "1.3.1"; +export const SDK_VERSION: string = "1.3.2"; diff --git a/sdk/core/logger/CHANGELOG.md b/sdk/core/logger/CHANGELOG.md index 859587362924..6bea230abed2 100644 --- a/sdk/core/logger/CHANGELOG.md +++ b/sdk/core/logger/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.4 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.3 (2021-09-30) ### Other Changes diff --git a/sdk/core/logger/package.json b/sdk/core/logger/package.json index 6ca97736a2cd..735fb4904177 100644 --- a/sdk/core/logger/package.json +++ b/sdk/core/logger/package.json @@ -1,7 +1,7 @@ { "name": "@azure/logger", "sdk-type": "client", - "version": "1.0.3", + "version": "1.0.4", "description": "Microsoft Azure SDK for JavaScript - Logger", "main": "./dist/index.js", "module": "dist-esm/src/index.js",