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

Update various dependencies for internal scripts #7908

Merged
merged 3 commits into from Jul 16, 2021
Merged

Update various dependencies for internal scripts #7908

merged 3 commits into from Jul 16, 2021

Conversation

chaance
Copy link
Collaborator

@chaance chaance commented Jul 16, 2021

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.

@@ -13,7 +13,7 @@
"generate-api-docs": "node ./scripts/generate-api-docs.js"
},
"dependencies": {
"@ampproject/filesize": "^2.1.1",
"@ampproject/filesize": "^4.3.0",
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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.

Context: callstack/react-native-testing-library#743

"jest": "^24.9.0",
"jsonfile": "^5.0.0",
"jest": "^26.6.3",
"jsonfile": "^6.1.0",
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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"`,
Copy link
Collaborator Author

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.

@mjackson mjackson merged commit a1430fb into dev Jul 16, 2021
@chaance chaance deleted the deps branch August 14, 2021 18:27
brophdawg11 pushed a commit that referenced this pull request Mar 27, 2024
Co-authored-by: Mark Dalgleish <mark.john.dalgleish@gmail.com>
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.

None yet

2 participants