Skip to content

Sync core to HEAD of typespec/microsoft#11014: fix null LRO bodies, fix duplicate samples, update deps#3350

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/sync-with-core-of-head-11007
Draft

Sync core to HEAD of typespec/microsoft#11014: fix null LRO bodies, fix duplicate samples, update deps#3350
Copilot wants to merge 4 commits into
mainfrom
copilot/sync-with-core-of-head-11007

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Bumps the core submodule to 08d60b0 (which builds on #11007) and applies the corresponding generated-file updates, Node.js dependency updates, and a patch release bump.

Core changes (in typespec)

  • FluentServiceClientTemplate.java: responseBody == null ? null → new byte[0] to avoid NPE when service returns no body on LRO error
  • FluentExampleTemplate.java: skip duplicate methods in generated samples when advanced-versioning=true
  • Adds FluentServiceClientTemplateTests unit test
  • Updates @azure-tools/typespec-autorest, @azure-tools/typespec-azure-resource-manager, @azure-tools/typespec-azure-rulesets to 0.69.1

This repo

  • Core submodule → 08d60b0
  • Regenerated 14 management *ClientImpl.java files in typespec-tests to reflect the null LRO body fix:
// before
this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);

// after
this.responseBody = responseBody == null ? new byte[0] : responseBody.getBytes(StandardCharsets.UTF_8);
  • Node.js dependencies updated in typespec-extension and typespec-tests:
    • @azure-tools/typespec-autorest, @azure-tools/typespec-azure-resource-manager, @azure-tools/typespec-azure-rulesets: 0.69.00.69.1
    • @microsoft/api-extractor: ^7.58.8^7.58.9
    • vitest / @vitest/coverage-v8 / @vitest/ui: ^4.1.8^4.1.9
  • npm install + npm audit fix run in typespec-extension
  • Version bumped to 0.45.4 with changelog entry

Copilot AI changed the title Sync core with HEAD of typespec PR #11007: fix null LRO error response bodies Sync core to HEAD of typespec/microsoft#11007: fix null LRO error response bodies Jun 17, 2026
@weidongxu-microsoft

Copy link
Copy Markdown
Member

@copilot update the core to HEAD of microsoft/typespec#11014

also update node.js dependencies (for typespec-extension also run a npm audit --fix after npm install)
and prepare for patch release

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

@copilot update the core to HEAD of microsoft/typespec#11014

also update node.js dependencies (for typespec-extension also run a npm audit --fix after npm install)
...

Done. Updated in commits:

  • Core submodule → 08d60b0 (HEAD of typespec/microsoft#11014, which builds on #11007)
  • Node.js deps updated: @azure-tools/typespec-autorest, @azure-tools/typespec-azure-resource-manager, @azure-tools/typespec-azure-rulesets0.69.1; @microsoft/api-extractor^7.58.9; vitest/@vitest/*^4.1.9
  • npm install + npm audit fix run in typespec-extension (3 pre-existing moderate vulns in js-yaml via @autorest/codemodel cannot be fixed without breaking changes)
  • Version bumped to 0.45.4 with changelog entry dated 2026-06-18

Copilot AI changed the title Sync core to HEAD of typespec/microsoft#11007: fix null LRO error response bodies Sync core to HEAD of typespec/microsoft#11014: fix null LRO bodies, fix duplicate samples, update deps Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants