From b8deacdbffc1724ce3e2a704cf3165622c573230 Mon Sep 17 00:00:00 2001 From: Pelle van der Knaap Date: Sun, 6 Feb 2022 15:50:54 -0500 Subject: [PATCH 1/2] Update to js-yaml v4 --- lib/engines.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/engines.js b/lib/engines.js index 38f993d..1dfec8d 100644 --- a/lib/engines.js +++ b/lib/engines.js @@ -13,8 +13,8 @@ const engines = exports = module.exports; */ engines.yaml = { - parse: yaml.safeLoad.bind(yaml), - stringify: yaml.safeDump.bind(yaml) + parse: yaml.load.bind(yaml), + stringify: yaml.dump.bind(yaml) }; /** diff --git a/package.json b/package.json index c5a1fff..2e3b6cb 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "test": "mocha" }, "dependencies": { - "js-yaml": "^3.13.1", + "js-yaml": "^4.1.0", "kind-of": "^6.0.2", "section-matter": "^1.0.0", "strip-bom-string": "^1.0.0" From 4fc7584eb9d8bfc3bb03bdec6487c8b5492caaaf Mon Sep 17 00:00:00 2001 From: Pelle van der Knaap Date: Sun, 6 Feb 2022 16:32:00 -0500 Subject: [PATCH 2/2] bump version to 4.0.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2e3b6cb..6138b88 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "gray-matter", "description": "Parse front-matter from a string or file. Fast, reliable and easy to use. Parses YAML front matter by default, but also has support for YAML, JSON, TOML or Coffee Front-Matter, with options to set custom delimiters. Used by metalsmith, assemble, verb and many other projects.", - "version": "4.0.3", + "version": "4.0.4", "homepage": "https://github.com/jonschlinkert/gray-matter", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", "contributors": [