Skip to content

Commit 217e077

Browse files
dr3nodkz
authored andcommitted
chore: remove node8 support
1 parent 9640fc1 commit 217e077

File tree

6 files changed

+2
-24
lines changed

6 files changed

+2
-24
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/es
22
/lib
3-
/node8

.flowconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[ignore]
22
<PROJECT_ROOT>/lib/.*
33
<PROJECT_ROOT>/es/.*
4-
<PROJECT_ROOT>/node8/.*
54
.*/node_modules/ajv.*
65
.*/node_modules/acorn.*
76
.*/node_modules/async.*

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ node_modules
4141
# Transpiled code
4242
/es
4343
/lib
44-
/node8
4544
/mjs
4645

4746
coverage

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ If this error occurs you can do one of the following:
4646
- Explicitly install core-js v2. E.g.
4747
- `yarn add core-js@2.6.11
4848
- Try referencing one of the non default imports:
49-
- `import { RelayNetworkLayer } from 'react-relay-network-modern/node8';`
5049
- `import { RelayNetworkLayer } from 'react-relay-network-modern/es';`
5150

5251
### Different builds
@@ -58,9 +57,6 @@ This library contains different builds for any purposes:
5857
// last 5 versions, ie 9, defaults
5958
import { RelayNetworkLayer } from 'react-relay-network-modern';
6059

61-
// For SSR on node 8 and above (native async/await)
62-
import { RelayNetworkLayer } from 'react-relay-network-modern/node8';
63-
6460
// Source code without Flowtype declarations
6561
import { RelayNetworkLayer } from 'react-relay-network-modern/es';
6662
```

babel.config.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,6 @@ module.exports = {
2020
es: {
2121
plugins: ['@babel/plugin-proposal-class-properties'],
2222
},
23-
node8: {
24-
presets: [
25-
[
26-
'@babel/preset-env',
27-
{
28-
targets: {
29-
node: '8.0.0',
30-
},
31-
modules: 'commonjs',
32-
},
33-
],
34-
],
35-
},
3623
test: {
3724
presets: [
3825
[

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
},
88
"files": [
99
"es",
10-
"lib",
11-
"node8"
10+
"lib"
1211
],
1312
"main": "lib/index.js",
1413
"types": "lib/index.d.ts",
@@ -86,10 +85,9 @@
8685
]
8786
},
8887
"scripts": {
89-
"build": "npm run build-lib && npm run build-es && npm run build-node8",
88+
"build": "npm run build-lib && npm run build-es",
9089
"build-lib": "rimraf lib && BABEL_ENV=lib babel src --ignore __tests__,__mocks__ -d lib && COPY_TO_FOLDER=lib npm run build-flow && COPY_TO_FOLDER=lib npm run build-dts ",
9190
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es && COPY_TO_FOLDER=es npm run build-flow && COPY_TO_FOLDER=es npm run build-dts",
92-
"build-node8": "rimraf node8 && BABEL_ENV=node8 babel src --ignore __tests__,__mocks__ -d node8 && COPY_TO_FOLDER=node8 npm run build-flow && COPY_TO_FOLDER=node8 npm run build-dts",
9391
"build-flow": "echo `$1` && find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`.flow; done",
9492
"build-dts": "echo `$1` && find ./src -name '*d.ts' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`; done",
9593
"lint": "npm run eslint && npm run tslint && npm run tscheck",

0 commit comments

Comments
 (0)