From 7c34f01d69ec97a135a1dd4204ce9f5a817f117d Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Sun, 23 Jun 2024 12:11:07 -0700 Subject: [PATCH] chore(dependencies): update js-yaml This updates js-yaml to 4.1.0 and swaps out `yaml.safeLoad()` for `yaml.load()` because the `safe*` functions are deprecated starting in 4.0.0 (the "regular" functions are considered safe). --- package.json | 2 +- scripts/check-node-support.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c0907cb..cb39b97 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "eslint-import-resolver-node": "0.3.7", "eslint-config-airbnb-base": "^14.2.1", "eslint-plugin-import": "^2.26.0", - "js-yaml": "^3.12.0", + "js-yaml": "^4.1.0", "mocha": "^6.2.3", "nyc": "^14.1.1", "rimraf": "^2.5.2", diff --git a/scripts/check-node-support.js b/scripts/check-node-support.js index 6b0f6b6..94ad67b 100755 --- a/scripts/check-node-support.js +++ b/scripts/check-node-support.js @@ -65,7 +65,7 @@ try { var githubActionsFileName = path.join(__dirname, '..', '.github', 'workflows', 'main.yml'); - var githubActionsYaml = yaml.safeLoad(shell.cat(githubActionsFileName)); + var githubActionsYaml = yaml.load(shell.cat(githubActionsFileName)); checkGithubActions(MIN_NODE_VERSION, MAX_NODE_VERSION, githubActionsYaml); console.log('All files look good (this project supports v'