fune/devtools/shared/compatibility
2021-03-09 22:37:49 +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 1697068: Update MDN compat data. r=Honza 2021-03-09 22:37:49 +00:00
moz.build
package.json Bug 1681070 - [devtools] Add a script to update MDN compat data. r=daisuke. 2020-12-08 09:16:33 +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
yarn.lock Bug 1681070 - [devtools] Add a script to update MDN compat data. r=daisuke. 2020-12-08 09:16:33 +00:00

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.