question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to target last 2 versions of FF ESR?

See original GitHub issue

How can I target the last 2 versions of FF ESR? If I use last 2 versions, I only get FF 52 and 53; I would expect to get FF 45, 52, 53:

  • 53 is latest FF
  • 52 is previous version of FF, plus latest FF ESR
  • 45 is previous FF ESR

Using the demo at http://browserl.ist it does not seem possible to write a query that pulls in “the last two versions of Firefox ESR”.

This is important because there’s always a qualification period during which the previous ESR version and the next ESR version overlap, so they’re both active and supported for a time (such as right now). Also, institutions/enterprises are notoriously slow to upgrade, so it would be nice to be able to target N versions back, based on the target audience.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
ZebraFleshcommented, May 21, 2017

Why selecting it y version Firefox 42, Firefox 38 doesn’t fit your needs.

Because I want to use a semantic query string such as “last N versions”. Using hard coded values means I need to update my list of browsers whenever there’s a new ESR release.

last 3 ESR versions also doesn’t have semantics reasons. ESR is supporting level. When Mozilla stop to support a version, it could not called ESR anymore.

Maybe this is our point of confusion. ESR is not just a support level: it is a distinct software baseline. Here’s the repo for ESR 45: https://hg.mozilla.org/releases/mozilla-esr45/ It is definitely a separate piece of software. When the Mozilla Foundation stops supporting a particular ESR release, the tag does not disappear from the repo. (Go up a level and you can go all the way back to the ESR 10 baseline.) It’s still an ESR, just an unsupported one – the same way that Microsoft no longer supports IE 8.

3reactions
ZebraFleshcommented, May 21, 2017

It’s simple: organizations and enterprises are slow to upgrade and do not follow the Mozilla schedule. There’s likely a number of intranets that are still running ESR 38 because they haven’t upgraded their infrastructure. Those computers are locked down and cannot be autoupdated by users. Organizations running ESR 38 at this point are just a little slow and are just under a year out of date. That doesn’t seem like a good reason to punish those users.

I don’t think this requires a new version in the code. You’re already aliasing ESR to a particular Firefox version. Why not just alias it to a list and make it synthetic browser version in order to support the queries with browserlist? If you were tracking bugs, this wouldn’t be right; however, you’re tracking browser capabilities and ESR freezes those upon first release, so this approach sounds correct.

Most of developers don’t think about Firefox ESR as separated browser. So they will be surprised too see unsupported previous Firefox ESR in last 2 versions query (it loads all browsers, so with you suggestion it will load last 2 Firefox ESR versions too).

And I was surprised to see browsers that are primarily used in China (it’s not my target market). People will adjust the same way they did with how the 2.0 release changed the last 2 versions results.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Last 2 versions" considered harmful
"last 2 versions" considered harmful. There comes a time in every developer's life when they come to realize their thoughtleaders misled them.
Read more >
Target Browsers - CodeKit
To do that, open the Target Browsers section of Project Settings: ... The default is >0.25%, last two versions, Firefox ESR, not dead....
Read more >
Browserslist
Display target browsers from a Browserslist config. ... with the defaults query which is a shortcut for > 0.5%, last 2 versions, Firefox...
Read more >
Browser configuration | webhint documentation
browserslist.defaults = [ '> 0.5%', 'last 2 versions', 'Firefox ESR', ' ...
Read more >
Firefox version history - Wikipedia
All variants, 100%, 3.04%. Firefox was created by Dave Hyatt and Blake Ross as an experimental branch of the Mozilla ... Firefox 102...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found