mdn-browser-compat-data
has been renamed to @mdn/browser-compat-data
(note the @mdn
scope). Follow these instructions to upgrade to the new package name.
This upgrade causes two breaking changes:
- The old package name no longer works, which means you'll have to update
require()
calls and yourpackage.json
dependencies. - Node.js 8 is no longer supported, which means you'll have to upgrade to Node.js 10 or later.
The schema, public API, and other details of the package remain the same since 1.1.x
.
-
If you have not done so already, upgrade to Node.js 10 or later. Visit the Node.js site for downloads and changelogs.
-
Remove
mdn-browser-compat-data
from your package dependencies.In the same directory as your
package.json
file, runnpm uninstall mdn-browser-compat-data
. -
Add
@mdn/browser-compat-data
to your package dependencies.In the same directory as your
package.json
file, runnpm install @mdn/browser-compat-data
. -
In your code, replace any
require("mdn-browser-compat-data")
calls withrequire("@mdn/browser-compat-data")
.If possible, run your test suite to make sure this worked.
If you encountered any undocumented breaking changes as a result of this upgrade, please open an issue.