Skip to content

Commit 6913765

Browse files
authored
Update Node.js packages to latest versions and prepare for patch release 0.33.1 (#3194)
* Initial plan * Update core submodule to latest TypeSpec main branch * Update Node.js packages to latest versions - Update all devDependencies to latest versions using ncu -u - Update peerDependencies in typespec-extension to match devDependencies - Update overrides in typespec-tests to match typespec-extension versions - Update package-lock.json with npm install * Sync test files with latest TypeSpec specifications - Run pwsh SyncTests.ps1 to synchronize test files - Include new generated files and updates to existing tests - Add new methodsubscriptionid and movemethodparametertoclient test cases * Prepare for patch release 0.33.1 - Bump version from 0.33.0 to 0.33.1 in typespec-extension/package.json - Update version reference in typespec-tests/package.json - Add new release entry in changelog.md for 0.33.1 (2025-09-11) - Run npm install to update package-lock.json --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]>
1 parent fd76c4b commit 6913765

File tree

83 files changed

+9046
-308
lines changed

Some content is hidden

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

83 files changed

+9046
-308
lines changed

core

Submodule core updated 265 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.33.1 (2025-09-11)
4+
5+
Compatible with compiler 1.4.0.
6+
7+
- Updated package dependencies to latest versions.
8+
39
## 0.33.0 (2025-09-09)
410

511
Compatible with compiler 1.3.0.

typespec-extension/package-lock.json

