Skip to content

Commit 12ec7d3

Browse files
Update Package for Latest Dependencies and Prepare for Patch Release 0.31.6 (#3156)
* Initial plan * Update core submodule to latest main branch Co-authored-by: weidongxu-microsoft <[email protected]> * Update package dependencies using npm-check-updates Co-authored-by: weidongxu-microsoft <[email protected]> * Sync tests using SyncTests.ps1 script Co-authored-by: weidongxu-microsoft <[email protected]> * Prepare for patch release 0.31.6 Co-authored-by: weidongxu-microsoft <[email protected]> * Fix code formatting * Update root package.json version to 4.1.54 Co-authored-by: weidongxu-microsoft <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: weidongxu-microsoft <[email protected]>
1 parent d7cb94e commit 12ec7d3

28 files changed

+2181
-174
lines changed

core

Submodule core updated 386 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.53",
3+
"version": "4.1.54",
44
"description": "The Java extension for classic generators in AutoRest.",
55
"scripts": {
66
"autorest": "autorest",

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.31.6 (2025-07-02)
4+
5+
Compatible with compiler 1.1.0.
6+
7+
- Updated package dependencies to latest versions.
8+
39
## 0.31.5 (2025-06-26)
410

511
Compatible with compiler 1.1.0.

typespec-extension/package-lock.json

Lines changed: 144 additions & 144 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: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.31.5",
3+
"version": "0.31.6",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -47,11 +47,11 @@
4747
"generator/http-client-generator/target/classes/PerfAutomation.jfc"
4848
],
4949
"peerDependencies": {
50-
"@azure-tools/typespec-autorest": ">=0.57.0 <1.0.0",
50+
"@azure-tools/typespec-autorest": ">=0.57.1 <1.0.0",
5151
"@azure-tools/typespec-azure-core": ">=0.57.0 <1.0.0",
52-
"@azure-tools/typespec-azure-resource-manager": ">=0.57.0 <1.0.0",
53-
"@azure-tools/typespec-azure-rulesets": ">=0.57.0 <1.0.0",
54-
"@azure-tools/typespec-client-generator-core": ">=0.57.2 <1.0.0",
52+
"@azure-tools/typespec-azure-resource-manager": ">=0.57.2 <1.0.0",
53+
"@azure-tools/typespec-azure-rulesets": ">=0.57.1 <1.0.0",
54+
"@azure-tools/typespec-client-generator-core": ">=0.57.3 <1.0.0",
5555
"@azure-tools/typespec-liftr-base": ">=0.8.0 <1.0.0",
5656
"@typespec/compiler": "^1.1.0",
5757
"@typespec/http": "^1.1.0",
@@ -66,17 +66,17 @@
6666
"lodash": "~4.17.21"
6767
},
6868
"devDependencies": {
69-
"@azure-tools/typespec-autorest": "0.57.0",
69+
"@azure-tools/typespec-autorest": "0.57.1",
7070
"@azure-tools/typespec-azure-core": "0.57.0",
71-
"@azure-tools/typespec-azure-resource-manager": "0.57.0",
72-
"@azure-tools/typespec-azure-rulesets": "0.57.0",
73-
"@azure-tools/typespec-client-generator-core": "0.57.2",
71+
"@azure-tools/typespec-azure-resource-manager": "0.57.2",
72+
"@azure-tools/typespec-azure-rulesets": "0.57.1",
73+
"@azure-tools/typespec-client-generator-core": "0.57.3",
7474
"@azure-tools/typespec-liftr-base": "0.8.0",
7575
"@types/js-yaml": "~4.0.9",
76-
"@types/lodash": "~4.17.18",
77-
"@types/node": "~24.0.4",
76+
"@types/lodash": "~4.17.20",
77+
"@types/node": "~24.0.10",
7878
"@typescript-eslint/eslint-plugin": "~8.32.1",
79-
"@typescript-eslint/parser": "~8.35.0",
79+
"@typescript-eslint/parser": "~8.35.1",
8080
"@typespec/compiler": "1.1.0",
8181
"@typespec/http": "1.1.0",
8282
"@typespec/openapi": "1.1.0",
@@ -91,17 +91,17 @@
9191
"@vitest/coverage-v8": "^3.2.4",
9292
"@vitest/ui": "^3.2.4",
9393
"c8": "~10.1.3",
94-
"eslint": "~9.29.0",
94+
"eslint": "~9.30.1",
9595
"eslint-plugin-deprecation": "~3.0.0",
9696
"eslint-plugin-import": "^2.32.0",
9797
"eslint-plugin-unicorn": "^59.0.1",
98-
"prettier": "~3.6.1",
98+
"prettier": "~3.6.2",
9999
"rimraf": "~6.0.1",
100100
"typescript": "~5.8.3",
101-
"typescript-eslint": "^8.35.0",
101+
"typescript-eslint": "^8.35.1",
102102
"vitest": "^3.2.4"
103103
},
104104
"overrides": {
105-
"eslint": "~9.29.0"
105+
"eslint": "~9.30.1"
106106
}
107107
}

