-
Notifications
You must be signed in to change notification settings - Fork 9
Document the various scripts #977
Comments
update-bcd.js is the script you'll want to use. add-new-bcd.js only adds empty support statements for missing features which update-bcd.js could then fill in. So if you have browser-compat-data checked out next to this repo, you can try And yes, this should be documented. |
To make this more concrete, I have results for iOS 14 and 14.5 now so that we can discuss specifics about how to use the With those running The first problem is that version "14.5" isn't in BCD. I've sent mdn/browser-compat-data#9240, but making that changes locally in Then, the script produces a bunch of "14.5" updates, but also lot of "≤14" because of things that were already in Safari iOS but BCD isn't updated yet. I'm thinking that maybe a |
I'm documenting |
No preference; I'm happy manually adding things to |
The tricky part is iOS versions, which are used in BCD instead of the Safari version. Because the iOS version that includes Safari N.1 changes over time, it's not safe to assume that a version larger than current stable is a new release. However... I just realized we could look at both the Safari version and the iOS version in the UA string and thereby know that iOS 14.4 should be "14" in BCD but 14.5 is new and shouldn't be treated as 14. I'll try tweaking this logic. I'm OOO next week however so I might not do any work on BCD then. |
This is the last open issue in this repo, which I'm sunsetting in favor of https://github.com/openwebdocs/mdn-bcd-collector. I've filed mdn/browser-compat-data#20820 which doesn't totally cover this, but if you also think you'll want to run any scripts in the mdn-bcd-collector repo itself, please file an issue at https://github.com/openwebdocs/mdn-bcd-collector/issues. |
At least from the names, it's not clear what the difference between update-bcd and add-new-bcd do. It would be nice to actually document what all the various scripts do, and how to run them.
If I were to have, locally, results for Safari 14 and Safari 14.1, how would I create a diff for BCD for changes in 14.1?
The text was updated successfully, but these errors were encountered: