Skip to content

Commit 0bd1419

Browse files
eng, prepare 0.31.12 (#3175)
1 parent 766ed97 commit 0bd1419

File tree

24 files changed

+344
-431
lines changed

24 files changed

+344
-431
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Steps:
77

88
1. In "core" folder, run `git pull upstream main` to fetch latest commit from upstream or origin.
99
2. Go back to project root. Commit the change in "core" folder.
10-
3. Run `ncu -u -x @typescript-eslint/eslint-plugin` on "package.json" in both "package.json" from "typespec-extension" and "typespec-tests" folder.
10+
3. Run `ncu -u` on "package.json" in both "package.json" from "typespec-extension" and "typespec-tests" folder.
1111
4. Update package versions in `peerDependencies` (keep the semver range) in "package.json" from "typespec-extension" folder, according to the corresponding package versions in `devDependencies`.
1212
5. Update package versions in `override` (keep the semver range) in "package.json" from "typespec-tests" folder, according to the corresponding package versions in "package.json" from "typespec-extension" folder.
1313
6. Save the files, and run `npm install` in "typespec-extension" folder, so that "package-lock.json" would be updated.

core

Submodule core updated 63 files

typespec-extension/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 0.31.12 (2025-08-06)
4+
5+
Compatible with compiler 1.2.1.
6+
7+
- Bug fixes and improvements.
8+
39
## 0.31.11 (2025-07-31)
410

511
Compatible with compiler 1.2.1.

typespec-extension/package-lock.json

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

typespec-extension/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.31.11",
3+
"version": "0.31.12",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -51,7 +51,7 @@
5151
"@azure-tools/typespec-azure-core": ">=0.58.0 <1.0.0",
5252
"@azure-tools/typespec-azure-resource-manager": ">=0.58.1 <1.0.0",
5353
"@azure-tools/typespec-azure-rulesets": ">=0.58.0 <1.0.0",
54-
"@azure-tools/typespec-client-generator-core": ">=0.58.0 <1.0.0",
54+
"@azure-tools/typespec-client-generator-core": ">=0.58.2 <1.0.0",
5555
"@azure-tools/typespec-liftr-base": ">=0.8.0 <1.0.0",
5656
"@typespec/compiler": "^1.2.1",
5757
"@typespec/http": "^1.2.1",
@@ -70,13 +70,13 @@
7070
"@azure-tools/typespec-azure-core": "0.58.0",
7171
"@azure-tools/typespec-azure-resource-manager": "0.58.1",
7272
"@azure-tools/typespec-azure-rulesets": "0.58.0",
73-
"@azure-tools/typespec-client-generator-core": "0.58.0",
73+
"@azure-tools/typespec-client-generator-core": "0.58.2",
7474
"@azure-tools/typespec-liftr-base": "0.8.0",
7575
"@types/js-yaml": "~4.0.9",
7676
"@types/lodash": "~4.17.20",
77-
"@types/node": "~24.1.0",
78-
"@typescript-eslint/eslint-plugin": "~8.38.0",
79-
"@typescript-eslint/parser": "~8.38.0",
77+
"@types/node": "~24.2.0",
78+
"@typescript-eslint/eslint-plugin": "~8.39.0",
79+
"@typescript-eslint/parser": "~8.39.0",
8080
"@typespec/compiler": "1.2.1",
8181
"@typespec/http": "1.2.1",
8282
"@typespec/openapi": "1.2.1",
@@ -87,7 +87,7 @@
8787
"@typespec/sse": "0.72.1",
8888
"@typespec/streams": "0.72.1",
8989
"@typespec/tspd": "0.72.1",
90-
"@microsoft/api-extractor": "^7.52.9",
90+
"@microsoft/api-extractor": "^7.52.10",
9191
"@vitest/coverage-v8": "^3.2.4",
9292
"@vitest/ui": "^3.2.4",
9393
"c8": "~10.1.3",
@@ -97,8 +97,8 @@
9797
"eslint-plugin-unicorn": "^60.0.0",
9898
"prettier": "~3.6.2",
9999
"rimraf": "~6.0.1",
100-
"typescript": "~5.8.3",
101-
"typescript-eslint": "^8.38.0",
100+
"typescript": "~5.9.2",
101+
"typescript-eslint": "^8.39.0",
102102
"vitest": "^3.2.4"
103103
},
104104
"overrides": {

typespec-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@typespec/spector": "0.1.0-alpha.16",
1414
"@typespec/http-specs": "0.1.0-alpha.24",
1515
"@azure-tools/azure-http-specs": "0.1.0-alpha.23",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.11.tgz"
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.12.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "^1.2.1",
@@ -31,7 +31,7 @@
3131
"@typespec/sse": "0.72.1",
3232
"@typespec/streams": "0.72.1",
3333
"@azure-tools/typespec-azure-core": "0.58.0",
34-
"@azure-tools/typespec-client-generator-core": "0.58.0",
34+
"@azure-tools/typespec-client-generator-core": "0.58.2",
3535
"@azure-tools/typespec-azure-resource-manager": "0.58.1",
3636
"@azure-tools/typespec-autorest": "0.58.1"
3737
},

