Skip to content

Commit

Permalink
tsp, prepare release for upgrading compiler to 0.62 (#2978)
Browse files Browse the repository at this point in the history
* update core

* update versions

* sync tests

* update readme
  • Loading branch information
haolingdong-msft authored Nov 8, 2024
1 parent 686259e commit 53db478
Show file tree
Hide file tree
Showing 17 changed files with 225 additions and 210 deletions.
2 changes: 1 addition & 1 deletion core
Submodule core updated 2355 files
4 changes: 4 additions & 0 deletions typespec-extension/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 0.24.0 (2024-11-08)

Compatible with compiler 0.62.

## 0.23.0 (2024-11-07)

Compatible with compiler 0.61.
Expand Down
239 changes: 125 additions & 114 deletions typespec-extension/package-lock.json

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions typespec-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-java",
"version": "0.23.0",
"version": "0.24.0",
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
"keywords": [
"TypeSpec"
Expand Down Expand Up @@ -45,41 +45,41 @@
"generator/http-client-generator/target/emitter.jar"
],
"peerDependencies": {
"@azure-tools/typespec-azure-core": ">=0.47.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.47.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.47.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.47.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.47.1 <1.0.0",
"@typespec/compiler": ">=0.61.0 <1.0.0",
"@typespec/http": ">=0.61.0 <1.0.0",
"@typespec/openapi": ">=0.61.0 <1.0.0",
"@typespec/rest": ">=0.61.0 <1.0.0",
"@typespec/versioning": ">=0.61.0 <1.0.0",
"@typespec/xml": ">=0.61.0 <1.0.0"
"@azure-tools/typespec-azure-core": ">=0.48.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.48.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.48.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.48.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.48.0 <1.0.0",
"@typespec/compiler": ">=0.62.0 <1.0.0",
"@typespec/http": ">=0.62.0 <1.0.0",
"@typespec/openapi": ">=0.62.0 <1.0.0",
"@typespec/rest": ">=0.62.0 <1.0.0",
"@typespec/versioning": ">=0.62.0 <1.0.0",
"@typespec/xml": ">=0.62.0 <1.0.0"
},
"dependencies": {
"@autorest/codemodel": "~4.20.0",
"js-yaml": "~4.1.0",
"lodash": "~4.17.21"
},
"devDependencies": {
"@azure-tools/typespec-azure-core": "0.47.0",
"@azure-tools/typespec-azure-resource-manager": "0.47.1",
"@azure-tools/typespec-autorest": "0.47.0",
"@azure-tools/typespec-azure-rulesets": "0.47.0",
"@azure-tools/typespec-client-generator-core": "0.47.2",
"@azure-tools/typespec-azure-core": "0.48.0",
"@azure-tools/typespec-azure-resource-manager": "0.48.0",
"@azure-tools/typespec-autorest": "0.48.0",
"@azure-tools/typespec-azure-rulesets": "0.48.0",
"@azure-tools/typespec-client-generator-core": "0.48.0",
"@types/js-yaml": "~4.0.9",
"@types/lodash": "~4.17.12",
"@types/mocha": "~10.0.9",
"@types/node": "~22.7.7",
"@typescript-eslint/eslint-plugin": "~8.10.0",
"@typescript-eslint/parser": "~8.10.0",
"@typespec/compiler": "0.61.2",
"@typespec/http": "0.61.0",
"@typespec/openapi": "0.61.0",
"@typespec/rest": "0.61.0",
"@typespec/versioning": "0.61.0",
"@typespec/xml": "0.61.0",
"@typespec/compiler": "0.62.0",
"@typespec/http": "0.62.0",
"@typespec/openapi": "0.62.0",
"@typespec/rest": "0.62.0",
"@typespec/versioning": "0.62.0",
"@typespec/xml": "0.62.0",
"c8": "~10.1.2",
"eslint": "~8.57.0",
"eslint-plugin-deprecation": "~3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typespec-extension/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Install [Node.js](https://nodejs.org/en/download/) 20 or above. (Verify by `node

Install [Java](https://docs.microsoft.com/java/openjdk/download) 11 or above. (Verify by `java --version`)

Install [TypeSpec](https://github.com/microsoft/typespec/) 0.61.
Install [TypeSpec](https://github.com/microsoft/typespec/) 0.62.

# Initialize TypeSpec Project

Expand Down
24 changes: 12 additions & 12 deletions typespec-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@
},
"dependencies": {
"@azure-tools/cadl-ranch-specs": "0.38.0",
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.23.0.tgz"
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.24.0.tgz"
},
"devDependencies": {
"@typespec/prettier-plugin-typespec": "~0.61.0",
"@typespec/prettier-plugin-typespec": "~0.62.0",
"prettier-plugin-organize-imports": "4.0.0",
"prettier": "~3.3.3"
},
"overrides": {
"@typespec/compiler": "~0.61.0",
"@typespec/http": "~0.61.0",
"@typespec/rest": "~0.61.0",
"@typespec/versioning": "~0.61.0",
"@typespec/openapi": "~0.61.0",
"@typespec/xml": "~0.61.0",
"@azure-tools/typespec-azure-core": "~0.47.0",
"@azure-tools/typespec-client-generator-core": "~0.47.1",
"@azure-tools/typespec-azure-resource-manager": "~0.47.0",
"@azure-tools/typespec-autorest": "~0.47.0"
"@typespec/compiler": "~0.62.0",
"@typespec/http": "~0.62.0",
"@typespec/rest": "~0.62.0",
"@typespec/versioning": "~0.62.0",
"@typespec/openapi": "~0.62.0",
"@typespec/xml": "~0.62.0",
"@azure-tools/typespec-azure-core": "~0.48.0",
"@azure-tools/typespec-client-generator-core": "~0.48.0",
"@azure-tools/typespec-azure-resource-manager": "~0.48.0",
"@azure-tools/typespec-autorest": "~0.48.0"
},
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ public final class RelativeModelInOperationAsyncClient {
}

/**
* Expected query parameter: name=&lt;any string&gt;
* Expected query parameter: name="Madge"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "inner":
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* }
* ```.
Expand Down Expand Up @@ -80,11 +80,11 @@ Mono<Response<BinaryData>> operationWithResponse(String name, RequestOptions req
}

/**
* Expected query parameter: kind=&lt;any string&gt;
* Expected query parameter: kind= "real"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "kind": "real"
* }
* ```.
Expand Down Expand Up @@ -115,14 +115,14 @@ Mono<Response<BinaryData>> discriminatorWithResponse(String kind, RequestOptions
}

/**
* Expected query parameter: name=&lt;any string&gt;
* Expected query parameter: name="Madge"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "inner":
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* }
* ```.
Expand All @@ -147,11 +147,11 @@ Mono<OuterModel> operation(String name) {
}

/**
* Expected query parameter: kind=&lt;any string&gt;
* Expected query parameter: kind= "real"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "kind": "real"
* }
* ```.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ public final class RelativeModelInOperationClient {
}

/**
* Expected query parameter: name=&lt;any string&gt;
* Expected query parameter: name="Madge"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "inner":
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* }
* ```.
Expand Down Expand Up @@ -77,11 +77,11 @@ Response<BinaryData> operationWithResponse(String name, RequestOptions requestOp
}

/**
* Expected query parameter: kind=&lt;any string&gt;
* Expected query parameter: kind= "real"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "kind": "real"
* }
* ```.
Expand Down Expand Up @@ -111,14 +111,14 @@ Response<BinaryData> discriminatorWithResponse(String kind, RequestOptions reque
}

/**
* Expected query parameter: name=&lt;any string&gt;
* Expected query parameter: name="Madge"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "inner":
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* }
* ```.
Expand All @@ -141,11 +141,11 @@ OuterModel operation(String name) {
}

/**
* Expected query parameter: kind=&lt;any string&gt;
* Expected query parameter: kind= "real"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "kind": "real"
* }
* ```.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ Response<BinaryData> discriminatorSync(@HostParam("endpoint") String endpoint, @
}

/**
* Expected query parameter: name=&lt;any string&gt;
* Expected query parameter: name="Madge"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "inner":
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* }
* ```.
Expand Down Expand Up @@ -138,14 +138,14 @@ public Mono<Response<BinaryData>> operationWithResponseAsync(String name, Reques
}

/**
* Expected query parameter: name=&lt;any string&gt;
* Expected query parameter: name="Madge"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "inner":
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* }
* ```.
Expand Down Expand Up @@ -177,11 +177,11 @@ public Response<BinaryData> operationWithResponse(String name, RequestOptions re
}

/**
* Expected query parameter: kind=&lt;any string&gt;
* Expected query parameter: kind= "real"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "kind": "real"
* }
* ```.
Expand Down Expand Up @@ -213,11 +213,11 @@ public Mono<Response<BinaryData>> discriminatorWithResponseAsync(String kind, Re
}

/**
* Expected query parameter: kind=&lt;any string&gt;
* Expected query parameter: kind= "real"
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;,
* "name": "Madge",
* "kind": "real"
* }
* ```.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class UsageAsyncClient {
* Expected body parameter:
* ```json
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* ```.
* <p><strong>Request Body Schema</strong></p>
Expand Down Expand Up @@ -75,7 +75,7 @@ public Mono<Response<Void>> inputToInputOutputWithResponse(BinaryData body, Requ
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* ```.
* <p><strong>Response Body Schema</strong></p>
Expand Down Expand Up @@ -114,7 +114,7 @@ public Mono<Response<BinaryData>> outputToInputOutputWithResponse(RequestOptions
* ```json
* {
* "result": {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* }
* ```.
Expand Down Expand Up @@ -161,7 +161,7 @@ public Mono<Response<BinaryData>> modelInReadOnlyPropertyWithResponse(BinaryData
* Expected body parameter:
* ```json
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* ```.
*
Expand All @@ -186,7 +186,7 @@ public Mono<Void> inputToInputOutput(InputModel body) {
* Expected response body:
* ```json
* {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* ```.
*
Expand Down Expand Up @@ -219,7 +219,7 @@ public Mono<OutputModel> outputToInputOutput() {
* ```json
* {
* "result": {
* "name": &lt;any string&gt;
* "name": "Madge"
* }
* }
* ```.
Expand Down
Loading

0 comments on commit 53db478

Please sign in to comment.