diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..8351c19 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +14 diff --git a/.travis.yml b/.travis.yml index 1fd107d..57a8ea8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ os: language: node_js node_js: - node + - '14' + - '12' - '9' - '8' - '7' diff --git a/package.json b/package.json index bdce8c9..c5a1fff 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.2", + "version": "4.0.3", "homepage": "https://github.com/jonschlinkert/gray-matter", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", "contributors": [ @@ -34,7 +34,7 @@ "test": "mocha" }, "dependencies": { - "js-yaml": "^3.11.0", + "js-yaml": "^3.13.1", "kind-of": "^6.0.2", "section-matter": "^1.0.0", "strip-bom-string": "^1.0.0" @@ -48,7 +48,7 @@ "front-matter": "^2.3.0", "gulp-format-md": "^1.0.0", "minimist": "^1.2.0", - "mocha": "^3.5.3", + "mocha": "^6.1.4", "toml": "^2.3.3", "vinyl": "^2.1.0", "write": "^1.0.3" diff --git a/test/vinyl-files.js b/test/vinyl-files.js index 3f43db8..15f9b5d 100644 --- a/test/vinyl-files.js +++ b/test/vinyl-files.js @@ -13,12 +13,12 @@ var matter = require('..'); describe('vinyl files', function() { it('should take a vinyl file', function() { - var file = new File({path: 'foo', contents: new Buffer('---\none: two\n---\nbar')}); + var file = new File({path: 'foo', contents: Buffer.from('---\none: two\n---\nbar')}); var actual = matter(file); assert.equal(actual.path, 'foo'); assert.deepEqual(actual.data, {one: 'two'}); assert.deepEqual(actual.content, 'bar'); - assert.deepEqual(actual.contents, new Buffer('---\none: two\n---\nbar')); + assert.deepEqual(actual.contents, Buffer.from('---\none: two\n---\nbar')); }); });