From d64adddcf99a09c6c7df05eea3f4233079da83dd Mon Sep 17 00:00:00 2001 From: VincentBel Date: Mon, 4 May 2020 09:33:06 +0800 Subject: [PATCH] chore: require Node.js >= 10 BREAKING CHANGE: Require Node.js >= 10 --- .travis.yml | 5 +++-- index.js | 6 +++--- package.json | 3 +++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 631fd02..5f554da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,9 @@ cache: notifications: email: false node_js: - - '6' - - '8' + - '10' + - '12' + - '14' before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH="$HOME/.yarn/bin:$PATH" diff --git a/index.js b/index.js index 42da50a..1bcbde9 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,8 @@ 'use strict' -var visit = require('unist-util-visit') -var is = require('unist-util-is') -var pangu = require('pangu') +const visit = require('unist-util-visit') +const is = require('unist-util-is') +const pangu = require('pangu') // List of Markdown AST: // AST Explorer: diff --git a/package.json b/package.json index 0dc56cb..9b6fb76 100644 --- a/package.json +++ b/package.json @@ -50,5 +50,8 @@ "src/**/*.js", "index.js" ] + }, + "engines": { + "node": ">=10" } }