@constructive-io/graphql-codegen 2.23.1 → 2.23.3

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.
@@ -195,6 +195,7 @@ async function loadConfig(options) {
195
195
  hooks: baseConfig.hooks,
196
196
  postgraphile: baseConfig.postgraphile,
197
197
  codegen: baseConfig.codegen,
198
+ reactQuery: baseConfig.reactQuery,
198
199
  };
199
200
  // Validate at least one source is provided
200
201
  if (!mergedConfig.endpoint && !mergedConfig.schema) {
package/cli/index.js CHANGED
@@ -74,6 +74,7 @@ async function loadWatchConfig(options) {
74
74
  postgraphile: baseConfig.postgraphile,
75
75
  codegen: baseConfig.codegen,
76
76
  orm: baseConfig.orm,
77
+ reactQuery: baseConfig.reactQuery,
77
78
  watch: {
78
79
  ...baseConfig.watch,
79
80
  // CLI options override config
@@ -158,6 +158,7 @@ async function loadConfig(options) {
158
158
  hooks: baseConfig.hooks,
159
159
  postgraphile: baseConfig.postgraphile,
160
160
  codegen: baseConfig.codegen,
161
+ reactQuery: baseConfig.reactQuery,
161
162
  };
162
163
  // Validate at least one source is provided
163
164
  if (!mergedConfig.endpoint && !mergedConfig.schema) {
package/esm/cli/index.js CHANGED
@@ -39,6 +39,7 @@ async function loadWatchConfig(options) {
39
39
  postgraphile: baseConfig.postgraphile,
40
40
  codegen: baseConfig.codegen,
41
41
  orm: baseConfig.orm,
42
+ reactQuery: baseConfig.reactQuery,
42
43
  watch: {
43
44
  ...baseConfig.watch,
44
45
  // CLI options override config
@@ -43,7 +43,7 @@ export const DEFAULT_CONFIG = {
43
43
  },
44
44
  orm: null, // ORM generation disabled by default
45
45
  reactQuery: {
46
- enabled: false, // React Query hooks disabled by default
46
+ enabled: true, // React Query hooks enabled by default for generate command
47
47
  },
48
48
  watch: DEFAULT_WATCH_CONFIG,
49
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/graphql-codegen",
3
- "version": "2.23.1",
3
+ "version": "2.23.3",
4
4
  "description": "CLI-based GraphQL SDK generator for PostGraphile endpoints with React Query hooks",
5
5
  "keywords": [
6
6
  "graphql",
@@ -53,7 +53,7 @@
53
53
  "commander": "^12.1.0",
54
54
  "gql-ast": "^2.4.6",
55
55
  "graphql": "15.10.1",
56
- "inflekt": "^0.1.2",
56
+ "inflekt": "^0.2.0",
57
57
  "jiti": "^2.6.1",
58
58
  "prettier": "^3.7.4",
59
59
  "ts-morph": "^27.0.2"
@@ -81,5 +81,5 @@
81
81
  "tsx": "^4.21.0",
82
82
  "typescript": "^5.9.3"
83
83
  },
84
- "gitHead": "22c89cfc6f67879e77ca47f652c31c80828665f5"
84
+ "gitHead": "cb4af2cf6c23dad24cd951c232d3e2006b81aa3d"
85
85
  }
package/types/config.js CHANGED
@@ -48,7 +48,7 @@ exports.DEFAULT_CONFIG = {
48
48
  },
49
49
  orm: null, // ORM generation disabled by default
50
50
  reactQuery: {
51
- enabled: false, // React Query hooks disabled by default
51
+ enabled: true, // React Query hooks enabled by default for generate command
52
52
  },
53
53
  watch: exports.DEFAULT_WATCH_CONFIG,
54
54
  };