Skip to content

Commit bad1c8c

Browse files
prepare release emitter 0.36.3 (#3221)
1 parent cdb4766 commit bad1c8c

34 files changed

+4001
-708
lines changed

core

Submodule core updated 250 files

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@autorest/java",
3-
"version": "4.1.59",
3+
"version": "4.1.60",
44
"description": "The Java extension for classic generators in AutoRest.",
55
"scripts": {
66
"autorest": "autorest",

typespec-extension/changelog.md

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

3+
## 0.36.3 (2025-11-13)
4+
5+
Compatible with compiler 1.6.0.
6+
7+
- Updated package dependencies to latest versions.
8+
- Patch release: align peerDependencies and test overrides with latest TypeSpec 1.6.0 / libraries 0.76.0 and Azure tools 0.62.0.
9+
310
## 0.36.2 (2025-10-31)
411

512
Compatible with compiler 1.5.0.

typespec-extension/package-lock.json

Lines changed: 654 additions & 636 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: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.36.2",
3+
"version": "0.36.3",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -47,63 +47,63 @@
4747
"generator/http-client-generator/target/classes/PerfAutomation.jfc"
4848
],
4949
"peerDependencies": {
50-
"@azure-tools/typespec-autorest": ">=0.61.1 <1.0.0",
51-
"@azure-tools/typespec-azure-core": ">=0.61.0 <1.0.0",
52-
"@azure-tools/typespec-azure-resource-manager": ">=0.61.1 <1.0.0",
53-
"@azure-tools/typespec-azure-rulesets": ">=0.61.0 <1.0.0",
54-
"@azure-tools/typespec-client-generator-core": ">=0.61.3 <1.0.0",
50+
"@azure-tools/typespec-autorest": ">=0.62.0 <1.0.0",
51+
"@azure-tools/typespec-azure-core": ">=0.62.0 <1.0.0",
52+
"@azure-tools/typespec-azure-resource-manager": ">=0.62.0 <1.0.0",
53+
"@azure-tools/typespec-azure-rulesets": ">=0.62.0 <1.0.0",
54+
"@azure-tools/typespec-client-generator-core": ">=0.62.0 <1.0.0",
5555
"@azure-tools/typespec-liftr-base": ">=0.11.0 <1.0.0",
56-
"@typespec/compiler": "^1.5.0",
57-
"@typespec/http": "^1.5.0",
58-
"@typespec/openapi": "^1.5.0",
59-
"@typespec/rest": ">=0.75.0 <1.0.0",
60-
"@typespec/versioning": ">=0.75.0 <1.0.0",
61-
"@typespec/xml": ">=0.75.0 <1.0.0"
56+
"@typespec/compiler": "^1.6.0",
57+
"@typespec/http": "^1.6.0",
58+
"@typespec/openapi": "^1.6.0",
59+
"@typespec/rest": ">=0.76.0 <1.0.0",
60+
"@typespec/versioning": ">=0.76.0 <1.0.0",
61+
"@typespec/xml": ">=0.76.0 <1.0.0"
6262
},
6363
"dependencies": {
6464
"@autorest/codemodel": "~4.20.1",
65-
"js-yaml": "~4.1.0",
65+
"js-yaml": "~4.1.1",
6666
"lodash": "~4.17.21"
6767
},
6868
"devDependencies": {
69-
"@azure-tools/typespec-autorest": "0.61.1",
70-
"@azure-tools/typespec-azure-core": "0.61.0",
71-
"@azure-tools/typespec-azure-resource-manager": "0.61.1",
72-
"@azure-tools/typespec-azure-rulesets": "0.61.0",
73-
"@azure-tools/typespec-client-generator-core": "0.61.3",
69+
"@azure-tools/typespec-autorest": "0.62.0",
70+
"@azure-tools/typespec-azure-core": "0.62.0",
71+
"@azure-tools/typespec-azure-resource-manager": "0.62.0",
72+
"@azure-tools/typespec-azure-rulesets": "0.62.0",
73+
"@azure-tools/typespec-client-generator-core": "0.62.0",
7474
"@azure-tools/typespec-liftr-base": "0.11.0",
75-
"@microsoft/api-extractor": "^7.53.3",
75+
"@microsoft/api-extractor": "^7.55.0",
7676
"@types/js-yaml": "~4.0.9",
7777
"@types/lodash": "~4.17.20",
78-
"@types/node": "~24.9.2",
79-
"@typescript-eslint/eslint-plugin": "~8.46.2",
80-
"@typescript-eslint/parser": "~8.46.2",
81-
"@typespec/compiler": "1.5.0",
82-
"@typespec/events": "0.75.0",
83-
"@typespec/http": "1.5.0",
84-
"@typespec/openapi": "1.5.0",
85-
"@typespec/rest": "0.75.0",
86-
"@typespec/sse": "0.75.0",
87-
"@typespec/streams": "0.75.0",
88-
"@typespec/tspd": "0.73.0",
89-
"@typespec/versioning": "0.75.0",
90-
"@typespec/xml": "0.75.0",
91-
"@vitest/coverage-v8": "^4.0.5",
92-
"@vitest/ui": "^4.0.5",
78+
"@types/node": "~24.10.1",
79+
"@typescript-eslint/eslint-plugin": "~8.46.4",
80+
"@typescript-eslint/parser": "~8.46.4",
81+
"@typespec/compiler": "1.6.0",
82+
"@typespec/events": "0.76.0",
83+
"@typespec/http": "1.6.0",
84+
"@typespec/openapi": "1.6.0",
85+
"@typespec/rest": "0.76.0",
86+
"@typespec/sse": "0.76.0",
87+
"@typespec/streams": "0.76.0",
88+
"@typespec/tspd": "0.73.1",
89+
"@typespec/versioning": "0.76.0",
90+
"@typespec/xml": "0.76.0",
91+
"@vitest/coverage-v8": "^4.0.8",
92+
"@vitest/ui": "^4.0.8",
9393
"c8": "~10.1.3",
94-
"eslint": "~9.38.0",
94+
"eslint": "~9.39.1",
9595
"eslint-plugin-deprecation": "~3.0.0",
9696
"eslint-plugin-import": "^2.32.0",
9797
"eslint-plugin-unicorn": "^62.0.0",
9898
"prettier": "~3.6.2",
9999
"rimraf": "~6.1.0",
100100
"typescript": "~5.9.3",
101-
"typescript-eslint": "^8.46.2",
102-
"vitest": "^4.0.5"
101+
"typescript-eslint": "^8.46.4",
102+
"vitest": "^4.0.8"
103103
},
104104
"overrides": {
105-
"eslint": "~9.38.0",
106-
"@typescript-eslint/eslint-plugin": "~8.46.2",
107-
"@typescript-eslint/parser": "~8.46.2"
105+
"eslint": "~9.39.1",
106+
"@typescript-eslint/eslint-plugin": "~8.46.4",
107+
"@typescript-eslint/parser": "~8.46.4"
108108
}
109109
}

