Skip to content

Commit 2d53996

Browse files
committed
support node.js lts policy
1 parent 9b6ab03 commit 2d53996

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
nodejs: [14, 16]
11+
nodejs: [12.x, 14.x, 16.x]
1212
steps:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v1

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,7 @@ maxmemory-policy allkeys-lru
132132
```
133133

134134
This will limit the cache to 10MB and removes the least recently used keys from the cache.
135+
136+
# Node.js support
137+
138+
We test this software against **latest** major releases of the [Node.js LTS policy](https://github.com/nodejs/Release). `Current` is included to catch regression earlier.

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"main": "dist/src/index.js",
2323
"types": "dist/src/index.d.ts",
2424
"engines": {
25-
"node": ">=14"
25+
"node": ">=12"
2626
},
2727
"keywords": [
2828
"apollo",
@@ -60,9 +60,10 @@
6060
"undici": "^4.1.0"
6161
},
6262
"devDependencies": {
63+
"@tsconfig/node12": "^1.0.9",
6364
"@types/node": "^14.17.3",
64-
"apollo-datasource-rest": "^0.14.0",
6565
"abort-controller": "^3.0.0",
66+
"apollo-datasource-rest": "^0.14.0",
6667
"ava": "^3.15.0",
6768
"h2url": "^0.2.0",
6869
"nock": "^13.1.0",

tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2+
"extends": "@tsconfig/node12/tsconfig.json",
23
"compilerOptions": {
34
"outDir": "dist",
45
"composite": true,
5-
"target": "es2020", // Node.js 14
66
"module": "commonjs",
77
"moduleResolution": "node",
88
"esModuleInterop": true,
@@ -18,7 +18,6 @@
1818
"noUnusedParameters": true,
1919
"noUnusedLocals": true,
2020
"forceConsistentCasingInFileNames": true,
21-
"lib": ["es2020"],
2221
"baseUrl": "."
2322
},
2423
"include": ["src", "test"]

0 commit comments

Comments
 (0)