postgraphile-core
Advanced tools
Comparing version 4.3.1 to 4.3.2-alpha.0
@@ -35,2 +35,3 @@ import { Plugin, Options, SchemaListener, Build, Context, SchemaBuilder, Inflection } from "graphile-build"; | ||
ignoreIndexes?: boolean; | ||
subscriptions?: boolean; | ||
} | ||
@@ -37,0 +38,0 @@ declare type PgConfig = Client | Pool | string; |
@@ -82,3 +82,4 @@ "use strict"; | ||
legacyFunctionsOnly = false, // TODO:v5: Remove in v5 | ||
ignoreIndexes = true, } = options; | ||
ignoreIndexes = true, // TODO:v5: Change to 'false' in v5 | ||
subscriptions = false, } = options; | ||
if (legacyRelations && | ||
@@ -191,3 +192,12 @@ ["only", "deprecated", "omit"].indexOf(legacyRelations) < 0) { | ||
return graphile_build_1.getBuilder(finalPluginList, Object.assign({ pgConfig, pgSchemas: Array.isArray(schemas) ? schemas : [schemas], pgExtendedTypes: !!dynamicJson, pgColumnFilter: pgColumnFilter || (() => true), pgInflection: inflector || | ||
(classicIds ? exports.postGraphileClassicIdsInflection : exports.postGraphileInflection), nodeIdFieldName: nodeIdFieldName || (classicIds ? "id" : "nodeId"), pgJwtTypeIdentifier: jwtPgTypeIdentifier, pgJwtSecret: jwtSecret, pgDisableDefaultMutations: disableDefaultMutations, pgViewUniqueKey: viewUniqueKey, pgEnableTags: enableTags, pgLegacyRelations: legacyRelations, pgLegacyJsonUuid: legacyJsonUuid, persistentMemoizeWithKey, pgForbidSetofFunctionsToReturnNull: !setofFunctionsContainNulls, pgSimpleCollections: simpleCollections, pgIncludeExtensionResources: includeExtensionResources, pgIgnoreRBAC: ignoreRBAC, pgLegacyFunctionsOnly: legacyFunctionsOnly, pgIgnoreIndexes: ignoreIndexes }, graphileBuildOptions, graphqlBuildOptions)); | ||
(classicIds ? exports.postGraphileClassicIdsInflection : exports.postGraphileInflection), nodeIdFieldName: nodeIdFieldName || (classicIds ? "id" : "nodeId"), pgJwtTypeIdentifier: jwtPgTypeIdentifier, pgJwtSecret: jwtSecret, pgDisableDefaultMutations: disableDefaultMutations, pgViewUniqueKey: viewUniqueKey, pgEnableTags: enableTags, pgLegacyRelations: legacyRelations, pgLegacyJsonUuid: legacyJsonUuid, persistentMemoizeWithKey, pgForbidSetofFunctionsToReturnNull: !setofFunctionsContainNulls, pgSimpleCollections: simpleCollections, pgIncludeExtensionResources: includeExtensionResources, pgIgnoreRBAC: ignoreRBAC, pgLegacyFunctionsOnly: legacyFunctionsOnly, pgIgnoreIndexes: ignoreIndexes, | ||
/* | ||
* `subscriptions` acts as a feature flag telling us to fetch all the | ||
* relevant database identifiers. We can't enable this by default in v4 | ||
* because it's possible that someone has used column-level select grants | ||
* on a table in their DB but has not granted select access to one of their | ||
* primary key columns. This flag requires that if a table is selectable | ||
* then the PKs must be also. | ||
*/ | ||
subscriptions }, graphileBuildOptions, graphqlBuildOptions)); | ||
}; | ||
@@ -194,0 +204,0 @@ function abort(e) { |
{ | ||
"name": "postgraphile-core", | ||
"version": "4.3.1", | ||
"version": "4.3.2-alpha.0", | ||
"description": "", | ||
@@ -24,4 +24,4 @@ "main": "node8plus/index.js", | ||
"@types/graphql": "^14.0.3", | ||
"graphile-build": "4.3.1", | ||
"graphile-build-pg": "4.3.1" | ||
"graphile-build": "4.3.2-alpha.0", | ||
"graphile-build-pg": "4.3.2-alpha.0" | ||
}, | ||
@@ -56,4 +56,3 @@ "devDependencies": { | ||
"node": ">=8.6" | ||
}, | ||
"gitHead": "255f2aa4456c9130d8565afbd14727bccd07583b" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
31413
319
1
+ Addedgraphile-build@4.3.2-alpha.0(transitive)
+ Addedgraphile-build-pg@4.3.2-alpha.0(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedgraphile-build@4.3.1(transitive)
- Removedgraphile-build-pg@4.3.1(transitive)
Updatedgraphile-build@4.3.2-alpha.0