@depup/graphql-codegen__cli 7.2.0-depup.9 → 7.3.0-depup.0

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/README.md CHANGED
@@ -13,10 +13,10 @@ npm install @depup/graphql-codegen__cli
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@graphql-codegen/cli](https://www.npmjs.com/package/@graphql-codegen/cli) @ 7.2.0 |
17
- | Processed | 2026-07-22 |
16
+ | Original | [@graphql-codegen/cli](https://www.npmjs.com/package/@graphql-codegen/cli) @ 7.3.0 |
17
+ | Processed | 2026-08-22 |
18
18
  | Smoke test | passed |
19
- | Deps updated | 27 |
19
+ | Deps updated | 28 |
20
20
 
21
21
  ## Dependency Changes
22
22
 
@@ -25,20 +25,20 @@ npm install @depup/graphql-codegen__cli
25
25
  | @babel/generator | ^7.18.13 | ^8.0.0 |
26
26
  | @babel/template | ^7.18.10 | ^8.0.0 |
27
27
  | @babel/types | ^7.18.13 | ^8.0.4 |
28
- | @graphql-tools/apollo-engine-loader | ^8.0.28 | ^8.0.34 |
29
- | @graphql-tools/code-file-loader | ^8.1.28 | ^8.1.36 |
30
- | @graphql-tools/git-loader | ^8.0.32 | ^8.0.40 |
31
- | @graphql-tools/github-loader | ^9.0.6 | ^9.1.6 |
32
- | @graphql-tools/graphql-file-loader | ^8.1.11 | ^8.1.18 |
33
- | @graphql-tools/json-file-loader | ^8.0.26 | ^8.0.32 |
34
- | @graphql-tools/load | ^8.1.8 | ^8.1.15 |
35
- | @graphql-tools/merge | ^9.0.6 | ^9.2.2 |
36
- | @graphql-tools/url-loader | ^9.0.6 | ^9.1.6 |
37
- | @graphql-tools/utils | ^11.2.0 | ^11.2.2 |
38
- | @inquirer/prompts | ^8.3.2 | ^8.5.2 |
28
+ | @graphql-tools/apollo-engine-loader | ^8.0.28 | ^8.0.35 |
29
+ | @graphql-tools/code-file-loader | ^8.1.28 | ^8.1.37 |
30
+ | @graphql-tools/git-loader | ^8.0.32 | ^8.0.41 |
31
+ | @graphql-tools/github-loader | ^9.0.6 | ^9.1.7 |
32
+ | @graphql-tools/graphql-file-loader | ^8.1.11 | ^8.1.19 |
33
+ | @graphql-tools/json-file-loader | ^8.0.26 | ^8.0.33 |
34
+ | @graphql-tools/load | ^8.1.8 | ^8.1.16 |
35
+ | @graphql-tools/merge | ^9.0.6 | ^9.2.3 |
36
+ | @graphql-tools/url-loader | ^9.0.6 | ^9.1.7 |
37
+ | @graphql-tools/utils | ^11.2.0 | ^12.0.0 |
38
+ | @inquirer/prompts | ^8.3.2 | ^8.6.0 |
39
39
  | @whatwg-node/fetch | ^0.10.0 | ^0.10.13 |
40
- | chalk | ^5.6.0 | ^5.6.2 |
41
- | cosmiconfig | ^9.0.0 | ^9.0.2 |
40
+ | chalk | ^5.6.0 | ^6.0.0 |
41
+ | cosmiconfig | ^9.0.0 | ^10.0.0 |
42
42
  | detect-indent | ^7.0.0 | ^7.0.2 |
43
43
  | is-glob | ^4.0.1 | ^4.0.3 |
44
44
  | jiti | ^2.3.0 | ^2.7.0 |
@@ -46,9 +46,10 @@ npm install @depup/graphql-codegen__cli
46
46
  | log-symbols | ^7.0.0 | ^7.0.1 |
47
47
  | micromatch | ^4.0.5 | ^4.0.8 |
48
48
  | shell-quote | ^1.7.3 | ^1.10.0 |
49
- | ts-log | ^3.0.0 | ^3.0.2 |
49
+ | ts-log | ^3.0.0 | ^3.0.3 |
50
50
  | tslib | ^2.4.0 | ^2.8.1 |
51
51
  | yaml | ^2.3.1 | ^2.9.0 |
52
+ | yargs | ^18.0.0 | ^18.1.0 |
52
53
 
53
54
  ---
54
55
 
package/changes.json CHANGED
@@ -14,47 +14,47 @@
14
14
  },
15
15
  "@graphql-tools/apollo-engine-loader": {
16
16
  "from": "^8.0.28",
17
- "to": "^8.0.34"
17
+ "to": "^8.0.35"
18
18
  },
19
19
  "@graphql-tools/code-file-loader": {
20
20
  "from": "^8.1.28",
21
- "to": "^8.1.36"
21
+ "to": "^8.1.37"
22
22
  },
23
23
  "@graphql-tools/git-loader": {
24
24
  "from": "^8.0.32",
25
- "to": "^8.0.40"
25
+ "to": "^8.0.41"
26
26
  },
27
27
  "@graphql-tools/github-loader": {
28
28
  "from": "^9.0.6",
29
- "to": "^9.1.6"
29
+ "to": "^9.1.7"
30
30
  },
31
31
  "@graphql-tools/graphql-file-loader": {
32
32
  "from": "^8.1.11",
33
- "to": "^8.1.18"
33
+ "to": "^8.1.19"
34
34
  },
35
35
  "@graphql-tools/json-file-loader": {
36
36
  "from": "^8.0.26",
37
- "to": "^8.0.32"
37
+ "to": "^8.0.33"
38
38
  },
39
39
  "@graphql-tools/load": {
40
40
  "from": "^8.1.8",
41
- "to": "^8.1.15"
41
+ "to": "^8.1.16"
42
42
  },
43
43
  "@graphql-tools/merge": {
44
44
  "from": "^9.0.6",
45
- "to": "^9.2.2"
45
+ "to": "^9.2.3"
46
46
  },
47
47
  "@graphql-tools/url-loader": {
48
48
  "from": "^9.0.6",
49
- "to": "^9.1.6"
49
+ "to": "^9.1.7"
50
50
  },
51
51
  "@graphql-tools/utils": {
52
52
  "from": "^11.2.0",
53
- "to": "^11.2.2"
53
+ "to": "^12.0.0"
54
54
  },
55
55
  "@inquirer/prompts": {
56
56
  "from": "^8.3.2",
57
- "to": "^8.5.2"
57
+ "to": "^8.6.0"
58
58
  },
59
59
  "@whatwg-node/fetch": {
60
60
  "from": "^0.10.0",
@@ -62,11 +62,11 @@
62
62
  },
63
63
  "chalk": {
64
64
  "from": "^5.6.0",
65
- "to": "^5.6.2"
65
+ "to": "^6.0.0"
66
66
  },
67
67
  "cosmiconfig": {
68
68
  "from": "^9.0.0",
69
- "to": "^9.0.2"
69
+ "to": "^10.0.0"
70
70
  },
71
71
  "detect-indent": {
72
72
  "from": "^7.0.0",
@@ -98,7 +98,7 @@
98
98
  },
99
99
  "ts-log": {
100
100
  "from": "^3.0.0",
101
- "to": "^3.0.2"
101
+ "to": "^3.0.3"
102
102
  },
103
103
  "tslib": {
104
104
  "from": "^2.4.0",
@@ -107,8 +107,12 @@
107
107
  "yaml": {
108
108
  "from": "^2.3.1",
109
109
  "to": "^2.9.0"
110
+ },
111
+ "yargs": {
112
+ "from": "^18.0.0",
113
+ "to": "^18.1.0"
110
114
  }
111
115
  },
112
- "timestamp": "2026-07-22T00:35:57.559Z",
113
- "totalUpdated": 27
116
+ "timestamp": "2026-08-22T08:07:12.460Z",
117
+ "totalUpdated": 28
114
118
  }
@@ -23,7 +23,7 @@ async function generate(input, saveToFile = true) {
23
23
  // find stale files from previous build which are not present in current build
24
24
  const staleFilenames = previouslyGeneratedFilenames.filter(f => !filenames.includes(f));
25
25
  for (const filename of staleFilenames) {
26
- if (shouldOverwrite(config, filename)) {
26
+ if (normalizeOverwriteConfig(config, filename).removeStaleFiles) {
27
27
  (0, file_system_js_1.unlinkFile)(filename, err => {
28
28
  const prettyFilename = filename.replace(`${input.cwd || process.cwd()}/`, '');
29
29
  if (err) {
@@ -55,7 +55,7 @@ async function generate(input, saveToFile = true) {
55
55
  if (previousHash) {
56
56
  recentOutputHash.set(result.filename, previousHash);
57
57
  }
58
- if (!shouldOverwrite(config, result.filename) && exists) {
58
+ if (!normalizeOverwriteConfig(config, result.filename).updateExistingFiles && exists) {
59
59
  return;
60
60
  }
61
61
  let content = result.content || '';
@@ -123,17 +123,33 @@ async function generate(input, saveToFile = true) {
123
123
  }
124
124
  return outputFiles;
125
125
  }
126
- function shouldOverwrite(config, outputPath) {
127
- const globalValue = config.overwrite === undefined ? true : !!config.overwrite;
128
- const outputConfig = config.generates[outputPath];
129
- if (!outputConfig) {
130
- (0, debugging_js_1.debugLog)(`Couldn't find a config of ${outputPath}`);
131
- return globalValue;
126
+ function normalizeOverwriteConfig(config, outputPath) {
127
+ const overwrite = (function getOverwriteOption() {
128
+ const { overwrite: result = true } = config;
129
+ const outputConfig = config.generates[outputPath];
130
+ if (!outputConfig) {
131
+ (0, debugging_js_1.debugLog)(`Couldn't find a config of ${outputPath}`);
132
+ return result;
133
+ }
134
+ if (isConfiguredOutput(outputConfig) && outputConfig.overwrite !== undefined) {
135
+ return outputConfig.overwrite;
136
+ }
137
+ return result;
138
+ })();
139
+ if (overwrite === true) {
140
+ return {
141
+ removeStaleFiles: true,
142
+ updateExistingFiles: true,
143
+ };
132
144
  }
133
- if (isConfiguredOutput(outputConfig) && typeof outputConfig.overwrite === 'boolean') {
134
- return outputConfig.overwrite;
145
+ if (overwrite === false) {
146
+ return {
147
+ removeStaleFiles: false,
148
+ updateExistingFiles: false,
149
+ };
135
150
  }
136
- return globalValue;
151
+ const { removeStaleFiles = true, updateExistingFiles = true } = overwrite;
152
+ return { removeStaleFiles, updateExistingFiles };
137
153
  }
138
154
  function isConfiguredOutput(output) {
139
155
  return typeof output.plugins !== 'undefined';
package/cjs/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '7.2.0';
4
+ exports.version = '7.3.0';
@@ -19,7 +19,7 @@ export async function generate(input, saveToFile = true) {
19
19
  // find stale files from previous build which are not present in current build
20
20
  const staleFilenames = previouslyGeneratedFilenames.filter(f => !filenames.includes(f));
21
21
  for (const filename of staleFilenames) {
22
- if (shouldOverwrite(config, filename)) {
22
+ if (normalizeOverwriteConfig(config, filename).removeStaleFiles) {
23
23
  unlinkFile(filename, err => {
24
24
  const prettyFilename = filename.replace(`${input.cwd || process.cwd()}/`, '');
25
25
  if (err) {
@@ -51,7 +51,7 @@ export async function generate(input, saveToFile = true) {
51
51
  if (previousHash) {
52
52
  recentOutputHash.set(result.filename, previousHash);
53
53
  }
54
- if (!shouldOverwrite(config, result.filename) && exists) {
54
+ if (!normalizeOverwriteConfig(config, result.filename).updateExistingFiles && exists) {
55
55
  return;
56
56
  }
57
57
  let content = result.content || '';
@@ -119,17 +119,33 @@ export async function generate(input, saveToFile = true) {
119
119
  }
120
120
  return outputFiles;
121
121
  }
122
- function shouldOverwrite(config, outputPath) {
123
- const globalValue = config.overwrite === undefined ? true : !!config.overwrite;
124
- const outputConfig = config.generates[outputPath];
125
- if (!outputConfig) {
126
- debugLog(`Couldn't find a config of ${outputPath}`);
127
- return globalValue;
122
+ function normalizeOverwriteConfig(config, outputPath) {
123
+ const overwrite = (function getOverwriteOption() {
124
+ const { overwrite: result = true } = config;
125
+ const outputConfig = config.generates[outputPath];
126
+ if (!outputConfig) {
127
+ debugLog(`Couldn't find a config of ${outputPath}`);
128
+ return result;
129
+ }
130
+ if (isConfiguredOutput(outputConfig) && outputConfig.overwrite !== undefined) {
131
+ return outputConfig.overwrite;
132
+ }
133
+ return result;
134
+ })();
135
+ if (overwrite === true) {
136
+ return {
137
+ removeStaleFiles: true,
138
+ updateExistingFiles: true,
139
+ };
128
140
  }
129
- if (isConfiguredOutput(outputConfig) && typeof outputConfig.overwrite === 'boolean') {
130
- return outputConfig.overwrite;
141
+ if (overwrite === false) {
142
+ return {
143
+ removeStaleFiles: false,
144
+ updateExistingFiles: false,
145
+ };
131
146
  }
132
- return globalValue;
147
+ const { removeStaleFiles = true, updateExistingFiles = true } = overwrite;
148
+ return { removeStaleFiles, updateExistingFiles };
133
149
  }
134
150
  function isConfiguredOutput(output) {
135
151
  return typeof output.plugins !== 'undefined';
package/esm/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '7.2.0';
1
+ export const version = '7.3.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/graphql-codegen__cli",
3
- "version": "7.2.0-depup.9",
3
+ "version": "7.3.0-depup.0",
4
4
  "peerDependenciesMeta": {
5
5
  "@parcel/watcher": {
6
6
  "optional": true
@@ -14,20 +14,20 @@
14
14
  "@babel/generator": "^8.0.0",
15
15
  "@babel/template": "^8.0.0",
16
16
  "@babel/types": "^8.0.4",
17
- "@graphql-tools/apollo-engine-loader": "^8.0.34",
18
- "@graphql-tools/code-file-loader": "^8.1.36",
19
- "@graphql-tools/git-loader": "^8.0.40",
20
- "@graphql-tools/github-loader": "^9.1.6",
21
- "@graphql-tools/graphql-file-loader": "^8.1.18",
22
- "@graphql-tools/json-file-loader": "^8.0.32",
23
- "@graphql-tools/load": "^8.1.15",
24
- "@graphql-tools/merge": "^9.2.2",
25
- "@graphql-tools/url-loader": "^9.1.6",
26
- "@graphql-tools/utils": "^11.2.2",
27
- "@inquirer/prompts": "^8.5.2",
17
+ "@graphql-tools/apollo-engine-loader": "^8.0.35",
18
+ "@graphql-tools/code-file-loader": "^8.1.37",
19
+ "@graphql-tools/git-loader": "^8.0.41",
20
+ "@graphql-tools/github-loader": "^9.1.7",
21
+ "@graphql-tools/graphql-file-loader": "^8.1.19",
22
+ "@graphql-tools/json-file-loader": "^8.0.33",
23
+ "@graphql-tools/load": "^8.1.16",
24
+ "@graphql-tools/merge": "^9.2.3",
25
+ "@graphql-tools/url-loader": "^9.1.7",
26
+ "@graphql-tools/utils": "^12.0.0",
27
+ "@inquirer/prompts": "^8.6.0",
28
28
  "@whatwg-node/fetch": "^0.10.13",
29
- "chalk": "^5.6.2",
30
- "cosmiconfig": "^9.0.2",
29
+ "chalk": "^6.0.0",
30
+ "cosmiconfig": "^10.0.0",
31
31
  "debounce": "^3.0.0",
32
32
  "detect-indent": "^7.0.2",
33
33
  "graphql-config": "^5.1.6",
@@ -39,13 +39,13 @@
39
39
  "micromatch": "^4.0.8",
40
40
  "shell-quote": "^1.10.0",
41
41
  "string-env-interpolation": "^1.0.1",
42
- "ts-log": "^3.0.2",
42
+ "ts-log": "^3.0.3",
43
43
  "tslib": "^2.8.1",
44
44
  "yaml": "^2.9.0",
45
- "yargs": "^18.0.0",
46
- "@graphql-codegen/client-preset": "^6.1.0",
45
+ "yargs": "^18.1.0",
46
+ "@graphql-codegen/client-preset": "^6.1.3",
47
47
  "@graphql-codegen/core": "^6.2.0",
48
- "@graphql-codegen/plugin-helpers": "^7.1.0"
48
+ "@graphql-codegen/plugin-helpers": "^7.2.0"
49
49
  },
50
50
  "repository": {
51
51
  "type": "git",
@@ -128,47 +128,47 @@
128
128
  },
129
129
  "@graphql-tools/apollo-engine-loader": {
130
130
  "from": "^8.0.28",
131
- "to": "^8.0.34"
131
+ "to": "^8.0.35"
132
132
  },
133
133
  "@graphql-tools/code-file-loader": {
134
134
  "from": "^8.1.28",
135
- "to": "^8.1.36"
135
+ "to": "^8.1.37"
136
136
  },
137
137
  "@graphql-tools/git-loader": {
138
138
  "from": "^8.0.32",
139
- "to": "^8.0.40"
139
+ "to": "^8.0.41"
140
140
  },
141
141
  "@graphql-tools/github-loader": {
142
142
  "from": "^9.0.6",
143
- "to": "^9.1.6"
143
+ "to": "^9.1.7"
144
144
  },
145
145
  "@graphql-tools/graphql-file-loader": {
146
146
  "from": "^8.1.11",
147
- "to": "^8.1.18"
147
+ "to": "^8.1.19"
148
148
  },
149
149
  "@graphql-tools/json-file-loader": {
150
150
  "from": "^8.0.26",
151
- "to": "^8.0.32"
151
+ "to": "^8.0.33"
152
152
  },
153
153
  "@graphql-tools/load": {
154
154
  "from": "^8.1.8",
155
- "to": "^8.1.15"
155
+ "to": "^8.1.16"
156
156
  },
157
157
  "@graphql-tools/merge": {
158
158
  "from": "^9.0.6",
159
- "to": "^9.2.2"
159
+ "to": "^9.2.3"
160
160
  },
161
161
  "@graphql-tools/url-loader": {
162
162
  "from": "^9.0.6",
163
- "to": "^9.1.6"
163
+ "to": "^9.1.7"
164
164
  },
165
165
  "@graphql-tools/utils": {
166
166
  "from": "^11.2.0",
167
- "to": "^11.2.2"
167
+ "to": "^12.0.0"
168
168
  },
169
169
  "@inquirer/prompts": {
170
170
  "from": "^8.3.2",
171
- "to": "^8.5.2"
171
+ "to": "^8.6.0"
172
172
  },
173
173
  "@whatwg-node/fetch": {
174
174
  "from": "^0.10.0",
@@ -176,11 +176,11 @@
176
176
  },
177
177
  "chalk": {
178
178
  "from": "^5.6.0",
179
- "to": "^5.6.2"
179
+ "to": "^6.0.0"
180
180
  },
181
181
  "cosmiconfig": {
182
182
  "from": "^9.0.0",
183
- "to": "^9.0.2"
183
+ "to": "^10.0.0"
184
184
  },
185
185
  "detect-indent": {
186
186
  "from": "^7.0.0",
@@ -212,7 +212,7 @@
212
212
  },
213
213
  "ts-log": {
214
214
  "from": "^3.0.0",
215
- "to": "^3.0.2"
215
+ "to": "^3.0.3"
216
216
  },
217
217
  "tslib": {
218
218
  "from": "^2.4.0",
@@ -221,12 +221,16 @@
221
221
  "yaml": {
222
222
  "from": "^2.3.1",
223
223
  "to": "^2.9.0"
224
+ },
225
+ "yargs": {
226
+ "from": "^18.0.0",
227
+ "to": "^18.1.0"
224
228
  }
225
229
  },
226
- "depsUpdated": 27,
230
+ "depsUpdated": 28,
227
231
  "originalPackage": "@graphql-codegen/cli",
228
- "originalVersion": "7.2.0",
229
- "processedAt": "2026-07-22T00:36:16.460Z",
232
+ "originalVersion": "7.3.0",
233
+ "processedAt": "2026-08-22T08:07:27.602Z",
230
234
  "smokeTest": "passed"
231
235
  }
232
236
  }