Cleanup property tags (#2542)

* Add TODO

* Update changelog

* Fix property tags
This commit is contained in:
Veeck
2020-04-26 22:41:29 +02:00
committed by GitHub
parent 1e8f100f20
commit 2004d77f4c
6 changed files with 494 additions and 429 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
/*!
{
"name": "ES7 Rest destructuring",
"property": [ "restdestructuringarray", "restdestructuringobject" ],
"property": ["restdestructuringarray", "restdestructuringobject"],
"caniuse" : "destructuring%20assignment",
"notes": [{
"name": "official ECMAScript 7 Destructuring Assignment draft specification",

View File

@@ -1,7 +1,7 @@
/*!
{
"name": "Proxy Object",
"property": "Proxy",
"property": "proxy",
"caniuse": "proxy",
"authors": ["Brock Beaudry"],
"notes": [{

View File

@@ -1,7 +1,7 @@
/*!
{
"name": "Text Encoding/Decoding",
"property": [ "textencoder", "textdecoder" ],
"property": ["textencoder", "textdecoder"],
"caniuse" : "textencoder",
"notes": [{
"name": "MDN TextEncoder Doc",
@@ -14,6 +14,6 @@
}
!*/
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('textencoder', !!(window.TextEncoder && window.TextEncoder.prototype.encode));
Modernizr.addTest('textencoder', !!(window.TextEncoder && window.TextEncoder.prototype.encode));
Modernizr.addTest('textdecoder', !!(window.TextDecoder && window.TextDecoder.prototype.decode));
});

View File

@@ -11,7 +11,7 @@
"href": "https://developers.google.com/web/updates/2018/03/webauthn-credential-management#the_solution"
}
],
"property": "publicKeyCredential",
"property": "publickeycredential",
"tags": ["webauthn", "web authentication"],
"authors": ["Eric Delia"]
}

View File

@@ -13,6 +13,9 @@ window.caniusecb = function(caniuse) {
describe('caniuse', function() {
var unusedModernizr = [];
var unusedCaniuse = _.keys(caniuse.data);
// TODO:: This map could (theoretically!) be build automatically by going through all feature-detects and look into
// the docs where property and caniuse tags are written down. One should anyway look if some are missing here or in
// the feature detect docs
var map = {
adownload: 'download',
ambientlight: 'ambient-light',