typespec-tests/package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@
99
"spector-serve": "tsp-spector serve ./node_modules/@typespec/http-specs/specs ./node_modules/@azure-tools/azure-http-specs/specs --coverageFile ./tsp-spector-coverage-java.json"
1010
},
1111
"dependencies": {
12-
"@typespec/spec-api": "0.1.0-alpha.9",
13-
"@typespec/spector": "0.1.0-alpha.19",
14-
"@typespec/http-specs": "0.1.0-alpha.27",
15-
"@azure-tools/azure-http-specs": "0.1.0-alpha.31",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.36.2.tgz"
12+
"@typespec/spec-api": "0.1.0-alpha.10",
13+
"@typespec/spector": "0.1.0-alpha.20",
14+
"@typespec/http-specs": "0.1.0-alpha.28",
15+
"@azure-tools/azure-http-specs": "0.1.0-alpha.32",
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.36.3.tgz"
1717
},
1818
"devDependencies": {
19-
"@typespec/prettier-plugin-typespec": "^1.5.0",
19+
"@typespec/prettier-plugin-typespec": "^1.6.0",
2020
"prettier-plugin-organize-imports": "^4.3.0",
2121
"prettier": "^3.6.2"
2222
},
2323
"overrides": {
24-
"@typespec/compiler": "1.5.0",
25-
"@typespec/http": "1.5.0",
26-
"@typespec/rest": "0.75.0",
27-
"@typespec/versioning": "0.75.0",
28-
"@typespec/openapi": "1.5.0",
29-
"@typespec/xml": "0.75.0",
30-
"@typespec/events": "0.75.0",
31-
"@typespec/sse": "0.75.0",
32-
"@typespec/streams": "0.75.0",
33-
"@azure-tools/typespec-azure-core": "0.61.0",
34-
"@azure-tools/typespec-client-generator-core": "0.61.3",
35-
"@azure-tools/typespec-azure-resource-manager": "0.61.1",
36-
"@azure-tools/typespec-autorest": "0.61.1",
24+
"@typespec/compiler": "1.6.0",
25+
"@typespec/http": "1.6.0",
26+
"@typespec/rest": "0.76.0",
27+
"@typespec/versioning": "0.76.0",
28+
"@typespec/openapi": "1.6.0",
29+
"@typespec/xml": "0.76.0",
30+
"@typespec/events": "0.76.0",
31+
"@typespec/sse": "0.76.0",
32+
"@typespec/streams": "0.76.0",
33+
"@azure-tools/typespec-azure-core": "0.62.0",
34+
"@azure-tools/typespec-client-generator-core": "0.62.0",
35+
"@azure-tools/typespec-azure-resource-manager": "0.62.0",
36+
"@azure-tools/typespec-autorest": "0.62.0",
3737
"@azure-tools/typespec-liftr-base": "0.11.0"
3838
},
3939
"private": true
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package azure.clientgenerator.core.nextlinkverb;
6+
7+
import azure.clientgenerator.core.nextlinkverb.implementation.NextLinkVerbClientImpl;
8+
import azure.clientgenerator.core.nextlinkverb.models.Test;
9+
import com.azure.core.annotation.Generated;
10+
import com.azure.core.annotation.ReturnType;
11+
import com.azure.core.annotation.ServiceClient;
12+
import com.azure.core.annotation.ServiceMethod;
13+
import com.azure.core.exception.ClientAuthenticationException;
14+
import com.azure.core.exception.HttpResponseException;
15+
import com.azure.core.exception.ResourceModifiedException;
16+
import com.azure.core.exception.ResourceNotFoundException;
17+
import com.azure.core.http.rest.PagedFlux;
18+
import com.azure.core.http.rest.PagedResponse;
19+
import com.azure.core.http.rest.PagedResponseBase;
20+
import com.azure.core.http.rest.RequestOptions;
21+
import com.azure.core.util.BinaryData;
22+
import java.util.stream.Collectors;
23+
import reactor.core.publisher.Flux;
24+
25+
/**
26+
* Initializes a new instance of the asynchronous NextLinkVerbClient type.
27+
*/
28+
@ServiceClient(builder = NextLinkVerbClientBuilder.class, isAsync = true)
29+
public final class NextLinkVerbAsyncClient {
30+
@Generated
31+
private final NextLinkVerbClientImpl serviceClient;
32+
33+
/**
34+
* Initializes an instance of NextLinkVerbAsyncClient class.
35+
*
36+
* @param serviceClient the service client implementation.
37+
*/
38+
@Generated
39+
NextLinkVerbAsyncClient(NextLinkVerbClientImpl serviceClient) {
40+
this.serviceClient = serviceClient;
41+
}
42+
43+
/**
44+
* The listItems operation.
45+
* <p><strong>Response Body Schema</strong></p>
46+
*
47+
* <pre>
48+
* {@code
49+
* {
50+
* id: String (Required)
51+
* }
52+
* }
53+
* </pre>
54+
*
55+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
56+
* @throws HttpResponseException thrown if the request is rejected by server.
57+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
58+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
59+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
60+
* @return paged response model as paginated response with {@link PagedFlux}.
61+
*/
62+
@Generated
63+
@ServiceMethod(returns = ReturnType.COLLECTION)
64+
public PagedFlux<BinaryData> listItems(RequestOptions requestOptions) {
65+
return this.serviceClient.listItemsAsync(requestOptions);
66+
}
67+
68+
/**
69+
* The listItems operation.
70+
*
71+
* @throws HttpResponseException thrown if the request is rejected by server.
72+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
73+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
74+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
75+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
76+
* @return paged response model as paginated response with {@link PagedFlux}.
77+
*/
78+
@Generated
79+
@ServiceMethod(returns = ReturnType.COLLECTION)
80+
public PagedFlux<Test> listItems() {
81+
// Generated convenience method for listItems
82+
RequestOptions requestOptions = new RequestOptions();
83+
PagedFlux<BinaryData> pagedFluxResponse = listItems(requestOptions);
84+
return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
85+
Flux<PagedResponse<BinaryData>> flux = (continuationTokenParam == null)
86+
? pagedFluxResponse.byPage().take(1)
87+
: pagedFluxResponse.byPage(continuationTokenParam).take(1);
88+
return flux.map(pagedResponse -> new PagedResponseBase<Void, Test>(pagedResponse.getRequest(),
89+
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
90+
pagedResponse.getValue()
91+
.stream()
92+
.map(protocolMethodData -> protocolMethodData.toObject(Test.class))
93+
.collect(Collectors.toList()),
94+
pagedResponse.getContinuationToken(), null));
95+
});
96+
}
97+
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package azure.clientgenerator.core.nextlinkverb;
6+
7+
import azure.clientgenerator.core.nextlinkverb.implementation.NextLinkVerbClientImpl;
8+
import azure.clientgenerator.core.nextlinkverb.models.Test;
9+
import com.azure.core.annotation.Generated;
10+
import com.azure.core.annotation.ReturnType;
11+
import com.azure.core.annotation.ServiceClient;
12+
import com.azure.core.annotation.ServiceMethod;
13+
import com.azure.core.exception.ClientAuthenticationException;
14+
import com.azure.core.exception.HttpResponseException;
15+
import com.azure.core.exception.ResourceModifiedException;
16+
import com.azure.core.exception.ResourceNotFoundException;
17+
import com.azure.core.http.rest.PagedIterable;
18+
import com.azure.core.http.rest.RequestOptions;
19+
import com.azure.core.util.BinaryData;
20+
21+
/**
22+
* Initializes a new instance of the synchronous NextLinkVerbClient type.
23+
*/
24+
@ServiceClient(builder = NextLinkVerbClientBuilder.class)
25+
public final class NextLinkVerbClient {
26+
@Generated
27+
private final NextLinkVerbClientImpl serviceClient;
28+
29+
/**
30+
* Initializes an instance of NextLinkVerbClient class.
31+
*
32+
* @param serviceClient the service client implementation.
33+
*/
34+
@Generated
35+
NextLinkVerbClient(NextLinkVerbClientImpl serviceClient) {
36+
this.serviceClient = serviceClient;
37+
}
38+
39+
/**
40+
* The listItems operation.
41+
* <p><strong>Response Body Schema</strong></p>
42+
*
43+
* <pre>
44+
* {@code
45+
* {
46+
* id: String (Required)
47+
* }
48+
* }
49+
* </pre>
50+
*
51+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
52+
* @throws HttpResponseException thrown if the request is rejected by server.
53+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
54+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
55+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
56+
* @return paged response model as paginated response with {@link PagedIterable}.
57+
*/
58+
@Generated
59+
@ServiceMethod(returns = ReturnType.COLLECTION)
60+
public PagedIterable<BinaryData> listItems(RequestOptions requestOptions) {
61+
return this.serviceClient.listItems(requestOptions);
62+
}
63+
64+
/**
65+
* The listItems operation.
66+
*
67+
* @throws HttpResponseException thrown if the request is rejected by server.
68+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
69+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
70+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
71+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
72+
* @return paged response model as paginated response with {@link PagedIterable}.
73+
*/
74+
@Generated
75+
@ServiceMethod(returns = ReturnType.COLLECTION)
76+
public PagedIterable<Test> listItems() {
77+
// Generated convenience method for listItems
78+
RequestOptions requestOptions = new RequestOptions();
79+
return serviceClient.listItems(requestOptions).mapPage(bodyItemValue -> bodyItemValue.toObject(Test.class));
80+
}
81+
}

0 commit comments

Comments
 (0)