Skip to content

Commit 48e512e

Browse files
Update Node.js dependencies and prepare v0.38.5 patch release (#3275)
* Initial plan * Update core submodule to latest main branch * Update Node.js dependencies to latest versions using ncu Co-authored-by: weidongxu-microsoft <[email protected]> * Sync tests after dependency updates Co-authored-by: weidongxu-microsoft <[email protected]> * Bump version to 0.38.5 and update changelog Co-authored-by: weidongxu-microsoft <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: weidongxu-microsoft <[email protected]>
1 parent 659100a commit 48e512e

File tree

15 files changed

+465
-207
lines changed

15 files changed

+465
-207
lines changed

core

Submodule core updated 111 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.38.5 (2026-01-23)
4+
5+
Compatible with compiler 1.8.0.
6+
7+
- Updated package dependencies to the latest versions.
8+
39
## 0.38.4 (2026-01-19)
410

511
Compatible with compiler 1.8.0.

typespec-extension/package-lock.json

Lines changed: 182 additions & 180 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: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.38.4",
3+
"version": "0.38.5",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -51,9 +51,9 @@
5151
"@azure-tools/typespec-azure-core": ">=0.64.0 <1.0.0",
5252
"@azure-tools/typespec-azure-resource-manager": ">=0.64.0 <1.0.0",
5353
"@azure-tools/typespec-azure-rulesets": ">=0.64.0 <1.0.0",
54-
"@azure-tools/typespec-client-generator-core": ">=0.64.2 <1.0.0",
54+
"@azure-tools/typespec-client-generator-core": ">=0.64.3 <1.0.0",
5555
"@azure-tools/typespec-liftr-base": ">=0.11.0 <1.0.0",
56-
"@azure-tools/openai-typespec": "^1.6.1",
56+
"@azure-tools/openai-typespec": "^1.7.0",
5757
"@typespec/compiler": "^1.8.0",
5858
"@typespec/http": "^1.8.0",
5959
"@typespec/openapi": "^1.8.0",
@@ -64,20 +64,20 @@
6464
"dependencies": {
6565
"@autorest/codemodel": "~4.20.1",
6666
"js-yaml": "~4.1.1",
67-
"lodash": "~4.17.21"
67+
"lodash": "~4.17.23"
6868
},
6969
"devDependencies": {
7070
"@azure-tools/typespec-autorest": "0.64.0",
7171
"@azure-tools/typespec-azure-core": "0.64.0",
7272
"@azure-tools/typespec-azure-resource-manager": "0.64.0",
7373
"@azure-tools/typespec-azure-rulesets": "0.64.0",
74-
"@azure-tools/typespec-client-generator-core": "0.64.2",
74+
"@azure-tools/typespec-client-generator-core": "0.64.3",
7575
"@azure-tools/typespec-liftr-base": "0.11.0",
76-
"@azure-tools/openai-typespec": "^1.6.2",
76+
"@azure-tools/openai-typespec": "^1.7.0",
7777
"@microsoft/api-extractor": "^7.55.2",
7878
"@types/js-yaml": "~4.0.9",
7979
"@types/lodash": "~4.17.23",
80-
"@types/node": "~25.0.9",
80+
"@types/node": "~25.0.10",
8181
"@typescript-eslint/eslint-plugin": "~8.53.1",
8282
"@typescript-eslint/parser": "~8.53.1",
8383
"@typespec/compiler": "1.8.0",
@@ -90,18 +90,18 @@
9090
"@typespec/tspd": "0.73.3",
9191
"@typespec/versioning": "0.78.0",
9292
"@typespec/xml": "0.78.0",
93-
"@vitest/coverage-v8": "^4.0.17",
94-
"@vitest/ui": "^4.0.17",
93+
"@vitest/coverage-v8": "^4.0.18",
94+
"@vitest/ui": "^4.0.18",
9595
"c8": "~10.1.3",
9696
"eslint": "~9.39.2",
9797
"eslint-plugin-deprecation": "~3.0.0",
9898
"eslint-plugin-import": "^2.32.0",
9999
"eslint-plugin-unicorn": "^62.0.0",
100-
"prettier": "~3.8.0",
100+
"prettier": "~3.8.1",
101101
"rimraf": "~6.1.2",
102102
"typescript": "~5.9.3",
103103
"typescript-eslint": "^8.53.1",
104-
"vitest": "^4.0.17"
104+
"vitest": "^4.0.18"
105105
},
106106
"overrides": {
107107
"eslint": "~9.39.2",

typespec-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"@typespec/spector": "0.1.0-alpha.22",
1414
"@typespec/http-specs": "0.1.0-alpha.31",
1515
"@azure-tools/azure-http-specs": "0.1.0-alpha.36",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.38.4.tgz"
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.38.5.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "^1.8.0",
2020
"prettier-plugin-organize-imports": "^4.3.0",
21-
"prettier": "^3.8.0"
21+
"prettier": "^3.8.1"
2222
},
2323
"overrides": {
2424
"@typespec/compiler": "1.8.0",
@@ -31,7 +31,7 @@
3131
"@typespec/sse": "0.78.0",
3232
"@typespec/streams": "0.78.0",
3333
"@azure-tools/typespec-azure-core": "0.64.0",
34-
"@azure-tools/typespec-client-generator-core": "0.64.2",
34+
"@azure-tools/typespec-client-generator-core": "0.64.3",
3535
"@azure-tools/typespec-azure-resource-manager": "0.64.0",
3636
"@azure-tools/typespec-autorest": "0.64.0",
3737
"@azure-tools/typespec-liftr-base": "0.11.0"

typespec-tests/src/main/java/documentation/implementation/ListsImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Response<Void> bulletPointsOpSync(@HostParam("endpoint") String endpoint, Reques
7777
Context context);
7878

7979
@Post("/documentation/lists/bullet-points/model")
80-
@ExpectedResponses({ 204 })
80+
@ExpectedResponses({ 200 })
8181
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
8282
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
8383
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@@ -88,7 +88,7 @@ Mono<Response<Void>> bulletPointsModel(@HostParam("endpoint") String endpoint,
8888
Context context);
8989

9090
@Post("/documentation/lists/bullet-points/model")
91-
@ExpectedResponses({ 204 })
91+
@ExpectedResponses({ 200 })
9292
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
9393
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
9494
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })

typespec-tests/src/main/java/specialwords/ModelPropertiesAsyncClient.java

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import reactor.core.publisher.Mono;
2020
import specialwords.implementation.ModelPropertiesImpl;
2121
import specialwords.modelproperties.models.DictMethods;
22+
import specialwords.modelproperties.models.ModelWithList;
2223
import specialwords.modelproperties.models.SameAsModel;
2324

2425
/**
@@ -100,6 +101,32 @@ public Mono<Response<Void>> dictMethodsWithResponse(BinaryData body, RequestOpti
100101
return this.serviceClient.dictMethodsWithResponseAsync(body, requestOptions);
101102
}
102103

104+
/**
105+
* The withList operation.
106+
* <p><strong>Request Body Schema</strong></p>
107+
*
108+
* <pre>
109+
* {@code
110+
* {
111+
* list: String (Required)
112+
* }
113+
* }
114+
* </pre>
115+
*
116+
* @param body The body parameter.
117+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
118+
* @throws HttpResponseException thrown if the request is rejected by server.
119+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
120+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
121+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
122+
* @return the {@link Response} on successful completion of {@link Mono}.
123+
*/
124+
@Generated
125+
@ServiceMethod(returns = ReturnType.SINGLE)
126+
public Mono<Response<Void>> withListWithResponse(BinaryData body, RequestOptions requestOptions) {
127+
return this.serviceClient.withListWithResponseAsync(body, requestOptions);
128+
}
129+
103130
/**
104131
* The sameAsModel operation.
105132
*
@@ -139,4 +166,24 @@ public Mono<Void> dictMethods(DictMethods body) {
139166
RequestOptions requestOptions = new RequestOptions();
140167
return dictMethodsWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono);
141168
}
169+
170+
/**
171+
* The withList operation.
172+
*
173+
* @param body The body parameter.
174+
* @throws IllegalArgumentException thrown if parameters fail the validation.
175+
* @throws HttpResponseException thrown if the request is rejected by server.
176+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
177+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
178+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
179+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
180+
* @return A {@link Mono} that completes when a successful response is received.
181+
*/
182+
@Generated
183+
@ServiceMethod(returns = ReturnType.SINGLE)
184+
public Mono<Void> withList(ModelWithList body) {
185+
// Generated convenience method for withListWithResponse
186+
RequestOptions requestOptions = new RequestOptions();
187+
return withListWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono);
188+
}
142189
}

typespec-tests/src/main/java/specialwords/ModelPropertiesClient.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.azure.core.util.BinaryData;
1818
import specialwords.implementation.ModelPropertiesImpl;
1919
import specialwords.modelproperties.models.DictMethods;
20+
import specialwords.modelproperties.models.ModelWithList;
2021
import specialwords.modelproperties.models.SameAsModel;
2122