typespec-tests/src/main/java/authentication/apikey/implementation/ApiKeyClientImpl.java

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

77
import com.azure.core.annotation.ExpectedResponses;
88
import com.azure.core.annotation.Get;
9-
import com.azure.core.annotation.HeaderParam;
109
import com.azure.core.annotation.Host;
1110
import com.azure.core.annotation.HostParam;
1211
import com.azure.core.annotation.ReturnType;
@@ -145,17 +144,17 @@ Response<Void> validSync(@HostParam("endpoint") String endpoint, RequestOptions
145144
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
146145
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
147146
@UnexpectedResponseExceptionType(HttpResponseException.class)
148-
Mono<Response<Void>> invalid(@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept,
149-
RequestOptions requestOptions, Context context);
147+
Mono<Response<Void>> invalid(@HostParam("endpoint") String endpoint, RequestOptions requestOptions,
148+
Context context);
150149

151150
@Get("/authentication/api-key/invalid")
152151
@ExpectedResponses({ 204 })
153152
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
154153
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
155154
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
156155
@UnexpectedResponseExceptionType(HttpResponseException.class)
157-
Response<Void> invalidSync(@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept,
158-
RequestOptions requestOptions, Context context);
156+
Response<Void> invalidSync(@HostParam("endpoint") String endpoint, RequestOptions requestOptions,
157+
Context context);
159158
}
160159

161160
/**
@@ -200,8 +199,7 @@ public Response<Void> validWithResponse(RequestOptions requestOptions) {
200199
*/
201200
@ServiceMethod(returns = ReturnType.SINGLE)
202201
public Mono<Response<Void>> invalidWithResponseAsync(RequestOptions requestOptions) {
203-
final String accept = "application/json";
204-
return FluxUtil.withContext(context -> service.invalid(this.getEndpoint(), accept, requestOptions, context));
202+
return FluxUtil.withContext(context -> service.invalid(this.getEndpoint(), requestOptions, context));
205203
}
206204

207205
/**
@@ -216,7 +214,6 @@ public Mono<Response<Void>> invalidWithResponseAsync(RequestOptions requestOptio
216214
*/
217215
@ServiceMethod(returns = ReturnType.SINGLE)
218216
public Response<Void> invalidWithResponse(RequestOptions requestOptions) {
219-
final String accept = "application/json";
220-
return service.invalidSync(this.getEndpoint(), accept, requestOptions, Context.NONE);
217+
return service.invalidSync(this.getEndpoint(), requestOptions, Context.NONE);
221218
}
222219
}

typespec-tests/src/main/java/authentication/http/custom/implementation/CustomClientImpl.java

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

77
import com.azure.core.annotation.ExpectedResponses;
88
import com.azure.core.annotation.Get;
9-
import com.azure.core.annotation.HeaderParam;
109
import com.azure.core.annotation.Host;
1110
import com.azure.core.annotation.HostParam;
1211
import com.azure.core.annotation.ReturnType;
@@ -145,17 +144,17 @@ Response<Void> validSync(@HostParam("endpoint") String endpoint, RequestOptions
145144
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
146145
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
147146
@UnexpectedResponseExceptionType(HttpResponseException.class)
148-
Mono<Response<Void>> invalid(@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept,
149-
RequestOptions requestOptions, Context context);
147+
Mono<Response<Void>> invalid(@HostParam("endpoint") String endpoint, RequestOptions requestOptions,
148+
Context context);
150149

151150
@Get("/authentication/http/custom/invalid")
152151
@ExpectedResponses({ 204 })
153152
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
154153
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
155154
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
156155
@UnexpectedResponseExceptionType(HttpResponseException.class)
157-
Response<Void> invalidSync(@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept,
158-
RequestOptions requestOptions, Context context);
156+
Response<Void> invalidSync(@HostParam("endpoint") String endpoint, RequestOptions requestOptions,
157+
Context context);
159158
}
160159

161160
/**
@@ -200,8 +199,7 @@ public Response<Void> validWithResponse(RequestOptions requestOptions) {
200199
*/
201200
@ServiceMethod(returns = ReturnType.SINGLE)
202201
public Mono<Response<Void>> invalidWithResponseAsync(RequestOptions requestOptions) {
203-
final String accept = "application/json";
204-
return FluxUtil.withContext(context -> service.invalid(this.getEndpoint(), accept, requestOptions, context));
202+
return FluxUtil.withContext(context -> service.invalid(this.getEndpoint(), requestOptions, context));
205203
}
206204

207205
/**
@@ -216,7 +214,6 @@ public Mono<Response<Void>> invalidWithResponseAsync(RequestOptions requestOptio
216214
*/
217215
@ServiceMethod(returns = ReturnType.SINGLE)
218216
public Response<Void> invalidWithResponse(RequestOptions requestOptions) {
219-
final String accept = "application/json";
220-
return service.invalidSync(this.getEndpoint(), accept, requestOptions, Context.NONE);
217+
return service.invalidSync(this.getEndpoint(), requestOptions, Context.NONE);
221218
}
222219
}

