Skip to content

Commit e58d09f

Browse files
authored
Move the Mixed Reality Auth package to use core-rest-pipeline (Azure#19013)
Updated `@autorest/typescript` to latest beta, regenerate the client, replaced `@azure/core-http` dependency with `@azure/core-client` and `@azure/core-rest-pipeline`, modified convenience layer files that depended on `@azure/core-http`, and minor version bump. Also removed the handling of `userAgentOptions`. Updated metadata const paths for auto increasing package version after releases.
1 parent 7f66f8a commit e58d09f

File tree

16 files changed

+2309
-2029
lines changed

16 files changed

+2309
-2029
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 2221 additions & 1918 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release History
22

3+
## 1.0.0-beta.2 (2022-01-12)
4+
5+
- Moved package dependency to Core V2 (`@azure/core-client` and `@azure/core-rest-pipeline`) from `@azure/core-http`
6+
37
## 1.0.0-beta.1 (2021-09-21)
48

59
- Initial release.

sdk/mixedreality/mixed-reality-authentication/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/mixed-reality-authentication",
3-
"version": "1.0.0-beta.1",
3+
"version": "1.0.0-beta.2",
44
"description": "Azure client library for Mixed Reality authentication.",
55
"sdk-type": "client",
66
"main": "dist/index.js",
@@ -62,7 +62,8 @@
6262
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
6363
"dependencies": {
6464
"@azure/core-auth": "^1.3.0",
65-
"@azure/core-http": "^2.0.0",
65+
"@azure/core-client": "^1.4.0",
66+
"@azure/core-rest-pipeline": "^1.4.0",
6667
"@azure/core-tracing": "1.0.0-preview.13",
6768
"@azure/logger": "^1.0.0",
6869
"tslib": "^2.2.0"
@@ -108,7 +109,7 @@
108109
"constantPaths": [
109110
{
110111
"path": "src/generated/mixedRealityStsRestClientContext.ts",
111-
"prefix": "packageVersion"
112+
"prefix": "packageDetails"
112113
},
113114
{
114115
"path": "src/constants.ts",

sdk/mixedreality/mixed-reality-authentication/review/mixed-reality-authentication.api.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
import { AccessToken } from '@azure/core-auth';
88
import { AzureKeyCredential } from '@azure/core-auth';
9-
import { OperationOptions } from '@azure/core-http';
10-
import { PipelineOptions } from '@azure/core-http';
11-
import { TokenCredential } from '@azure/core-http';
9+
import { CommonClientOptions } from '@azure/core-client';
10+
import { OperationOptions } from '@azure/core-client';
11+
import { TokenCredential } from '@azure/core-auth';
1212

1313
export { AccessToken }
1414

@@ -25,12 +25,11 @@ export class MixedRealityStsClient {
2525
readonly accountId: string;
2626
readonly endpointUrl: string;
2727
getToken(options?: GetTokenOptions): Promise<AccessToken>;
28-
}
28+
}
2929

3030
// @public
31-
export interface MixedRealityStsClientOptions extends PipelineOptions {
31+
export interface MixedRealityStsClientOptions extends CommonClientOptions {
3232
customEndpointUrl?: string;
3333
}
3434

35-
3635
```

sdk/mixedreality/mixed-reality-authentication/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
*
77
* @internal
88
*/
9-
export const SDK_VERSION: string = "1.0.0-beta.1";
9+
export const SDK_VERSION: string = "1.0.0-beta.2";

sdk/mixedreality/mixed-reality-authentication/src/generated/mixedRealityStsRestClient.ts

Lines changed: 10 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/mixedreality/mixed-reality-authentication/src/generated/mixedRealityStsRestClientContext.ts

Lines changed: 22 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/mixedreality/mixed-reality-authentication/src/generated/models/index.ts

Lines changed: 5 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/mixedreality/mixed-reality-authentication/src/generated/models/mappers.ts

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/mixedreality/mixed-reality-authentication/src/generated/models/parameters.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)