Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit e4dff9c

Browse files
committed
feat: drop typescript 3 and Node.js 10 support (#275)
* refactor: address all the typescript deprecations by using the factory * refactor: some of the statements are redundant. It is not necessary to write to write only properties. * refactor: remove deprecated typescript function calls in favor of the factory; replace @ts-ignores with proper code (microsoft/TypeScript#40263 (comment)) * refactor: use factory functions instead of deprecated functions * feat: bump peerDependencies version * dps: upgrade to latest typescript version * chore: replace rm with rimraf for cross platform support * chore: replace fixture tests with inline snapshot tests * docs: add notice about minimum TypeScript version. * chore: drop node 10 support
1 parent a632848 commit e4dff9c

File tree

10 files changed

+223
-198
lines changed

10 files changed

+223
-198
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
node-version: [10.x, 12.x, 14.x, 15.x]
11+
node-version: [12.x, 14.x, 15.x]
1212
steps:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v2

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ yarn add graphql relay-compiler --dev
1414
yarn add typescript relay-compiler-language-typescript --dev
1515
```
1616

17+
**Note:** Starting with version 14.0.0 relay-compiler-language-typescript requires a minimum TypeScript version of 4.2.3 being installed in your project.
18+
1719
## Configuration
1820

1921
### relay-compiler

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"lib"
3434
],
3535
"scripts": {
36-
"build": "rm -rf lib && tsc --project tsconfig.build.json",
36+
"build": "rimraf lib && tsc --project tsconfig.build.json",
3737
"lint": "tslint -c tslint.json --project tsconfig.json",
3838
"pr-check": "scripts/pr-check.sh",
3939
"prettier": "prettier --write '{src,types,test}/**/*.ts'",
@@ -98,18 +98,19 @@
9898
"relay-compiler": "^10.0.1",
9999
"relay-runtime": "^10.0.1",
100100
"relay-test-utils-internal": "^10.0.1",
101+
"rimraf": "^3.0.2",
101102
"ts-jest": "^26.4.4",
102103
"ts-node": "^9.1.1",
103104
"tslint": "^6.1.3",
104105
"tslint-config-prettier": "^1.18.0",
105-
"typescript": "4.1.5"
106+
"typescript": "4.2.3"
106107
},
107108
"peerDependencies": {
108-
"@types/react-relay": ">=7.0.0",
109-
"@types/relay-runtime": ">=6.0.7",
110-
"relay-compiler": ">=9.0.0",
111-
"relay-runtime": ">=9.0.0",
112-
"typescript": ">=3.6.4"
109+
"@types/react-relay": ">=7.0.17",
110+
"@types/relay-runtime": ">=10.1.8",
111+
"relay-compiler": ">=10.1.3",
112+
"relay-runtime": ">=10.1.3",
113+
"typescript": ">=4.2.3"
113114
},
114115
"publishConfig": {
115116
"registry": "https://registry.npmjs.org/"

0 commit comments

Comments
 (0)