Post release automated changes for azure-data-tables (#17495)

This commit is contained in:
Azure SDK Bot 2021-10-15 10:07:06 -07:00 коммит произвёл GitHub
Родитель 45c84009f6
Коммит 15e48a44ce
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
10 изменённых файлов: 76 добавлений и 29 удалений

Просмотреть файл

@ -1,5 +1,15 @@
# Release History
## 12.1.3 (Unreleased)
### Features Added
### Breaking Changes
### Bugs Fixed
### Other Changes
## 12.1.2 (2021-09-07)
### Bugs Fixed

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/data-tables",
"version": "12.1.2",
"version": "12.1.3",
"description": "An isomorphic client library for the Azure Tables service.",
"sdk-type": "client",
"main": "dist/index.js",

Просмотреть файл

@ -14,21 +14,21 @@ These sample programs show how to use the JavaScript client libraries for Azure
| **File Name** | **Description** |
| ----------------------------------------------------- | ---------------------------------------------------------- |
| [workingWithInt64.js][workingwithint64] | creates and works with an entity containing an Int64 value |
| [workingWithBigInt.js][workingwithbigint] | creates and works with an entity containing a bigint |
| [workingWithInt64.js][workingwithint64] | creates and works with an entity containing an Int64 value |
| [transactionWithHelper.js][transactionwithhelper] | sends transactional request using TableTransaction helper |
| [transactionOperations.js][transactionoperations] | sends transactional batch requests |
| [queryEntities.js][queryentities] | queries entities in a table |
| [createAndDeleteEntities.js][createanddeleteentities] | creates and deletes a entities in a table |
| [authenticationMethods.js][authenticationmethods] | authenticates using different authentication methods |
| [createAndDeleteEntities.js][createanddeleteentities] | creates and deletes a entities in a table |
| [createAndDeleteTable.js][createanddeletetable] | creates and deletes a table |
| [updateAndUpsertEntities.js][updateandupsertentities] | updates and upserts entities in a table |
| [generateTableSAS.js][generatetablesas] | generate a Table Account SAS token |
| [queryEntities.js][queryentities] | queries entities in a table |
| [queryTables.js][querytables] | queries tables |
| [updateAndUpsertEntities.js][updateandupsertentities] | updates and upserts entities in a table |
## 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:
@ -53,30 +53,30 @@ npm install
3. Run whichever samples you like (note that some samples may require additional setup, see the table above):
```bash
node workingWithInt64.js
node workingWithBigInt.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 TABLES_URL="<tables url>" ACCOUNT_NAME="<account name>" ACCOUNT_KEY="<account key>" node workingWithInt64.js
npx cross-env TABLES_URL="<tables url>" ACCOUNT_NAME="<account name>" ACCOUNT_KEY="<account key>" node workingWithBigInt.js
```
## Next Steps
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
[workingwithint64]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/workingWithInt64.js
[workingwithbigint]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/workingWithBigInt.js
[workingwithint64]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/workingWithInt64.js
[transactionwithhelper]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/transactionWithHelper.js
[transactionoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/transactionOperations.js
[queryentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/queryEntities.js
[createanddeleteentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/createAndDeleteEntities.js
[authenticationmethods]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/authenticationMethods.js
[createanddeleteentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/createAndDeleteEntities.js
[createanddeletetable]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/createAndDeleteTable.js
[updateandupsertentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/updateAndUpsertEntities.js
[generatetablesas]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/generateTableSAS.js
[queryentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/queryEntities.js
[querytables]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/queryTables.js
[updateandupsertentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/javascript/updateAndUpsertEntities.js
[apiref]: https://docs.microsoft.com/javascript/api/@azure/data-tables
[freesub]: https://azure.microsoft.com/free/
[createinstance_azurestorageinstance]: https://docs.microsoft.com/azure/storage/tables/table-storage-quickstart-portal

Просмотреть файл

@ -13,6 +13,8 @@ const {
AzureSASCredential
} = require("@azure/data-tables");
const { DefaultAzureCredential } = require("@azure/identity");
// Load the .env file if it exists
const dotenv = require("dotenv");
dotenv.config();
@ -40,6 +42,19 @@ async function tableServiceClientWithSasConnectionString() {
countTablesWithClient(client);
}
/**
* Create a TableServiceCLient using a SAS connection String
*/
async function tableServiceClientWithAAD() {
// DefaultAzureCredential expects the following three environment variables:
// - AZURE_TENANT_ID: The tenant ID in Azure Active Directory
// - AZURE_CLIENT_ID: The application (client) ID registered in the AAD tenant
// - AZURE_CLIENT_SECRET: The client secret for the registered application
const credential = new DefaultAzureCredential();
const client = new TableServiceClient(tablesUrl, credential);
countTablesWithClient(client);
}
/**
* Create a TableServiceCLient using a SAS token
*/
@ -87,6 +102,8 @@ async function main() {
await tableServiceClientWithAccountConnectionString();
await tableServiceClientWithAccountKey();
await tableServiceClientWithAAD();
}
main().catch((err) => {

Просмотреть файл

@ -3,7 +3,7 @@
"private": true,
"version": "1.0.0",
"description": "Azure Data Tables client library samples for JavaScript",
"engine": {
"engines": {
"node": ">=12.0.0"
},
"repository": {
@ -22,8 +22,9 @@
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/tables/data-tables",
"dependencies": {
"@azure/data-tables": "next",
"@azure/data-tables": "latest",
"dotenv": "latest",
"@azure/identity": "2.0.0-beta.6",
"uuid": "^8.3.0",
"@azure/core-auth": "^1.3.0"
}

Просмотреть файл

@ -14,21 +14,21 @@ These sample programs show how to use the TypeScript client libraries for Azure
| **File Name** | **Description** |
| ----------------------------------------------------- | ---------------------------------------------------------- |
| [workingWithInt64.ts][workingwithint64] | creates and works with an entity containing an Int64 value |
| [workingWithBigInt.ts][workingwithbigint] | creates and works with an entity containing a bigint |
| [workingWithInt64.ts][workingwithint64] | creates and works with an entity containing an Int64 value |
| [transactionWithHelper.ts][transactionwithhelper] | sends transactional request using TableTransaction helper |
| [transactionOperations.ts][transactionoperations] | sends transactional batch requests |
| [queryEntities.ts][queryentities] | queries entities in a table |
| [createAndDeleteEntities.ts][createanddeleteentities] | creates and deletes a entities in a table |
| [authenticationMethods.ts][authenticationmethods] | authenticates using different authentication methods |
| [createAndDeleteEntities.ts][createanddeleteentities] | creates and deletes a entities in a table |
| [createAndDeleteTable.ts][createanddeletetable] | creates and deletes a table |
| [updateAndUpsertEntities.ts][updateandupsertentities] | updates and upserts entities in a table |
| [generateTableSAS.ts][generatetablesas] | generate a Table Account SAS token |
| [queryEntities.ts][queryentities] | queries entities in a table |
| [queryTables.ts][querytables] | queries tables |
| [updateAndUpsertEntities.ts][updateandupsertentities] | updates and upserts entities in a table |
## 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:
@ -65,30 +65,30 @@ npm run build
4. Run whichever samples you like (note that some samples may require additional setup, see the table above):
```bash
node dist/workingWithInt64.js
node dist/workingWithBigInt.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 TABLES_URL="<tables url>" ACCOUNT_NAME="<account name>" ACCOUNT_KEY="<account key>" node dist/workingWithInt64.js
npx cross-env TABLES_URL="<tables url>" ACCOUNT_NAME="<account name>" ACCOUNT_KEY="<account key>" node dist/workingWithBigInt.js
```
## Next Steps
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
[workingwithint64]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/workingWithInt64.ts
[workingwithbigint]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/workingWithBigInt.ts
[workingwithint64]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/workingWithInt64.ts
[transactionwithhelper]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/transactionWithHelper.ts
[transactionoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/transactionOperations.ts
[queryentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/queryEntities.ts
[createanddeleteentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/createAndDeleteEntities.ts
[authenticationmethods]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/authenticationMethods.ts
[createanddeleteentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/createAndDeleteEntities.ts
[createanddeletetable]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/createAndDeleteTable.ts
[updateandupsertentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/updateAndUpsertEntities.ts
[generatetablesas]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/generateTableSAS.ts
[queryentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/queryEntities.ts
[querytables]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/queryTables.ts
[updateandupsertentities]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/tables/data-tables/samples/v12/typescript/src/updateAndUpsertEntities.ts
[apiref]: https://docs.microsoft.com/javascript/api/@azure/data-tables
[freesub]: https://azure.microsoft.com/free/
[createinstance_azurestorageinstance]: https://docs.microsoft.com/azure/storage/tables/table-storage-quickstart-portal

Просмотреть файл

@ -3,7 +3,7 @@
"private": true,
"version": "1.0.0",
"description": "Azure Data Tables client library samples for TypeScript",
"engine": {
"engines": {
"node": ">=12.0.0"
},
"scripts": {
@ -26,12 +26,14 @@
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/tables/data-tables",
"dependencies": {
"@azure/data-tables": "next",
"@azure/data-tables": "latest",
"dotenv": "latest",
"@azure/identity": "2.0.0-beta.6",
"uuid": "^8.3.0",
"@azure/core-auth": "^1.3.0"
},
"devDependencies": {
"@types/uuid": "^8.0.0",
"typescript": "~4.2.0",
"rimraf": "latest"
}

Просмотреть файл

@ -13,6 +13,8 @@ import {
AzureSASCredential
} from "@azure/data-tables";
import { DefaultAzureCredential } from "@azure/identity";
// Load the .env file if it exists
import * as dotenv from "dotenv";
dotenv.config();
@ -40,6 +42,19 @@ async function tableServiceClientWithSasConnectionString() {
countTablesWithClient(client);
}
/**
* Create a TableServiceCLient using a SAS connection String
*/
async function tableServiceClientWithAAD() {
// DefaultAzureCredential expects the following three environment variables:
// - AZURE_TENANT_ID: The tenant ID in Azure Active Directory
// - AZURE_CLIENT_ID: The application (client) ID registered in the AAD tenant
// - AZURE_CLIENT_SECRET: The client secret for the registered application
const credential = new DefaultAzureCredential();
const client = new TableServiceClient(tablesUrl, credential);
countTablesWithClient(client);
}
/**
* Create a TableServiceCLient using a SAS token
*/
@ -87,6 +102,8 @@ export async function main() {
await tableServiceClientWithAccountConnectionString();
await tableServiceClientWithAccountKey();
await tableServiceClientWithAAD();
}
main().catch((err) => {

Просмотреть файл

@ -32,7 +32,7 @@ export class GeneratedClientContext extends coreClient.ServiceClient {
requestContentType: "application/json; charset=utf-8"
};
const packageDetails = `azsdk-js-data-tables/12.1.2`;
const packageDetails = `azsdk-js-data-tables/12.1.3`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

Просмотреть файл

@ -6,7 +6,7 @@
```yaml
v3: true
package-version: 12.1.2
package-version: 12.1.3
package-name: "@azure/data-tables"
title: TablesClient
description: Tables Client