@graphcommerce/graphql-codegen-near-operation-file 6.2.0-canary.7 → 6.2.0-canary.71

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,5 +1,145 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.2.0-canary.71
4
+
5
+ ## 6.2.0-canary.70
6
+
7
+ ## 6.2.0-canary.69
8
+
9
+ ### Patch Changes
10
+
11
+ - [#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))
12
+
13
+ ## 6.2.0-canary.68
14
+
15
+ ## 6.2.0-canary.67
16
+
17
+ ## 6.2.0-canary.66
18
+
19
+ ## 6.2.0-canary.65
20
+
21
+ ## 6.2.0-canary.64
22
+
23
+ ## 6.2.0-canary.63
24
+
25
+ ## 6.2.0-canary.62
26
+
27
+ ## 6.2.0-canary.61
28
+
29
+ ## 6.2.0-canary.60
30
+
31
+ ## 6.2.0-canary.59
32
+
33
+ ## 6.2.0-canary.58
34
+
35
+ ## 6.2.0-canary.57
36
+
37
+ ### Patch Changes
38
+
39
+ - [#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))
40
+
41
+ ## 6.2.0-canary.56
42
+
43
+ ## 6.2.0-canary.55
44
+
45
+ ## 6.2.0-canary.54
46
+
47
+ ## 6.2.0-canary.53
48
+
49
+ ## 6.2.0-canary.52
50
+
51
+ ## 6.2.0-canary.51
52
+
53
+ ## 6.2.0-canary.50
54
+
55
+ ## 6.2.0-canary.49
56
+
57
+ ## 6.2.0-canary.48
58
+
59
+ ## 6.2.0-canary.47
60
+
61
+ ## 6.2.0-canary.46
62
+
63
+ ## 6.2.0-canary.45
64
+
65
+ ## 6.2.0-canary.44
66
+
67
+ ## 6.2.0-canary.43
68
+
69
+ ## 6.2.0-canary.42
70
+
71
+ ## 6.2.0-canary.41
72
+
73
+ ### Patch Changes
74
+
75
+ - [#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))
76
+
77
+ ## 6.2.0-canary.40
78
+
79
+ ## 6.2.0-canary.39
80
+
81
+ ## 6.2.0-canary.38
82
+
83
+ ## 6.2.0-canary.37
84
+
85
+ ## 6.2.0-canary.36
86
+
87
+ ## 6.2.0-canary.35
88
+
89
+ ## 6.2.0-canary.34
90
+
91
+ ## 6.2.0-canary.33
92
+
93
+ ## 6.2.0-canary.32
94
+
95
+ ## 6.2.0-canary.31
96
+
97
+ ## 6.2.0-canary.30
98
+
99
+ ## 6.2.0-canary.29
100
+
101
+ ## 6.2.0-canary.28
102
+
103
+ ## 6.2.0-canary.27
104
+
105
+ ## 6.2.0-canary.26
106
+
107
+ ## 6.2.0-canary.25
108
+
109
+ ## 6.2.0-canary.24
110
+
111
+ ## 6.2.0-canary.23
112
+
113
+ ## 6.2.0-canary.22
114
+
115
+ ## 6.2.0-canary.21
116
+
117
+ ## 6.2.0-canary.20
118
+
119
+ ## 6.2.0-canary.19
120
+
121
+ ## 6.2.0-canary.18
122
+
123
+ ## 6.2.0-canary.17
124
+
125
+ ## 6.2.0-canary.16
126
+
127
+ ## 6.2.0-canary.15
128
+
129
+ ## 6.2.0-canary.14
130
+
131
+ ## 6.2.0-canary.13
132
+
133
+ ## 6.2.0-canary.12
134
+
135
+ ## 6.2.0-canary.11
136
+
137
+ ## 6.2.0-canary.10
138
+
139
+ ## 6.2.0-canary.9
140
+
141
+ ## 6.2.0-canary.8
142
+
3
143
  ## 6.2.0-canary.7
4
144
 
5
145
  ## 6.2.0-canary.6
@@ -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": "6.2.0-canary.7",
5
+ "version": "6.2.0-canary.71",
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": "6.2.0-canary.7",
25
- "@graphcommerce/prettier-config-pwa": "6.2.0-canary.7",
26
- "@graphcommerce/typescript-config-pwa": "6.2.0-canary.7"
24
+ "@graphcommerce/eslint-config-pwa": "6.2.0-canary.71",
25
+ "@graphcommerce/prettier-config-pwa": "6.2.0-canary.71",
26
+ "@graphcommerce/typescript-config-pwa": "6.2.0-canary.71"
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
  }