Prepare for Fluid Framework upcoming deprecations#829
Closed
Prepare for Fluid Framework upcoming deprecations#829
Conversation
added 9 commits
February 12, 2026 11:05
…rule to use @fluidframework/ instead of fluid-framework in package/test imports
There was a problem hiding this comment.
Pull request overview
This PR prepares the Live Share SDK for upcoming Fluid Framework 2.90 deprecations by migrating from legacy fluid-framework imports to granular @fluidframework/* packages and establishing compatibility testing infrastructure.
Changes:
- Migrated all package and sample imports from
fluid-frameworkandfluid-framework/legacyto specific@fluidframework/*packages with/internalpaths - Added ESLint rules to enforce the new import pattern and prevent regression to deprecated imports
- Introduced compatibility testing tooling to validate builds against multiple Fluid Framework versions (2.40-2.80)
Reviewed changes
Copilot reviewed 61 out of 62 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| .eslintrc | Added no-restricted-imports rule to prevent fluid-framework imports in packages |
| internal/build-tools/compat-fluid.js | New compatibility testing script for multiple Fluid Framework versions |
| package.json | Added compat:fluid script, overrides for Fluid packages, and jest dependency |
| internal/usage-test/pnpm-test/package.json | Added TypeScript devDependency for build script |
| packages/live-share/src/**/*.ts | Updated imports from fluid-framework to @fluidframework/* packages |
| packages/live-share-react/src/**/*.ts | Updated imports to use @fluidframework/* and type-only imports |
| packages/live-share-media/src/**/*.ts | Updated imports and minor formatting improvements |
| packages/live-share-canvas/src/**/*.ts | Updated imports from fluid-framework to @fluidframework/tree/internal |
| internal/test-utils/src/**/*.ts | Updated test utility imports to use /internal paths |
| samples/typescript/**/*.ts | Updated sample imports to use @fluidframework/map/internal and fluid-static |
| samples/javascript/**/*.js | Updated sample imports and added error handling improvements |
| samples/javascript/21.react-media-template/src/live-share-hooks/useSharedObjects.js | Fixed URL construction bug and added localStorage error handling |
| samples/javascript/21.react-media-template/src/components/LiveSharePage.jsx | Added conditional background color based on Teams context |
| samples/javascript/02.react-video/package.json | Added jest dependency for testing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
Update Live Share SDK for upcoming Fluid Framework 2.90, expand compatibility coverage, and add tooling/linting to enforce internal package usage.
Key Changes