-
Notifications
You must be signed in to change notification settings - Fork 7
Expand versions returned by getAllVersions()
, fixes refresh-downstream bug
#30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
One more thing, when I look at the new JSON output I see stuff like this: "1": {
"year": "pre_baseline",
"release_date": "2008-12-11",
"supports": "year_only"
}, This 100% works for my use case, but it does feel a bit weird to say this browser supports "year_only" but then have the year show "pre_baseline". What if "1": {
"year": "pre_baseline",
"release_date": "2008-12-11"
},
"90": {
"year": 2020,
"release_date": "2021-07-13"
},
"135": {
"year": 2024,
"release_date": "2025-02-04",
"supports": "widely"
}, |
You could potentially even omit the "year" key for cases that would currently be "pre_baseline" though I'm less keen on that since I do think there's value in communicating why there is no year set. |
Could do this, yes, although it makes CSV output a bit more fiddly. I agree that removing "supports: year_only" or changing it to "pre_baseline" on pre-Baseline versions is worth doing. |
Hey @philipwalton and @notpushkin just FYI, this has become a bit noisy so I'm going to reduce the scope just to expanding the list of browsers in |
getAllVersions()
, enables in-browser usage, fixes refresh-downstream buggetAllVersions()
, fixes refresh-downstream bug
The smaller output argument is convincing here, so I've changed the logic to omit |
I'm calling this good to go, merging and releasing now. |
Expand
getAllVersions()
eligibilityIn the wild, we see some much older browser versions in use prior to the start of Baseline in 2016 - the first year that the entire core browser set was available. We also see usage of the very latest versions either in
beta
/nightly
states, or as the current release, but they have not yet been updated tocurrent
in@mdn/browser-compat-data
or the latest version of @mdn/browser-compat-data hasn't filtered through to this module.Consequently, it makes sense to do the following:
pre_baseline
. We can't be sure of the feature support for these older versions without doing significantly more feature comparison work and users on browsers that old are likely to be having a fairly broken web experience anyway.acceptableStatuses
to includebeta
andnightly
.Fix bug in refresh-downstream script
In addition, there is a version comparison bug in the refresh-downstream script that was preventing new versions from being detected. This is fixed to match the comparison behaviour in the main script.