Skip to content

Commit e54fa8f

Browse files
authored
sync core library, prepare typespec-java 0.41.0 and autorest.java 4.1.63 (#3298)
* update core * check-in generated sample code for premium * try pin autorest version * fix * also fix autorest pipeline * try failOnStderr * Revert "try failOnStderr" This reverts commit da7a11b. * core on main * prepare typespec-java 0.41.0 * prepare autorest.java 4.1.63 * sync main * sync tests * audit fix * Update core submodule to latest upstream main * Update Node.js packages for latest dependencies
1 parent 9c4aff5 commit e54fa8f

27 files changed

+337
-192
lines changed

core

Submodule core updated 440 files

eng/pipelines/jobs/build-autorest-mgmt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
inputs:
3737
versionSpec: '$(NodeVersion)'
3838

39-
- script: npm install autorest -g
39+
- script: npm install autorest@$(AutorestVersion) -g
4040

4141
- template: /eng/pipelines/steps/cache-maven-repository.yml
4242
parameters:

eng/pipelines/jobs/build-autorest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
publishJUnitResults: false
5555

5656
- script: |
57-
npm install -g autorest
57+
npm install -g autorest@$(AutorestVersion)
5858
npm ci
5959
displayName: 'Prepare Environment for Generation'
6060

eng/pipelines/variables/globals.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
variables:
22
JavaVersion: '1.11'
33
NodeVersion: '20.x'
4+
AutorestVersion: '3.7.2'
45

56
# Sets the Maven log level to either the LogLevel passed in the manual pipeline run or the default 'warn'
67
MavenLogLevel: $[coalesce(variables['LogLevel'], 'warn')]

eng/sdk/sync_sdk.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ def update_sdks():
172172
cmd = ["git", "checkout", "src/test"]
173173
subprocess.check_call(cmd, cwd=module_path)
174174

175-
if not generated_samples_exists:
175+
# For ARM module, we want to keep the generated samples code.
176+
# For data-plane, if the generated samples/test code is not there before generation, we will delete the generated code after generation, to avoid unnecessary code check-in.
177+
if not generated_samples_exists and not arm_module:
176178
shutil.rmtree(generated_samples_path, ignore_errors=True)
177179
if not generated_test_exists:
178180
shutil.rmtree(generated_test_path, ignore_errors=True)

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.62",
3+
"version": "4.1.63",
44
"description": "The Java extension for classic generators in AutoRest.",
55
"scripts": {
66
"autorest": "autorest",

typespec-extension/changelog.md

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

3+
## 0.41.0 (2026-03-06)
4+
5+
Compatible with compiler 1.9.0.
6+
7+
- Supported DurationKnownEncoding.milliseconds.
8+
- Supported apiVersions in metadata.json for multiple services.
9+
- Premium examples now have separate entry points other than `AzureResourceManager`.
10+
- Updated package dependencies to the latest versions.
11+
312
## 0.40.0 (2026-02-25)
413

514
Compatible with compiler 1.9.0.

typespec-extension/package-lock.json

Lines changed: 9 additions & 9 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.40.0",
3+
"version": "0.41.0",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -78,7 +78,7 @@
7878
"@microsoft/api-extractor": "^7.57.6",
7979
"@types/js-yaml": "~4.0.9",
8080
"@types/lodash": "~4.17.24",
81-
"@types/node": "~25.3.2",
81+
"@types/node": "~25.3.5",
8282
"@typescript-eslint/eslint-plugin": "~8.56.1",
8383
"@typescript-eslint/parser": "~8.56.1",
8484
"@typespec/compiler": "1.9.0",

0 commit comments

Comments
 (0)