Skip to content
Myr

Drop support for Node.js below 4

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent a0276c6 · Browse files · 5 files+11 added−39 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+11 added−39 removed

  • other:+11 added−39 removed

5 files+11 added−39 removed

modified:.github/workflows/ci.yml+4 added-24 removed
modified:.eslintrc.yml+3 added-1 removed
modified:appveyor.yml+2 added-13 removed
1environment:2 matrix:3 - nodejs_version: "0.10"4 - nodejs_version: "0.12"5 - nodejs_version: "1.8"6 - nodejs_version: "2.5"7 - nodejs_version: "3.3"3 - nodejs_version: "4.9"4 - nodejs_version: "5.12"5 - nodejs_version: "6.17"6 - nodejs_version: "7.10"
25 unmodified lines
32 %{ npm rm --silent --save-dev $_ }33 # Setup Node.js version-specific dependencies34 - ps: |35 # mocha for testing41 # - use 3.x for Node.js < 436 # - use 5.x for Node.js < 637 # - use 6.x for Node.js < 838 # - use 7.x for Node.js < 1039 # - use 8.x for Node.js < 1246 if ([int]$env:nodejs_version.split(".")[0] -lt 4) {47 npm install --silent --save-dev mocha@3.5.348 } elseif ([int]$env:nodejs_version.split(".")[0] -lt 6) {40 if ([int]$env:nodejs_version.split(".")[0] -lt 6) {41 npm install --silent --save-dev mocha@5.2.042 } elseif ([int]$env:nodejs_version.split(".")[0] -lt 8) {43 npm install --silent --save-dev mocha@6.2.244 } elseif ([int]$env:nodejs_version.split(".")[0] -lt 10) {
2 unmodified lines
47 npm install --silent --save-dev mocha@8.4.048 }49 - ps: |50 # supertest for http calls59 # - use 2.0.0 for Node.js < 451 # - use 3.4.2 for Node.js < 661 if ([int]$env:nodejs_version.split(".")[0] -lt 4) {62 npm install --silent --save-dev supertest@2.0.063 } elseif ([int]$env:nodejs_version.split(".")[0] -lt 6) {52 if ([int]$env:nodejs_version.split(".")[0] -lt 6) {53 npm install --silent --save-dev supertest@3.4.254 }55 # Update Node.js modules56 - ps: |
16 unmodified lines
modified:History.md+1 added
3 unmodified lines
4This incorporates all changes after 4.17.1 up to 4.17.2.56 * change:7 - query parser setting defaults to `'simple'`8 - Requires Node.js 4+9 - Use `mime-types` for file to content type mapping10 * deps: array-flatten@3.0.011 * deps: body-parser@2.0.0-beta.112 - `req.body` is no longer always initialized to `{}`
3646 unmodified lines
modified:package.json+1 added-1 removed
80 unmodified lines
81 "supertest": "6.1.6",82 "vhost": "~3.0.2"83 },84 "engines": {85 "node": ">= 0.10.0"85 "node": ">= 4"86 },87 "files": [88 "LICENSE",89 "History.md",
12 unmodified lines