Lines changed: 271 additions & 253 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: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.33.0",
3+
"version": "0.33.1",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -47,61 +47,63 @@
4747
"generator/http-client-generator/target/classes/PerfAutomation.jfc"
4848
],
4949
"peerDependencies": {
50-
"@azure-tools/typespec-autorest": ">=0.59.1 <1.0.0",
51-
"@azure-tools/typespec-azure-core": ">=0.59.0 <1.0.0",
52-
"@azure-tools/typespec-azure-resource-manager": ">=0.59.2 <1.0.0",
53-
"@azure-tools/typespec-azure-rulesets": ">=0.59.0 <1.0.0",
54-
"@azure-tools/typespec-client-generator-core": ">=0.59.1 <1.0.0",
50+
"@azure-tools/typespec-autorest": ">=0.60.0 <1.0.0",
51+
"@azure-tools/typespec-azure-core": ">=0.60.0 <1.0.0",
52+
"@azure-tools/typespec-azure-resource-manager": ">=0.60.0 <1.0.0",
53+
"@azure-tools/typespec-azure-rulesets": ">=0.60.0 <1.0.0",
54+
"@azure-tools/typespec-client-generator-core": ">=0.60.0 <1.0.0",
5555
"@azure-tools/typespec-liftr-base": ">=0.8.0 <1.0.0",
56-
"@typespec/compiler": "^1.3.0",
57-
"@typespec/http": "^1.3.0",
58-
"@typespec/openapi": "^1.3.0",
59-
"@typespec/rest": ">=0.73.0 <1.0.0",
60-
"@typespec/versioning": ">=0.73.0 <1.0.0",
61-
"@typespec/xml": ">=0.73.0 <1.0.0"
56+
"@typespec/compiler": "^1.4.0",
57+
"@typespec/http": "^1.4.0",
58+
"@typespec/openapi": "^1.4.0",
59+
"@typespec/rest": ">=0.74.0 <1.0.0",
60+
"@typespec/versioning": ">=0.74.0 <1.0.0",
61+
"@typespec/xml": ">=0.74.0 <1.0.0"
6262
},
6363
"dependencies": {
6464
"@autorest/codemodel": "~4.20.1",
6565
"js-yaml": "~4.1.0",
6666
"lodash": "~4.17.21"
6767
},
6868
"devDependencies": {
69-
"@azure-tools/typespec-autorest": "0.59.1",
70-
"@azure-tools/typespec-azure-core": "0.59.0",
71-
"@azure-tools/typespec-azure-resource-manager": "0.59.2",
72-
"@azure-tools/typespec-azure-rulesets": "0.59.0",
73-
"@azure-tools/typespec-client-generator-core": "0.59.1",
69+
"@azure-tools/typespec-autorest": "0.60.0",
70+
"@azure-tools/typespec-azure-core": "0.60.0",
71+
"@azure-tools/typespec-azure-resource-manager": "0.60.0",
72+
"@azure-tools/typespec-azure-rulesets": "0.60.0",
73+
"@azure-tools/typespec-client-generator-core": "0.60.0",
7474
"@azure-tools/typespec-liftr-base": "0.8.0",
7575
"@types/js-yaml": "~4.0.9",
7676
"@types/lodash": "~4.17.20",
77-
"@types/node": "~24.3.0",
78-
"@typescript-eslint/eslint-plugin": "~8.40.0",
79-
"@typescript-eslint/parser": "~8.40.0",
80-
"@typespec/compiler": "1.3.0",
81-
"@typespec/http": "1.3.0",
82-
"@typespec/openapi": "1.3.0",
83-
"@typespec/rest": "0.73.0",
84-
"@typespec/versioning": "0.73.0",
85-
"@typespec/xml": "0.73.0",
86-
"@typespec/events": "0.73.0",
87-
"@typespec/sse": "0.73.0",
88-
"@typespec/streams": "0.73.0",
89-
"@typespec/tspd": "0.72.2",
90-
"@microsoft/api-extractor": "^7.52.11",
77+
"@types/node": "~24.3.1",
78+
"@typescript-eslint/eslint-plugin": "~8.43.0",
79+
"@typescript-eslint/parser": "~8.43.0",
80+
"@typespec/compiler": "1.4.0",
81+
"@typespec/http": "1.4.0",
82+
"@typespec/openapi": "1.4.0",
83+
"@typespec/rest": "0.74.0",
84+
"@typespec/versioning": "0.74.0",
85+
"@typespec/xml": "0.74.0",
86+
"@typespec/events": "0.74.0",
87+
"@typespec/sse": "0.74.0",
88+
"@typespec/streams": "0.74.0",
89+
"@typespec/tspd": "0.73.0",
90+
"@microsoft/api-extractor": "^7.52.12",
9191
"@vitest/coverage-v8": "^3.2.4",
9292
"@vitest/ui": "^3.2.4",
9393
"c8": "~10.1.3",
94-
"eslint": "~9.33.0",
94+
"eslint": "~9.35.0",
9595
"eslint-plugin-deprecation": "~3.0.0",
9696
"eslint-plugin-import": "^2.32.0",
97-
"eslint-plugin-unicorn": "^60.0.0",
97+
"eslint-plugin-unicorn": "^61.0.2",
9898
"prettier": "~3.6.2",
9999
"rimraf": "~6.0.1",
100100
"typescript": "~5.9.2",
101-
"typescript-eslint": "^8.40.0",
101+
"typescript-eslint": "^8.43.0",
102102
"vitest": "^3.2.4"
103103
},
104104
"overrides": {
105-
"eslint": "~9.33.0"
105+
"eslint": "~9.35.0",
106+
"@typescript-eslint/eslint-plugin": "~8.43.0",
107+
"@typescript-eslint/parser": "~8.43.0"
106108
}
107109
}

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.8",
13-
"@typespec/spector": "0.1.0-alpha.17",
14-
"@typespec/http-specs": "0.1.0-alpha.25",
15-
"@azure-tools/azure-http-specs": "0.1.0-alpha.27",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.33.0.tgz"
12+
"@typespec/spec-api": "0.1.0-alpha.9",
13+
"@typespec/spector": "0.1.0-alpha.18",
14+
"@typespec/http-specs": "0.1.0-alpha.26",
15+
"@azure-tools/azure-http-specs": "0.1.0-alpha.28",
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.33.1.tgz"
1717
},
1818
"devDependencies": {
19-
"@typespec/prettier-plugin-typespec": "^1.3.0",
19+
"@typespec/prettier-plugin-typespec": "^1.4.0",
2020
"prettier-plugin-organize-imports": "^4.2.0",
2121
"prettier": "^3.6.2"
2222
},
2323
"overrides": {
24-
"@typespec/compiler": "1.3.0",
25-
"@typespec/http": "1.3.0",
26-
"@typespec/rest": "0.73.0",
27-
"@typespec/versioning": "0.73.0",
28-
"@typespec/openapi": "1.3.0",
29-
"@typespec/xml": "0.73.0",
30-
"@typespec/events": "0.73.0",
31-
"@typespec/sse": "0.73.0",
32-
"@typespec/streams": "0.73.0",
33-
"@azure-tools/typespec-azure-core": "0.59.0",
34-
"@azure-tools/typespec-client-generator-core": "0.59.1",
35-
"@azure-tools/typespec-azure-resource-manager": "0.59.2",
36-
"@azure-tools/typespec-autorest": "0.59.1"
24+
"@typespec/compiler": "1.4.0",
25+
"@typespec/http": "1.4.0",
26+
"@typespec/rest": "0.74.0",
27+
"@typespec/versioning": "0.74.0",
28+
"@typespec/openapi": "1.4.0",
29+
"@typespec/xml": "0.74.0",
30+
"@typespec/events": "0.74.0",
31+
"@typespec/sse": "0.74.0",
32+
"@typespec/streams": "0.74.0",
33+
"@azure-tools/typespec-azure-core": "0.60.0",
34+
"@azure-tools/typespec-client-generator-core": "0.60.0",
35+
"@azure-tools/typespec-azure-resource-manager": "0.60.0",
36+
"@azure-tools/typespec-autorest": "0.60.0"
3737
},
3838
"private": true
3939
}

