Emit runtime deprecation warning from mgt-element - #3498
Merged
Gavin Barron (gavinbarron) merged 1 commit intoAug 27, 2026
Conversation
Add a guarded, one-time console.warn announcing that MGT was retired on August 28, 2026. The warning is invoked from the MgtBaseComponent and MgtBaseTaskComponent constructors so any component usage surfaces it, and is wrapped in try/catch so logging can never break a host application. This provides a code change to include in the final shipped version. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6df6f5e4-b73e-41c2-a6a6-60f2621c293b
Contributor
|
Thank you for creating a Pull Request @Gavin Barron (@gavinbarron). This is a checklist for the PR reviewer(s) to complete before approving and merging this PR:
|
Gavin Barron (gavinbarron)
enabled auto-merge (squash)
August 27, 2026 22:50
Ramses Sanchez-Hernandez (ramsessanchez)
approved these changes
Aug 27, 2026
Gavin Barron (gavinbarron)
deleted the
gavinbarron/mgt-element-deprecation-warning
branch
August 27, 2026 22:58
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
As part of retiring the Microsoft Graph Toolkit, this adds a runtime deprecation warning so existing applications are notified even without reading the README or npm page — giving us a concrete code change to include in the final shipped version.
Changes
emitDeprecationWarning()util inmgt-elementthat logs a one-timeconsole.warnannouncing MGT was retired on August 28, 2026 and pointing to the repo for forking.MgtBaseComponentandMgtBaseTaskComponentconstructors, so any component usage surfaces the notice.try/catchso logging can never break a host application.Notes
Depends on / complements the README retirement notice in #3497.