Created
March 17, 2018 10:44
-
-
Save ddbeck/b48b32796ffe76cff63b1ef9b9716700 to your computer and use it in GitHub Desktop.
BCD deprecated experiments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api.AnimationEvent.initAnimationEvent | |
api.FetchEvent.client | |
api.HTMLShadowElement | |
api.HTMLShadowElement.getDistributedNodes | |
api.Headers.getAll | |
api.PositionSensorVRDevice | |
api.PositionSensorVRDevice.getImmediateState | |
api.PositionSensorVRDevice.getState | |
api.PositionSensorVRDevice.resetSensor | |
api.PushRegistrationManager | |
api.PushRegistrationManager.register | |
api.PushRegistrationManager.unregister | |
api.PushRegistrationManager.getRegistration | |
api.PushRegistrationManager.hasPermission | |
api.PushSubscription.toJSON | |
api.PushSubscription.unsubscribe | |
api.RTCPeerConnection.onaddstream | |
api.RTCPeerConnection.onremovestream | |
api.RTCPeerConnection.addStream | |
api.RTCPeerConnection.createDTMFSender | |
api.RTCSessionDescription.RTCSessionDescription | |
api.Request.context | |
api.Request.integrity | |
api.Request.keepalive | |
api.Response.useFinalURL | |
api.VRDisplay.getImmediatePose | |
api.VRDisplay.getPose | |
api.VRDisplay.hardwareUnitId | |
api.VRDisplay.isConnected | |
api.VRDisplay.resetPose | |
api.VRDisplayCapabilities.hasOrientation | |
api.VREyeParameters.maximumFieldOfView | |
api.VREyeParameters.minimumFieldOfView | |
api.VREyeParameters.recommendedFieldOfView | |
api.VREyeParameters.renderRect | |
api.VRFieldOfView.VRFieldOfView | |
api.VRPose.hasOrientation | |
api.VRPose.hasPosition | |
api.VRPose.timestamp | |
api.XMLDocument.load | |
api.XMLSerializer.serializeToStream | |
css.properties.font-variant-alternates | |
css.properties.font-variant-alternates.annotation | |
css.properties.font-variant-alternates.character_variant | |
css.properties.font-variant-alternates.ornaments | |
css.properties.font-variant-alternates.styleset | |
css.properties.font-variant-alternates.stylistic | |
css.properties.font-variant-alternates.swash | |
css.properties.scroll-snap-destination | |
http.headers.If-Match | |
http.headers.If-Modified-Since | |
http.headers.If-None-Match | |
http.headers.If-Unmodified-Since | |
http.headers.Keep-Alive | |
http.headers.Last-Modified | |
http.headers.Location | |
javascript.builtins.TypedArray.move | |
57 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// run from root of bcd directory | |
const bcd = require('.'); | |
let features = []; | |
function traverseFeatures(obj, depth, identifier) { | |
depth--; | |
if (depth >= 0) { | |
for (let i in obj) { | |
if (!!obj[i] && typeof (obj[i]) == "object" && i !== '__compat') { | |
if (obj[i].__compat) { | |
features.push({ [identifier + '.' + i]: obj[i].__compat }); | |
} | |
traverseFeatures(obj[i], depth, `${identifier}.${i}`); | |
} | |
} | |
} | |
} | |
for (let section of Object.keys(bcd)) { | |
traverseFeatures(bcd[section], 20, section); | |
} | |
let count = 0; | |
for (let value of features) { | |
for (let name in value) { | |
let status = value[name].status; | |
if (status !== undefined && status.experimental && status.deprecated) { | |
console.log(`${name}`); | |
count++; | |
} | |
} | |
} | |
console.log(count); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment