-
Notifications
You must be signed in to change notification settings - Fork 35
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
Update dependencies #3082
base: develop
Are you sure you want to change the base?
Update dependencies #3082
Conversation
Breaking Changes of direct python deps: - Cryptography: * Dropped support for OpenSSL < 1.1.1e * Dropped support for LibreSSL < 3.8 - Icalendar: * Use zoneinfo instead of pytz
We were using the typ `StateUpdater<_>` for setters, but the type of `StateUpdater<T>` just resolves to `T | ((prevState: T) => T)`, which means that it is not guaranteed to be callable. The preact documentation is not really helpful: https://preactjs.com/guide/v10/typescript/#typing-hooks But in the source of `useState`, the setter is typed as `Dispatch<StateUpdater<T>>`, so I decide to use the same type.
Due to many positives, I changed the value from 5 to 6 and manually annotated the remaining occurrences with too many positives, in the hopes that we will fix that at some point :)
057e09b
to
f48a605
Compare
Code Climate has analyzed commit f48a605 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 0.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 82.5% (0.0% change). View more on Code Climate. |
@david-venhoff Thank you very much! 😊 I don't think that the changes to cryptography are affecting us. |
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.
Wow, this looks like quite the effort, so thank you for tackling this!!
Couldn't find anything not working! 🎉
Short description
This pr updates our dependencies, which includes multiple breaking changes that I attempted to fix.
Proposed changes
Side effects
I also noticed 2 direct python dependencies that had a major version bump. I did some testing and don't think any functionality of the cms was broken.
Running
./tools/eslint
now produces a deprecation warning. I tried updating eslint, but we depend oneslint-config-airbnb
which does not support modern eslint versions. At least there is an active issue for that: airbnb/javascript#2961I think we can accept this deprecation warning for the time being and open an issue to update eslint, but I am open to other opinions :)
Resolved issues
Fixes: /
Pull Request Review Guidelines