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

Upgrade dependencies #325

Merged
merged 12 commits into from
Apr 22, 2024
Merged

Upgrade dependencies #325

merged 12 commits into from
Apr 22, 2024

Conversation

graue
Copy link
Contributor

@graue graue commented Apr 19, 2024

Upgrades all our npm dependencies except for:

Package Ours Latest Why hold back?
eslint 8 9 eslint-plugin-react does not yet support it
immer 9 10 Drops some browser backward compat w no real benefit
maplibre-gl 1 4 Need to figure out how to use with Mapbox styles (or switch off Mapbox)
react-redux 8 9 Requires redux 5
redux 4 5 Drops some browser backward compat w no real benefit
redux-thunk 2 3 Requires redux 5

and some packages we weren't actually using that I removed.

For the redux packages and immer, I figure we can wait a bit until those browsers being dropped are less used. The features they've adopted are unavailable for 3-5% of web users, which seems high when the old version works fine.

Note that the new vite-plugin-svgr requires changes to how we import SVG files.

graue added 10 commits April 18, 2024 22:16
these are used indirectly by vite and autoprefixer.

there is no need for us to require our own copy of them
note: this changes how SVGs are imported
this fixes the problem with dots in paths, so can remove our workaround
@graue graue requested a review from Andykmcc April 20, 2024 05:01
@graue
Copy link
Contributor Author

graue commented Apr 20, 2024

@Andykmcc since you're thinking about JS dependencies, have a look?

and move eslint to devDependencies
fixes CJS deprecation warning in Vite 5
"last 1 safari version"
]
},
"jest": {
Copy link
Contributor

Choose a reason for hiding this comment

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

are you getting rid of this because we dont use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I'm removing all the dependencies we don't use. If you want to write frontend unit tests and think we should use Jest, feel free to add it back.

@graue graue merged commit c5954bf into main Apr 22, 2024
3 checks passed
@graue graue deleted the graue/upgrades branch April 22, 2024 21:23
graue added a commit that referenced this pull request Jul 25, 2024
Upgrades everything to the latest except for immer, maplibre-gl,
react-redux, redux, and redux-thunk for the reasons noted in PR #325;
@headlessui/react because something in 2.x broke BikeHopper and it wasn't
immediately obvious what to change; eslint out of laziness
(eslint-plugin-react now supports eslint 9.x, but not sure if we'll have
to make more changes).
@graue graue mentioned this pull request Jul 25, 2024
graue added a commit that referenced this pull request Jul 25, 2024
Upgrades everything to the latest except for immer, maplibre-gl,
react-redux, redux, and redux-thunk for the reasons noted in PR #325;
@headlessui/react because something in 2.x broke BikeHopper and it wasn't
immediately obvious what to change; eslint out of laziness
(eslint-plugin-react now supports eslint 9.x, but not sure if we'll have
to make more changes).
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.

2 participants