graphile-function-bindings 1.17.10 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/plugin.js CHANGED
@@ -37,7 +37,7 @@ import { toCamelCase, toConstantCase, toPascalCase } from 'inflekt';
37
37
  import { buildInvocationPayload, deriveInputFields, isGraphqlEnabled } from './derive';
38
38
  const log = new Logger('graphile-function-bindings');
39
39
  async function loadBindings(pgService, options) {
40
- return withPgClientFromPgService(pgService, { role: options.role }, async (client) => {
40
+ return withPgClientFromPgService(pgService, null, async (client) => {
41
41
  const bindings = [];
42
42
  for (const module of options.modules) {
43
43
  const { computeSchema, bindingsTable, definitionsTable } = module;
package/esm/types.d.ts CHANGED
@@ -64,9 +64,4 @@ export interface FunctionBindingsPluginOptions {
64
64
  * module are exposed; RLS on the underlying tables governs access.
65
65
  */
66
66
  modules: ComputeModuleNames[];
67
- /**
68
- * Control role the gather-time bindings read runs as (`SET LOCAL ROLE`); the
69
- * server's login role holds no privileges of its own.
70
- */
71
- role: string;
72
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-function-bindings",
3
- "version": "1.17.10",
3
+ "version": "1.18.0",
4
4
  "description": "PostGraphile v5 plugin — exposes API-bound compute functions as typed GraphQL mutations backed by function_invocations inserts",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "homepage": "https://github.com/constructive-io/constructive",
@@ -39,9 +39,9 @@
39
39
  "url": "https://github.com/constructive-io/constructive/issues"
40
40
  },
41
41
  "dependencies": {
42
- "@constructive-io/query-builder": "^3.16.9",
43
- "@pgpmjs/logger": "^2.26.0",
44
- "graphile-plugin-utils": "^1.13.0",
42
+ "@constructive-io/query-builder": "^3.17.0",
43
+ "@pgpmjs/logger": "^2.27.0",
44
+ "graphile-plugin-utils": "^1.14.0",
45
45
  "inflekt": "^0.8.1",
46
46
  "pg": "^8.21.0"
47
47
  },
@@ -56,9 +56,9 @@
56
56
  "devDependencies": {
57
57
  "@types/node": "^22.19.11",
58
58
  "@types/pg": "^8.20.4",
59
- "graphile-test": "^5.17.10",
59
+ "graphile-test": "^5.18.0",
60
60
  "makage": "^0.8.0",
61
- "pgsql-test": "^5.17.6"
61
+ "pgsql-test": "^5.18.0"
62
62
  },
63
- "gitHead": "2f506a4a4062b4bd92979c02249e0fee14af4043"
63
+ "gitHead": "487c4ec9ee997d7da80584a3d41d7120d4354c54"
64
64
  }
package/plugin.js CHANGED
@@ -40,7 +40,7 @@ const inflekt_1 = require("inflekt");
40
40
  const derive_1 = require("./derive");
41
41
  const log = new logger_1.Logger('graphile-function-bindings');
42
42
  async function loadBindings(pgService, options) {
43
- return (0, pg_1.withPgClientFromPgService)(pgService, { role: options.role }, async (client) => {
43
+ return (0, pg_1.withPgClientFromPgService)(pgService, null, async (client) => {
44
44
  const bindings = [];
45
45
  for (const module of options.modules) {
46
46
  const { computeSchema, bindingsTable, definitionsTable } = module;
package/types.d.ts CHANGED
@@ -64,9 +64,4 @@ export interface FunctionBindingsPluginOptions {
64
64
  * module are exposed; RLS on the underlying tables governs access.
65
65
  */
66
66
  modules: ComputeModuleNames[];
67
- /**
68
- * Control role the gather-time bindings read runs as (`SET LOCAL ROLE`); the
69
- * server's login role holds no privileges of its own.
70
- */
71
- role: string;
72
67
  }