Skip to content

Commit

Permalink
chore: update dependencies (#101)
Browse files Browse the repository at this point in the history
* update

* use catalog

* eslint linting
  • Loading branch information
lynxtaa authored Dec 29, 2024
1 parent afda17b commit 731c5e1
Show file tree
Hide file tree
Showing 11 changed files with 1,243 additions and 1,436 deletions.
10 changes: 5 additions & 5 deletions examples/auth-with-jwt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"awesome-graphql-client": "*"
},
"devDependencies": {
"@lynxtaa/eslint-config": "0.11.0",
"@lynxtaa/prettier-config": "0.2.0",
"eslint": "9.14.0",
"prettier": "3.3.3",
"typescript": "5.6.3"
"@lynxtaa/eslint-config": "catalog:",
"@lynxtaa/prettier-config": "catalog:",
"eslint": "catalog:",
"prettier": "catalog:",
"typescript": "catalog:"
}
}
35 changes: 32 additions & 3 deletions examples/next-js/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import eslintConfig from '@lynxtaa/eslint-config'
import requiresTypechecking from '@lynxtaa/eslint-config/requires-typechecking'
import nextPlugin from '@next/eslint-plugin-next'
import jest from 'eslint-plugin-jest'
import reactPlugin from 'eslint-plugin-react'
import hooksPlugin from 'eslint-plugin-react-hooks'

// TODO: add ...compat.extends('next/core-web-vitals'),
export default [
...eslintConfig,
...requiresTypechecking,
Expand All @@ -11,13 +13,40 @@ export default [
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['eslint.config.mjs'],
allowDefaultProject: ['*.js', '*.mjs'],
},
tsconfigRootDir: import.meta.dirname,
},
},
},
{
ignores: ['.next', 'lib/graphql-queries.ts'],
...reactPlugin.configs.flat.recommended,
rules: {
...reactPlugin.configs.flat.recommended.rules,
'react/react-in-jsx-scope': 'off',
},
settings: {
react: {
version: 'detect',
},
},
},
{
plugins: {
'react-hooks': hooksPlugin,
},
rules: hooksPlugin.configs.recommended.rules,
},
{
plugins: {
'@next/next': nextPlugin,
},
rules: {
...nextPlugin.configs.recommended.rules,
...nextPlugin.configs['core-web-vitals'].rules,
},
},
{
ignores: ['.next', 'coverage', 'lib/graphql-queries.ts'],
},
]
30 changes: 16 additions & 14 deletions examples/next-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,34 @@
"prettier": "@lynxtaa/prettier-config",
"dependencies": {
"awesome-graphql-client": "*",
"next": "15.1.1",
"next": "15.1.3",
"react": "19.0.0",
"react-dom": "19.0.0"
},
"devDependencies": {
"@graphql-codegen/cli": "5.0.3",
"@graphql-codegen/typescript": "4.1.1",
"@graphql-codegen/typescript-operations": "4.3.1",
"@graphql-codegen/typescript": "4.1.2",
"@graphql-codegen/typescript-operations": "4.4.0",
"@graphql-codegen/typescript-react-query": "6.1.0",
"@lynxtaa/eslint-config": "0.11.0",
"@lynxtaa/prettier-config": "0.2.0",
"@tanstack/react-query": "5.59.19",
"@lynxtaa/eslint-config": "catalog:",
"@lynxtaa/prettier-config": "catalog:",
"@next/eslint-plugin-next": "15.1.3",
"@tanstack/react-query": "5.62.11",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.1.0",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.14",
"@types/node": "20.14.12",
"@types/node": "catalog:",
"@types/react": "19.0.2",
"eslint": "9.14.0",
"eslint-config-next": "15.1.1",
"eslint-plugin-jest": "28.8.3",
"graphql": "16.9.0",
"jest": "29.7.0",
"eslint": "catalog:",
"eslint-plugin-jest": "28.10.0",
"eslint-plugin-react": "7.37.3",
"eslint-plugin-react-hooks": "5.1.0",
"graphql": "16.10.0",
"jest": "catalog:",
"msw": "1.3.3",
"prettier": "3.3.3",
"typescript": "5.6.3",
"prettier": "catalog:",
"typescript": "catalog:",
"whatwg-fetch": "3.6.20"
}
}
20 changes: 10 additions & 10 deletions examples/typed-document-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
"prettier": "@lynxtaa/prettier-config",
"dependencies": {
"awesome-graphql-client": "*",
"graphql": "16.9.0"
"graphql": "16.10.0"
},
"devDependencies": {
"@graphql-codegen/cli": "5.0.3",
"@graphql-codegen/typed-document-node": "5.0.11",
"@graphql-codegen/typescript": "4.1.1",
"@graphql-codegen/typescript-operations": "4.3.1",
"@graphql-codegen/typed-document-node": "5.0.12",
"@graphql-codegen/typescript": "4.1.2",
"@graphql-codegen/typescript-operations": "4.4.0",
"@graphql-typed-document-node/core": "3.2.0",
"@lynxtaa/eslint-config": "0.11.0",
"@lynxtaa/prettier-config": "0.2.0",
"@types/node": "20.14.12",
"eslint": "9.14.0",
"prettier": "3.3.3",
"typescript": "5.6.3"
"@lynxtaa/eslint-config": "catalog:",
"@lynxtaa/prettier-config": "catalog:",
"@types/node": "catalog:",
"eslint": "catalog:",
"prettier": "catalog:",
"typescript": "catalog:"
}
}
12 changes: 6 additions & 6 deletions examples/with-undici/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"prettier": "@lynxtaa/prettier-config",
"dependencies": {
"awesome-graphql-client": "*",
"undici": "6.13.0"
"undici": "7.2.0"
},
"devDependencies": {
"@lynxtaa/eslint-config": "0.11.0",
"@lynxtaa/prettier-config": "0.2.0",
"eslint": "9.14.0",
"prettier": "3.3.2",
"typescript": "5.5.2"
"@lynxtaa/eslint-config": "catalog:",
"@lynxtaa/prettier-config": "catalog:",
"eslint": "catalog:",
"prettier": "catalog:",
"typescript": "catalog:"
}
}
5 changes: 3 additions & 2 deletions examples/with-undici/src/with-undici.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* eslint-disable no-console */
// Using undici will result in better performance.
// Notice: it's experimental and only Node 16 is supported

