Skip to content

Commit 5f6cbcb

Browse files
committed
feat: require Node.js >=10.13
BREAKING CHANGE: Require Node.js >= 10.13
1 parent 67bf9fd commit 5f6cbcb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language: node_js
33
node_js:
44
- 12
55
- 10
6-
- 8
76

87
branches:
98
only:

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const escapeRegExp = require('lodash.escaperegexp');
42
const capitalize = require('lodash.capitalize');
53
const isString = require('lodash.isstring');
@@ -9,6 +7,8 @@ const hostConfig = require('./lib/hosts-config');
97

108
const {hasOwnProperty} = Object.prototype;
119

10+
/* eslint prefer-named-capture-group: "off" */
11+
1212
const FENCE_BLOCK_REGEXP = /^(([ \t]*`{3,4})([^\n]*)([\s\S]+?)(^[ \t]*\2))/gm;
1313
const CODE_BLOCK_REGEXP = /(`(?![\\]))((?:.(?!\1(?![\\])))*.?)\1/g;
1414
const HTML_CODE_BLOCK_REGEXP = /(<code)+?((?!(<code|<\/code>)+?)[\S\s])*(<\/code>)+?/gim;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"xo": "^0.25.0"
2222
},
2323
"engines": {
24-
"node": ">=8.3"
24+
"node": ">=10.13"
2525
},
2626
"files": [
2727
"lib",

0 commit comments

Comments
 (0)