caniuse-api
caniuse-api copied to clipboard
more readable results for getSupport()
trafficstars
'y', 'n', 'x', 'a' are neither usable, nor readable enough
the lib needs to provide something better like:
[
ie: {
notavailableSince: number, // really needed? (sometimes 0, null, wat)
notavailableUntil: number,
availableSince: number,
availableUntil: number, // really needed? (technically max version of browser)
prefixedSince: number,
prefixedUntil: number,
partiallySince: number,
partiallyUntil: number,
unprefixedSince: number,
unprefixedUntil: number // really needed? (technically max version of browser)
},
....
]
is this a good idea to provide all properties, even il you can process data to recalculate it on the project side ?
which ones do you find useful ?
Why notavailableSince and not notAvailableSince?
Ii have still not decided if it would be notavailable or unavailable, and grammar and spelling are not the point of this issue :facepunch:.
'y', 'n', 'x', 'a' is not readable enough. Sorry. I thought we talked here about readability.
[
ie: {
- notavailableSince: number, // really needed? (sometimes 0, null, wat)
+ notAvailableUntil: number,
+ availableSince: number,
- availableUntil: number, // really needed? (technically max version of browser)
prefixedSince: number,
+ prefixedUntil: number,
+ partiallySince: number,
+ partiallyUntil: number,
+ unprefixedSince: number, // not sure about the wording, if it never was prefixed
- unprefixedUntil: number // really needed? (technically max version of browser)
},
....
]