typespec-tests/src/main/java/azure/clientgenerator/core/clientlocation/ClientLocationClientBuilder.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@
4747
MoveToExistingSubUserOperationsClient.class,
4848
MoveToNewSubProductOperationsClient.class,
4949
MoveToRootResourceOperationsClient.class,
50+
MoveMethodParameterToBlobOperationsClient.class,
5051
ArchiveOperationsClient.class,
5152
ClientLocationAsyncClient.class,
5253
MoveToExistingSubAdminOperationsAsyncClient.class,
5354
MoveToExistingSubUserOperationsAsyncClient.class,
5455
MoveToNewSubProductOperationsAsyncClient.class,
5556
MoveToRootResourceOperationsAsyncClient.class,
57+
MoveMethodParameterToBlobOperationsAsyncClient.class,
5658
ArchiveOperationsAsyncClient.class })
5759
public final class ClientLocationClientBuilder implements HttpTrait<ClientLocationClientBuilder>,
5860
ConfigurationTrait<ClientLocationClientBuilder>, EndpointTrait<ClientLocationClientBuilder> {
@@ -328,6 +330,17 @@ public MoveToRootResourceOperationsAsyncClient buildMoveToRootResourceOperations
328330
return new MoveToRootResourceOperationsAsyncClient(buildInnerClient().getMoveToRootResourceOperations());
329331
}
330332

