Skip to content

Commit 3d4d757

Browse files
authored
Fix TypeScript config (#2873)
2 parents 833ea03 + 488f1c5 commit 3d4d757

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

.changeset/eager-lights-behave.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
"postgraphile": patch
3+
"graphql-codegen-grafast": patch
4+
"@dataplan/json": patch
5+
"@dataplan/pg": patch
6+
"grafast": patch
7+
"grafserv": patch
8+
"@grafserv/persisted": patch
9+
"ruru": patch
10+
"ruru-components": patch
11+
"graphile-build": patch
12+
"graphile-build-pg": patch
13+
"@graphile/simplify-inflection": patch
14+
"graphile-utils": patch
15+
"pgl": patch
16+
"eslint-plugin-graphile-export": patch
17+
"graphile": patch
18+
"graphile-config": patch
19+
"graphile-export": patch
20+
"jest-serializer-graphql-schema": patch
21+
"jest-serializer-simple": patch
22+
"@graphile/lru": patch
23+
"pg-introspection": patch
24+
"pg-sql2": patch
25+
"tamedevil": patch
26+
---
27+
28+
Update TypeScript configuration to support Node 22 minimum

postgraphile/postgraphile/graphile.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ const preset: GraphileConfig.Preset = {
348348
StreamDeferPlugin,
349349
extendSchema((build) => {
350350
const {
351-
sql,
352351
dataplanPg: { TYPES },
353352
} = build;
354353
return {
@@ -389,18 +388,18 @@ const preset: GraphileConfig.Preset = {
389388
Person: {
390389
plans: {
391390
greet: EXPORTABLE(
392-
(TYPES, sql) =>
391+
(TYPES) =>
393392
($user: PgSelectSingleStep, { $greeting }) => {
394393
const placeholderSql = $user.placeholder(
395394
$greeting,
396395
TYPES.text,
397396
);
398397
return $user.select(
399-
sql`${placeholderSql} || ', ' || ${$user}.name`,
398+
(sql) => sql`${placeholderSql} || ', ' || ${$user}.name`,
400399
TYPES.text,
401400
);
402401
},
403-
[TYPES, sql],
402+
[TYPES],
404403
),
405404
query: EXPORTABLE(
406405
(constant) => () => {

tsconfig.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
"declarationMap": true,
1010
"allowJs": false,
1111

12-
"moduleResolution": "NodeNext",
13-
"module": "NodeNext",
14-
"target": "ES2022",
15-
"lib": ["ES2022", "ESNext.Disposable"],
1612
// This has runtime performance overhead! Specifically it means a lot of
1713
// time is spent in 'instance_members_initializer' in V8. Disable.
1814
"useDefineForClassFields": false,

0 commit comments

Comments
 (0)