diff --git a/sdk/template/template/CHANGELOG.md b/sdk/template/template/CHANGELOG.md index d8b8443cb988..31f4aadd6d5d 100644 --- a/sdk/template/template/CHANGELOG.md +++ b/sdk/template/template/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.11-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.10-beta.1 (2020-11-16) - Test Release Pipeline diff --git a/sdk/template/template/package.json b/sdk/template/template/package.json index 1334f61765fd..e1e683d248e1 100644 --- a/sdk/template/template/package.json +++ b/sdk/template/template/package.json @@ -1,6 +1,6 @@ { "name": "@azure/template", - "version": "1.0.11-beta.1", + "version": "1.0.11-beta.2", "description": "Example project for learning how to build a client library", "sdk-type": "client", "main": "dist/index.js", diff --git a/sdk/template/template/samples/v1/javascript/README.md b/sdk/template/template/samples/v1/javascript/README.md index e74a2090abb4..0aaea93cc3c5 100644 --- a/sdk/template/template/samples/v1/javascript/README.md +++ b/sdk/template/template/samples/v1/javascript/README.md @@ -8,7 +8,7 @@ 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] and the following Azure resources to run these sample programs: diff --git a/sdk/template/template/samples/v1/javascript/package.json b/sdk/template/template/samples/v1/javascript/package.json index ff3086827330..b9ac58c88d5e 100644 --- a/sdk/template/template/samples/v1/javascript/package.json +++ b/sdk/template/template/samples/v1/javascript/package.json @@ -3,7 +3,7 @@ "private": true, "version": "1.0.0", "description": "Azure Template client library samples for JavaScript", - "engine": { + "engines": { "node": ">=12.0.0" }, "repository": { @@ -25,6 +25,6 @@ "dependencies": { "@azure/template": "next", "dotenv": "latest", - "@azure/identity": "^1.1.0" + "@azure/identity": "2.0.0-beta.5" } } diff --git a/sdk/template/template/samples/v1/typescript/README.md b/sdk/template/template/samples/v1/typescript/README.md index 4196762d83fb..4236db2d33d4 100644 --- a/sdk/template/template/samples/v1/typescript/README.md +++ b/sdk/template/template/samples/v1/typescript/README.md @@ -8,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: @@ -45,7 +45,7 @@ npm run build 4. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node dist/getConfigurationSetting.ts +node dist/getConfigurationSetting.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): diff --git a/sdk/template/template/samples/v1/typescript/package.json b/sdk/template/template/samples/v1/typescript/package.json index 3f3bc41854cf..f90d77acb675 100644 --- a/sdk/template/template/samples/v1/typescript/package.json +++ b/sdk/template/template/samples/v1/typescript/package.json @@ -3,7 +3,7 @@ "private": true, "version": "1.0.0", "description": "Azure Template client library samples for TypeScript", - "engine": { + "engines": { "node": ">=12.0.0" }, "scripts": { @@ -29,10 +29,10 @@ "dependencies": { "@azure/template": "next", "dotenv": "latest", - "@azure/identity": "^1.1.0" + "@azure/identity": "2.0.0-beta.5" }, "devDependencies": { - "typescript": "~4.1.2", + "typescript": "~4.2.0", "rimraf": "latest" } } diff --git a/sdk/template/template/samples/v1/typescript/tsconfig.json b/sdk/template/template/samples/v1/typescript/tsconfig.json index 30f88da73e00..416c2dd82e00 100644 --- a/sdk/template/template/samples/v1/typescript/tsconfig.json +++ b/sdk/template/template/samples/v1/typescript/tsconfig.json @@ -1,8 +1,9 @@ { "compilerOptions": { - "target": "ES6", + "target": "ES2018", "module": "commonjs", "moduleResolution": "node", + "resolveJsonModule": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": true, @@ -10,5 +11,7 @@ "outDir": "dist", "rootDir": "src" }, - "include": ["src/**.ts"] + "include": [ + "src/**.ts" + ] } diff --git a/sdk/template/template/src/constants.ts b/sdk/template/template/src/constants.ts index dbe3c3cdbae7..f1be57203996 100644 --- a/sdk/template/template/src/constants.ts +++ b/sdk/template/template/src/constants.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "1.0.11-beta.1"; +export const SDK_VERSION: string = "1.0.11-beta.2"; diff --git a/sdk/template/template/src/generated/generatedClientContext.ts b/sdk/template/template/src/generated/generatedClientContext.ts index 57791271cc84..350d52a9c13d 100644 --- a/sdk/template/template/src/generated/generatedClientContext.ts +++ b/sdk/template/template/src/generated/generatedClientContext.ts @@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http"; import { GeneratedClientOptionalParams } from "./models"; const packageName = "@azure/template"; -const packageVersion = "1.0.11-beta.1"; +const packageVersion = "1.0.11-beta.2"; /** @hidden */ export class GeneratedClientContext extends coreHttp.ServiceClient {