RuntimeDefinitions: Rename asAlpha to asLegacyAlpha#25514
Merged
anthony-murphy merged 1 commit intomicrosoft:mainfrom Sep 22, 2025
Merged
RuntimeDefinitions: Rename asAlpha to asLegacyAlpha#25514anthony-murphy merged 1 commit intomicrosoft:mainfrom
anthony-murphy merged 1 commit intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
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
asAlphatoasLegacyAlpha - 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 |
noencke
approved these changes
Sep 22, 2025
Contributor
|
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the naming of the function used to cast a container runtime to its alpha interface, changing it from
asAlphatoasLegacyAlpha. 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.