typespec-extension/src/options.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,14 @@ export const EmitterOptionsSchema: JSONSchemaType<EmitterOptions> = {
112112
},
113113
"customization-class": {
114114
type: "string",
115-
description: "Specify the Java class that to be executed by emitter for [code customization](https://github.com/Azure/autorest.java/blob/main/customization-base/README.md), during post-process.",
115+
description:
116+
"Specify the Java class that to be executed by emitter for [code customization](https://github.com/Azure/autorest.java/blob/main/customization-base/README.md), during post-process.",
116117
nullable: true,
117118
},
118119
"rename-model": {
119120
type: ["string", "object"],
120-
description: "Rename the model classes, in case they cannot be renamed via TCGC. E.g., anonymous models or templated models. Format should be in key-value form, or a comma-separated string that follows 'BeforeRename:AfterRename' pattern. This option is for management-plane SDK.",
121+
description:
122+
"Rename the model classes, in case they cannot be renamed via TCGC. E.g., anonymous models or templated models. Format should be in key-value form, or a comma-separated string that follows 'BeforeRename:AfterRename' pattern. This option is for management-plane SDK.",
121123
additionalProperties: true,
122124
nullable: true,
123125
},
@@ -180,7 +182,7 @@ export const EmitterOptionsSchema: JSONSchemaType<EmitterOptions> = {
180182
description: "Temporary working directory for Java code generator.",
181183
nullable: true,
182184
},
183-
profile: {
185+
"profile": {
184186
type: "boolean",
185187
description: "Enable performance profiling.",
186188
nullable: true,

typespec-tests/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"@typespec/spec-api": "0.1.0-alpha.6",
1313
"@typespec/spector": "0.1.0-alpha.15",
1414
"@typespec/http-specs": "0.1.0-alpha.23",
15-
"@azure-tools/azure-http-specs": "0.1.0-alpha.20",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.5.tgz"
15+
"@azure-tools/azure-http-specs": "0.1.0-alpha.22",
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.6.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "^1.1.0",
2020
"prettier-plugin-organize-imports": "^4.1.0",
21-
"prettier": "^3.6.1"
21+
"prettier": "^3.6.2"
2222
},
2323
"overrides": {
2424
"@typespec/compiler": "1.1.0",
@@ -31,9 +31,9 @@
3131
"@typespec/sse": "0.71.0",
3232
"@typespec/streams": "0.71.0",
3333
"@azure-tools/typespec-azure-core": "0.57.0",
34-
"@azure-tools/typespec-client-generator-core": "0.57.2",
35-
"@azure-tools/typespec-azure-resource-manager": "0.57.0",
36-
"@azure-tools/typespec-autorest": "0.57.0"
34+
"@azure-tools/typespec-client-generator-core": "0.57.3",
35+
"@azure-tools/typespec-azure-resource-manager": "0.57.2",
36+
"@azure-tools/typespec-autorest": "0.57.1"
3737
},
3838
"private": true
3939
}

typespec-tests/src/main/java/azure/resourcemanager/operationtemplates/OperationTemplatesManager.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
import azure.resourcemanager.operationtemplates.implementation.LroesImpl;
1010
import azure.resourcemanager.operationtemplates.implementation.OperationTemplatesClientBuilder;
1111
import azure.resourcemanager.operationtemplates.implementation.OperationsImpl;
12+
import azure.resourcemanager.operationtemplates.implementation.OptionalBodiesImpl;
1213
import azure.resourcemanager.operationtemplates.models.CheckNameAvailabilities;
1314
import azure.resourcemanager.operationtemplates.models.Lroes;
1415
import azure.resourcemanager.operationtemplates.models.Operations;
16+
import azure.resourcemanager.operationtemplates.models.OptionalBodies;
1517
import com.azure.core.credential.TokenCredential;
1618
import com.azure.core.http.HttpClient;
1719
import com.azure.core.http.HttpPipeline;
@@ -51,6 +53,8 @@ public final class OperationTemplatesManager {
5153

5254
private Lroes lroes;
5355

56+
private OptionalBodies optionalBodies;
57+
5458
private final OperationTemplatesClient clientObject;
5559

5660
private OperationTemplatesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -303,6 +307,18 @@ public Lroes lroes() {
303307
return lroes;
304308
}
305309

310+
/**
311+
* Gets the resource collection API of OptionalBodies.
312+
*
313+
* @return Resource collection API of OptionalBodies.
314+
*/
315+
public OptionalBodies optionalBodies() {
316+
if (this.optionalBodies == null) {
317+
this.optionalBodies = new OptionalBodiesImpl(clientObject.getOptionalBodies(), this);
318+
}
319+
return optionalBodies;
320+
}
321+
306322
/**
307323
* Gets wrapped service client OperationTemplatesClient providing direct access to the underlying auto-generated API
308324
* implementation, based on Azure REST API.

typespec-tests/src/main/java/azure/resourcemanager/operationtemplates/fluent/OperationTemplatesClient.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,11 @@ public interface OperationTemplatesClient {
6666
* @return the LroesClient object.
6767
*/
6868
LroesClient getLroes();
69+
70+
/**
71+
* Gets the OptionalBodiesClient object to access its operations.
72+
*
73+
* @return the OptionalBodiesClient object.
74+
*/
75+
OptionalBodiesClient getOptionalBodies();
6976
}

0 commit comments

Comments
 (0)