Skip to content

Commit 025e4fc

Browse files
Update Node.js dependencies and prepare patch release 0.38.2 (#3262)
* Initial plan * Update core submodule to latest TypeSpec main * Update Node.js dependencies to latest versions Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> * Sync TypeSpec tests with updated dependencies Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> * Bump version to 0.38.2 and update changelog Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> --------- 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>
1 parent f8e6859 commit 025e4fc

101 files changed

Lines changed: 6588 additions & 906 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

core

Submodule core updated 288 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.2 (2026-01-14)
4+
5+
Compatible with compiler 1.8.0.
6+
7+
- Updated package dependencies to latest versions.
8+
39
## 0.38.1 (2026-01-12)
410

511
Compatible with compiler 1.7.1.

typespec-extension/package-lock.json

Lines changed: 221 additions & 250 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.38.1",
3+
"version": "0.38.2",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -47,47 +47,47 @@
4747
"generator/http-client-generator/target/classes/PerfAutomation.jfc"
4848
],
4949
"peerDependencies": {
50-
"@azure-tools/typespec-autorest": ">=0.63.1 <1.0.0",
51-
"@azure-tools/typespec-azure-core": ">=0.63.1 <1.0.0",
52-
"@azure-tools/typespec-azure-resource-manager": ">=0.63.0 <1.0.0",
53-
"@azure-tools/typespec-azure-rulesets": ">=0.63.0 <1.0.0",
54-
"@azure-tools/typespec-client-generator-core": ">=0.63.3 <1.0.0",
50+
"@azure-tools/typespec-autorest": ">=0.64.0 <1.0.0",
51+
"@azure-tools/typespec-azure-core": ">=0.64.0 <1.0.0",
52+
"@azure-tools/typespec-azure-resource-manager": ">=0.64.0 <1.0.0",
53+
"@azure-tools/typespec-azure-rulesets": ">=0.64.0 <1.0.0",
54+
"@azure-tools/typespec-client-generator-core": ">=0.64.0 <1.0.0",
5555
"@azure-tools/typespec-liftr-base": ">=0.11.0 <1.0.0",
56-
"@typespec/compiler": "^1.7.1",
57-
"@typespec/http": "^1.7.0",
58-
"@typespec/openapi": "^1.7.0",
59-
"@typespec/rest": ">=0.77.0 <1.0.0",
60-
"@typespec/versioning": ">=0.77.0 <1.0.0",
61-
"@typespec/xml": ">=0.77.0 <1.0.0"
56+
"@typespec/compiler": "^1.8.0",
57+
"@typespec/http": "^1.8.0",
58+
"@typespec/openapi": "^1.8.0",
59+
"@typespec/rest": ">=0.78.0 <1.0.0",
60+
"@typespec/versioning": ">=0.78.0 <1.0.0",
61+
"@typespec/xml": ">=0.78.0 <1.0.0"
6262
},
6363
"dependencies": {
6464
"@autorest/codemodel": "~4.20.1",
6565
"js-yaml": "~4.1.1",
6666
"lodash": "~4.17.21"
6767
},
6868
"devDependencies": {
69-
"@azure-tools/typespec-autorest": "0.63.1",
70-
"@azure-tools/typespec-azure-core": "0.63.1",
71-
"@azure-tools/typespec-azure-resource-manager": "0.63.0",
72-
"@azure-tools/typespec-azure-rulesets": "0.63.0",
73-
"@azure-tools/typespec-client-generator-core": "0.63.3",
69+
"@azure-tools/typespec-autorest": "0.64.0",
70+
"@azure-tools/typespec-azure-core": "0.64.0",
71+
"@azure-tools/typespec-azure-resource-manager": "0.64.0",
72+
"@azure-tools/typespec-azure-rulesets": "0.64.0",
73+
"@azure-tools/typespec-client-generator-core": "0.64.0",
7474
"@azure-tools/typespec-liftr-base": "0.11.0",
7575
"@microsoft/api-extractor": "^7.55.2",
7676
"@types/js-yaml": "~4.0.9",
7777
"@types/lodash": "~4.17.23",
78-
"@types/node": "~25.0.6",
79-
"@typescript-eslint/eslint-plugin": "~8.52.0",
80-
"@typescript-eslint/parser": "~8.52.0",
81-
"@typespec/compiler": "1.7.1",
82-
"@typespec/events": "0.77.0",
83-
"@typespec/http": "1.7.0",
84-
"@typespec/openapi": "1.7.0",
85-
"@typespec/rest": "0.77.0",
86-
"@typespec/sse": "0.77.0",
87-
"@typespec/streams": "0.77.0",
88-
"@typespec/tspd": "0.73.2",
89-
"@typespec/versioning": "0.77.0",
90-
"@typespec/xml": "0.77.0",
78+
"@types/node": "~25.0.8",
79+
"@typescript-eslint/eslint-plugin": "~8.53.0",
80+
"@typescript-eslint/parser": "~8.53.0",
81+
"@typespec/compiler": "1.8.0",
82+
"@typespec/events": "0.78.0",
83+
"@typespec/http": "1.8.0",
84+
"@typespec/openapi": "1.8.0",
85+
"@typespec/rest": "0.78.0",
86+
"@typespec/sse": "0.78.0",
87+
"@typespec/streams": "0.78.0",
88+
"@typespec/tspd": "0.73.3",
89+
"@typespec/versioning": "0.78.0",
90+
"@typespec/xml": "0.78.0",
9191
"@vitest/coverage-v8": "^4.0.17",
9292
"@vitest/ui": "^4.0.17",
9393
"c8": "~10.1.3",
@@ -98,12 +98,12 @@
9898
"prettier": "~3.7.4",
9999
"rimraf": "~6.1.2",
100100
"typescript": "~5.9.3",
101-
"typescript-eslint": "^8.52.0",
101+
"typescript-eslint": "^8.53.0",
102102
"vitest": "^4.0.17"
103103
},
104104
"overrides": {
105105
"eslint": "~9.39.2",
106-
"@typescript-eslint/eslint-plugin": "~8.52.0",
107-
"@typescript-eslint/parser": "~8.52.0"
106+
"@typescript-eslint/eslint-plugin": "~8.53.0",
107+
"@typescript-eslint/parser": "~8.53.0"
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.11",
13-
"@typespec/spector": "0.1.0-alpha.21",
14-
"@typespec/http-specs": "0.1.0-alpha.29",
15-
"@azure-tools/azure-http-specs": "0.1.0-alpha.34",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.38.1.tgz"
12+
"@typespec/spec-api": "0.1.0-alpha.12",
13+
"@typespec/spector": "0.1.0-alpha.22",
14+
"@typespec/http-specs": "0.1.0-alpha.30",
15+
"@azure-tools/azure-http-specs": "0.1.0-alpha.35",
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.38.2.tgz"
1717
},
1818
"devDependencies": {
19-
"@typespec/prettier-plugin-typespec": "^1.7.0",
19+
"@typespec/prettier-plugin-typespec": "^1.8.0",
2020
"prettier-plugin-organize-imports": "^4.3.0",
2121
"prettier": "^3.7.4"
2222
},
2323
"overrides": {
24-
"@typespec/compiler": "1.7.1",
25-
"@typespec/http": "1.7.0",
26-
"@typespec/rest": "0.77.0",
27-
"@typespec/versioning": "0.77.0",
28-
"@typespec/openapi": "1.7.0",
29-
"@typespec/xml": "0.77.0",
30-
"@typespec/events": "0.77.0",
31-
"@typespec/sse": "0.77.0",
32-
"@typespec/streams": "0.77.0",
33-
"@azure-tools/typespec-azure-core": "0.63.1",
34-
"@azure-tools/typespec-client-generator-core": "0.63.3",
35-
"@azure-tools/typespec-azure-resource-manager": "0.63.0",
36-
"@azure-tools/typespec-autorest": "0.63.1",
24+
"@typespec/compiler": "1.8.0",
25+
"@typespec/http": "1.8.0",
26+
"@typespec/rest": "0.78.0",
27+
"@typespec/versioning": "0.78.0",
28+
"@typespec/openapi": "1.8.0",
29+
"@typespec/xml": "0.78.0",
30+
"@typespec/events": "0.78.0",
31+
"@typespec/sse": "0.78.0",
32+
"@typespec/streams": "0.78.0",
33+
"@azure-tools/typespec-azure-core": "0.64.0",
34+
"@azure-tools/typespec-client-generator-core": "0.64.0",
35+
"@azure-tools/typespec-azure-resource-manager": "0.64.0",
36+
"@azure-tools/typespec-autorest": "0.64.0",
3737
"@azure-tools/typespec-liftr-base": "0.11.0"
3838
},
3939
"private": true
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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 authentication.noauth.union;
6+
7+
import authentication.noauth.union.implementation.UnionClientImpl;
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 UnionClient type.
23+
*/
24+
@ServiceClient(builder = UnionClientBuilder.class, isAsync = true)
25+
public final class UnionAsyncClient {
26+
@Generated
27+
private final UnionClientImpl serviceClient;
28+
29+
/**
30+
* Initializes an instance of UnionAsyncClient class.
31+
*
32+
* @param serviceClient the service client implementation.
33+
*/
34+
@Generated
35+
UnionAsyncClient(UnionClientImpl serviceClient) {
36+
this.serviceClient = serviceClient;
37+
}
38+
39+
/**
40+
* Check whether client can make a request without authentication.
41+
*
42+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
43+
* @throws HttpResponseException thrown if the request is rejected by server.
44+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
45+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
46+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
47+
* @return the {@link Response} on successful completion of {@link Mono}.
48+
*/
49+
@Generated
50+
@ServiceMethod(returns = ReturnType.SINGLE)
51+
public Mono<Response<Void>> validNoAuthWithResponse(RequestOptions requestOptions) {
52+
return this.serviceClient.validNoAuthWithResponseAsync(requestOptions);
53+
}
54+
55+
/**
56+
* Check whether client is authenticated with OAuth2 token.
57+
*
58+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
59+
* @throws HttpResponseException thrown if the request is rejected by server.
60+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
61+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
62+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
63+
* @return the {@link Response} on successful completion of {@link Mono}.
64+
*/
65+
@Generated
66+
@ServiceMethod(returns = ReturnType.SINGLE)
67+
public Mono<Response<Void>> validTokenWithResponse(RequestOptions requestOptions) {
68+
return this.serviceClient.validTokenWithResponseAsync(requestOptions);
69+
}
70+
71+
/**
72+
* Check whether client can make a request without authentication.
73+
*
74+
* @throws HttpResponseException thrown if the request is rejected by server.
75+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
76+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
77+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
78+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
79+
* @return A {@link Mono} that completes when a successful response is received.
80+
*/
81+
@Generated
82+
@ServiceMethod(returns = ReturnType.SINGLE)
83+
public Mono<Void> validNoAuth() {
84+
// Generated convenience method for validNoAuthWithResponse
85+
RequestOptions requestOptions = new RequestOptions();
86+
return validNoAuthWithResponse(requestOptions).flatMap(FluxUtil::toMono);
87+
}
88+
89+
/**
90+
* Check whether client is authenticated with OAuth2 token.
91+
*
92+
* @throws HttpResponseException thrown if the request is rejected by server.
93+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
94+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
95+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
96+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
97+
* @return A {@link Mono} that completes when a successful response is received.
98+
*/
99+
@Generated
100+
@ServiceMethod(returns = ReturnType.SINGLE)
101+
public Mono<Void> validToken() {
102+
// Generated convenience method for validTokenWithResponse
103+
RequestOptions requestOptions = new RequestOptions();
104+
return validTokenWithResponse(requestOptions).flatMap(FluxUtil::toMono);
105+
}
106+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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 authentication.noauth.union;
6+
7+
import authentication.noauth.union.implementation.UnionClientImpl;
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+
19+
/**
20+
* Initializes a new instance of the synchronous UnionClient type.
21+
*/
22+
@ServiceClient(builder = UnionClientBuilder.class)
23+
public final class UnionClient {
24+
@Generated
25+
private final UnionClientImpl serviceClient;
26+
27+
/**
28+
* Initializes an instance of UnionClient class.
29+
*
30+
* @param serviceClient the service client implementation.
31+
*/
32+
@Generated
33+
UnionClient(UnionClientImpl serviceClient) {
34+
this.serviceClient = serviceClient;
35+
}
36+
37+
/**
38+
* Check whether client can make a request without authentication.
39+
*
40+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
41+
* @throws HttpResponseException thrown if the request is rejected by server.
42+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
43+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
44+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
45+
* @return the {@link Response}.
46+
*/
47+
@Generated
48+
@ServiceMethod(returns = ReturnType.SINGLE)
49+
public Response<Void> validNoAuthWithResponse(RequestOptions requestOptions) {
50+
return this.serviceClient.validNoAuthWithResponse(requestOptions);
51+
}
52+
53+
/**
54+
* Check whether client is authenticated with OAuth2 token.
55+
*
56+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
57+
* @throws HttpResponseException thrown if the request is rejected by server.
58+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
59+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
60+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
61+
* @return the {@link Response}.
62+
*/
63+
@Generated
64+
@ServiceMethod(returns = ReturnType.SINGLE)
65+
public Response<Void> validTokenWithResponse(RequestOptions requestOptions) {
66+
return this.serviceClient.validTokenWithResponse(requestOptions);
67+
}
68+
69+
/**
70+
* Check whether client can make a request without authentication.
71+
*
72+
* @throws HttpResponseException thrown if the request is rejected by server.
73+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
74+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
75+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
76+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
77+
*/
78+
@Generated
79+
@ServiceMethod(returns = ReturnType.SINGLE)
80+
public void validNoAuth() {
81+
// Generated convenience method for validNoAuthWithResponse
82+
RequestOptions requestOptions = new RequestOptions();
83+
validNoAuthWithResponse(requestOptions).getValue();
84+
}
85+
86+
/**
87+
* Check whether client is authenticated with OAuth2 token.
88+
*
89+
* @throws HttpResponseException thrown if the request is rejected by server.
90+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
91+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
92+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
93+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
94+
*/
95+
@Generated
96+
@ServiceMethod(returns = ReturnType.SINGLE)
97+
public void validToken() {
98+
// Generated convenience method for validTokenWithResponse
99+
RequestOptions requestOptions = new RequestOptions();
100+
validTokenWithResponse(requestOptions).getValue();
101+
}
102+
}

0 commit comments

Comments
 (0)