Skip to content

Commit d300455

Browse files
Update Node.js dependencies and prepare patch release 0.44.3 (#3325)
1 parent a07aa80 commit d300455

11 files changed

Lines changed: 976 additions & 866 deletions

File tree

core

Submodule core updated 134 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.44.3 (2026-04-15)
4+
5+
Compatible with compiler 1.11.0.
6+
7+
- Updated package dependencies to the latest versions.
8+
39
## 0.44.2 (2026-04-10)
410

511
Compatible with compiler 1.11.0.

typespec-extension/package-lock.json

Lines changed: 904 additions & 761 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.44.2",
3+
"version": "0.44.3",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -50,9 +50,9 @@
5050
"@azure-tools/openai-typespec": "^1.11.0",
5151
"@azure-tools/typespec-autorest": ">=0.67.0 <1.0.0",
5252
"@azure-tools/typespec-azure-core": ">=0.67.0 <1.0.0",
53-
"@azure-tools/typespec-azure-resource-manager": ">=0.67.0 <1.0.0",
53+
"@azure-tools/typespec-azure-resource-manager": ">=0.67.1 <1.0.0",
5454
"@azure-tools/typespec-azure-rulesets": ">=0.67.0 <1.0.0",
55-
"@azure-tools/typespec-client-generator-core": ">=0.67.0 <1.0.0",
55+
"@azure-tools/typespec-client-generator-core": ">=0.67.2 <1.0.0",
5656
"@azure-tools/typespec-liftr-base": ">=0.13.0 <1.0.0",
5757
"@typespec/compiler": "^1.11.0",
5858
"@typespec/http": "^1.11.0",
@@ -71,16 +71,16 @@
7171
"@azure-tools/openai-typespec": "1.11.0",
7272
"@azure-tools/typespec-autorest": "0.67.0",
7373
"@azure-tools/typespec-azure-core": "0.67.0",
74-
"@azure-tools/typespec-azure-resource-manager": "0.67.0",
74+
"@azure-tools/typespec-azure-resource-manager": "0.67.1",
7575
"@azure-tools/typespec-azure-rulesets": "0.67.0",
76-
"@azure-tools/typespec-client-generator-core": "0.67.1",
76+
"@azure-tools/typespec-client-generator-core": "0.67.2",
7777
"@azure-tools/typespec-liftr-base": "0.13.0",
7878
"@microsoft/api-extractor": "^7.58.2",
7979
"@types/js-yaml": "~4.0.9",
8080
"@types/lodash": "~4.17.24",
8181
"@types/node": "~25.6.0",
82-
"@typescript-eslint/eslint-plugin": "~8.58.1",
83-
"@typescript-eslint/parser": "~8.58.1",
82+
"@typescript-eslint/eslint-plugin": "~8.58.2",
83+
"@typescript-eslint/parser": "~8.58.2",
8484
"@typespec/compiler": "1.11.0",
8585
"@typespec/events": "0.81.0",
8686
"@typespec/http": "1.11.0",
@@ -99,10 +99,10 @@
9999
"eslint-plugin-deprecation": "~3.0.0",
100100
"eslint-plugin-import": "^2.32.0",
101101
"eslint-plugin-unicorn": "^64.0.0",
102-
"prettier": "~3.8.2",
102+
"prettier": "~3.8.3",
103103
"rimraf": "~6.1.3",
104104
"typescript": "~6.0.2",
105-
"typescript-eslint": "^8.58.1",
105+
"typescript-eslint": "^8.58.2",
106106
"vitest": "^4.1.4"
107107
},
108108
"overrides": {

typespec-tests/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"@typespec/spector": "0.1.0-alpha.25",
1414
"@typespec/http-specs": "0.1.0-alpha.36",
1515
"@azure-tools/azure-http-specs": "0.1.0-alpha.39",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.44.2.tgz"
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.44.3.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "^1.11.0",
2020
"prettier-plugin-organize-imports": "^4.3.0",
21-
"prettier": "^3.8.2"
21+
"prettier": "^3.8.3"
2222
},
2323
"overrides": {
2424
"@typespec/compiler": "1.11.0",
@@ -31,8 +31,8 @@
3131
"@typespec/sse": "0.81.0",
3232
"@typespec/streams": "0.81.0",
3333
"@azure-tools/typespec-azure-core": "0.67.0",
34-
"@azure-tools/typespec-client-generator-core": "0.67.1",
35-
"@azure-tools/typespec-azure-resource-manager": "0.67.0",
34+
"@azure-tools/typespec-client-generator-core": "0.67.2",
35+
"@azure-tools/typespec-azure-resource-manager": "0.67.1",
3636
"@azure-tools/typespec-autorest": "0.67.0",
3737
"@azure-tools/typespec-liftr-base": "0.13.0"
3838
},

