Closed aaronjensen closed 6 years ago
@aaronjensen So for you, does T extends keyof any
look weird? That's why you remove support for TS@>=2.6.2 < 2.8?
@Ailrun no, to be honest, I don't know what the full impacts would be of that change so I didn't want to risk it and given that there won't be much other reason to upgrade glamorous it doesn't seem like a big deal to drop support for <2.8
Can we get the build working before we merge this please? :)
We could yeah, but it has nothing to do w/ this PR, so should it be a separate one? This repo doesn't appear to use a package-lock or a yarn.lock so as new eslint rules get added failures crop up with 0 changes.
Current failures:
[lint] /home/travis/build/paypal/glamorous/src/theme-provider.js
[lint] 16:1 error componentWillMount is deprecated since React 16.3.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount react/no-deprecated
[lint] 16:1 error componentWillReceiveProps is deprecated since React 16.3.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops react/no-deprecated
[lint]
[lint] /home/travis/build/paypal/glamorous/src/with-theme.js
[lint] 16:3 error componentWillMount is deprecated since React 16.3.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount react/no-deprecated
[lint] 16:3 error componentWillReceiveProps is deprecated since React 16.3.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops react/no-deprecated
I actually get even more lint failures locally π
Merging #425 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #425 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 10 10
Lines 177 177
Branches 50 50
=====================================
Hits 177 177
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update 7c54bbe...b3e75d4. Read the comment docs.
Tests are passing now with the deprecated lints being ignored. Maybe a follow-up PR could deal w/ it properly (which would probably require bumping the minimum version of react required)
@Ailrun I used
Exclude
since that's 2.8+