Closed olizilla closed 5 years ago
Additional data point: random things break without access to WebCrypto API, which is only available in Secure Contexts. We can remove support for browsers without those.
Continued in https://github.com/ipfs/community/issues/393
The main question here is, what browsers can we support, and what browser should we support. For web apps that use an embedded
js-ipfs
instance, the bar is high, it needs modern features, but we should document those, so we can figure out the right browserslist for it.For web apps that don't intend to use
js-ipfs
we should aim to be as inclusive as possible.js-ipfs-api
makes http requests to a remote ipfs node, so there is no strong reason why we can't support older browsers beyond the time and effort it takes. It's worth remembering that people running older browsers aren't doing so to deliberately make developers lives harder, but because they are not allowed or can't afford the time, money, or energy to do so.From https://github.com/ipfs-shipyard/ipld-explorer/pull/37#discussion_r215810050
The current defaults config for
browserslist
is:defaults
: Browserslist’s default browsers (> 0.5%, last 2 versions, Firefox ESR, not dead
).where
dead
is defined as:dead
: browsers fromlast 2 version
query, but with less than 0.5% in global usage statistics and without official support or updates for 24 months. Right now it isIE 10
,IE_Mob 10
,BlackBerry 10
,BlackBerry 7
, andOperaMobile 12.1
.The default setting currently includes the following browsers: