-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump to 4.15.2-0 #4195
Merged
Merged
Bump to 4.15.2-0 #4195
Conversation
This file contains 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
compulim
requested review from
a-b-r-o-w-n,
cwhitten,
srinaath,
tdurnford,
tonyanziano and
beyackle
as code owners
March 10, 2022 17:49
Bumping these dependencies really adds 300k LoC? |
cwhitten
approved these changes
Mar 25, 2022
11 tasks
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.
Changelog Entry
Changed
@babel/[email protected]
@emotion/[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
@emotion/[email protected]
@fluentui/[email protected]
@types/[email protected]
@types/[email protected]
@types/[email protected]
@typescript-eslint/[email protected]
@typescript-eslint/[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Description
Using
node@16
fornpm install
and updatedpackage-lock.json
to version 2.Bump all dependencies after release of
4.15.0
, except Adaptive Cards and Cognitive Services Speech SDK, as they could require more efforts.Added
npm run bump
scripts, to run them:lerna
, runnpm run bump
lerna
, such aspackages/bundle
:package.json
to remove local peer dependenciesnpm run bump
package.json
to add back removed local peer dependencieslerna bootstrap
lerna
did internally forlerna add
andlerna bootstrap
)After bumping deps, we observe there are still a very few moderate or lower vulnerability related to
create-react-app
.Design
npm run bump
scriptsWe added a quick NPM script to bumping dependencies.
For development dependencies, it will bump using
^
semver, excluding those marked byskipBump
section inpackage.json
.npm install $(cat package.json | jq -r '(.devDependencies | keys) - .skipBump | .[]' | awk '{print $1 \"@latest\"}')
For production dependencies, it will bump as exact, excluding those marked by
skipBump
section inpackage.json
.npm install --save-exact $(cat package.json | jq -r '(.dependencies | keys) - .skipBump | .[]' | awk '{print $1 \"@latest\"}')
The version bump cannot be automated yet as it requires some manual work for
lerna
maintained packages.Note:
npm update
will only update the deps inpackage-lock.json
and to the semver specifier. When our iteration starts, we want to bump most dependencies to latest version even if they could be breaking.Version considerations
We intentionally use
@types/react@17
while we are usingreact@16
, forVFC
type and a few event handler mismatches.At root level, we kept the following packages at lower version, as they are used by Jest and
[email protected]
(as of now) does not support ESM without an experimental flag:[email protected]
instead of[email protected]
[email protected]
instead of[email protected]
[email protected]
instead of[email protected]
Node.js 14 instead of 16 on Azure DevOps pipeline
We tried but could not enable
npm@8
on Azure DevOps because of an issue when fetching[email protected]
, it would result in 404. Looks like Azure Artifacts is not able to "mirror" the NPM registry quickly enough. This specific version of[email protected]
was released 6 months ago.Falling back to Node.js 14 with NPM 6 works though.
I also tried
p-defer
and Azure Artifacts did not mirror the latest 4.0.0 version, it kept at 3.0.0. Compare the result below between NPMJS and Azure Artifacts.When fetching
p-defer-4.0.0tgz
from Azure Artifacts:Specific Changes
node@16
fornpm install
and updatedpackage-lock.json
to version 2npm run bump
scripts and marked packages asskipBump
mime@3
no longer requiresmime-wrapper
, thanks https://github.com/marlon360/mime-wrapper for their efforts@ts-ignore
as@types/[email protected]
is not updated forMediaTrackSettings.channelCount
yetMediaTrackSettings.channelCount
and a few TypeScript-DOM-lib-generator#1290@ts-ignore
for deprecatednavigator.getUserMedia
node-fetch
CHANGELOG.md
I have updated documentationReview Checklist
Accessibility reviewed (tab order, content readability, alt text, color contrast)Browser and platform compatibilities reviewedCSS styles reviewed (minimal rules, noz-index
)Documents reviewed (docs, samples, live demo)Internationalization reviewed (strings, unit formatting)package.json
andpackage-lock.json
reviewedSecurity reviewed (no data URIs, check for nonce leak)Tests reviewed (coverage, legitimacy)