typespec-tests/src/main/java/authentication/oauth2/implementation/OAuth2ClientImpl.java

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

77
import com.azure.core.annotation.ExpectedResponses;
88
import com.azure.core.annotation.Get;
9-
import com.azure.core.annotation.HeaderParam;
109
import com.azure.core.annotation.Host;
1110
import com.azure.core.annotation.HostParam;
1211
import com.azure.core.annotation.ReturnType;
@@ -145,17 +144,17 @@ Response<Void> validSync(@HostParam("endpoint") String endpoint, RequestOptions
145144
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
146145
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
147146
@UnexpectedResponseExceptionType(HttpResponseException.class)
148-
Mono<Response<Void>> invalid(@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept,
149-
RequestOptions requestOptions, Context context);
147+
Mono<Response<Void>> invalid(@HostParam("endpoint") String endpoint, RequestOptions requestOptions,
148+
Context context);
150149

151150
@Get("/authentication/oauth2/invalid")
152151
@ExpectedResponses({ 204 })
153152
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
154153
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
155154
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
156155
@UnexpectedResponseExceptionType(HttpResponseException.class)
157-
Response<Void> invalidSync(@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept,
158-
RequestOptions requestOptions, Context context);
156+
Response<Void> invalidSync(@HostParam("endpoint") String endpoint, RequestOptions requestOptions,
157+
Context context);
159158
}
160159

161160
/**
@@ -200,8 +199,7 @@ public Response<Void> validWithResponse(RequestOptions requestOptions) {
200199
*/
201200
@ServiceMethod(returns = ReturnType.SINGLE)
202201
public Mono<Response<Void>> invalidWithResponseAsync(RequestOptions requestOptions) {
203-
final String accept = "application/json";
204-
return FluxUtil.withContext(context -> service.invalid(this.getEndpoint(), accept, requestOptions, context));
202+
return FluxUtil.withContext(context -> service.invalid(this.getEndpoint(), requestOptions, context));
205203
}
206204

207205
/**
@@ -216,7 +214,6 @@ public Mono<Response<Void>> invalidWithResponseAsync(RequestOptions requestOptio
216214
*/
217215
@ServiceMethod(returns = ReturnType.SINGLE)
218216
public Response<Void> invalidWithResponse(RequestOptions requestOptions) {
219-
final String accept = "application/json";
220-
return service.invalidSync(this.getEndpoint(), accept, requestOptions, Context.NONE);
217+
return service.invalidSync(this.getEndpoint(), requestOptions, Context.NONE);
221218
}
222219
}

typespec-tests/src/main/java/azure/core/basic/implementation/BasicClientImpl.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ Response<BinaryData> listSync(@HostParam("endpoint") String endpoint,
250250
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
251251
@UnexpectedResponseExceptionType(HttpResponseException.class)
252252
Mono<Response<Void>> delete(@HostParam("endpoint") String endpoint,
253-
@QueryParam("api-version") String apiVersion, @PathParam("id") int id, @HeaderParam("Accept") String accept,
254-
RequestOptions requestOptions, Context context);
253+
@QueryParam("api-version") String apiVersion, @PathParam("id") int id, RequestOptions requestOptions,
254+
Context context);
255255

256256
@Delete("/azure/core/basic/users/{id}")
257257
@ExpectedResponses({ 204 })
@@ -260,8 +260,7 @@ Mono<Response<Void>> delete(@HostParam("endpoint") String endpoint,
260260
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
261261
@UnexpectedResponseExceptionType(HttpResponseException.class)
262262
Response<Void> deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
263-
@PathParam("id") int id, @HeaderParam("Accept") String accept, RequestOptions requestOptions,
264-
Context context);
263+
@PathParam("id") int id, RequestOptions requestOptions, Context context);
265264

266265
@Post("/azure/core/basic/users/{id}:export")
267266
@ExpectedResponses({ 200 })
@@ -919,9 +918,8 @@ public PagedIterable<BinaryData> list(RequestOptions requestOptions) {
919918
*/
920919
@ServiceMethod(returns = ReturnType.SINGLE)
921920
public Mono<Response<Void>> deleteWithResponseAsync(int id, RequestOptions requestOptions) {
922-
final String accept = "application/json";
923921
return FluxUtil.withContext(context -> service.delete(this.getEndpoint(), this.getServiceVersion().getVersion(),
924-
id, accept, requestOptions, context));
922+
id, requestOptions, context));
925923
}
926924

927925
/**
@@ -939,8 +937,7 @@ public Mono<Response<Void>> deleteWithResponseAsync(int id, RequestOptions reque
939937
*/
940938
@ServiceMethod(returns = ReturnType.SINGLE)
941939
public Response<Void> deleteWithResponse(int id, RequestOptions requestOptions) {
942-
final String accept = "application/json";
943-
return service.deleteSync(this.getEndpoint(), this.getServiceVersion().getVersion(), id, accept, requestOptions,
940+
return service.deleteSync(this.getEndpoint(), this.getServiceVersion().getVersion(), id, requestOptions,
944941
Context.NONE);
945942
}
946943

0 commit comments

Comments
 (0)