Skip to content

Update emitter to 0.40.0#4359

Open
heaths wants to merge 2 commits intoAzure:mainfrom
heaths:update-emitter
Open

Update emitter to 0.40.0#4359
heaths wants to merge 2 commits intoAzure:mainfrom
heaths:update-emitter

Conversation

@heaths
Copy link
Copy Markdown
Member

@heaths heaths commented May 6, 2026

  • Update @azure-tools/typespec-azure-resource-manager to 0.67.1 per
    upstream peerDependencies
  • Update Update-Emitter.ps1 to also check peerDependencies from the
    remote package.json when syncing devDependencies in emitter-package.json,
    giving peer deps precedence over devDependencies
  • Restructure update logic so dependency sync runs independently of
    whether the emitter version itself changed

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

- Update `@azure-tools/typespec-azure-resource-manager` to 0.67.1 per
  upstream peerDependencies
- Update `Update-Emitter.ps1` to also check peerDependencies from the
  remote package.json when syncing devDependencies in emitter-package.json,
  giving peer deps precedence over devDependencies
- Restructure update logic so dependency sync runs independently of
  whether the emitter version itself changed

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

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the TypeSpec Rust emitter toolchain used by this repo (and its lockfiles) and refines the automation script that keeps eng/emitter-package.json in sync with upstream dependency constraints.

Changes:

  • Bump @azure-tools/typespec-rust to 0.40.0 and update @azure-tools/typespec-azure-resource-manager to 0.67.1, regenerating eng/emitter-package-lock.json.
  • Update eng/scripts/Update-Emitter.ps1 to sync dependency versions even when the emitter version doesn’t change, and to prefer upstream peerDependencies over devDependencies when updating our devDependencies.
  • Regenerate some Rust generated code in azure_storage_blob as a result of the emitter update.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

File Description
sdk/storage/azure_storage_blob/src/generated/models/method_options.rs Regenerated method option models; includes visibility changes on some structured-body fields.
eng/scripts/Update-Emitter.ps1 Improves emitter update logic to also consider upstream peer deps and run dependency sync independently of emitter version changes.
eng/emitter-package.json Bumps the emitter and aligns ARM TypeSpec package version.
eng/emitter-package-lock.json Regenerated lockfile reflecting updated emitter and transitive/peer dependency graph.
Files not reviewed (1)
  • eng/emitter-package-lock.json: Language not supported

Comment thread eng/scripts/Update-Emitter.ps1
Default `$upstreamPeerDeps` and `$upstreamDevDeps` to empty objects when
the upstream package.json omits those sections, preventing Set-StrictMode
errors when accessing .PSObject.Properties on a null value.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread eng/emitter-package.json
"devDependencies": {
"@azure-tools/typespec-azure-core": "0.67.0",
"@azure-tools/typespec-azure-resource-manager": "0.67.0",
"@azure-tools/typespec-azure-resource-manager": "0.67.1",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be 0.67.4 which is the latest version.

Comment thread eng/emitter-package.json
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-rust": "0.39.1"
"@azure-tools/typespec-rust": "0.40.0"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.40.1 is now available (fixes the noise in method_options.rs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants