Paul Krill
Editor at Large

Microsoft Graph Toolkit 4.0 boosts search, developer experience

news
Feb 13, 20242 mins

Update promotes search components to GA and improves performance through asynchronous rendering and reduced bundle sizes.

cloud computing connections concept
Credit: Thinkstock

Microsoft is shipping version 4.0 of its Graph Toolkit, a set of components for working with the Microsoft Graph. The update brings the search components to general availability, enhances the developer experience, and fixes bugs.

Microsoft Graph is a set of APIs for accessing data and intelligence in the Microsoft 365 business software platform.

Unveiled February 8, Microsoft Graph Toolkit 4.0 allows users to edit To Do items directly in components and see colleagues’ presence and cards when using the people picker. After six months in preview, search components have been promoted to general availability, with full support. And the 4.0 release includes dozens of bug fixes (see release notes).

Microsoft Graph Toolkit originally was introduced in September 2019, featuring a collection of reusable, framework-agnostic web UI components to work with Microsoft Graph. To update an application to the newest version of Microsoft Graph Toolkit, navigate to your project directory and run:

npm i @microsoft/mgt

Graph Toolkit 4.0, the developer experience has been improved, with an effort to focus on performance and consumer bundle size. The underlying Lit framework has been updated to take advantage of asynchronous rendering. This enables components to be more aware of their state and re-render less often and leave more memory and cycles for the rest of the page.

Bundle sizes have been reduced via an explicit registration of components being used, so that unused components are no longer included. This is expected to improve the experience for both developers and users.

Other improvements to the developer experience in Graph Toolkit 4.0:

  • Attributes have been converted to use string unions instead of Enums, allowing for simpler coding and better documentation.
  • The need for Microsoft Graph’s specific SPFx package has been removed, simplifying the experience for SharePoint developers.
  • The mgt-loader has been removed to simplify the onboarding experience and offer a single way to consume the toolkit.
  • The playground now includes an optional log-in that allows users to test the toolkit with their own data.
Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author