-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Update various dependencies for internal scripts #7908
Conversation
@@ -13,7 +13,7 @@ | |||
"generate-api-docs": "node ./scripts/generate-api-docs.js" | |||
}, | |||
"dependencies": { | |||
"@ampproject/filesize": "^2.1.1", | |||
"@ampproject/filesize": "^4.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite bumping 2 major versions, this works exactly the same for our purposes. No changes needed elsewhere!
@@ -33,8 +33,8 @@ | |||
"babel-eslint": "^10.1.0", | |||
"babel-plugin-dev-expression": "^0.2.2", | |||
"babel-plugin-transform-remove-imports": "^1.3.2", | |||
"chalk": "^3.0.0", | |||
"cheerio": "^1.0.0-rc.3", | |||
"chalk": "^4.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Major version bump but no significant API changes from 3.x, all the scripts using chalk
check out just fine.
@@ -43,10 +43,10 @@ | |||
"eslint-plugin-react": "^7.24.0", | |||
"eslint-plugin-react-hooks": "^4.2.0", | |||
"history": "^5.0.0", | |||
"jest": "^24.9.0", | |||
"jsonfile": "^5.0.0", | |||
"jest": "^26.6.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So Jest is actually on v27 now, but that version comes with some pretty annoying changes that breaks our react-native
tests. Gonna circle back here eventually when I update the RN dev dependency, but probably not a big priority.
"jest": "^24.9.0", | ||
"jsonfile": "^5.0.0", | ||
"jest": "^26.6.3", | ||
"jsonfile": "^6.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No API changes that affect us here.
"semver": "^7.1.2", | ||
"typedoc": "^0.17.6", | ||
"semver": "^7.3.5", | ||
"typedoc": "0.21.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of stuff changed here, but it was pretty simple to update the script.
`typedoc --ignoreCompilerErrors --includeDeclarations --excludeExternals --out docs/api build`, | ||
`typedoc ${packages | ||
.map(pkg => `packages/${pkg}/index.tsx`) | ||
.join(" ")} --out docs/api --name "React Router"`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So all of the CLI flags we used before were removed, but I actually think this makes a bit more sense. We can generate types directly from the source which is probably fine, but I'm happy to revisit this if we need to.
Co-authored-by: Mark Dalgleish <mark.john.dalgleish@gmail.com>
I'd like to get all of our internal dependencies up-to-date (or at least more up-to-date). We're getting there, but I wanted to start with some low-hanging fruit. Each of the dependencies updated in this PR are used for various scripts, which should all work essentially the same before and after updating.