fune/devtools/shared/compatibility
2021-09-13 10:44:21 +00:00
..
bin
dataset Bug 1728477: Update MDN compat data. r=Honza 2021-09-13 10:44:21 +00:00
moz.build
package.json
README.md
yarn.lock

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.