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

Maintenance/jan 2021 #264

Merged
merged 3 commits into from
Feb 12, 2021
Merged

Maintenance/jan 2021 #264

merged 3 commits into from
Feb 12, 2021

Conversation

wswoodruff
Copy link
Contributor

@wswoodruff wswoodruff commented Jan 29, 2021

Most of these packages either had minor or patch upgrades awaiting — only 1 or 2 had major upgrades.

Major version upgrades:

  • immer's major upgrade includes the breaking change to always freeze by default, even in production mode which I think is fine
  • eslint-config-standard-react was able to go up to 11.x.x but that major version results in strange linting output like telling us that React is an unused variable when it's clear we need it to be in scope when using JSX — lint passes just fine at 10.x.x which is what we updated to

Question:
I thought caret syntax ^5.0.1 was the same as 5.x.x but seems not? Lots of versions in this PR are changing to the x.x.x syntax — which gives good output after installing and running ncu

Here's the before and after:

Screen Shot 2021-01-29 at 2 09 50 PM

Screen Shot 2021-01-29 at 2 29 01 PM

Summary of what's left:

  • We're waiting to upgrade to webpack 5 until error-overlay-webpack-plugin is upgraded to support it. There's an open issue here

Paths forward that we're holding back on

@devinivy
Copy link
Contributor

devinivy commented Jan 29, 2021

eslint-config-standard-react was able to go up to 11.x.x but that major version results in strange linting output like telling us that React is an unused variable when it's clear we need it to be in scope when using JSX

I think this can be explained by this: https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html. So perhaps we could move to v11 taking this into account.

Question: I thought caret syntax ^5.0.1 was the same as 5.x.x but seems not?

These are identical except ^5.0.1 doesn't match 5.0.0 and 5.x.x does 👍

@wswoodruff
Copy link
Contributor Author

I thought the caret and x syntax were similar and that's what I read too

The head-scratching part comes when I have it back at caret syntax, rm node_modules, do a fresh install, then run ncu to find the large list of updates to do. When the deps are in x.x.x syntax it seems to install the latest pkg versions — confusing, not sure why that's happening

I'm on npm -v 6.14.10

@wswoodruff
Copy link
Contributor Author

wswoodruff commented Feb 3, 2021

I looked into updating eslint-config-standard-react to 11.x.x and noticed from the link you sent that they mention using @babel/preset-react but we use babel-preset-react-app which also makes its way into our webpack config — I haven't been able to get it to compile yet after attempting to set

[
    '@babel/preset-react',
    { 'runtime': 'automatic' }
]

But was unable to get things to compile — also here are some other weird results from the new eslint settings — it doesn't see that we're using elements imported from internals??

Screen Shot 2021-02-03 at 9 45 37 AM

@bmleight bmleight changed the base branch from maintenance/oct-2020 to strangeluv February 12, 2021 18:30
Copy link
Contributor

@bmleight bmleight left a comment

Choose a reason for hiding this comment

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

This looks good to me and tested out fine. Found the issues Bill was working through are related upgrading additional dependencies than what is already checked in here. Going to continue those efforts from a fresh slate.

@bmleight bmleight merged commit a90397f into strangeluv Feb 12, 2021
@zemccartney zemccartney mentioned this pull request Apr 21, 2021
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.

3 participants