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

Bump safe deps #267

Merged
merged 2 commits into from
May 5, 2021
Merged

Bump safe deps #267

merged 2 commits into from
May 5, 2021

Conversation

zemccartney
Copy link
Contributor

  • Upgrades immer (matching strange-middle-end bump forthcoming)
  • Replaces deprecated eslint loader with new eslint webpack plugin
  • -vvvv discussion about webpack upgrading issues below; TLDR I think upgrading is safe; does anyone else agree? or did i goof? 🎩 🍷 🐸

Updates on the blocked dependency upgrades — webpack-5-related and history — as discussed in the prior 2 months (Feb/Bri and Jan/Bill)

history

Still blocked, for a couple of reasons:

I'm not sure the source of these issues; I'm also not sure why React Training didn't upgrade its packages — e.g. react-router, react-router-dom — to use the new history version. But the v5 release of history notes this version of history "will serve as the foundation for the upcoming release of React Router version 6." So maybe we're looking at more sweeping upgrades to the react router ecosystem down the line and should hold off on upgrading history till those are complete?

webpack v5

During his stint, Bri wrote:

error-overlay-webpack-plugin upgrading to webpack 5 is still holding up upgrading the three webpack libraries.

Specifically, we can't perform the following upgrades:

  • webpack: 4.x.x --> 5.x.x
  • copy-webpack-plugin: ^6.0.3 --> 8.x.x
  • html-webpack-plugin: 4.x.x --> 5.x.x

This is still the case, but I did some digging into this to see if anything had changed since Bri's work and found the following, random, questionably helpful things:

  • In keeping with this comment, I locally performed the above 3 upgrades and was able to start the app; I threw an error in App.js, saw the error overlay as expected. I was able to build and serve (npm run serve) the app without any apparent issues (though I could easily be missing something)

  • error-overlay-webpack-plugin lists webpack as a peer dependency, specifying version 4, but I'm unclear why. As far as I can tell, they do so because they depend on react-dev-utils(create-react-app's webpack utilities), which are in flux due to CRA progressing through their own webpack upgrade: Webpack 5 support overview facebook/create-react-app#9994

  • If I'm right about any of the above, then error-overlay-webpack-plugin might not actually need any upgrading. That is, react-dev-utils might be already webpack 5 compatible, which would mean no upgrades necessary (other than fixing the package's peerDependency on webpack v4)

So! All that said, do we feel ok about going ahead with the webpack 5 upgrades, perhaps dealing with some flux in local development due to CRA's ongoing webpack upgrading?

@wswoodruff
Copy link
Contributor

Idk I guess it's easier to just wait til the community gets its act together w/ this webpack 5 fiasco

Copy link
Contributor

@wswoodruff wswoodruff left a comment

Choose a reason for hiding this comment

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

Looks grood!

@zemccartney zemccartney merged commit fe5be58 into strangeluv May 5, 2021
@zemccartney zemccartney deleted the maintenance/apr-2021 branch May 5, 2021 15:25
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