Skip to content

Sync typespec-java core: return response headers as a model (typespec#11420) - #5090

Merged
Weidong Xu (weidongxu-microsoft) merged 1 commit into
release/july-2026from
sync/typespec-java-2-july-2026
Jul 29, 2026
Merged

Weidong Xu (weidongxu-microsoft) merged 1 commit into
release/july-2026from
sync/typespec-java-2-july-2026

Conversation

@weidongxu-microsoft

Copy link
Copy Markdown
Member

Sync @azure-tools/typespec-java core to microsoft/typespec d320a53b (HEAD of main).

Changes

  • Bump core-commit.json ec09e28b → d320a53b.
  • Brings core #11420: return response headers as a model from the convenience method, plus its response-headers test (ResponseHeadersTests.java + response-headers.tsp) into the emitter-tests suite.

Notes

  • #11420 only touches emitter internals (code-model-builder.ts, operation.ts, lib.ts) — no emitter-option / Copy-Sources.ps1 / Generate.ps1 changes required.
  • Changelog added as fix (patch).

Targets release/july-2026 for a follow-up 0.45.11 hotfix.

…#11420)

Bump core-commit.json to microsoft/typespec d320a53b (HEAD of main),
which brings core #11420 (return response headers as a model from the
convenience method) and its response-headers test into the emitter-tests
suite. No emitter-option/script changes required (#11420 only touched
emitter internals).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:java Issues for @azure-tools/typespec-java emitter label Jul 29, 2026
@azure-sdk-automation

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • ✅ @azure-tools/typespec-autorest
  • ✅ @azure-tools/typespec-client-generator-core
  • ✅ @azure-tools/typespec-java
Show changes

@azure-tools/typespec-autorest - internal ✏️

fix(ci): cherry-pick CI fixes for release branch formatting and build checks

@azure-tools/typespec-java - internal ✏️

fix(ci): cherry-pick CI fixes for release branch formatting and build checks

@azure-tools/typespec-java - fix ✏️

Sync core to microsoft/typespec commit d320a53b. Return response headers as a model from the convenience method when the operation has response headers (core #11420).

@azure-tools/typespec-client-generator-core - feature ✏️

add sseMetadata with per-event information for server-sent event (SSE) streams

@pkg-pr-new

pkg-pr-new Bot commented Jul 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-autorest@5090
npm i https://pkg.pr.new/@azure-tools/typespec-client-generator-core@5090
npm i https://pkg.pr.new/@azure-tools/typespec-java@5090

commit: 2b64074

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

You can try these changes here

🛝 Playground 🌐 Website

@weidongxu-microsoft
Weidong Xu (weidongxu-microsoft) merged commit 7d2a48e into release/july-2026 Jul 29, 2026
28 of 30 checks passed
@weidongxu-microsoft
Weidong Xu (weidongxu-microsoft) deleted the sync/typespec-java-2-july-2026 branch July 29, 2026 04:47
Weidong Xu (weidongxu-microsoft) added a commit that referenced this pull request Jul 29, 2026
Version bump for the typespec-java hotfix following the core sync in
#5090.

## Changes
- `@azure-tools/typespec-java`: **0.45.10 → 0.45.11** (patch).
- Consumes the `fix` change from #5090 (response headers as a model,
core #11420) into `CHANGELOG.md`.
- Bumps the `emitter-tests` project version + `.tgz` dependency to
`0.45.11`.
- Trims the shared `fix-release-july-2026-formatting` change file to
`@azure-tools/typespec-autorest` only (its typespec-java portion is now
released).

Targets `release/july-2026`. The publish pipeline will release `0.45.11`
to npm on merge.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7
Weidong Xu (weidongxu-microsoft) added a commit that referenced this pull request Jul 29, 2026
…y-2026-2026-07-29

Backmerge typespec-java 0.45.11 hotfix (#5090 core sync to #11420
response-headers-as-model, #5091 version bump) into main.

Resolved conflicts against main's #5019 (unify emitter + emitter-tests
into one npm project) refactor:
- core-commit.json -> ours (d320a53b, #11420 pin)
- package.json -> version 0.45.11 (ours), keeping main's #5019 deps
- CHANGELOG.md -> ours (0.45.11 entry)
- Copy-Sources.ps1, Generate.ps1 -> main (refactored comments/location)
- CODEOWNERS -> main (org ownership updates)
- emitter-tests/SyncTests.ps1, emitter-tests/package.json -> accept
  main's deletion (unified into package root by #5019)
- core submodule gitlink -> main's bc1c4cd6 (no regression)
- pnpm-lock.yaml -> main (unified structure)

Response-headers test lands under the retained emitter-tests/src + tsp.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7
Weidong Xu (weidongxu-microsoft) added a commit that referenced this pull request Jul 29, 2026
…y-2026-2026-07-29

Backmerge typespec-java 0.45.11 hotfix (#5090 core sync to #11420
response-headers-as-model, #5091 version bump) into main.

Resolved conflicts against main's #5019 (unify emitter + emitter-tests
into one npm project) refactor:
- core-commit.json -> ours (d320a53b, #11420 pin)
- package.json -> version 0.45.11 (ours), keeping main's #5019 deps
- CHANGELOG.md -> ours (0.45.11 entry)
- Copy-Sources.ps1, Generate.ps1 -> main (refactored comments/location)
- CODEOWNERS -> main (org ownership updates)
- emitter-tests/SyncTests.ps1, emitter-tests/package.json -> accept
  main's deletion (unified into package root by #5019)
- core submodule gitlink -> main's bc1c4cd6 (no regression)
- pnpm-lock.yaml -> main (unified structure)

Response-headers test lands under the retained emitter-tests/src + tsp.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7
Dapeng Zhang (ArcturusZhang) pushed a commit to ArcturusZhang/typespec-azure that referenced this pull request Jul 30, 2026
…zure#5092)

Backmerge `release/july-2026` → `main` for the typespec-java **0.45.11**
hotfix.

## Included
- Azure#5090 — Sync core to `d320a53b`: return response headers as a model
(core #11420) + response-headers test.
- Azure#5091 — Bump `@azure-tools/typespec-java` 0.45.10 → 0.45.11.

Ensures the hotfix and version bump are reflected in `main`.

---------

Co-authored-by: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Co-authored-by: iscai-msft <43154838+iscai-msft@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants