Skip to content

Commit

Permalink
[Cosmos] Switches back to universal-user-agent (#11299)
Browse files Browse the repository at this point in the history
* Switches back to universal-user-agent

* remove os-name

* Changelog

* Changelog
  • Loading branch information
zfoster authored Sep 16, 2020
1 parent 8190de7 commit 3a64b22
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 149 deletions.
156 changes: 40 additions & 116 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions sdk/cosmosdb/cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 3.9.2 (Unreleased)
## 3.9.2 (2020-09-16)

- BUGFIX: Fixes slow `userAgent` lookup on azure functions.

## 3.9.1 (2020-08-28)

Expand Down Expand Up @@ -62,17 +64,17 @@ database.container.create(containerDefinition)
const operations: OperationInput[] = [
{
operationType: "Create",
resourceBody: { id: "doc1", name: "sample", key: "A" },
resourceBody: { id: "doc1", name: "sample", key: "A" }
},
{
operationType: "Upsert",
resourceBody: { id: "doc2", name: "other", key: "A" },
resourceBody: { id: "doc2", name: "other", key: "A" }
},
{
operationType: "Read",
id: "readItemId",
partitionKey: "key",
},
partitionKey: "key"
}
];

await database.container.items.bulk(operations);
Expand Down Expand Up @@ -289,14 +291,14 @@ Constructor options have been simplified:
const client = new CosmosClient({
endpoint: "https://your-database.cosmos.azure.com",
auth: {
masterKey: "your-primary-key",
},
masterKey: "your-primary-key"
}
});

// v3
const client = new CosmosClient({
endpoint: "https://your-database.cosmos.azure.com",
key: "your-primary-key",
key: "your-primary-key"
});
```

Expand Down
Loading

0 comments on commit 3a64b22

Please sign in to comment.