Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-godefroy-dev committed Dec 10, 2023
1 parent c2a9210 commit 17b2d2d
Show file tree
Hide file tree
Showing 7 changed files with 189 additions and 56 deletions.
46 changes: 46 additions & 0 deletions apps/app/codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
schema: 'https://ng-bike-api.vercel.app/api/graphql',
documents: './src/**/*.gql',
generates: {
'src/libs/ngBike/client/types.gen.ts': {
plugins: ['typescript', 'typescript-operations'],
config: {
avoidOptionals: {
field: true,
inputValue: false,
object: false,
defaultValue: false
}
}
},
'src/libs/ngBike/client/reactQuery.gen.ts': {
plugins: [
{
add: {
content: `
/* eslint-disable @tanstack/query/prefer-query-object-syntax */
import * as Types from "./types.gen"
export type QueryError = Error | import("graphql-request").ClientError
`
}
}, {'typescript-react-query': {
errorType: "QueryError",
exposeQueryKeys: true,
fetcher: {
func: './graphqlClient#fetcher'
}
}}],
config: {
typesPrefix: 'Types.'
}
}
},
config: {
skipTypename: true,
},
};
export default config;


34 changes: 0 additions & 34 deletions apps/app/codegen.yml

This file was deleted.

6 changes: 4 additions & 2 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@react-native-community/netinfo": "9.3.10",
"@react-navigation/native": "6.1.9",
"@react-navigation/native-stack": "6.9.17",
"@tanstack/react-query": "5.13.4",
"@tanstack/react-query": "4.32.6",
"expo": "^49.0.21",
"expo-asset": "~8.10.1",
"expo-blur": "~12.4.1",
Expand Down Expand Up @@ -63,6 +63,7 @@
"@expo/metro-config": "0.10.7",
"@graphql-codegen/add": "5.0.0",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@graphql-codegen/typescript": "4.0.1",
"@graphql-codegen/typescript-operations": "4.0.1",
"@graphql-codegen/typescript-react-query": "6.0.0",
Expand All @@ -76,7 +77,8 @@
"metro": "0.80.1",
"metro-resolver": "0.80.1",
"ts-node": "10.9.2",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"typescript-graphql-request": "^4.4.6"
},
"expo": {
"install": {
Expand Down
1 change: 1 addition & 0 deletions apps/app/src/hooks/useStations/useStations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
export const useStations = () => {
const { userLocation } = useLocationStore();
const { data, ...restQueryResult } = useStationsQuery<Station[]>(undefined, {
queryKey: ['stations'],
refetchInterval: 1000 * 60, // 1 minute
select: (res) => {
const stations = values(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const WeatherIndicator = ({ style }: WeatherIndicatorProps) => {
const { data } = useWeatherQuery(
{ lat: `${latitude}`, lon: `${longitude}` },
{
queryKey: ['weather'],
refetchInterval: 1000 * 60 * 30, // 30 minutes,
},
);
Expand Down
7 changes: 7 additions & 0 deletions apps/blog/src/mocks/prismicImage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { ImageFieldImage } from '@prismicio/client';

export const prismicImage: ImageFieldImage = {
id: "YBvZx2Z5Q0qX8QY9",
edit: {
x: 0,
y: 0,
zoom: 1,
background: "transparent"
},
dimensions: { width: 2304, height: 1024 },
alt: null,
copyright: null,
Expand Down
Loading

1 comment on commit 17b2d2d

@vercel
Copy link

@vercel vercel bot commented on 17b2d2d Dec 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Resource is limited - try again in 20 hours (more than 100, code: "api-deployments-free-per-day").

Please sign in to comment.