microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.94k stars 12.47k forks source link

Typings for navigator.connection gone since TS 4.8 #56962

Open cchengt opened 10 months ago

cchengt commented 10 months ago

⚙ Compilation target

es5

⚙ Library

es6 dom dom.iterable es2016 es2017 esnext

Missing / Incorrect Definition

navigator.connection is missing after updating Typescript from 4.5 to 5.3. I checked the other versions and it seems it got removed since version 4.8. However, I couldn't find this change in the breaking changes docs.

Sample Code

const c = navigator.connection;

Documentation Link

No response

fatcerberus commented 10 months ago

MDN says this is only supported by Chromium-based browsers.

RyanCavanaugh commented 9 months ago

We need to revisit the "two browser support" policy in light of Firefox losing ~all of its share, Opera going Chromium, and Safari continuing to be the laggard even in the face of de jure standardized features.