Skip to content

RuntimeDefinitions: Rename asAlpha to asLegacyAlpha#25514

Merged
anthony-murphy merged 1 commit intomicrosoft:mainfrom
anthony-murphy:lg-asLegacyAlpha
Sep 22, 2025
Merged

RuntimeDefinitions: Rename asAlpha to asLegacyAlpha#25514
anthony-murphy merged 1 commit intomicrosoft:mainfrom
anthony-murphy:lg-asLegacyAlpha

Conversation

@anthony-murphy
Copy link
Copy Markdown
Contributor

This pull request updates the naming of the function used to cast a container runtime to its alpha interface, changing it from asAlpha to asLegacyAlpha. This change is applied throughout the codebase to improve clarity and consistency, especially in preparation for future API changes. All imports, exports, and usages of this function are updated accordingly in both runtime and test files.

Copilot AI review requested due to automatic review settings September 22, 2025 22:25
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

This pull request renames the asAlpha function to asLegacyAlpha throughout the codebase to improve clarity and prepare for future API changes. The change affects the function definition, exports, and all usage sites.

  • Renames the container runtime casting function from asAlpha to asLegacyAlpha
  • Updates all imports and usages across test files and runtime definitions
  • Updates the API report to reflect the new function name

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/runtime/runtime-definitions/src/stagingMode.ts Updates the function definition from asAlpha to asLegacyAlpha
packages/runtime/runtime-definitions/src/index.ts Updates the export statement to use the new function name
packages/runtime/runtime-definitions/api-report/runtime-definitions.legacy.alpha.api.md Updates API documentation to reflect the renamed function
packages/test/test-end-to-end-tests/src/test/stagingMode.spec.ts Updates import and usage of the renamed function
packages/test/local-server-tests/src/test/stagingMode.spec.ts Updates import and usage of the renamed function
packages/test/local-server-tests/src/test/documentDirty.spec.ts Updates import and usage of the renamed function
packages/test/local-server-stress-tests/src/stressDataObject.ts Updates import and usage of the renamed function

@github-actions github-actions bot added area: runtime Runtime related issues area: tests Tests to add, test infrastructure improvements, etc public api change Changes to a public API base: main PRs targeted against main branch labels Sep 22, 2025
@anthony-murphy anthony-murphy enabled auto-merge (squash) September 22, 2025 22:26
@github-actions
Copy link
Copy Markdown
Contributor

🔗 No broken links found! ✅

Your attention to detail is admirable.

linkcheck output


> fluid-framework-docs-site@0.0.0 ci:check-links /home/runner/work/FluidFramework/FluidFramework/docs
> start-server-and-test "npm run serve -- --no-open" 3000 check-links

1: starting server using command "npm run serve -- --no-open"
and when url "[ 'http://127.0.0.1:3000' ]" is responding with HTTP status code 200
running tests using command "npm run check-links"


> fluid-framework-docs-site@0.0.0 serve
> docusaurus serve --no-open

[SUCCESS] Serving "build" directory at: http://localhost:3000/

> fluid-framework-docs-site@0.0.0 check-links
> linkcheck http://localhost:3000 --skip-file skipped-urls.txt

Crawling...

Stats:
  235713 links
    1720 destination URLs
    1953 URLs ignored
       0 warnings
       0 errors


@anthony-murphy anthony-murphy merged commit bca3f41 into microsoft:main Sep 22, 2025
37 checks passed
anthony-murphy-agent pushed a commit to anthony-murphy-agent/FluidFramework that referenced this pull request Jan 14, 2026
This pull request updates the naming of the function used to cast a
container runtime to its alpha interface, changing it from `asAlpha` to
`asLegacyAlpha`. This change is applied throughout the codebase to
improve clarity and consistency, especially in preparation for future
API changes. All imports, exports, and usages of this function are
updated accordingly in both runtime and test files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Runtime related issues area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch public api change Changes to a public API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants