Skip to content

Commit dce9eb0

Browse files
Update Node.js dependencies to TypeSpec 1.11.0/0.81.0/0.67.0, prepare for 0.44.0 minor release (#3317)
* Update Node.js dependencies to TypeSpec 1.11.0/0.81.0 and Azure tools 0.67.0, bump version to 0.44.0 Agent-Logs-Url: https://github.com/Azure/autorest.java/sessions/253ef309-b9e4-4c78-8745-22a801a7c025 Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> * Sync tests from core (TypeSpec 1.11.0/0.81.0 and Azure tools 0.67.0) Agent-Logs-Url: https://github.com/Azure/autorest.java/sessions/253ef309-b9e4-4c78-8745-22a801a7c025 Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> * update Generate.ps1 * fix test package.json --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> Co-authored-by: Weidong Xu <weidxu@microsoft.com>
1 parent 1e1bc5f commit dce9eb0

40 files changed

Lines changed: 1837 additions & 1407 deletions

core

Submodule core updated 954 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.0 (2026-04-08)
4+
5+
Compatible with compiler 1.11.0.
6+
7+
- Updated package dependencies to the latest versions.
8+
39
## 0.43.3 (2026-04-02)
410

511
Compatible with compiler 1.10.0.

typespec-extension/package-lock.json

Lines changed: 452 additions & 480 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: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.43.3",
3+
"version": "0.44.0",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -48,19 +48,19 @@
4848
],
4949
"peerDependencies": {
5050
"@azure-tools/openai-typespec": "^1.11.0",
51-
"@azure-tools/typespec-autorest": ">=0.66.2 <1.0.0",
52-
"@azure-tools/typespec-azure-core": ">=0.66.1 <1.0.0",
53-
"@azure-tools/typespec-azure-resource-manager": ">=0.66.1 <1.0.0",
54-
"@azure-tools/typespec-azure-rulesets": ">=0.66.0 <1.0.0",
55-
"@azure-tools/typespec-client-generator-core": ">=0.66.4 <1.0.0",
51+
"@azure-tools/typespec-autorest": ">=0.67.0 <1.0.0",
52+
"@azure-tools/typespec-azure-core": ">=0.67.0 <1.0.0",
53+
"@azure-tools/typespec-azure-resource-manager": ">=0.67.0 <1.0.0",
54+
"@azure-tools/typespec-azure-rulesets": ">=0.67.0 <1.0.0",
55+
"@azure-tools/typespec-client-generator-core": ">=0.67.0 <1.0.0",
5656
"@azure-tools/typespec-liftr-base": ">=0.13.0 <1.0.0",
57-
"@typespec/compiler": "^1.10.0",
58-
"@typespec/http": "^1.10.0",
59-
"@typespec/openapi": "^1.10.0",
60-
"@typespec/openapi3": "^1.10.0",
61-
"@typespec/rest": ">=0.80.0 <1.0.0",
62-
"@typespec/versioning": ">=0.80.0 <1.0.0",
63-
"@typespec/xml": ">=0.80.0 <1.0.0"
57+
"@typespec/compiler": "^1.11.0",
58+
"@typespec/http": "^1.11.0",
59+
"@typespec/openapi": "^1.11.0",
60+
"@typespec/openapi3": "^1.11.0",
61+
"@typespec/rest": ">=0.81.0 <1.0.0",
62+
"@typespec/versioning": ">=0.81.0 <1.0.0",
63+
"@typespec/xml": ">=0.81.0 <1.0.0"
6464
},
6565
"dependencies": {
6666
"@autorest/codemodel": "~4.20.1",
@@ -69,31 +69,31 @@
6969
},
7070
"devDependencies": {
7171
"@azure-tools/openai-typespec": "1.11.0",
72-
"@azure-tools/typespec-autorest": "0.66.2",
73-
"@azure-tools/typespec-azure-core": "0.66.1",
74-
"@azure-tools/typespec-azure-resource-manager": "0.66.1",
75-
"@azure-tools/typespec-azure-rulesets": "0.66.0",
76-
"@azure-tools/typespec-client-generator-core": "0.66.4",
72+
"@azure-tools/typespec-autorest": "0.67.0",
73+
"@azure-tools/typespec-azure-core": "0.67.0",
74+
"@azure-tools/typespec-azure-resource-manager": "0.67.0",
75+
"@azure-tools/typespec-azure-rulesets": "0.67.0",
76+
"@azure-tools/typespec-client-generator-core": "0.67.0",
7777
"@azure-tools/typespec-liftr-base": "0.13.0",
78-
"@microsoft/api-extractor": "^7.58.0",
78+
"@microsoft/api-extractor": "^7.58.1",
7979
"@types/js-yaml": "~4.0.9",
8080
"@types/lodash": "~4.17.24",
81-
"@types/node": "~25.5.0",
81+
"@types/node": "~25.5.2",
8282
"@typescript-eslint/eslint-plugin": "~8.58.0",
8383
"@typescript-eslint/parser": "~8.58.0",
84-
"@typespec/compiler": "1.10.0",
85-
"@typespec/events": "0.80.0",
86-
"@typespec/http": "1.10.0",
87-
"@typespec/openapi": "1.10.0",
88-
"@typespec/openapi3": "1.10.0",
89-
"@typespec/rest": "0.80.0",
90-
"@typespec/sse": "0.80.0",
91-
"@typespec/streams": "0.80.0",
84+
"@typespec/compiler": "1.11.0",
85+
"@typespec/events": "0.81.0",
86+
"@typespec/http": "1.11.0",
87+
"@typespec/openapi": "1.11.0",
88+
"@typespec/openapi3": "1.11.0",
89+
"@typespec/rest": "0.81.0",
90+
"@typespec/sse": "0.81.0",
91+
"@typespec/streams": "0.81.0",
9292
"@typespec/tspd": "0.74.1",
93-
"@typespec/versioning": "0.80.0",
94-
"@typespec/xml": "0.80.0",
95-
"@vitest/coverage-v8": "^4.1.2",
96-
"@vitest/ui": "^4.1.2",
93+
"@typespec/versioning": "0.81.0",
94+
"@typespec/xml": "0.81.0",
95+
"@vitest/coverage-v8": "^4.1.3",
96+
"@vitest/ui": "^4.1.3",
9797
"c8": "~11.0.0",
9898
"eslint": "~10.1.0",
9999
"eslint-plugin-deprecation": "~3.0.0",
@@ -103,7 +103,7 @@
103103
"rimraf": "~6.1.3",
104104
"typescript": "~5.9.2",
105105
"typescript-eslint": "^8.58.0",
106-
"vitest": "^4.1.2"
106+
"vitest": "^4.1.3"
107107
},
108108
"overrides": {
109109
"eslint": "~10.1.0",

typespec-tests/Generate.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Write-Host "Parallelization: $Parallelization"
2020
$generateScript = {
2121
$tspFile = $_
2222

23-
if (($tspFile -match "payload[\\/]pageable[\\/]main\.tsp") -and (-not ($tspFile -match "azure[\\/]payload[\\/]pageable[\\/]main\.tsp"))) {
23+
if ((($tspFile -match "payload[\\/]pageable[\\/]main\.tsp") -and (-not ($tspFile -match "azure[\\/]payload[\\/]pageable[\\/]main\.tsp"))) -or ($tspFile -match "service[\\/]multiple-services[\\/]main\.tsp")) {
2424
Write-Host "
2525
SKIPPED
2626
$tspFile
@@ -62,8 +62,6 @@ $generateScript = {
6262
} elseif ($tspFile -match "azure[\\/]resource-manager[\\/].*[\\/]main\.tsp") {
6363
# for mgmt, do not generate tests due to random mock values
6464
$tspOptions += " --option ""@azure-tools/typespec-java.generate-tests=false"""
65-
} elseif ($tspFile -match "azure[\\/]resource-manager[\\/]multi-service-older-versions[\\/]") {
66-
$tspOptions += " --option ""@azure-tools/typespec-java.metadata-suffix=older-versions"""
6765
} elseif ($tspFile -match "azure[\\/]resource-manager[\\/]multi-service-shared-models[\\/]") {
6866
$tspOptions += " --option ""@azure-tools/typespec-java.metadata-suffix=shared-models"""
6967
} elseif ($tspFile -match "tsp[\\/]versioning.tsp") {
@@ -200,7 +198,6 @@ try {
200198
$specFiles = Get-ChildItem ./specs -Include "main.tsp","old.tsp" -File -Recurse
201199
# ensure multi-service client specs are processed even though they do not match the default filter
202200
$specFiles += Get-Item (Join-Path ./specs "azure/resource-manager/multi-service/client.tsp")
203-
$specFiles += Get-Item (Join-Path ./specs "azure/resource-manager/multi-service-older-versions/client.tsp")
204201
$specFiles += Get-Item (Join-Path ./specs "azure/resource-manager/multi-service-shared-models/client.tsp")
205202

206203
$job = $specFiles | ForEach-Object -Parallel $generateScript -ThrottleLimit $Parallelization -AsJob

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.13",
13-
"@typespec/spector": "0.1.0-alpha.24",
14-
"@typespec/http-specs": "0.1.0-alpha.35",
15-
"@azure-tools/azure-http-specs": "0.1.0-alpha.38",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.43.3.tgz"
12+
"@typespec/spec-api": "0.1.0-alpha.14",
13+
"@typespec/spector": "0.1.0-alpha.25",
14+
"@typespec/http-specs": "0.1.0-alpha.36",
15+
"@azure-tools/azure-http-specs": "0.1.0-alpha.39",
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.44.0.tgz"
1717
},
1818
"devDependencies": {
19-
"@typespec/prettier-plugin-typespec": "^1.10.0",
19+
"@typespec/prettier-plugin-typespec": "^1.11.0",
2020
"prettier-plugin-organize-imports": "^4.3.0",
2121
"prettier": "^3.8.1"
2222
},
2323
"overrides": {
24-
"@typespec/compiler": "1.10.0",
25-
"@typespec/http": "1.10.0",
26-
"@typespec/rest": "0.80.0",
27-
"@typespec/versioning": "0.80.0",
28-
"@typespec/openapi": "1.10.0",
29-
"@typespec/xml": "0.80.0",
30-
"@typespec/events": "0.80.0",
31-
"@typespec/sse": "0.80.0",
32-
"@typespec/streams": "0.80.0",
33-
"@azure-tools/typespec-azure-core": "0.66.1",
34-
"@azure-tools/typespec-client-generator-core": "0.66.4",
35-
"@azure-tools/typespec-azure-resource-manager": "0.66.1",
36-
"@azure-tools/typespec-autorest": "0.66.2",
24+
"@typespec/compiler": "1.11.0",
25+
"@typespec/http": "1.11.0",
26+
"@typespec/rest": "0.81.0",
27+
"@typespec/versioning": "0.81.0",
28+
"@typespec/openapi": "1.11.0",
29+
"@typespec/xml": "0.81.0",
30+
"@typespec/events": "0.81.0",
31+
"@typespec/sse": "0.81.0",
32+
"@typespec/streams": "0.81.0",
33+
"@azure-tools/typespec-azure-core": "0.67.0",
34+
"@azure-tools/typespec-client-generator-core": "0.67.0",
35+
"@azure-tools/typespec-azure-resource-manager": "0.67.0",
36+
"@azure-tools/typespec-autorest": "0.67.0",
3737
"@azure-tools/typespec-liftr-base": "0.13.0"
3838
},
3939
"private": true
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
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 client.naming;
6+
7+
import client.naming.implementation.HeadersImpl;
8+
import com.azure.core.annotation.Generated;
9+
import com.azure.core.annotation.ReturnType;
10+
import com.azure.core.annotation.ServiceClient;
11+
import com.azure.core.annotation.ServiceMethod;
12+
import com.azure.core.exception.ClientAuthenticationException;
13+
import com.azure.core.exception.HttpResponseException;
14+
import com.azure.core.exception.ResourceModifiedException;
15+
import com.azure.core.exception.ResourceNotFoundException;
16+
import com.azure.core.http.rest.RequestOptions;
17+
import com.azure.core.http.rest.Response;
18+
import com.azure.core.util.FluxUtil;
19+
import reactor.core.publisher.Mono;
20+
21+
/**
22+
* Initializes a new instance of the asynchronous NamingClient type.
23+
*/
24+
@ServiceClient(builder = NamingClientBuilder.class, isAsync = true)
25+
public final class HeaderAsyncClient {
26+
@Generated
27+
private final HeadersImpl serviceClient;
28+
29+
/**
30+
* Initializes an instance of HeaderAsyncClient class.
31+
*
32+
* @param serviceClient the service client implementation.
33+
*/
34+
@Generated
35+
HeaderAsyncClient(HeadersImpl serviceClient) {
36+
this.serviceClient = serviceClient;
37+
}
38+
39+
/**
40+
* The request operation.
41+
*
42+
* @param clientName The clientName parameter.
43+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
44+
* @throws HttpResponseException thrown if the request is rejected by server.
45+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
46+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
47+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
48+
* @return the {@link Response} on successful completion of {@link Mono}.
49+
*/
50+
@Generated
51+
@ServiceMethod(returns = ReturnType.SINGLE)
52+
public Mono<Response<Void>> requestWithResponse(String clientName, RequestOptions requestOptions) {
53+
return this.serviceClient.requestWithResponseAsync(clientName, requestOptions);
54+
}
55+
56+
/**
57+
* The response operation.
58+
*
59+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
60+
* @throws HttpResponseException thrown if the request is rejected by server.
61+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
62+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
63+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
64+
* @return the {@link Response} on successful completion of {@link Mono}.
65+
*/
66+
@Generated
67+
@ServiceMethod(returns = ReturnType.SINGLE)
68+
public Mono<Response<Void>> responseWithResponse(RequestOptions requestOptions) {
69+
return this.serviceClient.responseWithResponseAsync(requestOptions);
70+
}
71+
72+
/**
73+
* The request operation.
74+
*
75+
* @param clientName The clientName parameter.
76+
* @throws IllegalArgumentException thrown if parameters fail the validation.
77+
* @throws HttpResponseException thrown if the request is rejected by server.
78+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
79+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
80+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
81+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
82+
* @return A {@link Mono} that completes when a successful response is received.
83+
*/
84+
@Generated
85+
@ServiceMethod(returns = ReturnType.SINGLE)
86+
public Mono<Void> request(String clientName) {
87+
// Generated convenience method for requestWithResponse
88+
RequestOptions requestOptions = new RequestOptions();
89+
return requestWithResponse(clientName, requestOptions).flatMap(FluxUtil::toMono);
90+
}
91+
92+
/**
93+
* The response operation.
94+
*
95+
* @throws HttpResponseException thrown if the request is rejected by server.
96+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
97+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
98+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
99+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
100+
* @return A {@link Mono} that completes when a successful response is received.
101+
*/
102+
@Generated
103+
@ServiceMethod(returns = ReturnType.SINGLE)
104+
public Mono<Void> response() {
105+
// Generated convenience method for responseWithResponse
106+
RequestOptions requestOptions = new RequestOptions();
107+
return responseWithResponse(requestOptions).flatMap(FluxUtil::toMono);
108+
}
109+
}

0 commit comments

Comments
 (0)