Skip to content

Commit 78f849d

Browse files
[cosmos] Add src/ to browser path mappings. (Azure#19836)
* [cosmos] Add src/ to browser path mappings. * Update changelog
1 parent 47b72eb commit 78f849d

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

sdk/cosmosdb/cosmos/CHANGELOG.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,21 @@
22

33
## 3.15.1 (Unreleased)
44

5-
### Features Added
6-
7-
### Breaking Changes
8-
95
### Bugs Fixed
106

11-
### Other Changes
7+
- Fixed the paths mapped by the `browser` entry in `package.json` to be correct for the package's new output structure. This solves errors with bundling the package for browsers.
128

139
## 3.15.0 (2021-11-22)
1410

1511
### Features Added
12+
1613
- _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
1714
- _GA_ support for Bulk operation PATCH.
1815
- _GA_ support for Batch operation PATCH.
19-
- 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).
16+
- 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).
2017

2118
### Other Changes
19+
2220
- Made several changes to the sample programs to improve code quality and compatibility with Node 12, and upgraded the sample programs' dependencies.
2321

2422
## 3.14.1 (2021-09-02)

sdk/cosmosdb/cosmos/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
"module": "./dist-esm/src/index.js",
2020
"react-native": "./dist-esm/src/index.js",
2121
"browser": {
22-
"./dist-esm/request/defaultAgent.js": "./dist-esm/request/defaultAgent.browser.js",
23-
"./dist-esm/utils/atob.js": "./dist-esm/utils/atob.browser.js",
24-
"./dist-esm/utils/digest.js": "./dist-esm/utils/digest.browser.js",
25-
"./dist-esm/utils/hmac.js": "./dist-esm/utils/hmac.browser.js",
26-
"./dist-esm/utils/url.js": "./dist-esm/utils/url.browser.js"
22+
"./dist-esm/src/request/defaultAgent.js": "./dist-esm/src/request/defaultAgent.browser.js",
23+
"./dist-esm/src/utils/atob.js": "./dist-esm/src/utils/atob.browser.js",
24+
"./dist-esm/src/utils/digest.js": "./dist-esm/src/utils/digest.browser.js",
25+
"./dist-esm/src/utils/hmac.js": "./dist-esm/src/utils/hmac.browser.js",
26+
"./dist-esm/src/utils/url.js": "./dist-esm/src/utils/url.browser.js"
2727
},
2828
"files": [
2929
"changelog.md",
3030
"dist/",
31-
"dist-esm/",
31+
"dist-esm/src/",
3232
"README.md",
3333
"LICENSE"
3434
],

0 commit comments

Comments
 (0)