gecko-dev/devtools/shared/compatibility
Daisuke Akatsuka ec8a8ac1ac Bug 1685647: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D101105
2021-01-08 09:23:35 +00:00
..
bin Bug 1681070 - [devtools] Add a script to update MDN compat data. r=daisuke. 2020-12-08 09:16:33 +00:00
dataset Bug 1685647: Update MDN compat data. r=Honza 2021-01-08 09:23:35 +00:00
README.md Bug 1681070 - [devtools] Add a script to update MDN compat data. r=daisuke. 2020-12-08 09:16:33 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
package.json Bug 1681070 - [devtools] Add a script to update MDN compat data. r=daisuke. 2020-12-08 09:16:33 +00:00
yarn.lock Bug 1681070 - [devtools] Add a script to update MDN compat data. r=daisuke. 2020-12-08 09:16:33 +00:00

README.md

Compatibility Dataset

How to update the MDN compatibility data

The Compatibility panel detects issues by comparing against official MDN compatibility data. It uses a local snapshot of the dataset. This dataset needs to be manually synchronized periodically to devtools/shared/compatibility/dataset (ideally with every Firefox release).

The subsets from the dataset required by the Compatibility panel are:

In order to download up-to-date data, you need to run the following commands:

  • cd devtools/shared/compatibility
  • yarn install and select the latest package version
  • yarn update

This should save the JSON files directly in devtools/shared/compatibility/dataset/.

Check that all tests still pass. It is possible that changes in the structure or contents of the latest dataset will cause tests to fail. If that is the case, fix the tests. Do not manually change the contents or structure of the local dataset because any changes will be overwritten by the next update from the official dataset.