Skip to content

[typespec-java] First release after migrating from autorest.java - #4905

Merged
XiaofeiCao merged 7 commits into
release/july-2026from
publish/hotfix/typespec-java-0.45.6-migration
Jul 16, 2026
Merged

[typespec-java] First release after migrating from autorest.java#4905
XiaofeiCao merged 7 commits into
release/july-2026from
publish/hotfix/typespec-java-0.45.6-migration

Conversation

@XiaofeiCao

Copy link
Copy Markdown
Contributor

Summary

Draft hotfix release PR for @azure-tools/typespec-java@0.45.6, targeting release/july-2026.

Changes

  • Version: bump @azure-tools/typespec-java to 0.45.6 and add the corresponding CHANGELOG.md entry (notes the js-yamlyaml / lodash→builtin change and dependency updates).
  • Sync tooling refactor: extract the transient core/ submodule checkout/restore logic into a shared CoreCommit.ps1 helper (Enter-CoreCommit / Restore-CoreCommit), used by both Copy-Sources.ps1 and emitter-tests/SyncTests.ps1.
  • SyncTests.ps1 now also:
    • reads the pinned core commit from core-commit.json (like Copy-Sources.ps1), transiently checking it out to sync from and always restoring the submodule;
    • syncs the versions of shared dependencies/overrides entries from core's http-client-generator-test/package.json via JSON manipulation (preserving repo-specific entries, key order, and formatting);
    • pins the local @azure-tools/typespec-java .tgz dependency to this repo's package.json version (outside the core checkout, since it is local-only).
  • Pin: add core-commit.json pinned to 4751383fd59eb64f1d443376c5db7948cfe974eb, and commit the synced emitter-tests/package.json + tsp/ results.

Notes

  • Hotfix PR targets the release/* branch per the repo's release conventions.
  • Opened as draft.

XiaofeiCao and others added 5 commits July 15, 2026 14:01
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c6ec0151-3c35-4ba5-88de-4923f73b9e5c
Also sync the versions of shared dependencies and overrides entries from
core/packages/http-client-java/generator/http-client-generator-test/package.json,
preserving repo-specific entries and the file formatting.

Extract the transient core-commit.json checkout/restore logic into a shared
Invoke-WithCoreCommit.ps1 helper used by both Copy-Sources.ps1 and SyncTests.ps1,
so both sync from the pinned core commit and always restore the submodule.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 50abf9d5-eb5b-41bd-a820-079e7486e199
Add core-commit.json pinning core to f46d2ac33694b106b95f990126ba824d9d227943
and run SyncTests.ps1 to sync src/tsp and align shared dependency/override
versions with that core commit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 50abf9d5-eb5b-41bd-a820-079e7486e199
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 50abf9d5-eb5b-41bd-a820-079e7486e199
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 50abf9d5-eb5b-41bd-a820-079e7486e199
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:java Issues for @azure-tools/typespec-java emitter label Jul 15, 2026
@XiaofeiCao XiaofeiCao changed the title [typespec-java] Hotfix release 0.45.6 + emitter-tests sync tooling [typespec-java] First release after migrating from autorest.java Jul 15, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 50abf9d5-eb5b-41bd-a820-079e7486e199
@azure-sdk-automation

Copy link
Copy Markdown
Contributor

You can try these changes here

🛝 Playground 🌐 Website

@pkg-pr-new

pkg-pr-new Bot commented Jul 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-java@4905

commit: cf415d0

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 80c936e4-9dcd-44dd-8e46-5fb620a13962
@XiaofeiCao
XiaofeiCao merged commit 062724b into release/july-2026 Jul 16, 2026
28 checks passed
@XiaofeiCao
XiaofeiCao deleted the publish/hotfix/typespec-java-0.45.6-migration branch July 16, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:java Issues for @azure-tools/typespec-java emitter eng

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants