Skip to content

Commit 9e80111

Browse files
authored
bump-compiler-version-0.50.0 (#2140)
* bump-compiler-version-0.50.0 * fix ci * fix ci
1 parent 187908b commit 9e80111

10 files changed

Lines changed: 203 additions & 135 deletions

File tree

common/config/rush/pnpm-lock.yaml

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

packages/typespec-test/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"type": "module",
55
"dependencies": {
66
"@azure-tools/typespec-ts": "workspace:^0.19.0",
7-
"@typespec/openapi": ">=0.49.0 <1.0.0",
8-
"@azure-tools/typespec-autorest": ">=0.35.0 <1.0.0",
9-
"@typespec/openapi3": ">=0.49.0 <1.0.0",
10-
"@azure-tools/typespec-azure-core": ">=0.35.0 <1.0.0",
11-
"@azure-tools/typespec-client-generator-core": ">=0.35.0 <1.0.0",
12-
"@typespec/compiler": ">=0.49.0 <1.0.0",
13-
"@typespec/http": ">=0.49.0 <1.0.0",
14-
"@typespec/rest": ">=0.49.0 <1.0.0",
15-
"@typespec/versioning": ">=0.49.0 <1.0.0",
7+
"@typespec/openapi": ">=0.50.0 <1.0.0",
8+
"@azure-tools/typespec-autorest": ">=0.36.1 <1.0.0",
9+
"@typespec/openapi3": ">=0.50.0 <1.0.0",
10+
"@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0",
11+
"@azure-tools/typespec-client-generator-core": ">=0.36.0 <1.0.0",
12+
"@typespec/compiler": ">=0.50.0 <1.0.0",
13+
"@typespec/http": ">=0.50.0 <1.0.0",
14+
"@typespec/rest": ">=0.50.0 <1.0.0",
15+
"@typespec/versioning": ">=0.50.0 <1.0.0",
1616
"prettier": "2.7.1"
1717
},
1818
"devDependencies": {

packages/typespec-test/test/authoring/generated/openapi/openapi.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,8 @@
922922
"type": "string",
923923
"description": "Enum describing allowed operation states.",
924924
"enum": [
925-
"InProgress",
925+
"NotStarted",
926+
"Running",
926927
"Succeeded",
927928
"Failed",
928929
"Canceled"
@@ -932,8 +933,13 @@
932933
"modelAsString": true,
933934
"values": [
934935
{
935-
"name": "InProgress",
936-
"value": "InProgress",
936+
"name": "NotStarted",
937+
"value": "NotStarted",
938+
"description": "The operation has not started."
939+
},
940+
{
941+
"name": "Running",
942+
"value": "Running",
937943
"description": "The operation is in progress."
938944
},
939945
{

packages/typespec-test/test/authoring/generated/typespec-ts/src/outputModels.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface OperationStatusOutput {
4343
/**
4444
* The status of the operation
4545
*
46-
* Possible values: InProgress, Succeeded, Failed, Canceled
46+
* Possible values: NotStarted, Running, Succeeded, Failed, Canceled
4747
*/
4848
status: string;
4949
/** Error object that describes the error when status is "Failed". */

packages/typespec-test/test/contoso/generated/openapi/2022-11-01-preview/openapi.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@
359359
"type": "string",
360360
"description": "Enum describing allowed operation states.",
361361
"enum": [
362-
"InProgress",
362+
"NotStarted",
363+
"Running",
363364
"Succeeded",
364365
"Failed",
365366
"Canceled"
@@ -369,8 +370,13 @@
369370
"modelAsString": true,
370371
"values": [
371372
{
372-
"name": "InProgress",
373-
"value": "InProgress",
373+
"name": "NotStarted",
374+
"value": "NotStarted",
375+
"description": "The operation has not started."
376+
},
377+
{
378+
"name": "Running",
379+
"value": "Running",
374380
"description": "The operation is in progress."
375381
},
376382
{

packages/typespec-test/test/contoso/generated/typespec-ts/src/outputModels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface ResourceOperationStatusOutput {
2929
/**
3030
* The status of the operation
3131
*
32-
* Possible values: InProgress, Succeeded, Failed, Canceled
32+
* Possible values: NotStarted, Running, Succeeded, Failed, Canceled
3333
*/
3434
status: string;
3535
/** Error object that describes the error when status is "Failed". */
@@ -45,7 +45,7 @@ export interface OperationStatusOutput {
4545
/**
4646
* The status of the operation
4747
*
48-
* Possible values: InProgress, Succeeded, Failed, Canceled
48+
* Possible values: NotStarted, Running, Succeeded, Failed, Canceled
4949
*/
5050
status: string;
5151
/** Error object that describes the error when status is "Failed". */

packages/typespec-ts/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@
7474
"@typespec/ts-http-runtime": "1.0.0-alpha.20231103.1"
7575
},
7676
"peerDependencies": {
77-
"@azure-tools/typespec-azure-core": ">=0.35.0 <1.0.0",
78-
"@azure-tools/typespec-client-generator-core": ">=0.35.0 <1.0.0",
79-
"@typespec/compiler": ">=0.49.0 <1.0.0",
80-
"@typespec/http": ">=0.49.0 <1.0.0",
81-
"@typespec/rest": ">=0.49.0 <1.0.0",
82-
"@typespec/versioning": ">=0.49.0 <1.0.0"
77+
"@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0",
78+
"@azure-tools/typespec-client-generator-core": ">=0.36.0 <1.0.0",
79+
"@typespec/compiler": ">=0.50.0 <1.0.0",
80+
"@typespec/http": ">=0.50.0 <1.0.0",
81+
"@typespec/rest": ">=0.50.0 <1.0.0",
82+
"@typespec/versioning": ">=0.50.0 <1.0.0"
8383
},
8484
"dependencies": {
8585
"prettier": "^2.6.1",

packages/typespec-ts/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function $onEmit(context: EmitContext) {
6161
/** Shared status */
6262
const program: Program = context.program;
6363
const emitterOptions: RLCOptions = context.options;
64-
const dpgContext = createSdkContext(context) as SdkContext;
64+
const dpgContext = createSdkContext(context, "@azure-tools/typespec-ts") as SdkContext;
6565
const needUnexpectedHelper: Map<string, boolean> = new Map<string, boolean>();
6666
const serviceNameToRlcModelsMap: Map<string, RLCModel> = new Map<
6767
string,

packages/typespec-ts/test/integration/generated/lro/lroCore/src/outputModels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface OperationStatusOutput {
1818
/**
1919
* The status of the operation
2020
*
21-
* Possible values: InProgress, Succeeded, Failed, Canceled
21+
* Possible values: NotStarted, Running, Succeeded, Failed, Canceled
2222
*/
2323
status: string;
2424
/** Error object that describes the error when status is "Failed". */
@@ -32,7 +32,7 @@ export interface ResourceOperationStatusOutput {
3232
/**
3333
* The status of the operation
3434
*
35-
* Possible values: InProgress, Succeeded, Failed, Canceled
35+
* Possible values: NotStarted, Running, Succeeded, Failed, Canceled
3636
*/
3737
status: string;
3838
/** Error object that describes the error when status is "Failed". */

packages/typespec-ts/test/util/testUtil.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function createDpgContextTestHelper(program: Program): SdkContext {
7676
main: "@azure-tools/typespec-ts",
7777
metadata: { name: "@azure-tools/typespec-ts" }
7878
}
79-
]
79+
],
8080
};
8181
const resolvedOptions = { ...defaultOptions };
8282
program.emitters = resolvedOptions.emitters as any;
@@ -85,7 +85,8 @@ export function createDpgContextTestHelper(program: Program): SdkContext {
8585
generateProtocolMethods: resolvedOptions.generateProtocolMethods,
8686
generateConvenienceMethods: resolvedOptions.generateConvenienceMethods,
8787
rlcOptions: {},
88-
generationPathDetail: {}
88+
generationPathDetail: {},
89+
emitterName: "@azure-tools/typespec-ts"
8990
} as SdkContext;
9091
}
9192

0 commit comments

Comments
 (0)