Skip to content

Commit

Permalink
chore!: Drop support for node <6 & bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jan 27, 2021
1 parent 0572484 commit 896c0c0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 38 deletions.
4 changes: 0 additions & 4 deletions .ci/.azure-pipelines-steps.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
steps:
- script: npm i -g npm@$(npm_version)
displayName: Use legacy npm version $(npm_version)
condition: ne(variables['npm_version'], '')

- task: NodeTool@0
inputs:
versionSpec: '$(node_version)'
Expand Down
21 changes: 0 additions & 21 deletions .ci/.azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ jobs:
node_version: 8
Node_v6:
node_version: 6
Node_v4:
node_version: 4
Node_v0_12:
node_version: 0.12
Node_v0_10:
node_version: 0.10
steps:
- template: .azure-pipelines-steps.yml

Expand All @@ -36,15 +30,6 @@ jobs:
node_version: 8
Node_v6:
node_version: 6
Node_v4:
node_version: 4
npm_version: 2
Node_v0_12:
node_version: 0.12
npm_version: 2
Node_v0_10:
node_version: 0.10
npm_version: 2
steps:
- template: .azure-pipelines-steps.yml

Expand All @@ -60,12 +45,6 @@ jobs:
node_version: 8
Node_v6:
node_version: 6
Node_v4:
node_version: 4
Node_v0_12:
node_version: 0.12
Node_v0_10:
node_version: 0.10
steps:
- template: .azure-pipelines-steps.yml

Expand Down
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ node_js:
- '10'
- '8'
- '6'
- '4'
- '0.12'
- '0.10'
after_script:
- npm run coveralls
3 changes: 0 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
environment:
matrix:
# node.js
- nodejs_version: "0.10"
- nodejs_version: "0.12"
- nodejs_version: "4"
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "10"
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var isGlob = require('is-glob');
var pathDirname = require('path-dirname');
var pathPosixDirname = require('path').posix.dirname;
var isWin32 = require('os').platform() === 'win32';

var slash = '/';
Expand All @@ -26,7 +26,7 @@ module.exports = function globParent(str) {

// remove path parts that are globby
do {
str = pathDirname.posix(str);
str = pathPosixDirname(str);
} while (isGlob(str) || globby.test(str));

// remove escape chars and return result
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"repository": "gulpjs/glob-parent",
"license": "ISC",
"engines": {
"node": ">= 0.10"
"node": ">= 6"
},
"main": "index.js",
"files": [
Expand All @@ -25,16 +25,15 @@
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"dependencies": {
"is-glob": "^4.0.1",
"path-dirname": "^1.0.2"
"is-glob": "^4.0.1"
},
"devDependencies": {
"coveralls": "github:phated/node-coveralls#2.x",
"eslint": "^2.13.1",
"eslint-config-gulp": "^3.0.1",
"expect": "^1.20.2",
"mocha": "^3.5.3",
"nyc": "^10.3.2"
"mocha": "^6.0.2",
"nyc": "^13.3.0"
},
"keywords": [
"glob",
Expand Down

0 comments on commit 896c0c0

Please sign in to comment.