diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 959fd97..5596afc 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -10,6 +10,6 @@ We 💛 contributions! The rules for contributing to this org are few: ## Before Committing -1. Use at least Node.js v6.14.4 or higher. [NVM](https://github.com/creationix/nvm) can be handy for switching between Node versions. +1. Use at least Node.js v10 or higher. [NVM](https://github.com/creationix/nvm) can be handy for switching between Node versions. 1. Lint your changes via `npm run lint`. Fix any errors and warnings before committing. 1. Test your changes via `npm run test`. Only Pull Requests with passing tests will be accepted. diff --git a/README.md b/README.md index 1b10c9b..6bf6eb7 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Please consider [becoming a patron](https://www.patreon.com/shellscape) if you f ## Requirements -`postcss-values-parser` Node version v6.14.0+ and PostCSS v7.0.0+. +`postcss-values-parser` Node version v10+ and PostCSS v7.0.0+. ## Benefits diff --git a/package-lock.json b/package-lock.json index 441603a..677a9f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3382,11 +3382,6 @@ } } }, - "ip-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.1.0.tgz", - "integrity": "sha512-pKnZpbgCTfH/1NLIlOduP/V+WRXzC2MOz3Qo8xmxk8C5GudJLgK5QyLVXOSWy3ParAH7Eemurl3xjv/WXYFvMA==" - }, "irregular-plurals": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.2.0.tgz", @@ -3507,7 +3502,8 @@ "is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true }, "is-obj": { "version": "1.0.1", @@ -3603,12 +3599,9 @@ "dev": true }, "is-url-superb": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-3.0.0.tgz", - "integrity": "sha512-3faQP+wHCGDQT1qReM5zCPx2mxoal6DzbzquFlCYJLWyy4WPTved33ea2xFbX37z4NoriEwZGIYhFtx8RUB5wQ==", - "requires": { - "url-regex": "^5.0.0" - } + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-4.0.0.tgz", + "integrity": "sha512-GI+WjezhPPcbM+tqE9LnmsY5qqjwHzTvjJ36wxYX5ujNXefSUJ/T17r5bqDV8yLhcgB59KTPNOc9O9cmHTPWsA==" }, "is-windows": { "version": "1.0.2", @@ -6010,7 +6003,8 @@ "tlds": { "version": "1.203.1", "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.203.1.tgz", - "integrity": "sha512-7MUlYyGJ6rSitEZ3r1Q1QNV8uSIzapS8SmmhSusBuIc7uIxPPwsKllEP0GRp1NS6Ik6F+fRZvnjDWm3ecv2hDw==" + "integrity": "sha512-7MUlYyGJ6rSitEZ3r1Q1QNV8uSIzapS8SmmhSusBuIc7uIxPPwsKllEP0GRp1NS6Ik6F+fRZvnjDWm3ecv2hDw==", + "dev": true }, "tmp": { "version": "0.0.33", @@ -6138,15 +6132,6 @@ "prepend-http": "^2.0.0" } }, - "url-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/url-regex/-/url-regex-5.0.0.tgz", - "integrity": "sha512-O08GjTiAFNsSlrUWfqF1jH0H1W3m35ZyadHrGv5krdnmPPoxP27oDTqux/579PtaroiSGm5yma6KT1mHFH6Y/g==", - "requires": { - "ip-regex": "^4.1.0", - "tlds": "^1.203.0" - } - }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", diff --git a/package.json b/package.json index 23537c3..8da5ae9 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "engines": { - "node": ">=6.14.4" + "node": ">=10" }, "scripts": { "ci:coverage": "nyc npm run test && nyc report --reporter=text-lcov > coverage.lcov", @@ -35,9 +35,8 @@ ], "dependencies": { "color-name": "^1.1.4", - "is-url-superb": "^3.0.0", - "postcss": "^7.0.5", - "url-regex": "^5.0.0" + "is-url-superb": "^4.0.0", + "postcss": "^7.0.5" }, "devDependencies": { "@commitlint/cli": "^8.1.0", diff --git a/test/snapshots/func.test.js.md b/test/snapshots/func.test.js.md index c921298..c162a96 100644 --- a/test/snapshots/func.test.js.md +++ b/test/snapshots/func.test.js.md @@ -3514,7 +3514,7 @@ Generated by [AVA](https://avajs.dev). Word { isColor: false, isHex: false, - isUrl: true, + isUrl: false, isVariable: false, parent: [Circular], raws: { @@ -3638,7 +3638,7 @@ Generated by [AVA](https://avajs.dev). Word { isColor: false, isHex: false, - isUrl: true, + isUrl: false, isVariable: false, parent: [Circular], raws: { diff --git a/test/snapshots/func.test.js.snap b/test/snapshots/func.test.js.snap index eb310c1..b3b5b87 100644 Binary files a/test/snapshots/func.test.js.snap and b/test/snapshots/func.test.js.snap differ