TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Add support for User-Agent Client Hints

Open rowan-m opened this issue 4 years ago • 5 comments
trafficstars

Provides navigator.userAgentData for User-Agent Client Hints values as per https://wicg.github.io/ua-client-hints/

rowan-m avatar Jun 25 '21 15:06 rowan-m

CLA assistant check
All CLA requirements met.

ghost avatar Jun 25 '21 15:06 ghost

From the heuristics for inclusion, I'm afraid this is currently only available in Chromium-based browsers. However with the hope of generally moving away from use of navigator.userAgent it would be helpful to have the new API available here. So I'm hoping for addition based on the criteria: "new features going to be used by a lot of people".

rowan-m avatar Jun 25 '21 15:06 rowan-m

This was previously raised here: https://github.com/microsoft/TypeScript/issues/43604 back in April, but with this now being available in stable it felt like a good opportunity to revisit.

rowan-m avatar Jun 25 '21 16:06 rowan-m

Thanks - I'm afraid we're probably going to be waiting on this until we see some other browsers implement it

orta avatar Jun 28 '21 17:06 orta

Sounds fair to me. I'm fine with this either waiting or just closing and we can try again when there's additional support. Repo instructions were very clear, so thanks for making it so simple to contribute.

rowan-m avatar Jun 30 '21 10:06 rowan-m