Update dependencies
Most meaningful changes:
@testing-library/user-event
userEvent
method are now async
. I had to add lots of await
in the test files and disable the rule testing-library/no-await-sync-events
for user-events
as advised here
eslint-config-galex
- Removes
inclusive-langage
rule. - Adds a bunch of rules like
@typescript-eslint/consistent-type-imports
which changed a lot of imports intoimport type
- I also made the config match the one of h5web. This notably adds
'@typescript-eslint/no-shadow
which meant some variables had to be renamed.
node
- One of the dep update (maybe
react-scripts
) forces to use node 16.10. I had to change the cypress image used in the CI but recent cypress images do not include common packages socurl
has to be installed manually.
zustand
-
persist
middleware raises an error when usingcreate<State>(...)
. The new syntax iscreate<State>()(...)
: https://github.com/pmndrs/zustand/blob/main/docs/integrations/persisting-store-data.md#how-do-i-use-with-typescript
axios
-
paramsSerializer
is nowparamsSerializer.serialize
-
onDownloadProgress
callback arg type has changed
Edited by Loic Huder