Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion graphile/graphile-function-bindings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion graphile/graphile-settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:^",
Expand Down
2 changes: 1 addition & 1 deletion graphql/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion graphql/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
25 changes: 16 additions & 9 deletions graphql/server-test/__tests__/anon-grant-minimum.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -58,14 +58,21 @@ describe('minimum anonymous grants for Graphile', () => {
let teardown: () => Promise<void>;

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 () => {
Expand Down
3 changes: 3 additions & 0 deletions pgpm/cli/__tests__/__snapshots__/init.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pgpm/export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:^",
Expand Down
30 changes: 15 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion postgres/pg-codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:^",
Expand Down
Loading