typespec-tests/src/main/java/tsptest/clientoption/ClientOptionAsyncClient.java

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ public final class ClientOptionAsyncClient {
4040

4141
/**
4242
* The post operation.
43-
* <p><strong>Query Parameters</strong></p>
44-
* <table border="1">
45-
* <caption>Query Parameters</caption>
46-
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
47-
* <tr><td>filter</td><td>String</td><td>No</td><td>The filter parameter</td></tr>
48-
* </table>
49-
* You can add these to a request with {@link RequestOptions#addQueryParam}
5043
* <p><strong>Request Body Schema</strong></p>
5144
*
5245
* <pre>
@@ -58,6 +51,7 @@ public final class ClientOptionAsyncClient {
5851
* }
5952
* </pre>
6053
*
54+
* @param filter The filter parameter.
6155
* @param body The body parameter.
6256
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
6357
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -68,37 +62,14 @@ public final class ClientOptionAsyncClient {
6862
*/
6963
@Generated
7064
@ServiceMethod(returns = ReturnType.SINGLE)
71-
public Mono<Response<Void>> postWithResponse(BinaryData body, RequestOptions requestOptions) {
72-
return this.serviceClient.postWithResponseAsync(body, requestOptions);
65+
public Mono<Response<Void>> postWithResponse(String filter, BinaryData body, RequestOptions requestOptions) {
66+
return this.serviceClient.postWithResponseAsync(filter, body, requestOptions);
7367
}
7468

7569
/**
7670
* The post operation.
7771
*
78-
* @param body The body parameter.
7972
* @param filter The filter parameter.
80-
* @throws IllegalArgumentException thrown if parameters fail the validation.
81-
* @throws HttpResponseException thrown if the request is rejected by server.
82-
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
83-
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
84-
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
85-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
86-
* @return A {@link Mono} that completes when a successful response is received.
87-
*/
88-
@Generated
89-
@ServiceMethod(returns = ReturnType.SINGLE)
90-
public Mono<Void> post(ClientRequiredRequest body, String filter) {
91-
// Generated convenience method for postWithResponse
92-
RequestOptions requestOptions = new RequestOptions();
93-
if (filter != null) {
94-
requestOptions.addQueryParam("filter", filter, false);
95-
}
96-
return postWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono);
97-
}
98-
99-
/**
100-
* The post operation.
101-
*
10273
* @param body The body parameter.
10374
* @throws IllegalArgumentException thrown if parameters fail the validation.
10475
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -110,9 +81,9 @@ public Mono<Void> post(ClientRequiredRequest body, String filter) {
11081
*/
11182
@Generated
11283
@ServiceMethod(returns = ReturnType.SINGLE)
113-
public Mono<Void> post(ClientRequiredRequest body) {
84+
public Mono<Void> post(String filter, ClientRequiredRequest body) {
11485
// Generated convenience method for postWithResponse
11586
RequestOptions requestOptions = new RequestOptions();
116-
return postWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono);
87+
return postWithResponse(filter, BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono);
11788
}
11889
}

