feat(extensions): update deprecation warnings for Phase 2 Function Kits launch - #11155
Open
shettyvarun268 wants to merge 6 commits into
Open
shettyvarun268 wants to merge 6 commits into
shettyvarun268 wants to merge 6 commits into
Conversation
…ts launch - Upgrade Category 1 commands (install, configure, update, sdk:install) to prominent boxed banner - Dynamically inject recommended Function Kit replacement when available in registry - Update Category 2 footer with migration guidance link (list, info, export) - Align all messaging and borders with DevRel-approved Phase 2 copy - Add unit tests verifying dynamic replacement warnings, shorthands, and footers
…no replacement extensions
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the Firebase Extensions deprecation warnings by making showDeprecationWarningBefore asynchronous and enhancing it to display tailored replacement recommendations or status messages based on the resolved extension reference. It also adds ext:export to the post-execution warnings and updates the test suite accordingly. The review feedback suggests utilizing the existing isLocalPath utility within resolveExtensionRef to prevent displaying misleading replacement warnings when installing or configuring local extensions.
…in deprecation warnings
shettyvarun268
marked this pull request as ready for review
September 23, 2026 18:18
…d lowercase function kits
ajperel
reviewed
Sep 24, 2026
This branch has not been deployed
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.
feat(extensions): update deprecation warnings for Phase 2 Function Kits launch
Description
Updates CLI deprecation warnings for
ext:*commands in preparation for the September 30, 2026 Phase 2 milestone, reflecting that Firebase Extensions is deprecated and scheduled for decommission on March 31, 2027.Key changes:
ext:install,ext:configure,ext:update,ext:sdk:install):====).@versiontags, shorthand refs withoutfirebase/, instance IDs inextensions.yaml, and bypassing local directory paths viaisLocalPath()).getReplacementsRegistry():Recommended replacement: @firebase-function-kits/<name>.We recommend migrating active instances to function kits..ext:list,ext:info,ext:export):https://firebase.google.com/docs/extensions/faq-and-troubleshooting).ext:uninstall,ext:dev:deprecate):--json,--non-interactive, quiet mode, piped outputs (!process.stdout.isTTY), and automated CI environments (CI=true,GITHUB_ACTIONS).Scenarios Tested
npx mocha src/extensions/warnings.spec.ts(15/15 passing)npx mocha src/extensions/replacementRegistry.spec.ts(15/15 passing)ext:dev:register, and suppression under--json/CI.npx eslint src/extensions/warnings.ts src/extensions/warnings.spec.ts src/command.ts(0 errors)npm run test:compile(0 errors, code 0)ext:install firebase/firestore-bigquery-exportoutputs boxed banner with@firebase-function-kits/firestore-bigquery-export.ext:install firestore-bigquery-export(shorthand) resolves correctly.ext:install ./my-local-extensioncorrectly falls back to generic banner without misleading replacement statements.ext:install moralis/moralis-streams(no replacement planned) outputsWe recommend migrating active instances to function kits..ext:install firebase/firestore-bundle-builder(unannounced kit) outputsWe recommend migrating active instances to function kits..ext:install(no args) outputs generic fallbackWe recommend migrating active instances to function kits..ext:listandext:exportshow updated single-line footer.ext:uninstalloutputs no deprecation warning.--jsoncompletely silences warnings.ext:dev:registerfails fast with exit code 1.Sample Output
Category 1 (Replacement Available):
Category 1 (Everything Else / General Fallback):
Category 2 (List / Info / Export Footer):