2223
/**
@@ -98,6 +99,32 @@ public Response<Void> dictMethodsWithResponse(BinaryData body, RequestOptions re
9899
return this.serviceClient.dictMethodsWithResponse(body, requestOptions);
99100
}
100101

102+
/**
103+
* The withList operation.
104+
* <p><strong>Request Body Schema</strong></p>
105+
*
106+
* <pre>
107+
* {@code
108+
* {
109+
* list: String (Required)
110+
* }
111+
* }
112+
* </pre>
113+
*
114+
* @param body The body parameter.
115+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
116+
* @throws HttpResponseException thrown if the request is rejected by server.
117+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
118+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
119+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
120+
* @return the {@link Response}.
121+
*/
122+
@Generated
123+
@ServiceMethod(returns = ReturnType.SINGLE)
124+
public Response<Void> withListWithResponse(BinaryData body, RequestOptions requestOptions) {
125+
return this.serviceClient.withListWithResponse(body, requestOptions);
126+
}
127+
101128
/**
102129
* The sameAsModel operation.
103130
*
@@ -135,4 +162,23 @@ public void dictMethods(DictMethods body) {
135162
RequestOptions requestOptions = new RequestOptions();
136163
dictMethodsWithResponse(BinaryData.fromObject(body), requestOptions).getValue();
137164
}
165+
166+
/**
167+
* The withList operation.
168+
*
169+
* @param body The body parameter.
170+
* @throws IllegalArgumentException thrown if parameters fail the validation.
171+
* @throws HttpResponseException thrown if the request is rejected by server.
172+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
173+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
174+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
175+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
176+
*/
177+
@Generated
178+
@ServiceMethod(returns = ReturnType.SINGLE)
179+
public void withList(ModelWithList body) {
180+
// Generated convenience method for withListWithResponse
181+
RequestOptions requestOptions = new RequestOptions();
182+
withListWithResponse(BinaryData.fromObject(body), requestOptions).getValue();
183+
}
138184
}

typespec-tests/src/main/java/specialwords/implementation/ModelPropertiesImpl.java

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,26 @@ Mono<Response<Void>> dictMethods(@HostParam("endpoint") String endpoint,
9797
Response<Void> dictMethodsSync(@HostParam("endpoint") String endpoint,
9898
@HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData body,
9999
RequestOptions requestOptions, Context context);
100+
101+
@Post("/special-words/model-properties/list")
102+
@ExpectedResponses({ 204 })
103+
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
104+
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
105+
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
106+
@UnexpectedResponseExceptionType(HttpResponseException.class)
107+
Mono<Response<Void>> withList(@HostParam("endpoint") String endpoint,
108+
@HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData body,
109+
RequestOptions requestOptions, Context context);
110+
111+
@Post("/special-words/model-properties/list")
112+
@ExpectedResponses({ 204 })
113+
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
114+
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
115+
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
116+
@UnexpectedResponseExceptionType(HttpResponseException.class)
117+
Response<Void> withListSync(@HostParam("endpoint") String endpoint,
118+
@HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData body,
119+
RequestOptions requestOptions, Context context);
100120
}
101121

102122
/**
@@ -222,4 +242,57 @@ public Response<Void> dictMethodsWithResponse(BinaryData body, RequestOptions re
222242
final String contentType = "application/json";
223243
return service.dictMethodsSync(this.client.getEndpoint(), contentType, body, requestOptions, Context.NONE);
224244
}
245+
246+
/**
247+
* The withList operation.
248+
* <p><strong>Request Body Schema</strong></p>
249+
*
250+
* <pre>
251+
* {@code
252+
* {
253+
* list: String (Required)
254+
* }
255+
* }
256+
* </pre>
257+
*
258+
* @param body The body parameter.
259+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
260+
* @throws HttpResponseException thrown if the request is rejected by server.
261+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
262+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
263+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
264+
* @return the {@link Response} on successful completion of {@link Mono}.
265+
*/
266+
@ServiceMethod(returns = ReturnType.SINGLE)
267+
public Mono<Response<Void>> withListWithResponseAsync(BinaryData body, RequestOptions requestOptions) {
268+
final String contentType = "application/json";
269+
return FluxUtil.withContext(
270+
context -> service.withList(this.client.getEndpoint(), contentType, body, requestOptions, context));
271+
}
272+
273+
/**
274+
* The withList operation.
275+
* <p><strong>Request Body Schema</strong></p>
276+
*
277+
* <pre>
278+
* {@code
279+
* {
280+
* list: String (Required)
281+
* }
282+
* }
283+
* </pre>
284+
*
285+
* @param body The body parameter.
286+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
287+
* @throws HttpResponseException thrown if the request is rejected by server.
288+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
289+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
290+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
291+
* @return the {@link Response}.
292+
*/
293+
@ServiceMethod(returns = ReturnType.SINGLE)
294+
public Response<Void> withListWithResponse(BinaryData body, RequestOptions requestOptions) {
295+
final String contentType = "application/json";
296+
return service.withListSync(this.client.getEndpoint(), contentType, body, requestOptions, Context.NONE);
297+
}
225298
}

typespec-tests/src/main/java/specialwords/implementation/package-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* in
3434
* is
3535
* lambda
36+
* list
3637
* not
3738
* or
3839
* pass

0 commit comments

Comments
 (0)