|
1 | 1 | { |
2 | 2 | "name": "react-infinite-scroll-component", |
3 | | - "version": "6.1.1", |
| 3 | + "version": "7.0.0", |
4 | 4 | "description": "An Infinite Scroll component in react.", |
| 5 | + "engines": { |
| 6 | + "node": ">=18.18.0" |
| 7 | + }, |
5 | 8 | "source": "src/index.tsx", |
6 | 9 | "main": "dist/index.js", |
7 | 10 | "unpkg": "dist/index.umd.js", |
|
18 | 21 | "prettier:check": "prettier --check 'src/**/*'", |
19 | 22 | "prettify": "prettier --write 'src/**/*'", |
20 | 23 | "ts-check": "tsc -p tsconfig.json --noEmit", |
21 | | - "test": "jest" |
| 24 | + "test": "jest", |
| 25 | + "prepare": "husky" |
22 | 26 | }, |
23 | 27 | "repository": { |
24 | 28 | "type": "git", |
|
39 | 43 | }, |
40 | 44 | "homepage": "https://github.com/ankeetmaini/react-infinite-scroll-component#readme", |
41 | 45 | "peerDependencies": { |
42 | | - "react": ">=16.0.0" |
| 46 | + "react": "^17.0.0", |
| 47 | + "react-dom": "^17.0.0" |
43 | 48 | }, |
44 | 49 | "devDependencies": { |
45 | | - "@babel/core": "^7.6.2", |
| 50 | + "@babel/core": "^7.20.0", |
46 | 51 | "@storybook/addon-actions": "^5.2.1", |
47 | 52 | "@storybook/addon-info": "^5.2.1", |
48 | 53 | "@storybook/addon-links": "^5.2.1", |
49 | 54 | "@storybook/addons": "^5.2.1", |
50 | | - "@storybook/react": "^5.2.1", |
51 | | - "@testing-library/react": "^9.2.0", |
52 | | - "@types/jest": "^24.0.18", |
53 | | - "@types/react": "^16.9.2", |
54 | | - "@types/react-dom": "^16.9.1", |
| 55 | + "@storybook/react": "^7.0.0", |
| 56 | + "@testing-library/react": "^12.1.5", |
| 57 | + "@types/jest": "^29.5.14", |
| 58 | + "@types/react": "^17.0.0", |
| 59 | + "@types/react-dom": "^17.0.0", |
55 | 60 | "@types/storybook__react": "^4.0.2", |
56 | 61 | "@types/throttle-debounce": "^2.1.0", |
57 | | - "@typescript-eslint/eslint-plugin": "^2.3.2", |
58 | | - "@typescript-eslint/parser": "^2.3.2", |
| 62 | + "@typescript-eslint/eslint-plugin": "^8.50.1", |
| 63 | + "@typescript-eslint/parser": "^8.50.1", |
59 | 64 | "awesome-typescript-loader": "^5.2.1", |
60 | 65 | "babel-loader": "^8.0.6", |
61 | | - "eslint": "^6.5.1", |
62 | | - "eslint-config-prettier": "^6.3.0", |
63 | | - "eslint-plugin-react": "^7.15.0", |
64 | | - "husky": ">=1", |
65 | | - "jest": "^24.9.0", |
66 | | - "lint-staged": ">=8", |
67 | | - "prettier": "1.18.2", |
68 | | - "react": "^16.10.1", |
| 66 | + "eslint": "^8", |
| 67 | + "eslint-config-prettier": "^10.1.8", |
| 68 | + "eslint-plugin-react": "^7.37.5", |
| 69 | + "husky": "^9.0.0", |
| 70 | + "jest": "^29.7.0", |
| 71 | + "jest-environment-jsdom": "^29.7.0", |
| 72 | + "lint-staged": "^15.0.0", |
| 73 | + "prettier": "^2.8.0", |
| 74 | + "react": "^17.0.2", |
69 | 75 | "react-docgen-typescript-loader": "^3.2.1", |
70 | | - "react-dom": "^16.10.1", |
| 76 | + "react-dom": "^17.0.2", |
71 | 77 | "rimraf": "^3.0.0", |
72 | 78 | "rollup": "^1.26.3", |
73 | 79 | "rollup-plugin-node-resolve": "^5.2.0", |
74 | 80 | "rollup-plugin-typescript2": "^0.25.2", |
75 | | - "ts-jest": "^24.1.0", |
76 | | - "typescript": "^3.7.2" |
| 81 | + "ts-jest": "^29.4.6", |
| 82 | + "typescript": "^4.9.0" |
77 | 83 | }, |
78 | 84 | "dependencies": { |
79 | 85 | "throttle-debounce": "^2.1.0" |
80 | 86 | }, |
81 | | - "husky": { |
82 | | - "hooks": { |
83 | | - "pre-commit": "yarn run ts-check && lint-staged" |
84 | | - } |
85 | | - }, |
86 | 87 | "lint-staged": { |
87 | 88 | "*.{js,css,json,md}": [ |
88 | | - "prettier --write", |
89 | | - "git add" |
90 | | - ], |
91 | | - "*.js": [ |
92 | | - "prettier --write", |
93 | | - "eslint --fix", |
94 | | - "git add" |
| 89 | + "prettier --write" |
95 | 90 | ], |
96 | 91 | "*.{ts,tsx}": [ |
97 | 92 | "prettier --write", |
98 | | - "eslint --fix", |
99 | | - "git add" |
| 93 | + "eslint --fix" |
100 | 94 | ] |
101 | 95 | } |
102 | 96 | } |
0 commit comments