Skip to content

Commit 58f18b3

Browse files
eng, sync microsoft/typespec#9963 and prepare release (#3300)
* eng, sync http-client-java_improve-singluar * update core * update * Bump version to 0.42.0 and update dependencies - Bump @azure-tools/typespec-java to 0.42.0 - Update eslint to ~10.0.3 - Add changelog entry for 0.42.0 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * changelog * Update core submodule to latest upstream/main Include microsoft/typespec#9963: http-client-java, use lib to convert plural to singular Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e54fa8f commit 58f18b3

35 files changed

Lines changed: 119 additions & 6847 deletions

File tree

core

Submodule core updated 101 files

eng/sdk/patches/0001-revert-main.patch

Lines changed: 0 additions & 6555 deletions
This file was deleted.

typespec-extension/changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release History
22

3+
## 0.42.0 (2026-03-09)
4+
5+
Compatible with compiler 1.9.0.
6+
7+
- Updated package dependencies to the latest versions.
8+
- Improve the logic to convert plural words to singular, used for generating management libs.
9+
310
## 0.41.0 (2026-03-06)
411

512
Compatible with compiler 1.9.0.

typespec-extension/package-lock.json

Lines changed: 29 additions & 53 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
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.41.0",
3+
"version": "0.42.0",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -95,7 +95,7 @@
9595
"@vitest/coverage-v8": "^4.0.18",
9696
"@vitest/ui": "^4.0.18",
9797
"c8": "~11.0.0",
98-
"eslint": "~10.0.2",
98+
"eslint": "~10.0.3",
9999
"eslint-plugin-deprecation": "~3.0.0",
100100
"eslint-plugin-import": "^2.32.0",
101101
"eslint-plugin-unicorn": "^63.0.0",
@@ -106,7 +106,7 @@
106106
"vitest": "^4.0.18"
107107
},
108108
"overrides": {
109-
"eslint": "~10.0.2",
109+
"eslint": "~10.0.3",
110110
"@typescript-eslint/eslint-plugin": "~8.56.1",
111111
"@typescript-eslint/parser": "~8.56.1"
112112
}

typespec-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@typespec/spector": "0.1.0-alpha.23",
1414
"@typespec/http-specs": "0.1.0-alpha.32",
1515
"@azure-tools/azure-http-specs": "0.1.0-alpha.37",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.41.0.tgz"
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.42.0.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "^1.9.0",

typespec-tests/src/main/java/azure/resourcemanager/commonproperties/implementation/ErrorsImpl.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@ public Response<ConfidentialResource> getByResourceGroupWithResponse(String reso
3030
String confidentialResourceName, Context context) {
3131
Response<ConfidentialResourceInner> inner
3232
= this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, confidentialResourceName, context);
33-
if (inner != null) {
34-
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
35-
new ConfidentialResourceImpl(inner.getValue(), this.manager()));
36-
} else {
37-
return null;
38-
}
33+
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
34+
new ConfidentialResourceImpl(inner.getValue(), this.manager()));
3935
}
4036

4137
public ConfidentialResource getByResourceGroup(String resourceGroupName, String confidentialResourceName) {

0 commit comments

Comments
 (0)