Skip to content

Commit 0bbe1d7

Browse files
committed
chore(deps): Upgrade deprecated packages
1 parent 96fbc4b commit 0bbe1d7

File tree

14 files changed

+1005
-472
lines changed

14 files changed

+1005
-472
lines changed

.changeset/large-socks-slide.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@gqty/logger': patch
3+
'@gqty/react': patch
4+
'@gqty/solid': patch
5+
'gqty': patch
6+
---
7+
8+
chore(deps): upgrade deprecated packages

examples/gnt/app/000-noverby-infinite-fetch/gqty/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { createReactClient } from '@gqty/react';
2-
import { NhostClient } from '@nhost/nextjs';
2+
import { createClient as createNhostClient } from '@nhost/nhost-js';
33
import type { QueryFetcher } from 'gqty';
44
import { Cache, createClient } from 'gqty';
55
import { createClient as createSubscriptionsClient } from 'graphql-ws';
66
import type { GeneratedSchema } from './schema.generated';
77
import { generatedSchema, scalarsEnumsHash } from './schema.generated';
88

9-
const nhost = new NhostClient({
9+
const nhost = createNhostClient({
1010
subdomain: process.env.NEXT_PUBLIC_NHOST_SUBDOMAIN,
1111
region: process.env.NEXT_PUBLIC_NHOST_REGION,
1212
});
@@ -17,15 +17,15 @@ const getHeaders = (): Record<string, string> =>
1717
'Content-Type': 'application/json',
1818
'x-hasura-admin-secret': process.env.HASURA_GRAPHQL_ADMIN_SECRET,
1919
}
20-
: nhost.auth.isAuthenticated()
21-
? {
22-
'Content-Type': 'application/json',
23-
authorization: `Bearer ${nhost.auth.getAccessToken()}`,
24-
}
25-
: {
26-
'Content-Type': 'application/json',
27-
'x-hasura-role': 'public',
28-
};
20+
: nhost.getUserSession()
21+
? {
22+
'Content-Type': 'application/json',
23+
authorization: `Bearer ${nhost.getUserSession()?.accessToken}`,
24+
}
25+
: {
26+
'Content-Type': 'application/json',
27+
'x-hasura-role': 'public',
28+
};
2929

3030
const url = `https://${process.env.NEXT_PUBLIC_NHOST_SUBDOMAIN}.hasura.${process.env.NEXT_PUBLIC_NHOST_REGION}.nhost.run/v1/graphql`;
3131

examples/gnt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"@gqty/logger": "workspace:^",
1414
"@gqty/react": "workspace:^",
15-
"@nhost/nextjs": "^2.2.9",
15+
"@nhost/nhost-js": "^4.2.0",
1616
"gqty": "workspace:^",
1717
"graphql": "^16.11.0",
1818
"graphql-ws": "^5.16.2",

examples/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@graphql-ez/plugin-schema": "^0.9.1",
2626
"@graphql-ez/plugin-upload": "^0.8.1",
2727
"@graphql-ez/plugin-websockets": "^0.12.0",
28-
"@react-hookz/web": "^22.0.0",
28+
"@react-hookz/web": "^25.2.0",
2929
"extract-files": "^13.0.0",
3030
"fastify": "^5.4.0",
3131
"framer-motion": "^11.18.2",

examples/vite-react/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414
"dependencies": {
1515
"@gqty/cli": "workspace:^",
1616
"@gqty/react": "workspace:^",
17-
"@react-hookz/web": "^24.0.4",
17+
"@react-hookz/web": "^25.2.0",
1818
"gqty": "workspace:^",
19-
"react": "^18.3.1",
20-
"react-dom": "^18.3.1"
19+
"react": "^19.2.1",
20+
"react-dom": "^19.2.1"
2121
},
2222
"devDependencies": {
23-
"@types/node": "^22.16.5",
24-
"@types/react": "^18.3.23",
25-
"@types/react-dom": "^18.3.7",
26-
"@vitejs/plugin-react": "^4.7.0",
23+
"@types/node": "^25.0.0",
24+
"@types/react": "^19.2.7",
25+
"@types/react-dom": "^19.2.3",
26+
"@vitejs/plugin-react": "^5.1.2",
2727
"graphql": "^16.8.1",
2828
"typescript": "^5.4.5",
29-
"vite": "^6.3.5"
29+
"vite": "^7.2.7"
3030
}
3131
}

examples/vite-react/src/App/SmallText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FunctionComponent, PropsWithChildren } from 'react';
1+
import type { FunctionComponent, PropsWithChildren } from 'react';
22
import Skeleton from './Skeleton';
33

44
const SmallText: FunctionComponent<

examples/vite-react/src/App/Text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FunctionComponent, PropsWithChildren } from 'react';
1+
import type { FunctionComponent, PropsWithChildren } from 'react';
22
import Skeleton from './Skeleton';
33

44
export const Text: FunctionComponent<

examples/vite-react/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ import { defineConfig } from 'vite';
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
resolve: {
8+
dedupe: ['react', 'react-dom'],
9+
},
710
});

packages/gqty/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"p-defer": "^3.0.0"
8383
},
8484
"devDependencies": {
85-
"@types/node": "^22.16.5",
85+
"@types/node": "^25.0.0",
8686
"@types/ws": "^8.18.1",
8787
"@typescript-eslint/eslint-plugin": "^8.38.0",
8888
"@typescript-eslint/parser": "^8.38.0",
@@ -120,7 +120,7 @@
120120
}
121121
},
122122
"engines": {
123-
"node": "^12.20.0 || >=14.13.0"
123+
"node": ">=16 <=25"
124124
},
125125
"publishConfig": {
126126
"directory": "dist"

packages/logger/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"prettier": "^3.0.1"
4646
},
4747
"devDependencies": {
48-
"@types/node": "^22.16.5",
48+
"@types/node": "^25.0.0",
4949
"bob-esbuild-cli": "^4.0.0",
5050
"gqty": "workspace:^",
5151
"jest": "^29.7.0",
@@ -56,7 +56,7 @@
5656
"gqty": "workspace:^3.4.2"
5757
},
5858
"engines": {
59-
"node": "^12.20.0 || >=14.13.0"
59+
"node": ">=16 <=25"
6060
},
6161
"publishConfig": {
6262
"directory": "dist"

0 commit comments

Comments
 (0)