gecko-dev/devtools/shared/compatibility
Daisuke Akatsuka 9b07a0d7ce Bug 1703145: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D110882
2021-04-06 22:23:16 +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 1703145: Update MDN compat data. r=Honza 2021-04-06 22:23:16 +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
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.