import { File } from 'node:buffer'

import { AwesomeGraphQLClient } from 'awesome-graphql-client'
import { fetch, type RequestInit, type Response, FormData, File } from 'undici'
import { fetch, type RequestInit, type Response, FormData } from 'undici'

const client = new AwesomeGraphQLClient<string, RequestInit, Response>({
endpoint: 'http://localhost:8080/graphql',
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
},
"prettier": "@lynxtaa/prettier-config",
"devDependencies": {
"@lynxtaa/prettier-config": "0.2.0",
"@lynxtaa/prettier-config": "catalog:",
"awesome-graphql-client": "workspace:*",
"husky": "9.1.3",
"prettier": "3.3.3",
"husky": "9.1.7",
"prettier": "catalog:",
"pretty-quick": "4.0.0",
"turbo": "2.1.3",
"typescript": "5.6.3"
"turbo": "2.3.3",
"typescript": "catalog:"
},
"packageManager": "pnpm@9.12.1",
"packageManager": "pnpm@9.15.2",
"engines": {
"node": ">=18.18.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/awesome-graphql-client/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default [
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['eslint.config.mjs'],
allowDefaultProject: ['*.js', '*.mjs'],
},
tsconfigRootDir: import.meta.dirname,
},
Expand Down
32 changes: 16 additions & 16 deletions packages/awesome-graphql-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,32 +53,32 @@
"prettier": "@lynxtaa/prettier-config",
"devDependencies": {
"@graphql-typed-document-node/core": "3.2.0",
"@lynxtaa/eslint-config": "0.11.0",
"@lynxtaa/prettier-config": "0.2.0",
"@swc/core": "1.7.2",
"@swc/jest": "0.2.36",
"@lynxtaa/eslint-config": "catalog:",
"@lynxtaa/prettier-config": "catalog:",
"@swc/core": "1.10.3",
"@swc/jest": "0.2.37",
"@types/extract-files": "8.1.1",
"@types/graphql-upload": "8.0.12",
"@types/jest": "29.5.12",
"@types/node": "20.14.12",
"eslint": "9.14.0",
"eslint-plugin-jest": "28.8.3",
"@types/jest": "29.5.14",
"@types/node": "catalog:",
"eslint": "catalog:",
"eslint-plugin-jest": "28.10.0",
"extract-files": "9.0.0",
"fastify": "3.29.5",
"graphql": "16.9.0",
"graphql": "16.10.0",
"graphql-tag": "2.12.6",
"graphql-upload": "13.0.0",
"http-terminator": "3.2.0",
"is-ci-cli": "2.2.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest": "catalog:",
"jest-environment-jsdom": "catalog:",
"mercurius": "9.8.0",
"mercurius-upload": "3.0.1",
"np": "10.0.7",
"prettier": "3.3.3",
"tsup": "8.3.0",
"typescript": "5.6.3",
"undici": "6.19.4",
"np": "10.1.0",
"prettier": "catalog:",
"tsup": "8.3.5",
"typescript": "catalog:",
"undici": "7.2.0",
"whatwg-fetch": "3.6.20"
},
"engines": {
Expand Down
Loading

0 comments on commit 731c5e1

Please sign in to comment.