Skip to content

Commit

Permalink
feat: react bump (#144)
Browse files Browse the repository at this point in the history
* feat: react bump

* feat: react `devDeps` bump

* chore: yarn reinstall & yarn dedupe

* fix(common): remove `eslint`

* feat: bump `@types/node`

* feat: bump `@types/react`

* feat(app-links): add `@types/tldjs`

* fix(upload): fix ts-error

* refactor(upload): type module

* refactor(upload): increase minor version

* refactor(upload): increase graphql version
  • Loading branch information
kirill-ivanovvv authored Sep 17, 2024
1 parent 8239f82 commit 9770fa1
Show file tree
Hide file tree
Showing 13 changed files with 1,751 additions and 1,683 deletions.
2,047 changes: 1,040 additions & 1,007 deletions .pnp.cjs

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
"packages/**/*"
],
"resolutions": {
"@emotion/react": "11.9.3",
"eslint": "8.18.0"
"@emotion/react": "11.9.3"
},
"dependencies": {
"@emotion/react": "11.9.3",
"csstype": "3.1.2"
},
"devDependencies": {
"@atls/code-runtime": "1.1.0",
"@types/node": "17.0.12",
"@types/node": "22.1.0",
"@types/testing-library__jest-dom": "5.14.2",
"typescript": "5.4.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api-auth-user/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@atls/react-user": "workspace:0.1.44",
"@types/react": "18.2.20",
"@types/react": "18.3.6",
"react": "^18.2.0"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/app-links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^7.0.2",
"@types/react": "18.2.20",
"@types/react": "18.3.6",
"@types/react-dom": "18.2.7",
"@types/testing-library__jest-dom": "^5.14.2",
"@types/tldjs": "2.3.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/identity-links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.3",
"@testing-library/react-hooks": "^7.0.2",
"@types/react": "18.2.20",
"@types/react": "18.3.6",
"@types/react-dom": "^18.2.7",
"@types/testing-library__jest-dom": "^5.14.1",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/identity-user-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@atls/react-user": "workspace:0.1.44",
"@types/react": "18.2.20",
"@types/react": "18.3.6",
"react": "18.2.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/kratos-browser-flows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.3",
"@types/events": "^3.0.0",
"@types/react": "18.2.20",
"@types/react": "18.3.6",
"@types/react-dom": "18.2.7",
"@types/testing-library__jest-dom": "^5.14.1",
"axios": "^0.21.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/payment-widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@emotion/react": "11.9.3",
"@emotion/styled": "11.9.3",
"@testing-library/react": "14.1.0",
"@types/react": "18.2.20",
"@types/react": "18.3.6",
"@types/react-dom": "18",
"@types/styled-system": "5.1.16",
"csstype": "3.1.2",
Expand Down
11 changes: 6 additions & 5 deletions packages/upload/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "@atls/react-upload",
"version": "0.0.3",
"version": "0.1.0",
"license": "BSD-3-Clause",
"main": "src/index.ts",
"type": "module",
"files": [
"dist"
],
Expand All @@ -16,13 +17,13 @@
"graphql-request": "^4.0.0"
},
"devDependencies": {
"@types/react": "18.2.20",
"graphql": "^16.3.0",
"react": "18.2.0"
"@types/react": "18.3.6",
"graphql": "16.9.0",
"react": "^18.2.0"
},
"peerDependencies": {
"graphql": "^16.3.0",
"react": "^17.0.1"
"react": "^18.2.0"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/upload/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './use-upload.hook'
export * from './use-upload.hook.js'
4 changes: 2 additions & 2 deletions packages/upload/src/use-upload.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GraphQLClient } from 'graphql-request'
import { gql } from 'graphql-request'
import { useMemo } from 'react'

import { useGatewayUrl } from './use-gateway-url.hook'
import { useGatewayUrl } from './use-gateway-url.hook.js'

const uploadMutation = gql`
mutation CreateUpload($input: CreateUploadInput!) {
Expand Down Expand Up @@ -42,12 +42,12 @@ export interface UseUploadProps {
export const useUpload = ({ bucket, endpoint: defaultEndpoint }: UseUploadProps) => {
const endpoint = useGatewayUrl(defaultEndpoint)

// eslint-disable-next-line consistent-return
const client = useMemo(() => {
if (endpoint)
return new GraphQLClient(endpoint, {
credentials: 'include',
})
return null
}, [endpoint]) as GraphQLClient

return async (file: File) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/user/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"postpack": "rm -rf dist"
},
"devDependencies": {
"@types/react": "18.2.20",
"@types/react": "18.3.6",
"react": "18.2.0"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 9770fa1

Please sign in to comment.