typespec-tests/src/main/java/tsptest/clientoption/ClientOptionClient.java

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ public final class ClientOptionClient {
3838

3939
/**
4040
* The post operation.
41-
* <p><strong>Query Parameters</strong></p>
42-
* <table border="1">
43-
* <caption>Query Parameters</caption>
44-
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
45-
* <tr><td>filter</td><td>String</td><td>No</td><td>The filter parameter</td></tr>
46-
* </table>
47-
* You can add these to a request with {@link RequestOptions#addQueryParam}
4841
* <p><strong>Request Body Schema</strong></p>
4942
*
5043
* <pre>
@@ -56,6 +49,7 @@ public final class ClientOptionClient {
5649
* }
5750
* </pre>
5851
*
52+
* @param filter The filter parameter.
5953
* @param body The body parameter.
6054
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
6155
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -66,36 +60,14 @@ public final class ClientOptionClient {
6660
*/
6761
@Generated
6862
@ServiceMethod(returns = ReturnType.SINGLE)
69-
public Response<Void> postWithResponse(BinaryData body, RequestOptions requestOptions) {
70-
return this.serviceClient.postWithResponse(body, requestOptions);
63+
public Response<Void> postWithResponse(String filter, BinaryData body, RequestOptions requestOptions) {
64+
return this.serviceClient.postWithResponse(filter, body, requestOptions);
7165
}
7266

7367
/**
7468
* The post operation.
7569
*
76-
* @param body The body parameter.
7770
* @param filter The filter parameter.
78-
* @throws IllegalArgumentException thrown if parameters fail the validation.
79-
* @throws HttpResponseException thrown if the request is rejected by server.
80-
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
81-
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
82-
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
83-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
84-
*/
85-
@Generated
86-
@ServiceMethod(returns = ReturnType.SINGLE)
87-
public void post(ClientRequiredRequest body, String filter) {
88-
// Generated convenience method for postWithResponse
89-
RequestOptions requestOptions = new RequestOptions();
90-
if (filter != null) {
91-
requestOptions.addQueryParam("filter", filter, false);
92-
}
93-
postWithResponse(BinaryData.fromObject(body), requestOptions).getValue();
94-
}
95-
96-
/**
97-
* The post operation.
98-
*
9971
* @param body The body parameter.
10072
* @throws IllegalArgumentException thrown if parameters fail the validation.
10173
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -106,9 +78,9 @@ public void post(ClientRequiredRequest body, String filter) {
10678
*/
10779
@Generated
10880
@ServiceMethod(returns = ReturnType.SINGLE)
109-
public void post(ClientRequiredRequest body) {
81+
public void post(String filter, ClientRequiredRequest body) {
11082
// Generated convenience method for postWithResponse
11183
RequestOptions requestOptions = new RequestOptions();
112-
postWithResponse(BinaryData.fromObject(body), requestOptions).getValue();
84+
postWithResponse(filter, BinaryData.fromObject(body), requestOptions).getValue();
11385
}
11486
}

typespec-tests/src/main/java/tsptest/clientoption/implementation/ClientRequiredsImpl.java

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.azure.core.annotation.Host;
1111
import com.azure.core.annotation.HostParam;
1212
import com.azure.core.annotation.Post;
13+
import com.azure.core.annotation.QueryParam;
1314
import com.azure.core.annotation.ReturnType;
1415
import com.azure.core.annotation.ServiceInterface;
1516
import com.azure.core.annotation.ServiceMethod;
@@ -65,8 +66,8 @@ public interface ClientRequiredsService {
6566
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
6667
@UnexpectedResponseExceptionType(HttpResponseException.class)
6768
Mono<Response<Void>> post(@HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept,
68-
@HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData body,
69-
RequestOptions requestOptions, Context context);
69+
@QueryParam("filter") String filter, @HeaderParam("Content-Type") String contentType,
70+
@BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context);
7071

7172
@Post("/client-required")
7273
@ExpectedResponses({ 200 })
@@ -75,19 +76,12 @@ Mono<Response<Void>> post(@HostParam("endpoint") String endpoint, @HeaderParam("
7576
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
7677
@UnexpectedResponseExceptionType(HttpResponseException.class)
7778
Response<Void> postSync(@HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept,
78-
@HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData body,
79-
RequestOptions requestOptions, Context context);
79+
@QueryParam("filter") String filter, @HeaderParam("Content-Type") String contentType,
80+
@BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context);
8081
}
8182

8283
/**
8384
* The post operation.
84-
* <p><strong>Query Parameters</strong></p>
85-
* <table border="1">
86-
* <caption>Query Parameters</caption>
87-
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
88-
* <tr><td>filter</td><td>String</td><td>No</td><td>The filter parameter</td></tr>
89-
* </table>
90-
* You can add these to a request with {@link RequestOptions#addQueryParam}
9185
* <p><strong>Request Body Schema</strong></p>
9286
*
9387
* <pre>
@@ -99,6 +93,7 @@ Response<Void> postSync(@HostParam("endpoint") String endpoint, @HeaderParam("ac
9993
* }
10094
* </pre>
10195
*
96+
* @param filter The filter parameter.
10297
* @param body The body parameter.
10398
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
10499
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -108,22 +103,15 @@ Response<Void> postSync(@HostParam("endpoint") String endpoint, @HeaderParam("ac
108103
* @return the {@link Response} on successful completion of {@link Mono}.
109104
*/
110105
@ServiceMethod(returns = ReturnType.SINGLE)
111-
public Mono<Response<Void>> postWithResponseAsync(BinaryData body, RequestOptions requestOptions) {
106+
public Mono<Response<Void>> postWithResponseAsync(String filter, BinaryData body, RequestOptions requestOptions) {
112107
final String accept = "application/json;odata.metadata=minimal";
113108
final String contentType = "application/json";
114-
return FluxUtil.withContext(
115-
context -> service.post(this.client.getEndpoint(), accept, contentType, body, requestOptions, context));
109+
return FluxUtil.withContext(context -> service.post(this.client.getEndpoint(), accept, filter, contentType,
110+
body, requestOptions, context));
116111
}
117112

118113
/**
119114
* The post operation.
120-
* <p><strong>Query Parameters</strong></p>
121-
* <table border="1">
122-
* <caption>Query Parameters</caption>
123-
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
124-
* <tr><td>filter</td><td>String</td><td>No</td><td>The filter parameter</td></tr>
125-
* </table>
126-
* You can add these to a request with {@link RequestOptions#addQueryParam}
127115
* <p><strong>Request Body Schema</strong></p>
128116
*
129117
* <pre>
@@ -135,6 +123,7 @@ public Mono<Response<Void>> postWithResponseAsync(BinaryData body, RequestOption
135123
* }
136124
* </pre>
137125
*
126+
* @param filter The filter parameter.
138127
* @param body The body parameter.
139128
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
140129
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -144,9 +133,10 @@ public Mono<Response<Void>> postWithResponseAsync(BinaryData body, RequestOption
144133
* @return the {@link Response}.
145134
*/
146135
@ServiceMethod(returns = ReturnType.SINGLE)
147-
public Response<Void> postWithResponse(BinaryData body, RequestOptions requestOptions) {
136+
public Response<Void> postWithResponse(String filter, BinaryData body, RequestOptions requestOptions) {
148137
final String accept = "application/json;odata.metadata=minimal";
149138
final String contentType = "application/json";
150-
return service.postSync(this.client.getEndpoint(), accept, contentType, body, requestOptions, Context.NONE);
139+
return service.postSync(this.client.getEndpoint(), accept, filter, contentType, body, requestOptions,
140+
Context.NONE);
151141
}
152142
}

typespec-tests/src/test/java/azure/clientgenerator/core/flattenproperty/FlattenClientTests.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
import azure.clientgenerator.core.flattenproperty.models.ChildFlattenModel;
77
import azure.clientgenerator.core.flattenproperty.models.ChildModel;
88
import azure.clientgenerator.core.flattenproperty.models.FlattenModel;
9+
import azure.clientgenerator.core.flattenproperty.models.FlattenUnknownModel;
910
import azure.clientgenerator.core.flattenproperty.models.NestedFlattenModel;
11+
import azure.clientgenerator.core.flattenproperty.models.Solution;
12+
import azure.clientgenerator.core.flattenproperty.models.SolutionProperties;
13+
import org.junit.jupiter.api.Assertions;
1014
import org.junit.jupiter.api.Test;
1115

1216
public class FlattenClientTests {
@@ -19,4 +23,24 @@ public void testFlattenModel() {
1923
flattenClient.putNestedFlattenModel(
2024
new NestedFlattenModel("foo", new ChildFlattenModel("bar", new ChildModel("test", 10))));
2125
}
26+
27+
@Test
28+
public void testPutFlattenUnknownModel() {
29+
// flatten is ignored for unknown (non-model) type properties
30+
FlattenUnknownModel result = flattenClient.putFlattenUnknownModel(new FlattenUnknownModel("foo"));
31+
Assertions.assertEquals("test", result.getName());
32+
Assertions.assertNotNull(result.getProperties());
33+
}
34+
35+
@Test
36+
public void testPutFlattenReadOnlyModel() {
37+
// flatten with all read-only properties; input only contains writable fields
38+
Solution result = flattenClient.putFlattenReadOnlyModel(new Solution("foo"));
39+
Assertions.assertEquals("foo", result.getName());
40+
SolutionProperties properties = result.getProperties();
41+
Assertions.assertNotNull(properties);
42+
Assertions.assertEquals("solution1", properties.getSolutionId());
43+
Assertions.assertEquals("Solution Title", properties.getTitle());
44+
Assertions.assertEquals("Solution Content", properties.getContent());
45+
}
2246
}

typespec-tests/src/test/java/azure/core/page/PageTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ public void testPageRequestBody() {
4747
public void testPageNextLinkReInjectedParameters() {
4848
Assertions.assertEquals(2, client.withParameterizedNextLink("name", true).stream().count());
4949
}
50+
51+
@Test
52+
public void testPageWithRelativeNextLink() {
53+
Assertions.assertEquals(2, client.withRelativeNextLink().stream().count());
54+
}
5055
}

0 commit comments

Comments
 (0)