Skip to content

Commit 69d4e94

Browse files
committed
1.2.7 - Add Typscript Type Definitions
1 parent 07daf3f commit 69d4e94

File tree

8 files changed

+1620
-12
lines changed

8 files changed

+1620
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.2.7
4+
5+
- Imported types from Definitely Typed to repo
6+
- Upgraded dependency for Scarf
7+
38
## 1.2.6
49

510
- Fixed an issue where `isFetching` could be `true` when a falsy query key is supplied

jest.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2-
collectCoverage: true,
3-
coverageReporters: ["json", "lcov", "text", "clover", "text-summary"]
2+
collectCoverage: true,
3+
coverageReporters: ['json', 'lcov', 'text', 'clover', 'text-summary'],
4+
testPathIgnorePatterns: ['<rootDir>/types/'],
45
}

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "react-query",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
55
"author": "tannerlinsley",
66
"license": "MIT",
77
"repository": "tannerlinsley/react-query",
88
"main": "index.js",
99
"module": "dist/react-query.mjs",
10+
"types": "types",
1011
"sideEffects": false,
1112
"scripts": {
1213
"test": "is-ci \"test:ci\" \"test:dev\"",
@@ -22,13 +23,16 @@
2223
"releaseNext": "yarn publish --tag next",
2324
"format": "prettier {src,src/**,example/src,example/src/**}/*.{md,js,jsx,tsx} --write",
2425
"doctoc": "npx doctoc --maxlevel 2 README.md",
25-
"postinstall": "node ./scripts/postinstall.js || exit 0"
26+
"postinstall": "node ./scripts/postinstall.js || exit 0",
27+
"dtslint": "dtslint types"
2628
},
2729
"files": [
28-
"dist"
30+
"dist",
31+
"types"
2932
],
3033
"dependencies": {
31-
"@scarf/scarf": "^0.1.3"
34+
"@scarf/scarf": "^0.1.3",
35+
"ts-toolbelt": "^6.4.2"
3236
},
3337
"peerDependencies": {
3438
"react": "^16.6.3"
@@ -45,6 +49,7 @@
4549
"babel-jest": "^24.9.0",
4650
"babel-plugin-transform-async-to-promises": "^0.8.15",
4751
"cross-env": "^5.1.4",
52+
"dtslint": "^3.4.1",
4853
"eslint": "5.x",
4954
"eslint-config-prettier": "^4.3.0",
5055
"eslint-config-react-app": "^4.0.1",

0 commit comments

Comments
 (0)