From c663555cc2a299d5204fb6b86aba26c1f48724cf Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Thu, 6 Aug 2026 03:09:19 +0000 Subject: [PATCH 1/3] chore(deps): inflekt ^0.8.1 --- .../graphile-function-bindings/package.json | 2 +- graphile/graphile-settings/package.json | 2 +- graphql/codegen/package.json | 2 +- graphql/query/package.json | 2 +- pgpm/export/package.json | 2 +- pnpm-lock.yaml | 30 +++++++++---------- postgres/pg-codegen/package.json | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/graphile/graphile-function-bindings/package.json b/graphile/graphile-function-bindings/package.json index 57a28f71fb..7b22ff2b59 100644 --- a/graphile/graphile-function-bindings/package.json +++ b/graphile/graphile-function-bindings/package.json @@ -42,7 +42,7 @@ "@constructive-io/query-builder": "workspace:^", "@pgpmjs/logger": "workspace:^", "graphile-plugin-utils": "workspace:^", - "inflekt": "^0.8.0", + "inflekt": "^0.8.1", "pg": "^8.21.0" }, "peerDependencies": { diff --git a/graphile/graphile-settings/package.json b/graphile/graphile-settings/package.json index 68bedf8181..479461596a 100644 --- a/graphile/graphile-settings/package.json +++ b/graphile/graphile-settings/package.json @@ -65,7 +65,7 @@ "graphile-upload-plugin": "workspace:^", "graphile-utils": "5.0.3", "graphql": "16.13.0", - "inflekt": "^0.8.0", + "inflekt": "^0.8.1", "lru-cache": "^11.2.7", "pg": "^8.21.0", "pg-query-context": "workspace:^", diff --git a/graphql/codegen/package.json b/graphql/codegen/package.json index d0d229ea33..205e75cab4 100644 --- a/graphql/codegen/package.json +++ b/graphql/codegen/package.json @@ -66,7 +66,7 @@ "gql-ast": "workspace:^", "graphile-schema": "workspace:^", "graphql": "16.13.0", - "inflekt": "^0.8.0", + "inflekt": "^0.8.1", "inquirerer": "^4.9.3", "jiti": "^2.7.0", "oxfmt": "^0.51.0", diff --git a/graphql/query/package.json b/graphql/query/package.json index 3c6f5133c0..6435ec6557 100644 --- a/graphql/query/package.json +++ b/graphql/query/package.json @@ -41,7 +41,7 @@ "graphile-settings": "workspace:^", "graphql": "16.13.0", "inflection": "^3.0.0", - "inflekt": "^0.8.0", + "inflekt": "^0.8.1", "lru-cache": "^11.2.7", "postgraphile": "5.1.3" }, diff --git a/pgpm/export/package.json b/pgpm/export/package.json index 5e1cf8620a..752cc25783 100644 --- a/pgpm/export/package.json +++ b/pgpm/export/package.json @@ -52,7 +52,7 @@ "@pgpmjs/types": "workspace:^", "csv-to-pg": "workspace:^", "glob": "^13.0.6", - "inflekt": "^0.8.0", + "inflekt": "^0.8.1", "inquirerer": "^4.9.3", "pg": "^8.21.0", "pg-cache": "workspace:^", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f1e6e608e8..67f73482fb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -529,8 +529,8 @@ importers: specifier: 16.13.0 version: 16.13.0 inflekt: - specifier: ^0.8.0 - version: 0.8.0 + specifier: ^0.8.1 + version: 0.8.1 pg: specifier: ^8.21.0 version: 8.21.0 @@ -1291,8 +1291,8 @@ importers: specifier: 16.13.0 version: 16.13.0 inflekt: - specifier: ^0.8.0 - version: 0.8.0 + specifier: ^0.8.1 + version: 0.8.1 lru-cache: specifier: ^11.2.7 version: 11.2.7 @@ -1491,8 +1491,8 @@ importers: specifier: 16.13.0 version: 16.13.0 inflekt: - specifier: ^0.8.0 - version: 0.8.0 + specifier: ^0.8.1 + version: 0.8.1 inquirerer: specifier: ^4.9.3 version: 4.9.3 @@ -1842,8 +1842,8 @@ importers: specifier: ^3.0.0 version: 3.0.2 inflekt: - specifier: ^0.8.0 - version: 0.8.0 + specifier: ^0.8.1 + version: 0.8.1 lru-cache: specifier: ^11.2.7 version: 11.2.7 @@ -3029,8 +3029,8 @@ importers: specifier: ^13.0.6 version: 13.0.6 inflekt: - specifier: ^0.8.0 - version: 0.8.0 + specifier: ^0.8.1 + version: 0.8.1 inquirerer: specifier: ^4.9.3 version: 4.9.3 @@ -3337,8 +3337,8 @@ importers: specifier: workspace:^ version: link:../../pgpm/types/dist inflekt: - specifier: ^0.8.0 - version: 0.8.0 + specifier: ^0.8.1 + version: 0.8.1 pg: specifier: ^8.21.0 version: 8.21.0 @@ -10986,10 +10986,10 @@ packages: } engines: { node: '>=18.0.0' } - inflekt@0.8.0: + inflekt@0.8.1: resolution: { - integrity: sha512-Inc2K7CJZvUHJvn9Tj9YKoHu4eK4gFEvtQXz7cpL8ZFzB8vaxNVkUHWBrqR/00wLcp9xdhD/fmE6DJgN4E1oRw==, + integrity: sha512-HC0tqBX/gyiudcpmhxFirVIITGcqqPJDLGQIr9XktqS77EC+EK0JVabZpI8swtxC5ZjV1/PVdAXdhZG+CnrM4A==, } inflight@1.0.6: @@ -20536,7 +20536,7 @@ snapshots: inflection@3.0.2: {} - inflekt@0.8.0: + inflekt@0.8.1: dependencies: inflection: 3.0.2 komoji: 0.9.1 diff --git a/postgres/pg-codegen/package.json b/postgres/pg-codegen/package.json index f05eaa0a1a..dadc4bc15d 100644 --- a/postgres/pg-codegen/package.json +++ b/postgres/pg-codegen/package.json @@ -44,7 +44,7 @@ "@pgpmjs/logger": "workspace:^", "@pgpmjs/server-utils": "workspace:^", "@pgpmjs/types": "workspace:^", - "inflekt": "^0.8.0", + "inflekt": "^0.8.1", "pg": "^8.21.0", "pg-cache": "workspace:^", "pg-env": "workspace:^", From 3129dff6f171716fa41904ceaca7fd8c010c684b Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Thu, 6 Aug 2026 03:19:27 +0000 Subject: [PATCH 2/3] test(pgpm-cli): accept pnpm-policy.yaml in init snapshots The workspace boilerplate now ships pnpm-policy.yaml, so scaffolding emits it. Fails on main too (run 31063294976 at 5dc37ae9). --- pgpm/cli/__tests__/__snapshots__/init.test.ts.snap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pgpm/cli/__tests__/__snapshots__/init.test.ts.snap b/pgpm/cli/__tests__/__snapshots__/init.test.ts.snap index 36f197e383..822319ea4e 100644 --- a/pgpm/cli/__tests__/__snapshots__/init.test.ts.snap +++ b/pgpm/cli/__tests__/__snapshots__/init.test.ts.snap @@ -36,6 +36,7 @@ exports[`cmds:init initializes module with no extensions by default: module-no-e [ "tsconfig.json", "pnpm-workspace.yaml", + "pnpm-policy.yaml", "pgpm.json", "package.json", "lerna.json", @@ -118,6 +119,7 @@ exports[`cmds:init initializes module: module-only - files 1`] = ` [ "tsconfig.json", "pnpm-workspace.yaml", + "pnpm-policy.yaml", "pgpm.json", "package.json", "lerna.json", @@ -194,6 +196,7 @@ exports[`cmds:init initializes workspace: workspace - files 1`] = ` [ "my-workspace/tsconfig.json", "my-workspace/pnpm-workspace.yaml", + "my-workspace/pnpm-policy.yaml", "my-workspace/pgpm.json", "my-workspace/package.json", "my-workspace/lerna.json", From e5f63aa712da4fe08f9c982069b745398f5167d8 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Thu, 6 Aug 2026 03:33:54 +0000 Subject: [PATCH 3/3] test(server-test): seed the anon-grant fixture instead of creating it after startup The server can build its GraphQL schema as soon as it starts, so creating the schema in beforeAll raced it and intermittently introspected an empty database (only _meta exposed). --- .../__tests__/anon-grant-minimum.test.ts | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/graphql/server-test/__tests__/anon-grant-minimum.test.ts b/graphql/server-test/__tests__/anon-grant-minimum.test.ts index aa28209b2b..f3e091aa9d 100644 --- a/graphql/server-test/__tests__/anon-grant-minimum.test.ts +++ b/graphql/server-test/__tests__/anon-grant-minimum.test.ts @@ -16,7 +16,7 @@ * blanket `GRANT ALL ON FUNCTIONS TO anonymous` buys no Graphile functionality * whatsoever — it only widens what anon may execute. */ -import { PgTestClient } from 'pgsql-test'; +import { PgTestClient, seed } from 'pgsql-test'; import { getConnections as getServerConnections } from '../src'; @@ -58,14 +58,21 @@ describe('minimum anonymous grants for Graphile', () => { let teardown: () => Promise; beforeAll(async () => { - ({ pg, query, teardown } = await getServerConnections({ - schemas: ['app_public'], - authRole: 'anonymous', - server: { useRouting: false } - })); - - await pg.query(SETUP); - await pg.query(RESET_GRANTS); + // Seeded rather than created afterwards: the server can build its schema as + // soon as it starts, and would then introspect an empty database. + ({ pg, query, teardown } = await getServerConnections( + { + schemas: ['app_public'], + authRole: 'anonymous', + server: { useRouting: false } + }, + [ + seed.fn(async ({ pg: seedClient }) => { + await seedClient.query(SETUP); + await seedClient.query(RESET_GRANTS); + }) + ] + )); }); afterAll(async () => {