Skip to content
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

fix(deps): upgrade 23 outdated dependencies #7019

Merged
merged 6 commits into from
Feb 6, 2025

Conversation

serhalp
Copy link
Contributor

@serhalp serhalp commented Jan 31, 2025

Summary

(Pulling the commander upgrade out of #7008 as it's turning into a can of worms.)

I carefully reviewed all the release notes for all of these. Many of the major bumps are just dropping support for older versions of node.js we already don't support. For anything relatively easy, I made the necessary changes. I punted on the more involved upgrades.

Copy link

github-actions bot commented Jan 31, 2025

📊 Benchmark results

Comparing with 8a51e34

  • Dependency count: 1,192 ⬆️ 1.85% increase vs. 8a51e34
  • Package size: 306 MB ⬇️ 3.09% decrease vs. 8a51e34
  • Number of ts-expect-error directives: 801 ⬇️ 0.37% decrease vs. 8a51e34

@serhalp serhalp force-pushed the fix/upgrade-misc-deps-except-commander branch 3 times, most recently from 6413ed5 to a964464 Compare February 3, 2025 14:41
There's some sort of undocumented breaking visual change that's messing with snapshot tests.
@serhalp serhalp force-pushed the fix/upgrade-misc-deps-except-commander branch from a964464 to 8da2278 Compare February 4, 2025 15:30
@@ -70,7 +70,7 @@
"prettier": "--ignore-path .eslintignore --loglevel=warn \"{src,tools,scripts,tests,.github}/**/*.{mjs,cjs,js,mts,md,yml,json,html,ts}\" \"*.{mjs,cjs,js,mts,yml,json,html,ts}\" \".*.{mjs,cjs,js,yml,json,html,ts}\" \"!CHANGELOG.md\" \"!**/*/package-lock.json\" \"!.github/**/*.md\""
},
"dependencies": {
"@bugsnag/js": "7.25.0",
"@bugsnag/js": "8.2.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -82,25 +82,25 @@
"@netlify/local-functions-proxy": "1.1.1",
"@netlify/redirect-parser": "14.5.0",
"@netlify/zip-it-and-ship-it": "9.42.4",
"@octokit/rest": "20.1.1",
"@octokit/rest": "21.1.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"@opentelemetry/api": "1.8.0",
"ansi-escapes": "7.0.0",
"ansi-to-html": "0.7.2",
"ascii-table": "0.0.9",
"backoff": "2.5.0",
"better-opn": "3.0.2",
"boxen": "7.1.1",
"boxen": "8.0.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"chalk": "5.4.1",
"chokidar": "3.6.0",
"ci-info": "4.1.0",
"clean-deep": "3.4.0",
"commander": "10.0.1",
"comment-json": "4.2.5",
"configstore": "6.0.0",
"configstore": "7.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"find-up": "7.0.0",
"flush-write-stream": "2.0.0",
"folder-walker": "3.2.0",
"from2-array": "0.0.4",
"fuzzy": "0.1.3",
"get-port": "5.1.1",
"get-port": "7.1.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now requires node 18 (we require 18) and uses esm, plus irrelevant changes: https://github.com/sindresorhus/get-port/releases

package.json Outdated
"gh-release-fetch": "4.0.3",
"git-repo-info": "2.1.1",
"gitconfiglocal": "2.1.0",
"http-proxy": "1.18.1",
"http-proxy-middleware": "2.0.7",
"https-proxy-agent": "7.0.6",
"inquirer": "6.5.2",
"inquirer-autocomplete-prompt": "1.4.0",
"inquirer": "9.1.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to pin to 9.0.0 because there were undocumented arguably-breaking changes to the output and updating our snapshot tests was turning into a can of worms.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, the latest is 12. 10, 11, and 12 should be easy enough in theory, if we stick with inquirer:

package.json Outdated
"inquirer": "6.5.2",
"inquirer-autocomplete-prompt": "1.4.0",
"inquirer": "9.1.0",
"inquirer-autocomplete-prompt": "3.0.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ugh, after going down a rat hole I ended backing out of the inquirer-autocomplete-prompt upgrade since I couldn't figure what was changing and why... which in turn forced me to downscale the inquirer upgrade to v8 😞

@@ -138,7 +138,7 @@
"lambda-local": "2.2.0",
"locate-path": "7.2.0",
"lodash": "4.17.21",
"log-symbols": "6.0.0",
"log-symbols": "7.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -155,9 +155,9 @@
"parse-gitignore": "2.0.0",
"prettyjson": "1.2.5",
"pump": "3.0.2",
"raw-body": "2.5.2",
"raw-body": "3.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lousy release notes but doesn't seem actually major... https://github.com/stream-utils/raw-body/blob/master/HISTORY.md

"read-package-up": "11.0.0",
"readdirp": "3.6.0",
"readdirp": "4.1.1",
Copy link
Contributor Author

@serhalp serhalp Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requires node 14, removes glob support (we weren't using them), and changes some exports (I updated our imports): https://github.com/paulmillr/readdirp/releases/tag/4.0.0

@@ -171,11 +171,11 @@
"ulid": "2.3.0",
"unixify": "1.0.0",
"update-notifier": "7.3.1",
"uuid": "9.0.1",
"uuid": "11.0.5",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requires node 16, adds types (no longer need @types/uuid): https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md

"@types/ws": "8.5.14",
"@vitest/coverage-v8": "1.6.0",
"c8": "9.1.0",
"c8": "10.1.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"husky": "8.0.3",
"is-ci": "3.0.1",
"fs-extra": "11.3.0",
"husky": "9.1.7",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requires node 18 (so do we), technically no other breaking changes but I updated to the new format: https://github.com/typicode/husky/releases/tag/v9.0.1

"is-ci": "3.0.1",
"fs-extra": "11.3.0",
"husky": "9.1.7",
"is-ci": "4.1.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"cheerio": "1.0.0",
"eslint-plugin-sort-destructure-keys": "2.0.0",
"eslint-plugin-workspace": "file:./tools/lint-rules",
"form-data": "4.0.1",
"fs-extra": "11.2.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated but this was easy to get rid of so I did (just a dev dep, so won't help with package weight, but still)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pulled out into #7025

@serhalp serhalp force-pushed the fix/upgrade-misc-deps-except-commander branch 2 times, most recently from 6f9ed61 to b4b7532 Compare February 4, 2025 20:03
It looks like there's some sort of change in inquirer-autocomplete-prompt and it's a can
of worms to troubleshoot. This in turn prevents upgrading inquirer past v8.
@serhalp serhalp force-pushed the fix/upgrade-misc-deps-except-commander branch from b4b7532 to 2eb463a Compare February 4, 2025 20:56
"gh-release-fetch": "4.0.3",
"git-repo-info": "2.1.1",
"gitconfiglocal": "2.1.0",
"http-proxy": "1.18.1",
"http-proxy-middleware": "2.0.7",
"https-proxy-agent": "7.0.6",
"inquirer": "6.5.2",
"inquirer": "8.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub hid the comments: #7019 (comment)

"nock": "13.5.6",
"husky": "9.1.7",
"is-ci": "4.1.0",
"nock": "14.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@serhalp serhalp changed the title fix(deps): upgrade 19 outdated dependencies fix(deps): upgrade 23 outdated dependencies Feb 4, 2025
@serhalp serhalp marked this pull request as ready for review February 4, 2025 23:14
@serhalp serhalp requested a review from a team as a code owner February 4, 2025 23:14
Copy link
Contributor

@ndhoule ndhoule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clapping_futurama

@serhalp serhalp merged commit f74c6c6 into main Feb 6, 2025
49 checks passed
@serhalp serhalp deleted the fix/upgrade-misc-deps-except-commander branch February 6, 2025 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants