Skip to content

Commit 690672e

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

10 files changed

Lines changed: 509 additions & 375 deletions

File tree

.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 @react-hookz/web for object equality

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/vite-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
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:^",
1919
"react": "^18.3.1",
2020
"react-dom": "^18.3.1"
2121
},
2222
"devDependencies": {
23-
"@types/node": "^22.16.5",
23+
"@types/node": "^25.0.0",
2424
"@types/react": "^18.3.23",
2525
"@types/react-dom": "^18.3.7",
2626
"@vitejs/plugin-react": "^4.7.0",

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"

packages/react/jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
const esModules = ['@react-hookz/web', '@ver0/deep-equal']
2+
.map((x) => x.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'))
3+
.join('|');
4+
15
module.exports = require('test-utils/jest.config.js').getConfig({
26
setupFiles: ['./jest.setup.ts'],
37
setupFilesAfterEnv: ['@testing-library/jest-dom'],
48
testEnvironment: 'jsdom',
9+
transformIgnorePatterns: [`node_modules/(?!.*(${esModules}))`],
510
});

packages/react/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
]
8383
},
8484
"dependencies": {
85-
"@react-hookz/web": "^23.1.0",
85+
"@react-hookz/web": "^25.2.0",
8686
"multidict": "^1.0.9",
8787
"p-debounce": "^4.0.0",
8888
"p-defer": "^3.0.0",
@@ -99,7 +99,7 @@
9999
"@types/eslint__js": "^8.42.3",
100100
"@types/jest": "^29.5.14",
101101
"@types/lodash-es": "^4.17.12",
102-
"@types/node": "^22.16.5",
102+
"@types/node": "^25.0.0",
103103
"@types/react": "^18.3.23",
104104
"@types/use-sync-external-store": "^0.0.6",
105105
"@typescript-eslint/eslint-plugin": "^8.38.0",
@@ -138,7 +138,7 @@
138138
}
139139
},
140140
"engines": {
141-
"node": "^12.20.0 || >=14.13.0"
141+
"node": ">=16 <=25"
142142
},
143143
"publishConfig": {
144144
"directory": "dist"

packages/solid/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"test": "vitest --no-watch"
3636
},
3737
"dependencies": {
38+
"@types/node": "^25.0.0",
3839
"debounce-microtasks": "^0.1.8",
3940
"p-defer": "^3.0.0"
4041
},
@@ -63,7 +64,7 @@
6364
}
6465
},
6566
"engines": {
66-
"node": ">=16 <=24"
67+
"node": ">=16 <=25"
6768
},
6869
"publishConfig": {
6970
"directory": "dist"

0 commit comments

Comments
 (0)