@graphcommerce/graphql-codegen-near-operation-file 7.0.0-canary.21 → 7.0.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/CHANGELOG.md CHANGED
@@ -1,6 +1,182 @@
1
1
  # Change Log
2
2
 
3
- ## 7.0.0-canary.21
3
+ ## 7.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2012](https://github.com/graphcommerce-org/graphcommerce/pull/2012) [`1dbb3ae13`](https://github.com/graphcommerce-org/graphcommerce/commit/1dbb3ae13553992ee1ed77f375375560f28c418c) - Upgrade graphql to 16.7.1, add graphql as peer dependency ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
8
+
9
+ - [#1960](https://github.com/graphcommerce-org/graphcommerce/pull/1960) [`86e14569b`](https://github.com/graphcommerce-org/graphcommerce/commit/86e14569b1f68f73be7f93b614e36b382c5debff) - Updated to the latest release of GraphQL codegen and solve compatibility issues with our own generator ([@paales](https://github.com/paales))
10
+
11
+ - [#1982](https://github.com/graphcommerce-org/graphcommerce/pull/1982) [`e1fab2f6d`](https://github.com/graphcommerce-org/graphcommerce/commit/e1fab2f6d8f57d0488d8a915596d5c19cb7718e6) - Better detection what the package roots are when a custom node_modules directory is used ([@paales](https://github.com/paales))
12
+
13
+ ## 6.2.0-canary.98
14
+
15
+ ## 6.2.0-canary.97
16
+
17
+ ## 6.2.0-canary.96
18
+
19
+ ## 6.2.0-canary.95
20
+
21
+ ## 6.2.0-canary.94
22
+
23
+ ## 6.2.0-canary.93
24
+
25
+ ## 6.2.0-canary.92
26
+
27
+ ## 6.2.0-canary.91
28
+
29
+ ## 6.2.0-canary.90
30
+
31
+ ## 6.2.0-canary.89
32
+
33
+ ## 6.2.0-canary.88
34
+
35
+ ## 6.2.0-canary.87
36
+
37
+ ## 6.2.0-canary.86
38
+
39
+ ## 6.2.0-canary.85
40
+
41
+ ## 6.2.0-canary.84
42
+
43
+ ## 6.2.0-canary.83
44
+
45
+ ## 6.2.0-canary.82
46
+
47
+ ## 6.2.0-canary.81
48
+
49
+ ## 6.2.0-canary.80
50
+
51
+ ## 6.2.0-canary.79
52
+
53
+ ## 6.2.0-canary.78
54
+
55
+ ## 6.2.0-canary.77
56
+
57
+ ## 6.2.0-canary.76
58
+
59
+ ## 6.2.0-canary.75
60
+
61
+ ## 6.2.0-canary.74
62
+
63
+ ## 6.2.0-canary.73
64
+
65
+ ## 6.2.0-canary.72
66
+
67
+ ## 6.2.0-canary.71
68
+
69
+ ## 6.2.0-canary.70
70
+
71
+ ## 6.2.0-canary.69
72
+
73
+ ### Patch Changes
74
+
75
+ - [#2012](https://github.com/graphcommerce-org/graphcommerce/pull/2012) [`1dbb3ae13`](https://github.com/graphcommerce-org/graphcommerce/commit/1dbb3ae13553992ee1ed77f375375560f28c418c) - Upgrade graphql to 16.7.1, add graphql as peer dependency ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
76
+
77
+ ## 6.2.0-canary.68
78
+
79
+ ## 6.2.0-canary.67
80
+
81
+ ## 6.2.0-canary.66
82
+
83
+ ## 6.2.0-canary.65
84
+
85
+ ## 6.2.0-canary.64
86
+
87
+ ## 6.2.0-canary.63
88
+
89
+ ## 6.2.0-canary.62
90
+
91
+ ## 6.2.0-canary.61
92
+
93
+ ## 6.2.0-canary.60
94
+
95
+ ## 6.2.0-canary.59
96
+
97
+ ## 6.2.0-canary.58
98
+
99
+ ## 6.2.0-canary.57
100
+
101
+ ### Patch Changes
102
+
103
+ - [#1982](https://github.com/graphcommerce-org/graphcommerce/pull/1982) [`e1fab2f6d`](https://github.com/graphcommerce-org/graphcommerce/commit/e1fab2f6d8f57d0488d8a915596d5c19cb7718e6) - Better detection what the package roots are when a custom node_modules directory is used ([@paales](https://github.com/paales))
104
+
105
+ ## 6.2.0-canary.56
106
+
107
+ ## 6.2.0-canary.55
108
+
109
+ ## 6.2.0-canary.54
110
+
111
+ ## 6.2.0-canary.53
112
+
113
+ ## 6.2.0-canary.52
114
+
115
+ ## 6.2.0-canary.51
116
+
117
+ ## 6.2.0-canary.50
118
+
119
+ ## 6.2.0-canary.49
120
+
121
+ ## 6.2.0-canary.48
122
+
123
+ ## 6.2.0-canary.47
124
+
125
+ ## 6.2.0-canary.46
126
+
127
+ ## 6.2.0-canary.45
128
+
129
+ ## 6.2.0-canary.44
130
+
131
+ ## 6.2.0-canary.43
132
+
133
+ ## 6.2.0-canary.42
134
+
135
+ ## 6.2.0-canary.41
136
+
137
+ ### Patch Changes
138
+
139
+ - [#1960](https://github.com/graphcommerce-org/graphcommerce/pull/1960) [`86e14569b`](https://github.com/graphcommerce-org/graphcommerce/commit/86e14569b1f68f73be7f93b614e36b382c5debff) - Updated to the latest release of GraphQL codegen and solve compatibility issues with our own generator ([@paales](https://github.com/paales))
140
+
141
+ ## 6.2.0-canary.40
142
+
143
+ ## 6.2.0-canary.39
144
+
145
+ ## 6.2.0-canary.38
146
+
147
+ ## 6.2.0-canary.37
148
+
149
+ ## 6.2.0-canary.36
150
+
151
+ ## 6.2.0-canary.35
152
+
153
+ ## 6.2.0-canary.34
154
+
155
+ ## 6.2.0-canary.33
156
+
157
+ ## 6.2.0-canary.32
158
+
159
+ ## 6.2.0-canary.31
160
+
161
+ ## 6.2.0-canary.30
162
+
163
+ ## 6.2.0-canary.29
164
+
165
+ ## 6.2.0-canary.28
166
+
167
+ ## 6.2.0-canary.27
168
+
169
+ ## 6.2.0-canary.26
170
+
171
+ ## 6.2.0-canary.25
172
+
173
+ ## 6.2.0-canary.24
174
+
175
+ ## 6.2.0-canary.23
176
+
177
+ ## 6.2.0-canary.22
178
+
179
+ ## 6.2.0-canary.21
4
180
 
5
181
  ## 6.2.0-canary.20
6
182
 
@@ -17,8 +17,6 @@ function envDirective(documentFiles) {
17
17
  if (node.name.value === 'env') {
18
18
  const ifValue = node.arguments?.find((arg) => arg.name.value === 'if')?.value;
19
19
  keep = ifValue?.kind === graphql_1.Kind.STRING && typeof process.env[ifValue.value] !== 'undefined';
20
- // Remove the @env directive, since it is only used here
21
- return null;
22
20
  }
23
21
  return undefined;
24
22
  },
@@ -89,6 +89,7 @@ function injectInjectable(injectables, injector) {
89
89
  const spread = {
90
90
  kind: graphql_1.Kind.FRAGMENT_SPREAD,
91
91
  name: { kind: graphql_1.Kind.NAME, value: fragment.name.value },
92
+ directives: [],
92
93
  };
93
94
  frag.selectionSet.selections = [...frag.selectionSet.selections, spread];
94
95
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphql-codegen-near-operation-file",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "7.0.0-canary.21",
5
+ "version": "7.0.0",
6
6
  "sideEffects": false,
7
7
  "type": "commonjs",
8
8
  "main": "dist/index.js",
@@ -21,17 +21,19 @@
21
21
  }
22
22
  },
23
23
  "devDependencies": {
24
- "@graphcommerce/eslint-config-pwa": "7.0.0-canary.21",
25
- "@graphcommerce/prettier-config-pwa": "7.0.0-canary.21",
26
- "@graphcommerce/typescript-config-pwa": "7.0.0-canary.21"
24
+ "@graphcommerce/eslint-config-pwa": "7.0.0",
25
+ "@graphcommerce/prettier-config-pwa": "7.0.0",
26
+ "@graphcommerce/typescript-config-pwa": "7.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "@graphql-codegen/add": "4.0.1",
30
- "@graphql-codegen/plugin-helpers": "4.1.0",
31
- "@graphql-codegen/visitor-plugin-common": "3.0.2",
32
- "@graphql-tools/utils": "^9.2.1",
29
+ "@graphql-codegen/add": "5.0.0",
30
+ "@graphql-codegen/plugin-helpers": "5.0.0",
31
+ "@graphql-codegen/visitor-plugin-common": "4.0.0",
32
+ "@graphql-tools/utils": "^10.0.1",
33
33
  "@types/parse-filepath": "^1.0.0",
34
- "graphql": "16.6.0",
35
34
  "parse-filepath": "^1.0.2"
35
+ },
36
+ "peerDependencies": {
37
+ "graphql": "^16.7.1"
36
38
  }
37
39
  }
@@ -16,9 +16,6 @@ export function envDirective(documentFiles: Types.DocumentFile[]) {
16
16
  if (node.name.value === 'env') {
17
17
  const ifValue = node.arguments?.find((arg) => arg.name.value === 'if')?.value
18
18
  keep = ifValue?.kind === Kind.STRING && typeof process.env[ifValue.value] !== 'undefined'
19
-
20
- // Remove the @env directive, since it is only used here
21
- return null
22
19
  }
23
20
  return undefined
24
21
  },
@@ -97,6 +97,7 @@ function injectInjectable(injectables: DocumentNode[], injector: DocumentNode) {
97
97
  const spread: FragmentSpreadNode = {
98
98
  kind: Kind.FRAGMENT_SPREAD,
99
99
  name: { kind: Kind.NAME, value: fragment.name.value },
100
+ directives: [],
100
101
  }
101
102
  frag.selectionSet.selections = [...frag.selectionSet.selections, spread]
102
103
  }