-
Notifications
You must be signed in to change notification settings - Fork 179
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
build(js): upgrade babel and webpack toolchains #4959
Conversation
"react-router-dom": "^5.0.1", | ||
"yup": "^0.27.0" | ||
}, | ||
"devDependencies": { | ||
"react-snap": "^1.23.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.
All devDependencies go in monorepo package.json, where this entry already exists
"ajv": "^6.10.2", | ||
"aws-sdk": "^2.493.0", | ||
"babel-eslint": "^10.0.3", | ||
"babel-jest": "^24.9.0", | ||
"babel-eslint": "^11.0.0-beta.2", |
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.
Beta release required for flow inexact object syntax; keep an eye on this
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.
That's annoying — let's def keep an eye out
Codecov Report
@@ Coverage Diff @@
## edge #4959 +/- ##
==========================================
- Coverage 68.74% 68.69% -0.06%
==========================================
Files 1076 1076
Lines 35871 35916 +45
==========================================
+ Hits 24660 24672 +12
- Misses 11211 11244 +33
Continue to review full report at Codecov.
|
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.
lgtm
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.
"react-dom": "^16.8.6", | ||
"react-hot-loader": "^3.0.0-beta.7", | ||
"react": "16.8.6", | ||
"react-dom": "16.8.6", |
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.
Just curious — why is it that we were previously using semantic versioning for react and not we're not?
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.
Judgement call and a safety thing:
- In order for hooks support of react-hot-loader, we have to swap out
react-dom
with@hot-loader/react-dom
- The version of
@hot-loader/react-dom
needs to matchreact-dom
- We're already locking our dependencies implicitly via the lock file, so locking them down explicitly here felt like the safest thing to do
Longer term, I think we should probably lock all of our production dependencies explicitely (I'm generally good keeping dev deps on semver). That being said, I'd rather not mess with all our app deps in this PR
@@ -17,7 +17,7 @@ | |||
"peerDependencies": { | |||
"classnames": "^2.2.5", | |||
"lodash": "^4.17.4", | |||
"react": "^16.8.6", | |||
"react": "16.8.6", | |||
"react-router-dom": "^5.0.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.
Same question about semantic versioning here
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.
On top of what Shlok said: animations for Transfer step paths (popover on Path field buttons) also broken, probably other images as well. There's a lot of require
s for images in PD...
Hot reloading seems to work the same as before. PD has an issue with React-DnD not playing well with hot reloads so if you're hot reloading on the "DESIGN" tab, you only get one hot reload before it crashes, that's the same as on edge and obvs out of scope of this PR.
--
Besides PD, I tested protocol-library-kludge -- all good there!
Sorry about the image thing, forgot to read the changelog of |
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.
LGTM — image tags + animations seem to be working now!
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.
LL, LC, and PD looking good image-wise
overview
This PR upgrades the following portions of our JS build:
{ ... }
)review requests
Smoke tests require for all front end apps: