Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sample errors and update release CHANGELOG.md #18768

Merged
merged 3 commits into from
Nov 23, 2021

Conversation

sajeetharan
Copy link
Member

  • Fix errors on samples with 'strict' mode ( cosmos/v3/typescript)
  • Update CHANGELOG.md

Copy link
Member

@witemple-msft witemple-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will also re-run the experimental generator.

- Made several changes to the sample programs to improve code quality and compatibility with Node 12, and upgraded the sample programs' dependencies


## 3.14.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this whole 3.14.2 section.

## 3.15.0 (Unreleased|2021-11-22)

### Features Added
- Exported variables SasTokenPermissionKind and SasTokenProperties ,function createAuthorizationSasToken to demonstrate scoped access to Cosmos Resources with SasToken
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Exported variables SasTokenPermissionKind and SasTokenProperties ,function createAuthorizationSasToken to demonstrate scoped access to Cosmos Resources with SasToken
- Added the `SasTokenProperties` type and a `createAuthorizationSasToken` function to enable scoped access to Cosmos resources with SAS tokens. For an example that demonstrates creating a SAS token and using it to authenticate a `CosmosClient`, see [the `SasTokenAuth` sample](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/typescript/src/SasTokenAuth.ts).

### Other Changes
- Made several changes to the sample programs to improve code quality and compatibility with Node 12, and upgraded the sample programs' dependencies


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double check the spacing so there is only one blank line between sections.

- Exported variables SasTokenPermissionKind and SasTokenProperties ,function createAuthorizationSasToken to demonstrate scoped access to Cosmos Resources with SasToken

### Other Changes
- Made several changes to the sample programs to improve code quality and compatibility with Node 12, and upgraded the sample programs' dependencies
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Made several changes to the sample programs to improve code quality and compatibility with Node 12, and upgraded the sample programs' dependencies
- Made several changes to the sample programs to improve code quality and compatibility with Node 12, and upgraded the sample programs' dependencies.

@@ -1,6 +1,15 @@
# Release History

## 3.14.2 (Unreleased)
## 3.15.0 (Unreleased|2021-11-22)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 3.15.0 (Unreleased|2021-11-22)
## 3.15.0 (2021-11-22)

- _GA_ Adds `container.item(itemId).patch()`. `patch()` is an alternative to `replace()` for item updates. https://github.com/Azure/azure-sdk-for-js/pull/16264/files#diff-7caca690c469e2025576523c0377ac71815f001024fde7c48b20cd24adaa6977R561
- _GA_ support for Bulk operation PATCH.
- _GA_ support for Batch operation PATCH.
- Added the `SasTokenProperties` type and a `createAuthorizationSasToken` function to enable scoped access to Cosmos resources with SAS tokens. For an example that demonstrates creating a SAS token and using it to authenticate a `CosmosClient`, see [the `SasTokenAuth` sample](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/typescript/src/SasTokenAuth.ts).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Added the `SasTokenProperties` type and a `createAuthorizationSasToken` function to enable scoped access to Cosmos resources with SAS tokens. For an example that demonstrates creating a SAS token and using it to authenticate a `CosmosClient`, see [the `SasTokenAuth` sample](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/typescript/src/SasTokenAuth.ts).
- Added the `SasTokenProperties` type and a `createAuthorizationSasToken` function to enable scoped access to Cosmos resources with SAS tokens. For an example that demonstrates creating a SAS token and using it to authenticate a `CosmosClient`, see [the `SasTokenAuth` sample](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/typescript/src/SasTokenAuth.ts).

@kushagraThapar kushagraThapar merged commit 8ac6801 into Azure:main Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants