Skip to content

Commit 263e01f

Browse files
Merge pull request #4 from firefox-devtools/script-node-12
Use legacy wrapper in update_remote_settings_records.mjs for forward compatibility with Node 16+
2 parents 1c0f6f9 + e000c67 commit 263e01f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

update_remote_settings_records.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616
// In the future, it will also handle https://github.com/mdn/browser-compat-data/tree/main/css.
1717

1818
import fetch from "node-fetch";
19-
import compatData from "@mdn/browser-compat-data";
19+
20+
// Use the legacy wrapper to support all Node 12+ versions.
21+
// If we only support Node 16+, can be updated to:
22+
// import bcd from '@mdn/browser-compat-data' assert { type: 'json' };
23+
// See https://github.com/mdn/browser-compat-data.
24+
import compatData from "@mdn/browser-compat-data/forLegacyNode";
2025

2126
const SUCCESS_RET_VALUE = 0;
2227
const FAILURE_RET_VALUE = 1;

0 commit comments

Comments
 (0)