Skip to content

Commit b8bbb93

Browse files
authored
Merge pull request #16 from aboutbits/upgrade-package
Upgrade dev dependencies, clean up repository
2 parents 739436d + a8528ce commit b8bbb93

8 files changed

Lines changed: 3580 additions & 2441 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Test Package
22

33
on: push
44

5+
concurrency:
6+
group: ${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
test:
711
runs-on: ubuntu-22.04

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@
77

88
# Project
99
/node_modules
10+
11+
# Build
1012
/dist
13+
*.tsbuildinfo
14+
15+
# Cache
16+
.eslintcache

package-lock.json

Lines changed: 3521 additions & 2392 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,33 @@
22
"name": "@aboutbits/react-toolbox",
33
"version": "0.2.3",
44
"description": "Tools for React",
5+
"author": "About Bits",
6+
"license": "MIT",
7+
"homepage": "https://github.com/aboutbits/react-toolbox",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/aboutbits/react-toolbox"
11+
},
12+
"bugs": {
13+
"url": "https://github.com/aboutbits/react-toolbox/issues"
14+
},
15+
"keywords": [
16+
"react",
17+
"toolbox",
18+
"tooling",
19+
"tools"
20+
],
21+
"private": false,
22+
"publishConfig": {
23+
"access": "public"
24+
},
25+
"sideEffects": false,
526
"main": "dist/index.js",
627
"module": "dist/esm/index.js",
7-
"sideEffects": false,
28+
"files": [
29+
"readme.md",
30+
"dist/**/*"
31+
],
832
"engines": {
933
"npm": ">=8",
1034
"node": ">=16"
@@ -22,52 +46,28 @@
2246
"version": "npm run test && npm run lint && git add -A src",
2347
"postversion": "git push && git push --tags"
2448
},
25-
"repository": {
26-
"type": "git",
27-
"url": "git+https://github.com/aboutbits/react-toolbox"
28-
},
29-
"private": false,
30-
"keywords": [
31-
"react",
32-
"toolbox",
33-
"tooling",
34-
"tools"
35-
],
36-
"author": "About Bits",
37-
"license": "MIT",
38-
"bugs": {
39-
"url": "https://github.com/aboutbits/react-toolbox/issues"
40-
},
41-
"homepage": "https://github.com/aboutbits/react-toolbox#readme",
42-
"files": [
43-
"readme.md",
44-
"dist/**/*"
45-
],
46-
"publishConfig": {
47-
"access": "public"
48-
},
4949
"devDependencies": {
50-
"@testing-library/jest-dom": "^5.16.4",
51-
"@testing-library/react": "^13.4.0",
52-
"@types/css-mediaquery": "^0.1.1",
53-
"@types/jest": "^28.1.3",
54-
"@types/react": "^18.0.0",
55-
"@types/react-dom": "^18.0.0",
56-
"@typescript-eslint/eslint-plugin": "^5.30.0",
57-
"@typescript-eslint/parser": "^5.30.0",
50+
"@testing-library/jest-dom": "^6.4.2",
51+
"@testing-library/react": "^14.2.2",
52+
"@types/css-mediaquery": "^0.1.4",
53+
"@types/jest": "^29.5.12",
54+
"@types/react": "^18.2.69",
55+
"@types/react-dom": "^18.2.22",
56+
"@typescript-eslint/eslint-plugin": "^7.3.1",
57+
"@typescript-eslint/parser": "^7.3.1",
5858
"css-mediaquery": "^0.1.2",
59-
"eslint": "^8.18.0",
60-
"eslint-config-prettier": "^8.5.0",
61-
"eslint-plugin-import": "^2.26.0",
62-
"eslint-plugin-jest": "^26.5.3",
63-
"eslint-plugin-prettier": "^4.1.0",
64-
"jest": "^28.1.1",
65-
"jest-environment-jsdom": "^28.1.1",
66-
"prettier": "^2.7.1",
67-
"react": "^18.0.0",
68-
"react-dom": "^18.0.0",
69-
"ts-jest": "^28.0.5",
70-
"typescript": "^4.7.4"
59+
"eslint": "^8.57.0",
60+
"eslint-config-prettier": "^9.1.0",
61+
"eslint-plugin-import": "^2.29.1",
62+
"eslint-plugin-jest": "^27.9.0",
63+
"eslint-plugin-prettier": "^5.1.3",
64+
"jest": "^29.7.0",
65+
"jest-environment-jsdom": "^29.7.0",
66+
"prettier": "^3.2.5",
67+
"react": "^18.2.0",
68+
"react-dom": "^18.2.0",
69+
"ts-jest": "^29.1.2",
70+
"typescript": "^5.4.3"
7171
},
7272
"peerDependencies": {
7373
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"

src/async-data/AsyncView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Props<Data, Error> = {
1414
}
1515

1616
const AsyncView = <Data, Error>(
17-
props: Props<Data, Error>
17+
props: Props<Data, Error>,
1818
// The `ReactElement<any, any> | null` type is for React 17 compatibility (see type FunctionComponent). With React 18 it can be a ReactNode and we can remove the Fragment wrappers.
1919
): ReactElement<any, any> | null => {
2020
const {

src/async-data/__test__/AsyncView.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function renderAsyncView(data?: Data, error?: Error): RenderResult {
3030
renderLoading={<Loading />}
3131
renderSuccess={(data) => <Success data={data} />}
3232
renderError={(error) => <Error error={error} />}
33-
/>
33+
/>,
3434
)
3535
}
3636

src/location-provider/getCurrentLocation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const getCurrentLocation = (
2-
highAccuracy = false
2+
highAccuracy = false,
33
): Promise<GeolocationPosition> => {
44
return new Promise<GeolocationPosition>((resolve, reject) => {
55
const successCallback = (position: GeolocationPosition): void => {

src/useMatchMediaQuery/__test__/useMatchMediaQuery.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('useReactSimpleMatchMedia', () => {
3939

4040
it('should be visible if between matches', () => {
4141
const { getByText } = renderTestComponent(
42-
'(min-width : 500px) and (max-width: 600px)'
42+
'(min-width : 500px) and (max-width: 600px)',
4343
)
4444
expect(getByText(/visible/i)).toBeInTheDocument()
4545
})

0 commit comments

Comments
 (0)