333+
/**
334+
* Builds an instance of MoveMethodParameterToBlobOperationsAsyncClient class.
335+
*
336+
* @return an instance of MoveMethodParameterToBlobOperationsAsyncClient.
337+
*/
338+
@Generated
339+
public MoveMethodParameterToBlobOperationsAsyncClient buildMoveMethodParameterToBlobOperationsAsyncClient() {
340+
return new MoveMethodParameterToBlobOperationsAsyncClient(
341+
buildInnerClient().getMoveMethodParameterToBlobOperations());
342+
}
343+
331344
/**
332345
* Builds an instance of ArchiveOperationsAsyncClient class.
333346
*
@@ -388,6 +401,17 @@ public MoveToRootResourceOperationsClient buildMoveToRootResourceOperationsClien
388401
return new MoveToRootResourceOperationsClient(buildInnerClient().getMoveToRootResourceOperations());
389402
}
390403

404+
/**
405+
* Builds an instance of MoveMethodParameterToBlobOperationsClient class.
406+
*
407+
* @return an instance of MoveMethodParameterToBlobOperationsClient.
408+
*/
409+
@Generated
410+
public MoveMethodParameterToBlobOperationsClient buildMoveMethodParameterToBlobOperationsClient() {
411+
return new MoveMethodParameterToBlobOperationsClient(
412+
buildInnerClient().getMoveMethodParameterToBlobOperations());
413+
}
414+
391415
/**
392416
* Builds an instance of ArchiveOperationsClient class.
393417
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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.clientlocation;
6+
7+
import azure.clientgenerator.core.clientlocation.implementation.MoveMethodParameterToBlobOperationsImpl;
8+
import azure.clientgenerator.core.clientlocation.movemethodparametertoclient.models.Blob;
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.RequestOptions;
18+
import com.azure.core.http.rest.Response;
19+
import com.azure.core.util.BinaryData;
20+
import com.azure.core.util.FluxUtil;
21+
import reactor.core.publisher.Mono;
22+
23+
/**
24+
* Initializes a new instance of the asynchronous ClientLocationClient type.
25+
*/
26+
@ServiceClient(builder = ClientLocationClientBuilder.class, isAsync = true)
27+
public final class MoveMethodParameterToBlobOperationsAsyncClient {
28+
@Generated
29+
private final MoveMethodParameterToBlobOperationsImpl serviceClient;
30+
31+
/**
32+
* Initializes an instance of MoveMethodParameterToBlobOperationsAsyncClient class.
33+
*
34+
* @param serviceClient the service client implementation.
35+
*/
36+
@Generated
37+
MoveMethodParameterToBlobOperationsAsyncClient(MoveMethodParameterToBlobOperationsImpl serviceClient) {
38+
this.serviceClient = serviceClient;
39+
}
40+
41+
/**
42+
* The getBlob operation.
43+
* <p><strong>Response Body Schema</strong></p>
44+
*
45+
* <pre>
46+
* {@code
47+
* {
48+
* id: String (Required)
49+
* name: String (Required)
50+
* size: int (Required)
51+
* path: String (Required)
52+
* }
53+
* }
54+
* </pre>
55+
*
56+
* @param storageAccount The storageAccount parameter.
57+
* @param container The container parameter.
58+
* @param blob The blob parameter.
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 response body along with {@link Response} on successful completion of {@link Mono}.
65+
*/
66+
@Generated
67+
@ServiceMethod(returns = ReturnType.SINGLE)
68+
public Mono<Response<BinaryData>> getBlobWithResponse(String storageAccount, String container, String blob,
69+
RequestOptions requestOptions) {
70+
return this.serviceClient.getBlobWithResponseAsync(storageAccount, container, blob, requestOptions);
71+
}
72+
73+
/**
74+
* The getBlob operation.
75+
*
76+
* @param storageAccount The storageAccount parameter.
77+
* @param container The container parameter.
78+
* @param blob The blob parameter.
79+
* @throws IllegalArgumentException thrown if parameters fail the validation.
80+
* @throws HttpResponseException thrown if the request is rejected by server.
81+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
82+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
83+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
84+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
85+
* @return the response body on successful completion of {@link Mono}.
86+
*/
87+
@Generated
88+
@ServiceMethod(returns = ReturnType.SINGLE)
89+
public Mono<Blob> getBlob(String storageAccount, String container, String blob) {
90+
// Generated convenience method for getBlobWithResponse
91+
RequestOptions requestOptions = new RequestOptions();
92+
return getBlobWithResponse(storageAccount, container, blob, requestOptions).flatMap(FluxUtil::toMono)
93+
.map(protocolMethodData -> protocolMethodData.toObject(Blob.class));
94+
}
95+
}

0 commit comments

Comments
 (0)