Skip to content

Commit 66cbc67

Browse files
committed
Stop officially supporting Node v10 (still works, but may break in future)
Node v10 is now past its final end-of-life date and is unsupported. Nothing breaks with Node v10 right now, but things may begin breaking in any future release with no warning, and the tests no longer include workarounds to handle v10 in test case code.
1 parent 0d40a27 commit 66cbc67

File tree

5 files changed

+8
-22
lines changed

5 files changed

+8
-22
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
strategy:
99
matrix:
10-
node-version: [10.x, 12.x, 14.x, v16.2, '*']
10+
node-version: [12.x, 14.x, v16.2, '*']
1111

1212
steps:
1313
- uses: actions/checkout@v2

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"webpack": "^4.46.0"
119119
},
120120
"engines": {
121-
"node": ">=10.0.0"
121+
"node": ">=12.0.0"
122122
},
123123
"dependencies": {
124124
"@graphql-tools/schema": "^7.1.5",

test/integration/proxy.spec.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ import {
2020
startDnsServer,
2121
destroyable,
2222
DestroyableServer,
23-
H2_TLS_ON_TLS_SUPPORTED,
24-
TLS_MIN_VERSION_SUPPORTED,
25-
ZLIB_BROTLI_AVAILABLE
23+
H2_TLS_ON_TLS_SUPPORTED
2624
} from "../test-utils";
2725
import { generateCACertificate, CA } from "../../src/util/tls";
2826
import { isLocalIPv6Available } from "../../src/util/socket-util";
@@ -740,9 +738,7 @@ nodeOnly(() => {
740738
let oldServerPort: number;
741739
let oldServer: DestroyableServer;
742740

743-
beforeEach(async function () {
744-
if (!semver.satisfies(process.version, TLS_MIN_VERSION_SUPPORTED)) this.skip();
745-
741+
beforeEach(async () => {
746742
const caKey = await fs.readFile('./test/fixtures/test-ca.key');
747743
const caCert = await fs.readFile('./test/fixtures/test-ca.pem');
748744
const ca = new CA(caKey, caCert, 1024);
@@ -2125,9 +2121,7 @@ nodeOnly(() => {
21252121
});
21262122
});
21272123

2128-
it("can update a JSON body while handling encoding automatically", async function () {
2129-
if (!semver.satisfies(process.version, ZLIB_BROTLI_AVAILABLE)) this.skip();
2130-
2124+
it("can update a JSON body while handling encoding automatically", async () => {
21312125
await server.anyRequest().thenPassThrough({
21322126
transformResponse: {
21332127
updateHeaders: {

test/integration/subscriptions/tls-error-events.spec.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ describe("TLS error subscriptions", () => {
8787

8888
expect(tlsError.failureCause).to.be.oneOf([
8989
// Depends on specific client behaviour:
90-
'reset', // Node 12
91-
'closed', // Node 10
90+
'reset', // Node 12+
9291
'cert-rejected' // Chrome
9392
]);
9493
expect(tlsError.hostname).to.equal('localhost');
@@ -119,8 +118,7 @@ describe("TLS error subscriptions", () => {
119118

120119
expect(tlsError.failureCause).to.be.oneOf([
121120
// Depends on specific client behaviour:
122-
'reset', // Node 12
123-
'closed', // Node 10
121+
'reset', // Node 12+
124122
'cert-rejected' // Chrome
125123
]);
126124

@@ -146,11 +144,7 @@ describe("TLS error subscriptions", () => {
146144

147145
const tlsError = await seenTlsErrorPromise;
148146

149-
expect(tlsError.failureCause).to.be.oneOf([
150-
// Depends on specific client behaviour:
151-
'reset', // Node 12+
152-
'closed', // Node 10-
153-
]);
147+
expect(tlsError.failureCause).to.be.equal('reset');
154148
expect(tlsError.hostname).to.equal('localhost');
155149
expect(tlsError.remoteIpAddress).to.equal('::ffff:127.0.0.1');
156150
expect(tlsError.remotePort).to.be.greaterThan(0);

test/test-utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ export async function startDnsServer(callback: (question: dns2.DnsQuestion) => s
196196
}
197197

198198
export const H2_TLS_ON_TLS_SUPPORTED = ">=12.17";
199-
export const TLS_MIN_VERSION_SUPPORTED = ">=12";
200-
export const ZLIB_BROTLI_AVAILABLE = ">=12";
201199

202200
type Http2ResponseHeaders = http2.IncomingHttpHeaders & http2.IncomingHttpStatusHeader;
203201

0 commit comments

Comments
 (0)