Skip to content

Commit

Permalink
Migrate deprecated 'assert' import syntax, bump to Node 18.20 (#35826)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
fatso83 authored Sep 19, 2024
1 parent b921b8d commit aef1553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"url": "git+https://github.com/mdn/content.git"
},
"engines": {
"node": ">=18.18.0"
"node": ">=18.20.0"
},
"type": "module",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/up-to-date-check.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import yariPackageJson from "@mdn/yari/package.json" assert { type: "json" };
import thisPackageJson from "../package.json" assert { type: "json" };
import yariPackageJson from "@mdn/yari/package.json" with { type: "json" };
import thisPackageJson from "../package.json" with { type: "json" };

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

0 comments on commit aef1553

Please sign in to comment.