Skip to content

Commit 35c0483

Browse files
fatso83fiji-flo
authored andcommitted
Migrate deprecated 'assert' import syntax, bump to Node 18.20 (#35826)
* Remove deprecated 'assert' import syntax in favor of 'with' fixes #35825 * Set minimum Node version in `.engines` field to 18.20.0 This is the minimum version that supports the new `import ... with` syntax.
1 parent fe8ade9 commit 35c0483

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"url": "git+https://github.com/mdn/content.git"
1515
},
1616
"engines": {
17-
"node": ">=18.18.0"
17+
"node": ">=18.20.0"
1818
},
1919
"type": "module",
2020
"scripts": {

scripts/up-to-date-check.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import yariPackageJson from "@mdn/yari/package.json" assert { type: "json" };
2-
import thisPackageJson from "../package.json" assert { type: "json" };
1+
import yariPackageJson from "@mdn/yari/package.json" with { type: "json" };
2+
import thisPackageJson from "../package.json" with { type: "json" };
33

44
const availableYariVersion = thisPackageJson.dependencies["@mdn/yari"];
55
const installedYariVersion = yariPackageJson.version;

0 commit comments

Comments
 (0)