caniuse-api icon indicating copy to clipboard operation
caniuse-api copied to clipboard

more readable results for getSupport()

Open Nyalab opened this issue 10 years ago • 4 comments
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 ?

Nyalab avatar Dec 16 '14 09:12 Nyalab

Why notavailableSince and not notAvailableSince?

kud avatar Dec 16 '14 09:12 kud

Ii have still not decided if it would be notavailable or unavailable, and grammar and spelling are not the point of this issue :facepunch:.

Nyalab avatar Dec 16 '14 10:12 Nyalab

'y', 'n', 'x', 'a' is not readable enough. Sorry. I thought we talked here about readability.

kud avatar Dec 16 '14 10:12 kud

 [
   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)
   },
   ....
 ]

bloodyowl avatar Dec 16 '14 10:12 bloodyowl