@constructive-io/graphql-codegen 4.22.2 → 4.22.6
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.
|
@@ -156,16 +156,6 @@ function generateCreateClientFile(tables, hasCustomQueries, hasCustomMutations,
|
|
|
156
156
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./select-types')));
|
|
157
157
|
// Re-export all models
|
|
158
158
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./models')));
|
|
159
|
-
// Re-export all input types (SecureTableProvision, RelationProvision, Blueprint, etc.)
|
|
160
|
-
statements.push(t.exportAllDeclaration(t.stringLiteral('./types')));
|
|
161
|
-
// Explicitly resolve ambiguity for types exported by both select-types and types/input-types
|
|
162
|
-
// (ConnectionResult, PageInfo are defined in both — prefer the select-types versions)
|
|
163
|
-
const ambiguousTypeExport = t.exportNamedDeclaration(null, [
|
|
164
|
-
t.exportSpecifier(t.identifier('ConnectionResult'), t.identifier('ConnectionResult')),
|
|
165
|
-
t.exportSpecifier(t.identifier('PageInfo'), t.identifier('PageInfo')),
|
|
166
|
-
], t.stringLiteral('./select-types'));
|
|
167
|
-
ambiguousTypeExport.exportKind = 'type';
|
|
168
|
-
statements.push(ambiguousTypeExport);
|
|
169
159
|
// Re-export NodeHttpAdapter when enabled (for use in any Node.js application)
|
|
170
160
|
if (options?.nodeHttpAdapter) {
|
|
171
161
|
statements.push(t.exportNamedDeclaration(null, [
|
|
@@ -117,16 +117,6 @@ export function generateCreateClientFile(tables, hasCustomQueries, hasCustomMuta
|
|
|
117
117
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./select-types')));
|
|
118
118
|
// Re-export all models
|
|
119
119
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./models')));
|
|
120
|
-
// Re-export all input types (SecureTableProvision, RelationProvision, Blueprint, etc.)
|
|
121
|
-
statements.push(t.exportAllDeclaration(t.stringLiteral('./types')));
|
|
122
|
-
// Explicitly resolve ambiguity for types exported by both select-types and types/input-types
|
|
123
|
-
// (ConnectionResult, PageInfo are defined in both — prefer the select-types versions)
|
|
124
|
-
const ambiguousTypeExport = t.exportNamedDeclaration(null, [
|
|
125
|
-
t.exportSpecifier(t.identifier('ConnectionResult'), t.identifier('ConnectionResult')),
|
|
126
|
-
t.exportSpecifier(t.identifier('PageInfo'), t.identifier('PageInfo')),
|
|
127
|
-
], t.stringLiteral('./select-types'));
|
|
128
|
-
ambiguousTypeExport.exportKind = 'type';
|
|
129
|
-
statements.push(ambiguousTypeExport);
|
|
130
120
|
// Re-export NodeHttpAdapter when enabled (for use in any Node.js application)
|
|
131
121
|
if (options?.nodeHttpAdapter) {
|
|
132
122
|
statements.push(t.exportNamedDeclaration(null, [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-codegen",
|
|
3
|
-
"version": "4.22.
|
|
3
|
+
"version": "4.22.6",
|
|
4
4
|
"description": "GraphQL SDK generator for Constructive databases with React Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"@0no-co/graphql.web": "^1.1.2",
|
|
57
57
|
"@babel/generator": "^7.29.1",
|
|
58
58
|
"@babel/types": "^7.29.0",
|
|
59
|
-
"@constructive-io/graphql-query": "^3.10.
|
|
59
|
+
"@constructive-io/graphql-query": "^3.10.4",
|
|
60
60
|
"@constructive-io/graphql-types": "^3.3.4",
|
|
61
61
|
"@inquirerer/utils": "^3.3.4",
|
|
62
|
-
"@pgpmjs/core": "^6.9.
|
|
62
|
+
"@pgpmjs/core": "^6.9.3",
|
|
63
63
|
"ajv": "^8.18.0",
|
|
64
64
|
"deepmerge": "^4.3.1",
|
|
65
65
|
"find-and-require-package-json": "^0.9.1",
|
|
66
66
|
"gql-ast": "^3.3.3",
|
|
67
|
-
"graphile-schema": "^1.9.
|
|
67
|
+
"graphile-schema": "^1.9.4",
|
|
68
68
|
"graphql": "16.13.0",
|
|
69
69
|
"inflekt": "^0.3.3",
|
|
70
70
|
"inquirerer": "^4.7.0",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"oxfmt": "^0.40.0",
|
|
74
74
|
"pg-cache": "^3.3.4",
|
|
75
75
|
"pg-env": "^1.7.3",
|
|
76
|
-
"pgsql-client": "^3.6.
|
|
77
|
-
"pgsql-seed": "^2.6.
|
|
76
|
+
"pgsql-client": "^3.6.3",
|
|
77
|
+
"pgsql-seed": "^2.6.3",
|
|
78
78
|
"undici": "^7.24.3"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"tsx": "^4.21.0",
|
|
102
102
|
"typescript": "^5.9.3"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "6eb4389816805b64af3a2aa18b29a08f37bb013f"
|
|
105
105
|
}
|