graphile-build-pg
Advanced tools
Comparing version 5.0.0-beta.18 to 5.0.0-beta.19
@@ -8,3 +8,2 @@ import "./PgTablesPlugin.js"; | ||
import { getBehavior } from "../behavior.js"; | ||
import type { PgCodecMetaLookup } from "../inputUtils.js"; | ||
declare global { | ||
@@ -27,9 +26,2 @@ namespace GraphileBuild { | ||
/** | ||
* A store of metadata for given codecs. Currently internal as this API | ||
* may change. | ||
* | ||
* @internal | ||
*/ | ||
pgCodecMetaLookup: PgCodecMetaLookup; | ||
/** | ||
* Do we already have a GraphQL type to use for the given codec in the | ||
@@ -36,0 +28,0 @@ * given situation? |
@@ -121,2 +121,3 @@ "use strict"; | ||
async processIntrospection(info, event) { | ||
const { EXPORTABLE } = info; | ||
const { introspection, serviceName } = event; | ||
@@ -192,12 +193,13 @@ for (const pgClass of introspection.classes) { | ||
// Build the codec | ||
const codec = (0, pg_1.enumCodec)({ | ||
name: info.inflection.enumTableCodec({ | ||
serviceName, | ||
pgClass, | ||
pgConstraint, | ||
}), | ||
const name = info.inflection.enumTableCodec({ | ||
serviceName, | ||
pgClass, | ||
pgConstraint, | ||
}); | ||
const codec = EXPORTABLE((enumCodec, extensions, name, originalCodec, values) => enumCodec({ | ||
name, | ||
identifier: originalCodec.sqlType, | ||
values, | ||
extensions, | ||
}); | ||
}), [pg_1.enumCodec, extensions, name, originalCodec, values]); | ||
// Associate this constraint with our new codec | ||
@@ -204,0 +206,0 @@ info.state.codecByPgConstraint.set(pgConstraint, codec); |
@@ -595,3 +595,2 @@ "use strict"; | ||
const functionLines = []; | ||
const prefixLines = []; | ||
if (isMutationPayload) { | ||
@@ -648,3 +647,3 @@ functionLines.push((0, tamedevil_1.default) `return function PgRelationsPlugin_mutation_payload_relation($in) {`); | ||
functionLines.push(tamedevil_1.default.cache `}`); | ||
return tamedevil_1.default.run `${tamedevil_1.default.join(prefixLines, "\n")}${tamedevil_1.default.join(functionLines, "\n")}`; | ||
return tamedevil_1.default.runExportable `${tamedevil_1.default.join(functionLines, "\n")}`; | ||
}; | ||
@@ -651,0 +650,0 @@ const singleRecordPlan = makePlanResolver("singleRecord"); |
@@ -82,2 +82,3 @@ "use strict"; | ||
*/ | ||
// TODO: Use `te.runExportable` instead and give the resource a name! | ||
// eslint-disable-next-line graphile-export/exhaustive-deps | ||
@@ -84,0 +85,0 @@ (0, graphile_build_1.EXPORTABLE)(tamedevil_1.default.run `\ |
@@ -317,5 +317,5 @@ "use strict"; | ||
grafast: { | ||
inputPlan() { | ||
return (0, grafast_1.object)(Object.create(null)); | ||
}, | ||
inputPlan: (0, graphile_build_1.EXPORTABLE)((object) => function inputPlan() { | ||
return object(Object.create(null)); | ||
}, [grafast_1.object]), | ||
}, | ||
@@ -340,5 +340,5 @@ }, | ||
grafast: { | ||
inputPlan() { | ||
return (0, grafast_1.object)(Object.create(null)); | ||
}, | ||
inputPlan: (0, graphile_build_1.EXPORTABLE)((object) => function inputPlan() { | ||
return object(Object.create(null)); | ||
}, [grafast_1.object]), | ||
}, | ||
@@ -360,5 +360,5 @@ }, | ||
grafast: { | ||
inputPlan() { | ||
return (0, grafast_1.object)(Object.create(null)); | ||
}, | ||
inputPlan: (0, graphile_build_1.EXPORTABLE)((object) => function inputPlan() { | ||
return object(Object.create(null)); | ||
}, [grafast_1.object]), | ||
}, | ||
@@ -365,0 +365,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
export declare const version = "5.0.0-beta.18"; | ||
export declare const version = "5.0.0-beta.19"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// This file is autogenerated by /scripts/postversion.mjs | ||
exports.version = "5.0.0-beta.18"; | ||
exports.version = "5.0.0-beta.19"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "graphile-build-pg", | ||
"version": "5.0.0-beta.18", | ||
"version": "5.0.0-beta.19", | ||
"description": "PostgreSQL plugins for Graphile Build - build a supercharged GraphQL schema by reflection over a PostgreSQL database and executed by Grafast.", | ||
@@ -50,16 +50,16 @@ "type": "commonjs", | ||
"debug": "^4.3.4", | ||
"graphile-config": "^0.0.1-beta.6", | ||
"graphile-config": "^0.0.1-beta.7", | ||
"jsonwebtoken": "^9.0.2", | ||
"pg-introspection": "^0.0.1-beta.5", | ||
"pg-introspection": "^0.0.1-beta.6", | ||
"tslib": "^2.6.2" | ||
}, | ||
"peerDependencies": { | ||
"@dataplan/pg": "^0.0.1-beta.15", | ||
"grafast": "^0.1.1-beta.4", | ||
"graphile-build": "5.0.0-beta.14", | ||
"graphile-config": "^0.0.1-beta.6", | ||
"@dataplan/pg": "^0.0.1-beta.16", | ||
"grafast": "^0.1.1-beta.5", | ||
"graphile-build": "5.0.0-beta.15", | ||
"graphile-config": "^0.0.1-beta.7", | ||
"graphql": "^16.1.0-experimental-stream-defer.6", | ||
"pg": "^8.7.1", | ||
"pg-sql2": "^5.0.0-beta.4", | ||
"tamedevil": "^0.0.0-beta.4" | ||
"pg-sql2": "^5.0.0-beta.5", | ||
"tamedevil": "^0.0.0-beta.5" | ||
}, | ||
@@ -92,3 +92,3 @@ "peerDependenciesMeta": { | ||
"fastify-static": "^4.7.0", | ||
"graphile-export": "^0.0.2-beta.9", | ||
"graphile-export": "^0.0.2-beta.10", | ||
"graphql": "16.1.0-experimental-stream-defer.6", | ||
@@ -99,3 +99,3 @@ "graphql-helix": "^1.13.0", | ||
"pg": "^8.11.3", | ||
"ruru": "^2.0.0-beta.10", | ||
"ruru": "^2.0.0-beta.11", | ||
"ts-node": "^10.9.1", | ||
@@ -102,0 +102,0 @@ "typescript": "^5.2.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1112919
11710
+ Addedgraphile-build@5.0.0-beta.15(transitive)
- Removedgraphile-build@5.0.0-beta.14(transitive)