lbry-desktop/web/src
infinite-persistence 5638f64831
New version nudge (#1793)
## Ticket
1329

The existing nudge to refresh the webpage only happens when the app cannot find the specific javascript file in the server. As we don't purge the files on each build, the browser typically uses the cached version of the app, which could be weeks behind (based on the error logs).

## Approach
Poll the current version periodically (set to 1 hour for now) and invoke the nudge when a newer version is detected.

We typically don't need to bump `MINIMUM_VERSION` unless there is an urgent need to make users move away from older versions (e.g. API changes, mistakes, etc.)

## Trade-offs
Wanted to put the value in a separate file called `.min.version` so that the env's history won't be polluted with version bumps, but not sure how to implement with minimal code without having to read from the file. Getting from the env is the easiest to implement (per my limited knowledge).
2022-07-05 09:14:32 -04:00
..
metadata Update thumbnail cards URL (#1748) 2022-06-23 18:09:48 -04:00
push-notifications Add hints if an error occurs subscribing to notifications (#143) 2021-11-01 14:51:23 -04:00
chainquery.js Update CQ username 2022-03-31 19:00:08 -07:00
fetchStreamUrl.js GoogleVideo: generate instead of fetch the content url (#1691) 2022-06-15 06:54:53 -04:00
firebase-config.js Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
getHomepageJSON.js Homepage API: add ?format=roku support (#1655) 2022-06-09 00:53:58 -04:00
homepageApi.js Homepage API: add ?format=roku support (#1655) 2022-06-09 00:53:58 -04:00
html.js Update thumbnail cards URL (#1748) 2022-06-23 18:09:48 -04:00
lbryURI.js Clean invisible chars and adjust "__" for server and client use (#715) 2022-01-18 12:09:59 -05:00
minVersion.js New version nudge (#1793) 2022-07-05 09:14:32 -04:00
oEmbed.js Update thumbnail cards URL (#1748) 2022-06-23 18:09:48 -04:00
routes.js New version nudge (#1793) 2022-07-05 09:14:32 -04:00
rss.js RSS: parallel-fetch the stream urls 2022-05-27 08:38:18 -04:00
service-worker.js Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
tempfile.js Fix tempFileMiddleware that was serving a cached .well-known file 2022-04-28 09:09:30 -04:00
ua.js Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
xml.js favicon custom 2021-07-23 17:12:18 -04:00