Skip to content

Commit 2bd11a4

Browse files
committed
chore: upgrade dependencies
1 parent 5e81f61 commit 2bd11a4

File tree

6 files changed

+3589
-2696
lines changed

6 files changed

+3589
-2696
lines changed

CustomTypes.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type StringWithAutocomplete<T> = T | (string & Record<never, never>);

package.json

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"name": "react-native-tableview-simple",
33
"description": "React Native component for TableView made with pure CSS",
44
"homepage": "https://github.com/Purii/react-native-tableview-simple",
5-
"version": "4.4.0",
5+
"version": "4.4.1",
66
"author": "Patrick Böder <[email protected]>",
77
"scripts": {
88
"clean": "watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn",
99
"jest": "jest ./src/",
10-
"eslint:ci": "eslint index.js ./src/ --ext .js,.jsx,.tsx,.ts",
11-
"eslint:fix": "eslint index.js ./src/ --fix --ext .js,.jsx,.tsx,.ts",
10+
"eslint:ci": "eslint index.js ./src/",
11+
"eslint:fix": "eslint index.js ./src/",
1212
"test:ci": "yarn run eslint:ci && yarn run jest && yarn tsc --noEmit",
1313
"tsc": "tsc --skipLibCheck",
1414
"build:module": "yarn tsc --outDir ./lib/module --sourceMap",
@@ -59,29 +59,30 @@
5959
"url": "[email protected]:Purii/react-native-tableview-simple.git"
6060
},
6161
"devDependencies": {
62-
"@commitlint/cli": "17.4.2",
63-
"@commitlint/config-conventional": "17.4.2",
64-
"@types/jest": "29.4.0",
65-
"@types/react": "18.0.28",
66-
"@types/react-native": "0.71.2",
67-
"@types/react-test-renderer": "18.0.0",
68-
"@typescript-eslint/eslint-plugin": "5.51.0",
69-
"@typescript-eslint/parser": "5.51.0",
70-
"babel-jest": "29.4.2",
62+
"@commitlint/cli": "19.3.0",
63+
"@commitlint/config-conventional": "19.2.2",
64+
"@types/jest": "29.5.12",
65+
"@types/react": "18.3.3",
66+
"@types/react-native": "0.73.0",
67+
"@types/react-test-renderer": "18.3.0",
68+
"@typescript-eslint/eslint-plugin": "7.12.0",
69+
"@typescript-eslint/parser": "7.12.0",
70+
"babel-jest": "29.7.0",
7171
"babel-preset-react-native": "4.0.1",
72-
"eslint": "8.34.0",
73-
"eslint-config-prettier": "8.6.0",
74-
"eslint-plugin-prettier": "4.2.1",
75-
"eslint-plugin-react": "7.32.2",
76-
"husky": "8.0.3",
77-
"jest": "29.4.2",
78-
"lint-staged": "13.1.1",
79-
"prettier": "2.8.4",
80-
"react": "18.2.0",
81-
"react-native": "0.71.2",
82-
"react-test-renderer": "18.2.0",
83-
"rimraf": "4.1.2",
72+
"eslint": "8.57.0",
73+
"eslint-config-prettier": "8.10.0",
74+
"eslint-plugin-prettier": "5.1.3",
75+
"eslint-plugin-react": "7.34.2",
76+
"husky": "9.0.11",
77+
"jest": "29.7.0",
78+
"lint-staged": "15.2.5",
79+
"metro-react-native-babel-preset": "^0.77.0",
80+
"prettier": "3.3.1",
81+
"react": "18.3.1",
82+
"react-native": "0.74.2",
83+
"react-test-renderer": "18.3.1",
84+
"rimraf": "5.0.7",
8485
"standard-version": "9.5.0",
85-
"typescript": "4.9.5"
86+
"typescript": "5.4.5"
8687
}
8788
}

src/components/Cell.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface CellInterface {
2323
| 'Detail'
2424
| 'DetailDisclosure'
2525
| 'Checkmark';
26-
accessoryColor?: ViewStyle['borderColor'] | TextStyle['color'];
26+
accessoryColor?: ViewStyle['borderColor'];
2727
accessoryColorDisclosureIndicator?: ViewStyle['borderColor'];
2828
allowFontScaling?: boolean;
2929
backgroundColor?: ViewStyle['backgroundColor'];
@@ -42,9 +42,9 @@ export interface CellInterface {
4242
highlightUnderlayColor?: ViewStyle['backgroundColor'];
4343
image?: React.ReactElement;
4444
isDisabled?: boolean;
45-
onPress?: () => void | Promise<void> | false;
46-
onLongPress?: () => void | Promise<void> | false;
47-
onPressDetailAccessory?: () => void | Promise<void> | false;
45+
onPress?: () => void | false;
46+
onLongPress?: () => void | false;
47+
onPressDetailAccessory?: () => void | false;
4848
onUnHighlightRow?(): void;
4949
onHighlightRow?(): void;
5050
leftDetailColor?: TextStyle['color'];

src/components/TableView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ import {
77
ViewStyle,
88
} from 'react-native';
99
import { THEMES, ThemeContext, THEME_APPEARANCE } from './Theme';
10+
import { StringWithAutocomplete } from '../../CustomTypes';
1011

1112
export interface TableViewInterface {
1213
children?: React.ReactNode;
13-
appearance?: 'auto' | 'dark' | 'light' | string;
14+
appearance?: StringWithAutocomplete<'auto' | 'dark' | 'light'>;
1415
customAppearances?: {
1516
[key: string]: THEME_APPEARANCE;
1617
};

src/components/Theme.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { TextStyle, ViewStyle } from 'react-native';
33

44
export interface THEME_APPEARANCE {
55
colors: {
6-
background: ViewStyle['backgroundColor'] | TextStyle['color'];
7-
muted: ViewStyle['backgroundColor'] | TextStyle['color'];
8-
separatorColor: ViewStyle['backgroundColor'] | TextStyle['color'];
9-
body: ViewStyle['backgroundColor'] | TextStyle['color'];
10-
primary: ViewStyle['backgroundColor'] | TextStyle['color'];
11-
secondary: ViewStyle['backgroundColor'] | TextStyle['color'];
6+
background: ViewStyle['backgroundColor'];
7+
muted: ViewStyle['backgroundColor'];
8+
separatorColor: ViewStyle['backgroundColor'];
9+
body: TextStyle['color'];
10+
primary: TextStyle['color'];
11+
secondary: TextStyle['color'];
1212
};
1313
}
1414

0 commit comments

Comments
 (0)