Skip to content

Commit d7538e8

Browse files
Update Node.js packages to latest versions (#3180)
* Initial plan * Update core submodule to latest TypeSpec main Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> * Update Node.js packages to latest using ncu Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> * Sync test files after core submodule update 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 9666c1b commit d7538e8

17 files changed

Lines changed: 1477 additions & 317 deletions

core

Submodule core updated 25 files

typespec-extension/package-lock.json

Lines changed: 25 additions & 25 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
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.2.0",
77+
"@types/node": "~24.2.1",
7878
"@typescript-eslint/eslint-plugin": "~8.39.0",
7979
"@typescript-eslint/parser": "~8.39.0",
8080
"@typespec/compiler": "1.3.0",
@@ -91,7 +91,7 @@
9191
"@vitest/coverage-v8": "^3.2.4",
9292
"@vitest/ui": "^3.2.4",
9393
"c8": "~10.1.3",
94-
"eslint": "~9.32.0",
94+
"eslint": "~9.33.0",
9595
"eslint-plugin-deprecation": "~3.0.0",
9696
"eslint-plugin-import": "^2.32.0",
9797
"eslint-plugin-unicorn": "^60.0.0",
@@ -102,6 +102,6 @@
102102
"vitest": "^3.2.4"
103103
},
104104
"overrides": {
105-
"eslint": "~9.32.0"
105+
"eslint": "~9.33.0"
106106
}
107107
}

typespec-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@typespec/spec-api": "0.1.0-alpha.8",
1313
"@typespec/spector": "0.1.0-alpha.17",
1414
"@typespec/http-specs": "0.1.0-alpha.25",
15-
"@azure-tools/azure-http-specs": "0.1.0-alpha.25",
15+
"@azure-tools/azure-http-specs": "0.1.0-alpha.26",
1616
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.32.0.tgz"
1717
},
1818
"devDependencies": {

typespec-tests/src/main/java/azure/clientgenerator/core/hierarchybuilding/HierarchyBuildingAsyncClient.java renamed to typespec-tests/src/main/java/azure/clientgenerator/core/hierarchybuilding/AnimalOperationsAsyncClient.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package azure.clientgenerator.core.hierarchybuilding;
66

7-
import azure.clientgenerator.core.hierarchybuilding.implementation.HierarchyBuildingClientImpl;
7+
import azure.clientgenerator.core.hierarchybuilding.implementation.AnimalOperationsImpl;
88
import azure.clientgenerator.core.hierarchybuilding.models.Animal;
99
import com.azure.core.annotation.Generated;
1010
import com.azure.core.annotation.ReturnType;
@@ -24,22 +24,22 @@
2424
* Initializes a new instance of the asynchronous HierarchyBuildingClient type.
2525
*/
2626
@ServiceClient(builder = HierarchyBuildingClientBuilder.class, isAsync = true)
27-
public final class HierarchyBuildingAsyncClient {
27+
public final class AnimalOperationsAsyncClient {
2828
@Generated
29-
private final HierarchyBuildingClientImpl serviceClient;
29+
private final AnimalOperationsImpl serviceClient;
3030

3131
/**
32-
* Initializes an instance of HierarchyBuildingAsyncClient class.
32+
* Initializes an instance of AnimalOperationsAsyncClient class.
3333
*
3434
* @param serviceClient the service client implementation.
3535
*/
3636
@Generated
37-
HierarchyBuildingAsyncClient(HierarchyBuildingClientImpl serviceClient) {
37+
AnimalOperationsAsyncClient(AnimalOperationsImpl serviceClient) {
3838
this.serviceClient = serviceClient;
3939
}
4040

4141
/**
42-
* Update a pet.
42+
* Update a pet as an animal.
4343
* <p><strong>Request Body Schema</strong></p>
4444
*
4545
* <pre>
@@ -72,12 +72,12 @@ public final class HierarchyBuildingAsyncClient {
7272
*/
7373
@Generated
7474
@ServiceMethod(returns = ReturnType.SINGLE)
75-
public Mono<Response<BinaryData>> updatePetWithResponse(BinaryData animal, RequestOptions requestOptions) {
76-
return this.serviceClient.updatePetWithResponseAsync(animal, requestOptions);
75+
public Mono<Response<BinaryData>> updatePetAsAnimalWithResponse(BinaryData animal, RequestOptions requestOptions) {
76+
return this.serviceClient.updatePetAsAnimalWithResponseAsync(animal, requestOptions);
7777
}
7878

7979
/**
80-
* Update a dog.
80+
* Update a dog as an animal.
8181
* <p><strong>Request Body Schema</strong></p>
8282
*
8383
* <pre>
@@ -110,12 +110,12 @@ public Mono<Response<BinaryData>> updatePetWithResponse(BinaryData animal, Reque
110110
*/
111111
@Generated
112112
@ServiceMethod(returns = ReturnType.SINGLE)
113-
public Mono<Response<BinaryData>> updateDogWithResponse(BinaryData animal, RequestOptions requestOptions) {
114-
return this.serviceClient.updateDogWithResponseAsync(animal, requestOptions);
113+
public Mono<Response<BinaryData>> updateDogAsAnimalWithResponse(BinaryData animal, RequestOptions requestOptions) {
114+
return this.serviceClient.updateDogAsAnimalWithResponseAsync(animal, requestOptions);
115115
}
116116

117117
/**
118-
* Update a pet.
118+
* Update a pet as an animal.
119119
*
120120
* @param animal The animal parameter.
121121
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -128,15 +128,15 @@ public Mono<Response<BinaryData>> updateDogWithResponse(BinaryData animal, Reque
128128
*/
129129
@Generated
130130
@ServiceMethod(returns = ReturnType.SINGLE)
131-
public Mono<Animal> updatePet(Animal animal) {
132-
// Generated convenience method for updatePetWithResponse
131+
public Mono<Animal> updatePetAsAnimal(Animal animal) {
132+
// Generated convenience method for updatePetAsAnimalWithResponse
133133
RequestOptions requestOptions = new RequestOptions();
134-
return updatePetWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
134+
return updatePetAsAnimalWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
135135
.map(protocolMethodData -> protocolMethodData.toObject(Animal.class));
136136
}
137137

138138
/**
139-
* Update a dog.
139+
* Update a dog as an animal.
140140
*
141141
* @param animal The animal parameter.
142142
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -149,10 +149,10 @@ public Mono<Animal> updatePet(Animal animal) {
149149
*/
150150
@Generated
151151
@ServiceMethod(returns = ReturnType.SINGLE)
152-
public Mono<Animal> updateDog(Animal animal) {
153-
// Generated convenience method for updateDogWithResponse
152+
public Mono<Animal> updateDogAsAnimal(Animal animal) {
153+
// Generated convenience method for updateDogAsAnimalWithResponse
154154
RequestOptions requestOptions = new RequestOptions();
155-
return updateDogWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
155+
return updateDogAsAnimalWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
156156
.map(protocolMethodData -> protocolMethodData.toObject(Animal.class));
157157
}
158158
}

typespec-tests/src/main/java/azure/clientgenerator/core/hierarchybuilding/HierarchyBuildingClient.java renamed to typespec-tests/src/main/java/azure/clientgenerator/core/hierarchybuilding/AnimalOperationsClient.java

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package azure.clientgenerator.core.hierarchybuilding;
66

7-
import azure.clientgenerator.core.hierarchybuilding.implementation.HierarchyBuildingClientImpl;
7+
import azure.clientgenerator.core.hierarchybuilding.implementation.AnimalOperationsImpl;
88
import azure.clientgenerator.core.hierarchybuilding.models.Animal;
99
import com.azure.core.annotation.Generated;
1010
import com.azure.core.annotation.ReturnType;
@@ -22,22 +22,22 @@
2222
* Initializes a new instance of the synchronous HierarchyBuildingClient type.
2323
*/
2424
@ServiceClient(builder = HierarchyBuildingClientBuilder.class)
25-
public final class HierarchyBuildingClient {
25+
public final class AnimalOperationsClient {
2626
@Generated
27-
private final HierarchyBuildingClientImpl serviceClient;
27+
private final AnimalOperationsImpl serviceClient;
2828

2929
/**
30-
* Initializes an instance of HierarchyBuildingClient class.
30+
* Initializes an instance of AnimalOperationsClient class.
3131
*
3232
* @param serviceClient the service client implementation.
3333
*/
3434
@Generated
35-
HierarchyBuildingClient(HierarchyBuildingClientImpl serviceClient) {
35+
AnimalOperationsClient(AnimalOperationsImpl serviceClient) {
3636
this.serviceClient = serviceClient;
3737
}
3838

3939
/**
40-
* Update a pet.
40+
* Update a pet as an animal.
4141
* <p><strong>Request Body Schema</strong></p>
4242
*
4343
* <pre>
@@ -70,12 +70,12 @@ public final class HierarchyBuildingClient {
7070
*/
7171
@Generated
7272
@ServiceMethod(returns = ReturnType.SINGLE)
73-
public Response<BinaryData> updatePetWithResponse(BinaryData animal, RequestOptions requestOptions) {
74-
return this.serviceClient.updatePetWithResponse(animal, requestOptions);
73+
public Response<BinaryData> updatePetAsAnimalWithResponse(BinaryData animal, RequestOptions requestOptions) {
74+
return this.serviceClient.updatePetAsAnimalWithResponse(animal, requestOptions);
7575
}
7676

7777
/**
78-
* Update a dog.
78+
* Update a dog as an animal.
7979
* <p><strong>Request Body Schema</strong></p>
8080
*
8181
* <pre>
@@ -108,12 +108,12 @@ public Response<BinaryData> updatePetWithResponse(BinaryData animal, RequestOpti
108108
*/
109109
@Generated
110110
@ServiceMethod(returns = ReturnType.SINGLE)
111-
public Response<BinaryData> updateDogWithResponse(BinaryData animal, RequestOptions requestOptions) {
112-
return this.serviceClient.updateDogWithResponse(animal, requestOptions);
111+
public Response<BinaryData> updateDogAsAnimalWithResponse(BinaryData animal, RequestOptions requestOptions) {
112+
return this.serviceClient.updateDogAsAnimalWithResponse(animal, requestOptions);
113113
}
114114

115115
/**
116-
* Update a pet.
116+
* Update a pet as an animal.
117117
*
118118
* @param animal The animal parameter.
119119
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -126,14 +126,15 @@ public Response<BinaryData> updateDogWithResponse(BinaryData animal, RequestOpti
126126
*/
127127
@Generated
128128
@ServiceMethod(returns = ReturnType.SINGLE)
129-
public Animal updatePet(Animal animal) {
130-
// Generated convenience method for updatePetWithResponse
129+
public Animal updatePetAsAnimal(Animal animal) {
130+
// Generated convenience method for updatePetAsAnimalWithResponse
131131
RequestOptions requestOptions = new RequestOptions();
132-
return updatePetWithResponse(BinaryData.fromObject(animal), requestOptions).getValue().toObject(Animal.class);
132+
return updatePetAsAnimalWithResponse(BinaryData.fromObject(animal), requestOptions).getValue()
133+
.toObject(Animal.class);
133134
}
134135

135136
/**
136-
* Update a dog.
137+
* Update a dog as an animal.
137138
*
138139
* @param animal The animal parameter.
139140
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -146,9 +147,10 @@ public Animal updatePet(Animal animal) {
146147
*/
147148
@Generated
148149
@ServiceMethod(returns = ReturnType.SINGLE)
149-
public Animal updateDog(Animal animal) {
150-
// Generated convenience method for updateDogWithResponse
150+
public Animal updateDogAsAnimal(Animal animal) {
151+
// Generated convenience method for updateDogAsAnimalWithResponse
151152
RequestOptions requestOptions = new RequestOptions();
152-
return updateDogWithResponse(BinaryData.fromObject(animal), requestOptions).getValue().toObject(Animal.class);
153+
return updateDogAsAnimalWithResponse(BinaryData.fromObject(animal), requestOptions).getValue()
154+
.toObject(Animal.class);
153155
}
154156
}

0 commit comments

Comments
 (0)