postgraphile 5.0.0-alpha.9 → 5.0.0-beta.2
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/CHANGELOG.md +995 -261
- package/README.md +2 -4
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +17 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/plugins/PgV4SmartTagsPlugin.d.ts.map +1 -1
- package/dist/plugins/PgV4SmartTagsPlugin.js +13 -5
- package/dist/plugins/PgV4SmartTagsPlugin.js.map +1 -1
- package/dist/presets/amber.d.ts +3 -1
- package/dist/presets/amber.d.ts.map +1 -1
- package/dist/presets/amber.js +5 -4
- package/dist/presets/amber.js.map +1 -1
- package/dist/presets/lazy-jwt.d.ts +23 -0
- package/dist/presets/lazy-jwt.d.ts.map +1 -0
- package/dist/presets/lazy-jwt.js +76 -0
- package/dist/presets/lazy-jwt.js.map +1 -0
- package/dist/presets/relay.d.ts +9 -0
- package/dist/presets/relay.d.ts.map +1 -0
- package/dist/presets/relay.js +119 -0
- package/dist/presets/relay.js.map +1 -0
- package/dist/presets/v4.d.ts +10 -3
- package/dist/presets/v4.d.ts.map +1 -1
- package/dist/presets/v4.js +45 -42
- package/dist/presets/v4.js.map +1 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/fwd/@dataplan/json/index.d.ts +1 -0
- package/fwd/@dataplan/json/index.js +1 -0
- package/fwd/@dataplan/pg/adaptors/pg/index.d.ts +1 -0
- package/fwd/@dataplan/pg/adaptors/pg/index.js +1 -0
- package/fwd/@dataplan/pg/index.d.ts +1 -0
- package/fwd/@dataplan/pg/index.js +1 -0
- package/fwd/grafast/envelop/index.d.ts +1 -0
- package/fwd/grafast/envelop/index.js +1 -0
- package/fwd/grafast/graphql/index.d.ts +1 -0
- package/fwd/grafast/graphql/index.js +1 -0
- package/fwd/grafast/index.d.ts +1 -0
- package/fwd/grafast/index.js +1 -0
- package/fwd/grafserv/express/v4/index.d.ts +1 -0
- package/fwd/grafserv/express/v4/index.js +1 -0
- package/fwd/grafserv/fastify/v4/index.d.ts +1 -0
- package/fwd/grafserv/fastify/v4/index.js +1 -0
- package/fwd/grafserv/index.d.ts +1 -0
- package/fwd/grafserv/index.js +1 -0
- package/fwd/grafserv/koa/v2/index.d.ts +1 -0
- package/fwd/grafserv/koa/v2/index.js +1 -0
- package/fwd/grafserv/node/index.d.ts +1 -0
- package/fwd/grafserv/node/index.js +1 -0
- package/fwd/grafserv/ruru/cli/index.d.ts +1 -0
- package/fwd/grafserv/ruru/cli/index.js +1 -0
- package/fwd/grafserv/ruru/index.d.ts +1 -0
- package/fwd/grafserv/ruru/index.js +1 -0
- package/fwd/grafserv/ruru/server/index.d.ts +1 -0
- package/fwd/grafserv/ruru/server/index.js +1 -0
- package/fwd/graphile-build/index.d.ts +2 -0
- package/fwd/graphile-build/index.js +1 -0
- package/fwd/graphile-build-pg/index.d.ts +1 -0
- package/fwd/graphile-build-pg/index.js +1 -0
- package/fwd/graphile-build-pg/pg-introspection/index.d.ts +1 -0
- package/fwd/graphile-build-pg/pg-introspection/index.js +1 -0
- package/fwd/graphile-utils/index.d.ts +1 -0
- package/fwd/graphile-utils/index.js +1 -0
- package/fwd/pg-sql2/index.d.ts +1 -0
- package/fwd/pg-sql2/index.js +1 -0
- package/fwd/tamedevil/index.d.ts +1 -0
- package/fwd/tamedevil/index.js +1 -0
- package/package.json +155 -13
package/dist/presets/v4.js
CHANGED
|
@@ -13,10 +13,30 @@ function isNotNullish(arg) {
|
|
|
13
13
|
return arg != null;
|
|
14
14
|
}
|
|
15
15
|
const makeV4Plugin = (options) => {
|
|
16
|
-
const { classicIds = false } = options;
|
|
16
|
+
const { classicIds = false, defaultRole } = options;
|
|
17
|
+
if (defaultRole) {
|
|
18
|
+
throw new Error(`The 'defaultRole' V4 option is not currently supported in V5; please use the \`preset.grafast.context\` callback instead.`);
|
|
19
|
+
}
|
|
20
|
+
const simpleCollectionsBehavior = (() => {
|
|
21
|
+
switch (options.simpleCollections) {
|
|
22
|
+
case "both": {
|
|
23
|
+
return "+connection +resource:connection +list +resource:list";
|
|
24
|
+
}
|
|
25
|
+
case "only": {
|
|
26
|
+
return "-connection -resource:connection +list +resource:list";
|
|
27
|
+
}
|
|
28
|
+
case "omit": {
|
|
29
|
+
return "+connection +resource:connection -list -resource:list";
|
|
30
|
+
}
|
|
31
|
+
default: {
|
|
32
|
+
return "";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
})();
|
|
17
36
|
return {
|
|
18
37
|
name: "PostGraphileV4CompatibilityPlugin",
|
|
19
38
|
version: "0.0.0",
|
|
39
|
+
after: ["PgAttributesPlugin", "PgMutationUpdateDeletePlugin"],
|
|
20
40
|
inflection: {
|
|
21
41
|
ignoreReplaceIfNotExists: ["nodeIdFieldName"],
|
|
22
42
|
replace: {
|
|
@@ -25,7 +45,7 @@ const makeV4Plugin = (options) => {
|
|
|
25
45
|
? null
|
|
26
46
|
: {
|
|
27
47
|
// Rename GraphQL Global Object Identification 'id' to 'nodeId'
|
|
28
|
-
//
|
|
48
|
+
// NOTE: this would be better as `_id` in general, but V4 uses `nodeId`
|
|
29
49
|
nodeIdFieldName() {
|
|
30
50
|
return "nodeId";
|
|
31
51
|
},
|
|
@@ -42,50 +62,31 @@ const makeV4Plugin = (options) => {
|
|
|
42
62
|
},
|
|
43
63
|
},
|
|
44
64
|
schema: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
},
|
|
65
|
+
// We could base this on the legacy relations setting; but how to set deprecated?
|
|
66
|
+
globalBehavior(behavior) {
|
|
67
|
+
return `${behavior} ${simpleCollectionsBehavior} -singularRelation:resource:connection -singularRelation:resource:list +condition:attribute:filterBy +attribute:orderBy`;
|
|
68
|
+
},
|
|
69
|
+
entityBehavior: {
|
|
70
|
+
pgResource: "+delete:resource:select",
|
|
71
|
+
pgCodecAttribute(behavior, [codec, attributeName]) {
|
|
72
|
+
const attribute = codec.attributes[attributeName];
|
|
73
|
+
const underlyingCodec = attribute.codec.domainOfCodec ?? attribute.codec;
|
|
74
|
+
const newBehavior = [behavior];
|
|
75
|
+
if (underlyingCodec.arrayOfCodec ||
|
|
76
|
+
underlyingCodec.isBinary ||
|
|
77
|
+
underlyingCodec.rangeOfCodec) {
|
|
78
|
+
newBehavior.push("-attribute:orderBy");
|
|
79
|
+
}
|
|
80
|
+
if (underlyingCodec.isBinary ||
|
|
81
|
+
underlyingCodec.arrayOfCodec?.isBinary) {
|
|
82
|
+
newBehavior.push("-condition:attribute:filterBy");
|
|
83
|
+
}
|
|
84
|
+
return newBehavior;
|
|
66
85
|
},
|
|
67
86
|
},
|
|
68
87
|
},
|
|
69
88
|
};
|
|
70
89
|
};
|
|
71
|
-
function parseJWTType(type) {
|
|
72
|
-
const parts = type.split(".");
|
|
73
|
-
// TODO: parse this better!
|
|
74
|
-
if (parts.length !== 2) {
|
|
75
|
-
throw new Error("Cannot parse JWT type - it must have schema and type name separated by a period");
|
|
76
|
-
}
|
|
77
|
-
return parts.map((part) => {
|
|
78
|
-
if (part[0] === '"') {
|
|
79
|
-
if (part[part.length - 1] !== '"') {
|
|
80
|
-
throw new Error(`Cannot parse JWT type; invalid quoting '${part}'`);
|
|
81
|
-
}
|
|
82
|
-
return part.slice(1, part.length - 1);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return part;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
90
|
const makeV4Preset = (options = {}) => {
|
|
90
91
|
const { pgUseCustomNetworkScalars, pgStrictFunctions, orderByNullsLast, ...otherGraphileBuildOptions } = options.graphileBuildOptions ?? {};
|
|
91
92
|
if (options.enableQueryBatching) {
|
|
@@ -111,7 +112,9 @@ const makeV4Preset = (options = {}) => {
|
|
|
111
112
|
...(options.ignoreIndexes === false ? [] : ["PgIndexBehaviorsPlugin"]),
|
|
112
113
|
],
|
|
113
114
|
schema: {
|
|
115
|
+
pgMutationPayloadRelations: true,
|
|
114
116
|
...otherGraphileBuildOptions,
|
|
117
|
+
...{ simpleCollections: options.simpleCollections },
|
|
115
118
|
pgUseCustomNetworkScalars: pgUseCustomNetworkScalars ?? false,
|
|
116
119
|
pgOrderByNullsLast: orderByNullsLast,
|
|
117
120
|
pgV4UseTableNameForNodeIdentifier: true,
|
|
@@ -134,7 +137,7 @@ const makeV4Preset = (options = {}) => {
|
|
|
134
137
|
pgStrictFunctions,
|
|
135
138
|
...(options.jwtPgTypeIdentifier
|
|
136
139
|
? {
|
|
137
|
-
|
|
140
|
+
pgJwtTypes: [options.jwtPgTypeIdentifier],
|
|
138
141
|
}
|
|
139
142
|
: null),
|
|
140
143
|
},
|
package/dist/presets/v4.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v4.js","sourceRoot":"","sources":["../../src/presets/v4.ts"],"names":[],"mappings":";;;AAAA,2BAAyB;
|
|
1
|
+
{"version":3,"file":"v4.js","sourceRoot":"","sources":["../../src/presets/v4.ts"],"names":[],"mappings":";;;AAAA,2BAAyB;AAGzB,uCAAiE;AAGjE,4EAAsE;AAI7D,mGAJA,0CAAkB,OAIA;AAH3B,gFAA0E;AAG7C,qGAHpB,8CAAoB,OAGoB;AAFjD,8EAAwE;AAErB,oGAF1C,4CAAmB,OAE0C;AAiFtE,SAAS,YAAY,CAAI,GAAyB;IAChD,OAAO,GAAG,IAAI,IAAI,CAAC;AACrB,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,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,CAAC,CAAC;AAlIW,QAAA,YAAY,gBAkIvB;AAEW,QAAA,QAAQ,GAAG,IAAA,oBAAY,GAAE,CAAC;AACvC,kBAAe,gBAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,iBAAiB,CAAC"}
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AAC5C,QAAA,OAAO,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@dataplan/json";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("@dataplan/json");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@dataplan/pg/adaptors/pg";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("@dataplan/pg/adaptors/pg");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@dataplan/pg";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("@dataplan/pg");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafast/envelop";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafast/envelop");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafast/graphql";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafast/graphql");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafast";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafast");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/express/v4";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/express/v4");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/fastify/v4";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/fastify/v4");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/koa/v2";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/koa/v2");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/node";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/node");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/ruru/cli";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/ruru/cli");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/ruru";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/ruru");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "grafserv/ruru/server";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("grafserv/ruru/server");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("graphile-build");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "graphile-build-pg";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("graphile-build-pg");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "graphile-build-pg/pg-introspection";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("graphile-build-pg/pg-introspection");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "graphile-utils";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("graphile-utils");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "pg-sql2";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("pg-sql2");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "tamedevil";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("tamedevil");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postgraphile",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"description": "Automatic, high performance, and highly customizable GraphQL API for PostgreSQL",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,6 +24,126 @@
|
|
|
24
24
|
"types": "./dist/presets/v4.d.ts",
|
|
25
25
|
"node": "./dist/presets/v4.js",
|
|
26
26
|
"default": "./dist/presets/v4.js"
|
|
27
|
+
},
|
|
28
|
+
"./presets/relay": {
|
|
29
|
+
"types": "./dist/presets/relay.d.ts",
|
|
30
|
+
"node": "./dist/presets/relay.js",
|
|
31
|
+
"default": "./dist/presets/relay.js"
|
|
32
|
+
},
|
|
33
|
+
"./presets/lazy-jwt": {
|
|
34
|
+
"types": "./dist/presets/lazy-jwt.d.ts",
|
|
35
|
+
"node": "./dist/presets/lazy-jwt.js",
|
|
36
|
+
"default": "./dist/presets/lazy-jwt.js"
|
|
37
|
+
},
|
|
38
|
+
"./adaptors/pg": {
|
|
39
|
+
"types": "./fwd/@dataplan/pg/adaptors/pg/index.d.ts",
|
|
40
|
+
"node": "./fwd/@dataplan/pg/adaptors/pg/index.js",
|
|
41
|
+
"default": "./fwd/@dataplan/pg/adaptors/pg/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./graphql": {
|
|
44
|
+
"types": "./fwd/grafast/graphql/index.d.ts",
|
|
45
|
+
"node": "./fwd/grafast/graphql/index.js",
|
|
46
|
+
"default": "./fwd/grafast/graphql/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./@dataplan/json": {
|
|
49
|
+
"types": "./fwd/@dataplan/json/index.d.ts",
|
|
50
|
+
"node": "./fwd/@dataplan/json/index.js",
|
|
51
|
+
"default": "./fwd/@dataplan/json/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./@dataplan/pg": {
|
|
54
|
+
"types": "./fwd/@dataplan/pg/index.d.ts",
|
|
55
|
+
"node": "./fwd/@dataplan/pg/index.js",
|
|
56
|
+
"default": "./fwd/@dataplan/pg/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./@dataplan/pg/adaptors/pg": {
|
|
59
|
+
"types": "./fwd/@dataplan/pg/adaptors/pg/index.d.ts",
|
|
60
|
+
"node": "./fwd/@dataplan/pg/adaptors/pg/index.js",
|
|
61
|
+
"default": "./fwd/@dataplan/pg/adaptors/pg/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./grafast": {
|
|
64
|
+
"types": "./fwd/grafast/index.d.ts",
|
|
65
|
+
"node": "./fwd/grafast/index.js",
|
|
66
|
+
"default": "./fwd/grafast/index.js"
|
|
67
|
+
},
|
|
68
|
+
"./grafast/envelop": {
|
|
69
|
+
"types": "./fwd/grafast/envelop/index.d.ts",
|
|
70
|
+
"node": "./fwd/grafast/envelop/index.js",
|
|
71
|
+
"default": "./fwd/grafast/envelop/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./grafast/graphql": {
|
|
74
|
+
"types": "./fwd/grafast/graphql/index.d.ts",
|
|
75
|
+
"node": "./fwd/grafast/graphql/index.js",
|
|
76
|
+
"default": "./fwd/grafast/graphql/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./grafserv": {
|
|
79
|
+
"types": "./fwd/grafserv/index.d.ts",
|
|
80
|
+
"node": "./fwd/grafserv/index.js",
|
|
81
|
+
"default": "./fwd/grafserv/index.js"
|
|
82
|
+
},
|
|
83
|
+
"./grafserv/node": {
|
|
84
|
+
"types": "./fwd/grafserv/node/index.d.ts",
|
|
85
|
+
"node": "./fwd/grafserv/node/index.js",
|
|
86
|
+
"default": "./fwd/grafserv/node/index.js"
|
|
87
|
+
},
|
|
88
|
+
"./grafserv/express/v4": {
|
|
89
|
+
"types": "./fwd/grafserv/express/v4/index.d.ts",
|
|
90
|
+
"node": "./fwd/grafserv/express/v4/index.js",
|
|
91
|
+
"default": "./fwd/grafserv/express/v4/index.js"
|
|
92
|
+
},
|
|
93
|
+
"./grafserv/koa/v2": {
|
|
94
|
+
"types": "./fwd/grafserv/koa/v2/index.d.ts",
|
|
95
|
+
"node": "./fwd/grafserv/koa/v2/index.js",
|
|
96
|
+
"default": "./fwd/grafserv/koa/v2/index.js"
|
|
97
|
+
},
|
|
98
|
+
"./grafserv/fastify/v4": {
|
|
99
|
+
"types": "./fwd/grafserv/fastify/v4/index.d.ts",
|
|
100
|
+
"node": "./fwd/grafserv/fastify/v4/index.js",
|
|
101
|
+
"default": "./fwd/grafserv/fastify/v4/index.js"
|
|
102
|
+
},
|
|
103
|
+
"./grafserv/ruru": {
|
|
104
|
+
"types": "./fwd/grafserv/ruru/index.d.ts",
|
|
105
|
+
"node": "./fwd/grafserv/ruru/index.js",
|
|
106
|
+
"default": "./fwd/grafserv/ruru/index.js"
|
|
107
|
+
},
|
|
108
|
+
"./grafserv/ruru/server": {
|
|
109
|
+
"types": "./fwd/grafserv/ruru/server/index.d.ts",
|
|
110
|
+
"node": "./fwd/grafserv/ruru/server/index.js",
|
|
111
|
+
"default": "./fwd/grafserv/ruru/server/index.js"
|
|
112
|
+
},
|
|
113
|
+
"./grafserv/ruru/cli": {
|
|
114
|
+
"types": "./fwd/grafserv/ruru/cli/index.d.ts",
|
|
115
|
+
"node": "./fwd/grafserv/ruru/cli/index.js",
|
|
116
|
+
"default": "./fwd/grafserv/ruru/cli/index.js"
|
|
117
|
+
},
|
|
118
|
+
"./graphile-build": {
|
|
119
|
+
"types": "./fwd/graphile-build/index.d.ts",
|
|
120
|
+
"node": "./fwd/graphile-build/index.js",
|
|
121
|
+
"default": "./fwd/graphile-build/index.js"
|
|
122
|
+
},
|
|
123
|
+
"./graphile-build-pg": {
|
|
124
|
+
"types": "./fwd/graphile-build-pg/index.d.ts",
|
|
125
|
+
"node": "./fwd/graphile-build-pg/index.js",
|
|
126
|
+
"default": "./fwd/graphile-build-pg/index.js"
|
|
127
|
+
},
|
|
128
|
+
"./graphile-build-pg/pg-introspection": {
|
|
129
|
+
"types": "./fwd/graphile-build-pg/pg-introspection/index.d.ts",
|
|
130
|
+
"node": "./fwd/graphile-build-pg/pg-introspection/index.js",
|
|
131
|
+
"default": "./fwd/graphile-build-pg/pg-introspection/index.js"
|
|
132
|
+
},
|
|
133
|
+
"./pg-sql2": {
|
|
134
|
+
"types": "./fwd/pg-sql2/index.d.ts",
|
|
135
|
+
"node": "./fwd/pg-sql2/index.js",
|
|
136
|
+
"default": "./fwd/pg-sql2/index.js"
|
|
137
|
+
},
|
|
138
|
+
"./tamedevil": {
|
|
139
|
+
"types": "./fwd/tamedevil/index.d.ts",
|
|
140
|
+
"node": "./fwd/tamedevil/index.js",
|
|
141
|
+
"default": "./fwd/tamedevil/index.js"
|
|
142
|
+
},
|
|
143
|
+
"./utils": {
|
|
144
|
+
"types": "./fwd/graphile-utils/index.d.ts",
|
|
145
|
+
"node": "./fwd/graphile-utils/index.js",
|
|
146
|
+
"default": "./fwd/graphile-utils/index.js"
|
|
27
147
|
}
|
|
28
148
|
},
|
|
29
149
|
"bin": "./dist/cli-run.js",
|
|
@@ -56,30 +176,52 @@
|
|
|
56
176
|
},
|
|
57
177
|
"homepage": "https://graphile.org/graphile-engine/",
|
|
58
178
|
"dependencies": {
|
|
59
|
-
"@dataplan/
|
|
60
|
-
"@
|
|
179
|
+
"@dataplan/json": "0.0.1-beta.2",
|
|
180
|
+
"@dataplan/pg": "0.0.1-beta.2",
|
|
181
|
+
"@graphile/lru": "^5.0.0-beta.1",
|
|
61
182
|
"@types/node": "^18.15.5",
|
|
62
183
|
"@types/pg": "^8.6.2",
|
|
63
184
|
"debug": "^4.3.3",
|
|
64
|
-
"grafast": "^0.0.1-
|
|
65
|
-
"grafserv": "^0.0.1-
|
|
66
|
-
"graphile-build": "5.0.0-
|
|
67
|
-
"graphile-build-pg": "5.0.0-
|
|
68
|
-
"graphile-config": "^0.0.1-
|
|
69
|
-
"
|
|
185
|
+
"grafast": "^0.0.1-beta.2",
|
|
186
|
+
"grafserv": "^0.0.1-beta.2",
|
|
187
|
+
"graphile-build": "5.0.0-beta.2",
|
|
188
|
+
"graphile-build-pg": "5.0.0-beta.2",
|
|
189
|
+
"graphile-config": "^0.0.1-beta.1",
|
|
190
|
+
"graphile-utils": "^5.0.0-beta.2",
|
|
191
|
+
"graphql": "^16.1.0-experimental-stream-defer.6",
|
|
70
192
|
"iterall": "^1.3.0",
|
|
71
193
|
"jsonwebtoken": "^8.5.1",
|
|
72
194
|
"pg": "^8.7.1",
|
|
73
|
-
"pg-
|
|
74
|
-
"
|
|
195
|
+
"pg-sql2": "^5.0.0-beta.1",
|
|
196
|
+
"tamedevil": "^0.0.0-beta.1",
|
|
75
197
|
"tslib": "^2.5.0",
|
|
76
198
|
"ws": "^8.12.1"
|
|
77
199
|
},
|
|
200
|
+
"peerDependencies": {
|
|
201
|
+
"@dataplan/json": "0.0.1-beta.2",
|
|
202
|
+
"@dataplan/pg": "0.0.1-beta.2",
|
|
203
|
+
"@envelop/core": "^3.0.4",
|
|
204
|
+
"grafast": "^0.0.1-beta.2",
|
|
205
|
+
"grafserv": "^0.0.1-beta.2",
|
|
206
|
+
"graphile-build": "5.0.0-beta.2",
|
|
207
|
+
"graphile-build-pg": "5.0.0-beta.2",
|
|
208
|
+
"graphile-config": "^0.0.1-beta.1",
|
|
209
|
+
"graphql": "^16.1.0-experimental-stream-defer.6",
|
|
210
|
+
"pg": "^8.7.1",
|
|
211
|
+
"pg-sql2": "^5.0.0-beta.1",
|
|
212
|
+
"tamedevil": "^0.0.0-beta.1"
|
|
213
|
+
},
|
|
214
|
+
"peerDependenciesMeta": {
|
|
215
|
+
"@envelop/core": {
|
|
216
|
+
"optional": true
|
|
217
|
+
}
|
|
218
|
+
},
|
|
78
219
|
"engines": {
|
|
79
220
|
"node": ">=16"
|
|
80
221
|
},
|
|
81
222
|
"files": [
|
|
82
223
|
"dist",
|
|
224
|
+
"fwd",
|
|
83
225
|
"index.js"
|
|
84
226
|
],
|
|
85
227
|
"devDependencies": {
|
|
@@ -88,8 +230,8 @@
|
|
|
88
230
|
"@types/jest": "^27.5.1",
|
|
89
231
|
"@types/jsonwebtoken": "^8",
|
|
90
232
|
"@types/nodemon": "1.19.1",
|
|
91
|
-
"graphile": "^5.0.0-
|
|
92
|
-
"graphile-export": "^0.0.2-
|
|
233
|
+
"graphile": "^5.0.0-beta.2",
|
|
234
|
+
"graphile-export": "^0.0.2-beta.1",
|
|
93
235
|
"jest": "^28.1.3",
|
|
94
236
|
"nodemon": "^2.0.15",
|
|
95
237
|
"ts-node": "^10.9.1",
|