Earlier this week, on Tuesday, May 7, 2019, Microsoft released v1.8.2 of the SharePoint Framework (SPFx). A little over a month ago, I wrote about the v1.8.0 release. Since then we had another minor release (v1.8.1) released on April 16, 2019.
In this post, I’ll summarize what you can find, and share some additional details I found after spending some time picking apart the last two minor releases.
A new SharePoint Framework Yeoman generator has been published by OfficeDev: 1.8.2 #SPFx Office365
— Voitanos (@voitanos) May 7, 2019
» SharePoint Framework v1.8.2 official Release Notes
Before I get going, let me explain a snafu that happened in the last few versions. SPFx provides a way to use GA features & features only available under developer preview. The way they do this is by using different packages that include --plusbeta
in the name of the NPM package & modifying what objects exposed in the TypeScript type declaration files.
When Microsoft released v1.8.0 they accidentally included everything in the type declaration files so it seemed like everything was pushed into GA. One notable API is the impacted by this was SPHttpClientBatch (Microsoft’s comment on the incident).
When they noticed this, they went back and fixed it in the v1.8.1 release. This confused some people as it seemed like some APIs were GA, but then disappeared from v1.8.0 to v1.8.1 (#3829). However, when they did this, they made a mistake moved a bit too back to developer preview, including the microsoftTeams property on the web part context (ref #3826).
This was all fixed up in v1.8.2 (as far as I can tell at this point). Everything that’s supposed to be GA & developer preview are in their respective packages.
This update was mostly a “fix” release to address some “uh-oh’s” from the v1.8.0 release. That SPFx v1.8.0 release introduced a few regressions that forced users working with on-premises SharePoint deployments to make some updates.
The two issues were (ref #3621):
supportedHosts
property was added to the web part manifest for all projects (only supported in SharePoint Online)There were also some nested dependency issues that were updated in this release.
You can get the full details on the release here: SharePoint Framework v1.8.1 official Release Notes
But now that v1.8.2 is out, there’s no need to install v1.8.1. So, let’s move onto that topic…
This release is similar to the v1.8.1 release in that it mostly fixed a bunch of introduced in v1.8.0 & v1.8.1. Specifically:
Fixed
microsoftTeams
object was accidentally removed from the type declarations… this was fixed (ref #3826)Updated
node_modules
folder from 50-150MB
node_modules
folder went from 816MB (with SPFx v1.8.1) to 599MB, a reduction of ~26% or 217MB!Added / Introduced
You can get the full details on the release here: SharePoint Framework v1.8.2 official Release Notes