Skip to content

[http-client-java] Upgrade @azure-tools/typespec-client-generator-core to 0.57.1 #7661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 17, 2025

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jun 17, 2025

This PR upgrades the @azure-tools/typespec-client-generator-core dependency from version 0.57.0 to 0.57.1 in the http-client-java package.

Changes Made

  • Updated peer dependency constraint in main package.json from >=0.57.0 <1.0.0 to >=0.57.1 <1.0.0
  • Updated dev dependency version in main package.json from 0.57.0 to 0.57.1
  • Updated override version in http-client-generator-test/package.json from 0.57.0 to 0.57.1
  • Updated override version in http-client-generator-clientcore-test/package.json from 0.57.0 to 0.57.1
  • Regenerated pnpm-lock.yaml with the new dependency resolution

Testing

The Java generator builds successfully with the updated TCGC version, confirming compatibility with version 0.57.1.

Fixes #7660.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@haolingdong-msft
Copy link
Member

haolingdong-msft commented Jun 17, 2025

Co-authored-by: haolingdong-msft <87355844+haolingdong-msft@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] [http-client-java] upgrade tcgc version to 0.57.1 [http-client-java] Upgrade @azure-tools/typespec-client-generator-core to 0.57.1 Jun 17, 2025
@Copilot Copilot AI requested a review from haolingdong-msft June 17, 2025 03:16
Copilot finished work on behalf of haolingdong-msft June 17, 2025 03:16
- Used `ncu -u` to update dependencies in root and test package.json files
- Updated peerDependencies semver ranges to match devDependencies versions
- Updated overrides in test packages to match root package versions
- Used `npm install` to generate package-lock.json (not pnpm)
- Fixed build error by adding null check for client.__raw.type

Co-authored-by: haolingdong-msft <87355844+haolingdong-msft@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jun 17, 2025

@copilot Follow the instruction here: https://github.com/microsoft/typespec/blob/main/packages/http-client-java/.github/copilot-instructions.md#update-package-for-latest-dependencies

I've now followed the instructions exactly as specified. Used ncu -u to update dependencies, properly updated peer dependencies and overrides, and used npm install to generate package-lock.json instead of pnpm. Also fixed a build error that emerged with the TCGC upgrade. Changes committed in 4cb4d75.

Copilot finished work on behalf of haolingdong-msft June 17, 2025 03:25
Copilot finished work on behalf of haolingdong-msft June 17, 2025 03:30
Co-authored-by: haolingdong-msft <87355844+haolingdong-msft@users.noreply.github.com>
Copilot finished work on behalf of haolingdong-msft June 17, 2025 03:38
Co-authored-by: haolingdong-msft <87355844+haolingdong-msft@users.noreply.github.com>
Co-authored-by: haolingdong-msft <87355844+haolingdong-msft@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:java Issue for the Java client emitter: @typespec/http-client-java label Jun 17, 2025
Copy link
Contributor

No changes needing a change description found.

Copilot finished work on behalf of haolingdong-msft June 17, 2025 05:42
@haolingdong-msft
Copy link
Member

Run npm run format @copilot

Co-authored-by: haolingdong-msft <87355844+haolingdong-msft@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jun 17, 2025

Run npm run format @copilot

Formatted code with prettier. The command ran successfully and made a minor formatting change to improve line breaks in code-model-builder.ts. Changes committed in c8e57c3.

Copilot finished work on behalf of haolingdong-msft June 17, 2025 06:13
@haolingdong-msft haolingdong-msft marked this pull request as ready for review June 17, 2025 06:25
@haolingdong-msft haolingdong-msft added this pull request to the merge queue Jun 17, 2025
Merged via the queue into main with commit 40c5e02 Jun 17, 2025
21 checks passed
@haolingdong-msft haolingdong-msft deleted the copilot/fix-7660 branch June 17, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:java Issue for the Java client emitter: @typespec/http-client-java
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[http-client-java] upgrade tcgc version to 0.57.1
4 participants