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
Provenance
- Commit
f6db4ee- Tree
cc89cf3- Author
Douglas Christopher Wilson <doug@somethingdoug.com>- Committer
Douglas Christopher Wilson <doug@somethingdoug.com>- Parent
a0276c6
5 files changed+11 added−39 removed
modified:.github/workflows/ci.yml+4 added-24 removed
9 unmodified lines10111213141516171814151617185 unmodified lines24252627323334282930313637383940414243444546474849505132333435105 unmodified linesExpand all9 unmodified lines strategy: fail-fast: false matrix: name: - Node.js 0.10 - Node.js 0.12 - io.js 1.x - io.js 2.x - io.js 3.x - Node.js 4.0 - Node.js 4.x - Node.js 5.x - Node.js 6.x - Node.js 7.x5 unmodified lines - Node.js 13.x - Node.js 14.x
include: - name: Node.js 0.10 node-version: "0.10" npm-i: mocha@3.5.3 supertest@2.0.0 - name: Node.js 4.0 node-version: "4.0" npm-i: mocha@5.2.0 supertest@3.4.2
- name: Node.js 0.12 node-version: "0.12" npm-i: mocha@3.5.3 supertest@2.0.0
- name: io.js 1.x node-version: "1.8" npm-i: mocha@3.5.3 supertest@2.0.0
- name: io.js 2.x node-version: "2.5" npm-i: mocha@3.5.3 supertest@2.0.0
- name: io.js 3.x node-version: "3.3" npm-i: mocha@3.5.3 supertest@2.0.0
- name: Node.js 4.x node-version: "4.9" npm-i: mocha@5.2.0 supertest@3.4.2
105 unmodified linesExpand allmodified:.eslintrc.yml+3 added-1 removed
1223456782 unmodified linesroot: true
env: es6: true node: truerules: eol-last: error eqeqeq: [error, allow-null] indent: [error, 2, { MemberExpression: "off", SwitchCase: 1 }]2 unmodified linesmodified:appveyor.yml+2 added-13 removed
1 environment: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 lines32 %{ 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 lines47 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 linesmodified:History.md+1 added
3 unmodified lines4 This incorporates all changes after 4.17.1 up to 4.17.2.5 6 * 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 linesmodified:package.json+1 added-1 removed
80 unmodified lines81 "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