Skip to content

Commit

Permalink
dep: update yaml 3.13 -> 4.1 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Sep 1, 2021
1 parent a33991d commit 5b330cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

## NEXT - 202Y-MM-DD

## 1.0.20 - 2021-09-01

- update YAML dep to v4


## 1.0.19 - 2021-06-10

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
"name": "haraka-config",
"license": "MIT",
"description": "Haraka's config file loader",
"version": "1.0.19",
"version": "1.0.20",
"homepage": "http://haraka.github.io",
"repository": {
"type": "git",
"url": "git@github.com:haraka/haraka-config.git"
},
"main": "config.js",
"engines": {
"node": ">= 10"
"node": ">= 12"
},
"dependencies": {
"js-yaml": "^3.13.1"
"js-yaml": "^4.1.0"
},
"optionalDependencies": {
"hjson": "^3.2.0"
},
"devDependencies": {
"eslint": "*",
"eslint": ">=6",
"eslint-plugin-haraka": "*",
"mocha": "*"
"mocha": ">=8"
},
"bugs": {
"mail": "haraka.mail@gmail.com",
Expand Down
2 changes: 1 addition & 1 deletion readers/yaml.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs');
const yaml = require('js-yaml');

exports.load = (name) => {
return yaml.safeLoad(fs.readFileSync(name, 'utf8'));
return yaml.load(fs.readFileSync(name, 'utf8'));
}

exports.empty = () => {
Expand Down

0 comments on commit 5b330cb

Please sign in to comment.